3 # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.1 2002/02/18 19:49:46 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
66 SLAPD (Standalone LDAP Daemon) Options:"
68 --enable-slapd enable building slapd [yes]"
70 --enable-aci enable per-object ACIs (experimental) [no]"
72 --enable-cleartext enable cleartext passwords [yes]"
74 --enable-crypt enable crypt(3) passwords [no]"
76 --enable-dynamic enable linking built binaries with dynamic libs [no]"
78 --enable-kpasswd enable Kerberos password verification [no]"
80 --enable-lmpasswd enable LAN Manager passwords [no]"
82 --enable-spasswd enable (Cyrus) SASL password verification [no]"
84 --enable-modules enable dynamic module support [no]"
86 --enable-phonetic enable phonetic/soundex [no]"
88 --enable-rlookups enable reverse lookups [no]"
90 --enable-slp enable SLPv2 support [no]"
92 --enable-wrappers enable tcp wrapper support [no]"
94 --enable-bdb enable Berkeley DB backend [yes]"
96 --with-bdb-module module type [static]"
98 --enable-dnssrv enable dnssrv backend [no]"
100 --with-dnssrv-module module type [static]"
102 --enable-ldap enable ldap backend [no]"
104 --with-ldap-module module type [static]"
106 --enable-ldbm enable ldbm backend [no]"
108 --with-ldbm-api with LDBM API [auto]"
110 --with-ldbm-module module type [static]"
112 --with-ldbm-type use LDBM type [auto]"
114 --enable-meta enable metadirectory backend [no]"
116 --with-meta-module module type [static]"
118 --enable-monitor enable monitor backend [no]"
120 --with-monitor-module module type [static]"
122 --enable-passwd enable passwd backend [no]"
124 --with-passwd-module module type [static]"
126 --enable-perl enable perl backend [no]"
128 --with-perl-module module type [static]"
130 --enable-shell enable shell backend [no]"
132 --with-shell-module module type [static]"
134 --enable-sql enable sql backend [no]"
136 --with-sql-module module type [static]"
139 SLURPD (Replication Daemon) Options:"
141 --enable-slurpd enable building slurpd [auto]"
144 Library Generation & Linking Options"
146 --enable-static[=PKGS] build static libraries [default=yes]"
148 --enable-shared[=PKGS] build shared libraries [default=yes]"
150 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
152 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
154 # Find the correct PATH separator. Usually this is `:', but
155 # DJGPP uses `;' like DOS.
156 if test "X${PATH_SEPARATOR+set}" != Xset; then
157 UNAME=${UNAME-`uname 2>/dev/null`}
159 *-DOS) lt_cv_sys_path_separator=';' ;;
160 *) lt_cv_sys_path_separator=':' ;;
162 PATH_SEPARATOR=$lt_cv_sys_path_separator
166 # Check that we are running under the correct shell.
167 SHELL=${CONFIG_SHELL-/bin/sh}
171 # Remove one level of quotation (which was required for Make).
172 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
177 if test "X$1" = X--no-reexec; then
178 # Discard the --no-reexec flag, and continue.
180 elif test "X$1" = X--fallback-echo; then
181 # Avoid inline document here, it may be left over
183 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
184 # Yippee, $echo works!
187 # Restart under the correct shell.
188 exec $SHELL "$0" --no-reexec ${1+"$@"}
191 if test "X$1" = X--fallback-echo; then
192 # used as fallback echo
200 # The HP-UX ksh and POSIX shell print the target directory to stdout
202 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
204 if test -z "$ECHO"; then
205 if test "X${echo_test_string+set}" != Xset; then
206 # find a string as large as possible, as long as the shell can cope with it
207 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
208 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
209 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
210 echo_test_string="`eval $cmd`" &&
211 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
218 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
219 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
220 test "X$echo_testing_string" = "X$echo_test_string"; then
223 # The Solaris, AIX, and Digital Unix default echo programs unquote
224 # backslashes. This makes it impossible to quote backslashes using
225 # echo "$something" | sed 's/\\/\\\\/g'
227 # So, first we look for a working echo in the user's PATH.
229 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
230 for dir in $PATH /usr/ucb; do
231 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
232 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
233 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
234 test "X$echo_testing_string" = "X$echo_test_string"; then
241 if test "X$echo" = Xecho; then
242 # We didn't find a better echo, so look for alternatives.
243 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
244 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
245 test "X$echo_testing_string" = "X$echo_test_string"; then
246 # This shell has a builtin print -r that does the trick.
248 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
249 test "X$CONFIG_SHELL" != X/bin/ksh; then
250 # If we have ksh, try running configure again with it.
251 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
252 export ORIGINAL_CONFIG_SHELL
253 CONFIG_SHELL=/bin/ksh
255 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
259 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
260 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
261 test "X$echo_testing_string" = "X$echo_test_string"; then
264 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
265 test "X$echo_testing_string" = 'X\t' &&
266 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
267 test "X$echo_testing_string" = "X$echo_test_string"; then
268 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
270 SHELL="$CONFIG_SHELL"
272 echo="$CONFIG_SHELL $0 --fallback-echo"
273 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
274 test "X$echo_testing_string" = 'X\t' &&
275 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
276 test "X$echo_testing_string" = "X$echo_test_string"; then
277 echo="$CONFIG_SHELL $0 --fallback-echo"
279 # maybe with a smaller string...
282 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
283 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
290 if test "$prev" != 'sed 50q "$0"'; then
291 echo_test_string=`eval $prev`
292 export echo_test_string
293 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
295 # Oops. We lost completely, so just stick with echo.
304 # Copy echo and quote the copy suitably for passing to libtool from
305 # the Makefile, instead of quoting the original, which is used later.
307 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
308 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
313 --disable-libtool-lock avoid locking (might break parallel builds)"
315 --with-pic try to use only PIC/non-PIC objects [default=use both]"
318 See INSTALL file for further details."
320 # Initialize some variables set by options.
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
324 cache_file=./config.cache
333 program_transform_name=s,x,x,
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 # Initialize some other variables.
357 SHELL=${CONFIG_SHELL-/bin/sh}
358 # Maximum number of lines to put in a shell here document.
365 # If the previous option needs an argument, assign it.
366 if test -n "$ac_prev"; then
367 eval "$ac_prev=\$ac_option"
373 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
377 # Accept the important Cygnus configure options, so we can diagnose typos.
381 -bindir | --bindir | --bindi | --bind | --bin | --bi)
383 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
384 bindir="$ac_optarg" ;;
386 -build | --build | --buil | --bui | --bu)
388 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
389 build="$ac_optarg" ;;
391 -cache-file | --cache-file | --cache-fil | --cache-fi \
392 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
393 ac_prev=cache_file ;;
394 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
395 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
396 cache_file="$ac_optarg" ;;
398 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
400 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
402 datadir="$ac_optarg" ;;
404 -disable-* | --disable-*)
405 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
410 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
411 eval "enable_${ac_feature}=no" ;;
413 -enable-* | --enable-*)
414 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
419 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
424 eval "enable_${ac_feature}='$ac_optarg'" ;;
426 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
427 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
428 | --exec | --exe | --ex)
429 ac_prev=exec_prefix ;;
430 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
431 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
432 | --exec=* | --exe=* | --ex=*)
433 exec_prefix="$ac_optarg" ;;
435 -gas | --gas | --ga | --g)
436 # Obsolete; use --with-gas.
439 -help | --help | --hel | --he)
440 # Omit some internal or obsolete options to make the list less imposing.
441 # This message is too long to be a string in the A/UX 3.1 sh.
443 Usage: configure [options] [host]
444 Options: [defaults in brackets after descriptions]
446 --cache-file=FILE cache test results in FILE
447 --help print this message
448 --no-create do not create output files
449 --quiet, --silent do not print \`checking...' messages
450 --version print the version of autoconf that created configure
451 Directory and file names:
452 --prefix=PREFIX install architecture-independent files in PREFIX
454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
456 --bindir=DIR user executables in DIR [EPREFIX/bin]
457 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
458 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
459 --datadir=DIR read-only architecture-independent data in DIR
461 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
462 --sharedstatedir=DIR modifiable architecture-independent data in DIR
464 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
465 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
466 --includedir=DIR C header files in DIR [PREFIX/include]
467 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
468 --infodir=DIR info documentation in DIR [PREFIX/info]
469 --mandir=DIR man documentation in DIR [PREFIX/man]
470 --srcdir=DIR find the sources in DIR [configure dir or ..]
471 --program-prefix=PREFIX prepend PREFIX to installed program names
472 --program-suffix=SUFFIX append SUFFIX to installed program names
473 --program-transform-name=PROGRAM
474 run sed PROGRAM on installed program names
478 --build=BUILD configure for building on BUILD [BUILD=HOST]
479 --host=HOST configure for HOST [guessed]
480 --target=TARGET configure for TARGET [TARGET=HOST]
481 Features and packages:
482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
486 --x-includes=DIR X include files are in DIR
487 --x-libraries=DIR X library files are in DIR
489 if test -n "$ac_help"; then
490 echo "--enable and --with options recognized:$ac_help"
494 -host | --host | --hos | --ho)
496 -host=* | --host=* | --hos=* | --ho=*)
499 -includedir | --includedir | --includedi | --included | --include \
500 | --includ | --inclu | --incl | --inc)
501 ac_prev=includedir ;;
502 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
503 | --includ=* | --inclu=* | --incl=* | --inc=*)
504 includedir="$ac_optarg" ;;
506 -infodir | --infodir | --infodi | --infod | --info | --inf)
508 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
509 infodir="$ac_optarg" ;;
511 -libdir | --libdir | --libdi | --libd)
513 -libdir=* | --libdir=* | --libdi=* | --libd=*)
514 libdir="$ac_optarg" ;;
516 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
517 | --libexe | --libex | --libe)
518 ac_prev=libexecdir ;;
519 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
520 | --libexe=* | --libex=* | --libe=*)
521 libexecdir="$ac_optarg" ;;
523 -localstatedir | --localstatedir | --localstatedi | --localstated \
524 | --localstate | --localstat | --localsta | --localst \
525 | --locals | --local | --loca | --loc | --lo)
526 ac_prev=localstatedir ;;
527 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
528 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
529 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
530 localstatedir="$ac_optarg" ;;
532 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
534 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
535 mandir="$ac_optarg" ;;
538 # Obsolete; use --without-fp.
541 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
545 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
546 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
549 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
550 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
551 | --oldin | --oldi | --old | --ol | --o)
552 ac_prev=oldincludedir ;;
553 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
554 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
555 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
556 oldincludedir="$ac_optarg" ;;
558 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
560 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
561 prefix="$ac_optarg" ;;
563 -program-prefix | --program-prefix | --program-prefi | --program-pref \
564 | --program-pre | --program-pr | --program-p)
565 ac_prev=program_prefix ;;
566 -program-prefix=* | --program-prefix=* | --program-prefi=* \
567 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
568 program_prefix="$ac_optarg" ;;
570 -program-suffix | --program-suffix | --program-suffi | --program-suff \
571 | --program-suf | --program-su | --program-s)
572 ac_prev=program_suffix ;;
573 -program-suffix=* | --program-suffix=* | --program-suffi=* \
574 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
575 program_suffix="$ac_optarg" ;;
577 -program-transform-name | --program-transform-name \
578 | --program-transform-nam | --program-transform-na \
579 | --program-transform-n | --program-transform- \
580 | --program-transform | --program-transfor \
581 | --program-transfo | --program-transf \
582 | --program-trans | --program-tran \
583 | --progr-tra | --program-tr | --program-t)
584 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
595 | -silent | --silent | --silen | --sile | --sil)
598 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
600 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
602 sbindir="$ac_optarg" ;;
604 -sharedstatedir | --sharedstatedir | --sharedstatedi \
605 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
606 | --sharedst | --shareds | --shared | --share | --shar \
608 ac_prev=sharedstatedir ;;
609 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
610 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
611 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
613 sharedstatedir="$ac_optarg" ;;
615 -site | --site | --sit)
617 -site=* | --site=* | --sit=*)
620 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
622 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
623 srcdir="$ac_optarg" ;;
625 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
626 | --syscon | --sysco | --sysc | --sys | --sy)
627 ac_prev=sysconfdir ;;
628 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
629 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
630 sysconfdir="$ac_optarg" ;;
632 -target | --target | --targe | --targ | --tar | --ta | --t)
634 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
635 target="$ac_optarg" ;;
637 -v | -verbose | --verbose | --verbos | --verbo | --verb)
640 -version | --version | --versio | --versi | --vers)
641 echo "configure generated by autoconf version 2.13.1"
645 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
646 # Reject names that are not valid shell variable names.
647 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
648 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
650 ac_package=`echo $ac_package| sed 's/-/_/g'`
655 eval "with_${ac_package}='$ac_optarg'" ;;
657 -without-* | --without-*)
658 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
659 # Reject names that are not valid shell variable names.
660 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
661 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
663 ac_package=`echo $ac_package| sed 's/-/_/g'`
664 eval "with_${ac_package}=no" ;;
667 # Obsolete; use --with-x.
670 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
671 | --x-incl | --x-inc | --x-in | --x-i)
672 ac_prev=x_includes ;;
673 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
674 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
675 x_includes="$ac_optarg" ;;
677 -x-libraries | --x-libraries | --x-librarie | --x-librari \
678 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
679 ac_prev=x_libraries ;;
680 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
681 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
682 x_libraries="$ac_optarg" ;;
684 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
688 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
689 echo "configure: warning: $ac_option: invalid host type" 1>&2
691 if test "x$nonopt" != xNONE; then
692 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
700 if test -n "$ac_prev"; then
701 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
704 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
706 # File descriptor usage:
709 # 2 errors and warnings
710 # 3 some systems may open it to /dev/tty
711 # 4 used on the Kubota Titan
712 # 6 checking for... messages and results
713 # 5 compiler messages saved in config.log
714 if test "$silent" = yes; then
722 This file contains any messages produced by compilers while
723 running configure, to aid debugging if configure makes a mistake.
726 # Strip out --no-create and --no-recursion so they do not pile up.
727 # Also quote any args containing shell metacharacters.
732 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
733 | --no-cr | --no-c) ;;
734 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
735 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
736 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
737 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
738 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
743 # Only set these to C if already set. These must not be set unconditionally
744 # because not all systems understand e.g. LANG=C (notably SCO).
745 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
746 # Non-C LC_CTYPE values break the ctype check.
747 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
748 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
749 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
750 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
753 rm -rf conftest* confdefs.h
754 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
757 # A filename unique to this package, relative to the directory that
758 # configure is in, which we can look for to find out if srcdir is correct.
759 ac_unique_file=build/version.sh
761 # Find the source files, if location was not specified.
762 if test -z "$srcdir"; then
763 ac_srcdir_defaulted=yes
764 # Try the directory containing this script, then its parent.
766 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
767 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
769 if test ! -r $srcdir/$ac_unique_file; then
773 ac_srcdir_defaulted=no
775 if test ! -r $srcdir/$ac_unique_file; then
776 if test "$ac_srcdir_defaulted" = yes; then
777 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
779 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
782 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
784 # Prefer explicitly selected file to automatically selected ones.
785 if test -z "$CONFIG_SITE"; then
786 if test "x$prefix" != xNONE; then
787 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
789 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
792 for ac_site_file in $CONFIG_SITE; do
793 if test -r "$ac_site_file"; then
794 echo "loading site script $ac_site_file"
801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802 ac_cpp='$CPP $CPPFLAGS'
803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805 cross_compiling=$ac_cv_prog_cc_cross
809 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
810 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
811 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
818 ac_n= ac_c='\c' ac_t=
822 # set unset (borrowed from autoconf 2.49c)
823 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
829 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
832 for ac_dir in build $srcdir/build; do
833 if test -f $ac_dir/install-sh; then
835 ac_install_sh="$ac_aux_dir/install-sh -c"
837 elif test -f $ac_dir/install.sh; then
839 ac_install_sh="$ac_aux_dir/install.sh -c"
841 elif test -f $ac_dir/shtool; then
843 ac_install_sh="$ac_aux_dir/shtool install -c"
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
850 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
851 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
852 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
854 eval `$ac_aux_dir/version.sh`
855 if test -z "$OL_STRING"; then
856 { echo "configure: error: could not determine version" 1>&2; exit 1; }
859 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
860 ac_cv_shtool="$ac_aux_dir/shtool"
862 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
865 SHTOOL="$ac_cv_shtool"
867 TB=`$SHTOOL echo -e %B`
868 TN=`$SHTOOL echo -e %b`
870 echo "Configuring $TB$OL_STRING$TN ..."
873 echo $ac_n "checking host system type""... $ac_c" 1>&6
874 echo "configure:875: checking host system type" >&5
875 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
877 # Make sure we can run config.sub.
878 if $ac_config_sub sun4 >/dev/null 2>&1; then :
879 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
882 ac_cv_host_alias=$host
883 case "$ac_cv_host_alias" in
887 if ac_cv_host_alias=`$ac_config_guess`; then :
888 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
890 *) ac_cv_host_alias=$nonopt ;;
894 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
895 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
896 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
897 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
899 echo $ac_n "(cached) $ac_c" 1>&6
902 echo "$ac_t""$ac_cv_host" 1>&6
905 host_alias=$ac_cv_host_alias
906 host_cpu=$ac_cv_host_cpu
907 host_vendor=$ac_cv_host_vendor
908 host_os=$ac_cv_host_os
914 echo $ac_n "checking target system type""... $ac_c" 1>&6
915 echo "configure:916: checking target system type" >&5
916 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
918 # Make sure we can run config.sub.
919 if $ac_config_sub sun4 >/dev/null 2>&1; then :
920 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
923 ac_cv_target_alias=$target
924 case "$ac_cv_target_alias" in
928 ac_cv_target_alias=$host_alias ;;
930 *) ac_cv_target_alias=$nonopt ;;
934 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
935 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
936 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
937 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
939 echo $ac_n "(cached) $ac_c" 1>&6
942 echo "$ac_t""$ac_cv_target" 1>&6
945 target_alias=$ac_cv_target_alias
946 target_cpu=$ac_cv_target_cpu
947 target_vendor=$ac_cv_target_vendor
948 target_os=$ac_cv_target_os
954 echo $ac_n "checking build system type""... $ac_c" 1>&6
955 echo "configure:956: checking build system type" >&5
956 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
958 # Make sure we can run config.sub.
959 if $ac_config_sub sun4 >/dev/null 2>&1; then :
960 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
963 ac_cv_build_alias=$build
964 case "$ac_cv_build_alias" in
968 ac_cv_build_alias=$host_alias ;;
970 *) ac_cv_build_alias=$nonopt ;;
974 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
975 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
979 echo $ac_n "(cached) $ac_c" 1>&6
982 echo "$ac_t""$ac_cv_build" 1>&6
985 build_alias=$ac_cv_build_alias
986 build_cpu=$ac_cv_build_cpu
987 build_vendor=$ac_cv_build_vendor
988 build_os=$ac_cv_build_os
994 # Do some error checking and defaulting for the host and target type.
996 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
999 # 1. You are not allowed to specify --host, --target, and nonopt at the
1001 # 2. Host defaults to nonopt.
1002 # 3. If nonopt is not specified, then host defaults to the current host,
1003 # as determined by config.guess.
1004 # 4. Target and build default to nonopt.
1005 # 5. If nonopt is not specified, then target and build default to host.
1007 # The aliases save the names the user supplied, while $host etc.
1008 # will get canonicalized.
1009 case $host---$target---$nonopt in
1010 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1014 test "$host_alias" != "$target_alias" &&
1015 test "$program_prefix$program_suffix$program_transform_name" = \
1017 program_prefix=${target_alias}-
1020 # Find a good install program. We prefer a C program (faster),
1021 # so one script is as good as another. But avoid the broken or
1022 # incompatible versions:
1023 # SysV /etc/install, /usr/sbin/install
1024 # SunOS /usr/etc/install
1025 # IRIX /sbin/install
1027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1030 # ./install, which can be erroneously created by make from ./install.sh.
1031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1032 echo "configure:1033: checking for a BSD compatible install" >&5
1033 if test -z "$INSTALL"; then
1034 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1038 for ac_dir in $PATH; do
1039 # Account for people who put trailing slashes in PATH elements.
1041 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1043 # OSF1 and SCO ODT 3.0 have their own names for install.
1044 # Don't use installbsd from OSF since it installs stuff as root
1046 for ac_prog in ginstall scoinst install; do
1047 if test -f $ac_dir/$ac_prog; then
1048 if test $ac_prog = install &&
1049 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1050 # AIX install. It has an incompatible calling convention.
1052 elif test $ac_prog = install &&
1053 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1054 # program-specific install script used by HP pwplus--don't use.
1057 ac_cv_path_install="$ac_dir/$ac_prog -c"
1068 if test "${ac_cv_path_install+set}" = set; then
1069 INSTALL="$ac_cv_path_install"
1071 # As a last resort, use the slow shell script. We don't cache a
1072 # path for INSTALL within a source directory, because that will
1073 # break other packages using the cache if that directory is
1074 # removed, or if the path is relative.
1075 INSTALL="$ac_install_sh"
1078 echo "$ac_t""$INSTALL" 1>&6
1080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1081 # It thinks the first close brace ends the variable substitution.
1082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1088 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether build environment is sane" >&5
1092 echo timestamp > conftestfile
1093 # Do `set' in a subshell so we don't clobber the current shell's
1094 # arguments. Must try -L first in case configure is actually a
1095 # symlink; some systems play weird games with the mod time of symlinks
1096 # (eg FreeBSD returns the mod time of the symlink's containing
1099 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1100 if test "$*" = "X"; then
1102 set X `ls -t $srcdir/configure conftestfile`
1104 if test "$*" != "X $srcdir/configure conftestfile" \
1105 && test "$*" != "X conftestfile $srcdir/configure"; then
1107 # If neither matched, then we have a broken ls. This can happen
1108 # if, for instance, CONFIG_SHELL is bash and it inherits a
1109 # broken ls alias from the environment. This has actually
1110 # happened. Such a system could not be considered "sane".
1111 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1112 alias in your environment" 1>&2; exit 1; }
1115 test "$2" = conftestfile
1121 { echo "configure: error: newly created file is older than distributed files!
1122 Check your system clock" 1>&2; exit 1; }
1125 echo "$ac_t""yes" 1>&6
1126 if test "$program_transform_name" = s,x,x,; then
1127 program_transform_name=
1129 # Double any \ or $. echo might interpret backslashes.
1130 cat <<\EOF_SED > conftestsed
1131 s,\\,\\\\,g; s,\$,$$,g
1133 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1136 test "$program_prefix" != NONE &&
1137 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1138 # Use a double $ so make ignores it.
1139 test "$program_suffix" != NONE &&
1140 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1142 # sed with no file args requires a program.
1143 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1145 for ac_prog in mawk gawk nawk awk
1147 # Extract the first word of "$ac_prog", so it can be a program name with args.
1148 set dummy $ac_prog; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$AWK"; then
1155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1162 ac_cv_prog_AWK="$ac_prog"
1169 AWK="$ac_cv_prog_AWK"
1170 if test -n "$AWK"; then
1171 echo "$ac_t""$AWK" 1>&6
1173 echo "$ac_t""no" 1>&6
1176 test -n "$AWK" && break
1179 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ${MAKE-make} sets \${MAKE}" >&5
1181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1182 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftestmake <<\EOF
1187 @echo 'ac_maketemp="${MAKE}"'
1189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1190 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1191 if test -n "$ac_maketemp"; then
1192 eval ac_cv_prog_make_${ac_make}_set=yes
1194 eval ac_cv_prog_make_${ac_make}_set=no
1198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1202 echo "$ac_t""no" 1>&6
1203 SET_MAKE="MAKE=${MAKE-make}"
1212 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1213 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1218 missing_dir=`cd $ac_aux_dir && pwd`
1219 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1220 echo "configure:1221: checking for working aclocal" >&5
1221 # Run test in a subshell; some versions of sh will print an error if
1222 # an executable is not found, even if stderr is redirected.
1223 # Redirect stdin to placate older versions of autoconf. Sigh.
1224 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1226 echo "$ac_t""found" 1>&6
1228 ACLOCAL="$missing_dir/missing aclocal"
1229 echo "$ac_t""missing" 1>&6
1232 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1233 echo "configure:1234: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1239 echo "$ac_t""found" 1>&6
1241 AUTOCONF="$missing_dir/missing autoconf"
1242 echo "$ac_t""missing" 1>&6
1245 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1246 echo "configure:1247: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1252 echo "$ac_t""found" 1>&6
1254 AUTOMAKE="$missing_dir/missing automake"
1255 echo "$ac_t""missing" 1>&6
1258 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1259 echo "configure:1260: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
1264 AUTOHEADER=autoheader
1265 echo "$ac_t""found" 1>&6
1267 AUTOHEADER="$missing_dir/missing autoheader"
1268 echo "$ac_t""missing" 1>&6
1271 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1272 echo "configure:1273: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1278 echo "$ac_t""found" 1>&6
1280 MAKEINFO="$missing_dir/missing makeinfo"
1281 echo "$ac_t""missing" 1>&6
1284 install_sh="$missing_dir/install-sh"
1285 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1287 for ac_prog in gnutar gtar tar
1289 # Extract the first word of "$ac_prog", so it can be a program name with args.
1290 set dummy $ac_prog; ac_word=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -n "$AMTAR"; then
1297 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1301 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 if test -f $ac_dir/$ac_word; then
1304 ac_cv_prog_AMTAR="$ac_prog"
1311 AMTAR="$ac_cv_prog_AMTAR"
1312 if test -n "$AMTAR"; then
1313 echo "$ac_t""$AMTAR" 1>&6
1315 echo "$ac_t""no" 1>&6
1318 test -n "$AMTAR" && break
1323 if test -n "$AMTAR"; then
1324 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1329 cat >> confdefs.h <<EOF
1330 #define OPENLDAP_PACKAGE "$PACKAGE"
1333 cat >> confdefs.h <<EOF
1334 #define OPENLDAP_VERSION "$VERSION"
1338 cat >> confdefs.h <<EOF
1339 #define LDAP_VENDOR_VERSION $OL_API_INC
1342 cat >> confdefs.h <<EOF
1343 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1346 cat >> confdefs.h <<EOF
1347 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1350 cat >> confdefs.h <<EOF
1351 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1355 OPENLDAP_LIBVERSION=$OL_API_LIB
1359 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1360 echo "configure:1361: checking configure arguments" >&5
1365 ldap_subdir="/openldap"
1367 # Check whether --with-subdir or --without-subdir was given.
1368 if test "${with_subdir+set}" = set; then
1369 withval="$with_subdir"
1376 ldap_subdir="$withval"
1379 ldap_subdir="/$withval"
1386 # OpenLDAP --enable-debug
1387 # Check whether --enable-debug or --disable-debug was given.
1388 if test "${enable_debug+set}" = set; then
1389 enableval="$enable_debug"
1392 for ol_val in auto yes no ; do
1393 if test "$enableval" = "$ol_val" ; then
1397 if test "$ol_arg" = "invalid" ; then
1398 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1400 ol_enable_debug="$ol_arg"
1403 ol_enable_debug="yes"
1405 # end --enable-debug
1406 # OpenLDAP --enable-syslog
1407 # Check whether --enable-syslog or --disable-syslog was given.
1408 if test "${enable_syslog+set}" = set; then
1409 enableval="$enable_syslog"
1412 for ol_val in auto yes no ; do
1413 if test "$enableval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1420 ol_enable_syslog="$ol_arg"
1423 ol_enable_syslog="auto"
1425 # end --enable-syslog
1426 # OpenLDAP --enable-proctitle
1427 # Check whether --enable-proctitle or --disable-proctitle was given.
1428 if test "${enable_proctitle+set}" = set; then
1429 enableval="$enable_proctitle"
1432 for ol_val in auto yes no ; do
1433 if test "$enableval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1440 ol_enable_proctitle="$ol_arg"
1443 ol_enable_proctitle="yes"
1445 # end --enable-proctitle
1446 # OpenLDAP --enable-cache
1447 # Check whether --enable-cache or --disable-cache was given.
1448 if test "${enable_cache+set}" = set; then
1449 enableval="$enable_cache"
1452 for ol_val in auto yes no ; do
1453 if test "$enableval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1460 ol_enable_cache="$ol_arg"
1463 ol_enable_cache="no"
1465 # end --enable-cache
1466 # OpenLDAP --enable-referrals
1467 # Check whether --enable-referrals or --disable-referrals was given.
1468 if test "${enable_referrals+set}" = set; then
1469 enableval="$enable_referrals"
1472 for ol_val in auto yes no ; do
1473 if test "$enableval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1480 ol_enable_referrals="$ol_arg"
1483 ol_enable_referrals="no"
1485 # end --enable-referrals
1486 # OpenLDAP --enable-kbind
1487 # Check whether --enable-kbind or --disable-kbind was given.
1488 if test "${enable_kbind+set}" = set; then
1489 enableval="$enable_kbind"
1492 for ol_val in auto yes no ; do
1493 if test "$enableval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1500 ol_enable_kbind="$ol_arg"
1503 ol_enable_kbind="no"
1505 # end --enable-kbind
1506 # OpenLDAP --enable-ipv6
1507 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1508 if test "${enable_ipv6+set}" = set; then
1509 enableval="$enable_ipv6"
1512 for ol_val in auto yes no ; do
1513 if test "$enableval" = "$ol_val" ; then
1517 if test "$ol_arg" = "invalid" ; then
1518 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1520 ol_enable_ipv6="$ol_arg"
1523 ol_enable_ipv6="auto"
1526 # OpenLDAP --enable-local
1527 # Check whether --enable-local or --disable-local was given.
1528 if test "${enable_local+set}" = set; then
1529 enableval="$enable_local"
1532 for ol_val in auto yes no ; do
1533 if test "$enableval" = "$ol_val" ; then
1537 if test "$ol_arg" = "invalid" ; then
1538 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1540 ol_enable_local="$ol_arg"
1543 ol_enable_local="auto"
1545 # end --enable-local
1546 # OpenLDAP --enable-rewrite
1547 # Check whether --enable-rewrite or --disable-rewrite was given.
1548 if test "${enable_rewrite+set}" = set; then
1549 enableval="$enable_rewrite"
1552 for ol_val in auto yes no ; do
1553 if test "$enableval" = "$ol_val" ; then
1557 if test "$ol_arg" = "invalid" ; then
1558 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1560 ol_enable_rewrite="$ol_arg"
1563 ol_enable_rewrite="no"
1565 # end --enable-rewrite
1566 # OpenLDAP --enable-x_compile
1567 # Check whether --enable-x_compile or --disable-x_compile was given.
1568 if test "${enable_x_compile+set}" = set; then
1569 enableval="$enable_x_compile"
1572 for ol_val in yes no ; do
1573 if test "$enableval" = "$ol_val" ; then
1577 if test "$ol_arg" = "invalid" ; then
1578 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1580 ol_enable_x_compile="$ol_arg"
1583 ol_enable_x_compile="no"
1585 # end --enable-x_compile
1588 # OpenLDAP --with-cyrus_sasl
1589 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1590 if test "${with_cyrus_sasl+set}" = set; then
1591 withval="$with_cyrus_sasl"
1594 for ol_val in auto yes no ; do
1595 if test "$withval" = "$ol_val" ; then
1599 if test "$ol_arg" = "invalid" ; then
1600 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1602 ol_with_cyrus_sasl="$ol_arg"
1605 ol_with_cyrus_sasl="auto"
1607 # end --with-cyrus_sasl
1609 # OpenLDAP --with-fetch
1610 # Check whether --with-fetch or --without-fetch was given.
1611 if test "${with_fetch+set}" = set; then
1612 withval="$with_fetch"
1615 for ol_val in auto yes no ; do
1616 if test "$withval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1623 ol_with_fetch="$ol_arg"
1626 ol_with_fetch="auto"
1630 # OpenLDAP --with-kerberos
1631 # Check whether --with-kerberos or --without-kerberos was given.
1632 if test "${with_kerberos+set}" = set; then
1633 withval="$with_kerberos"
1636 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1637 if test "$withval" = "$ol_val" ; then
1641 if test "$ol_arg" = "invalid" ; then
1642 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1644 ol_with_kerberos="$ol_arg"
1647 ol_with_kerberos="auto"
1649 # end --with-kerberos
1651 # OpenLDAP --with-readline
1652 # Check whether --with-readline or --without-readline was given.
1653 if test "${with_readline+set}" = set; then
1654 withval="$with_readline"
1657 for ol_val in auto yes no ; do
1658 if test "$withval" = "$ol_val" ; then
1662 if test "$ol_arg" = "invalid" ; then
1663 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1665 ol_with_readline="$ol_arg"
1668 ol_with_readline="auto"
1670 # end --with-readline
1672 # OpenLDAP --with-threads
1673 # Check whether --with-threads or --without-threads was given.
1674 if test "${with_threads+set}" = set; then
1675 withval="$with_threads"
1678 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1679 if test "$withval" = "$ol_val" ; then
1683 if test "$ol_arg" = "invalid" ; then
1684 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1686 ol_with_threads="$ol_arg"
1689 ol_with_threads="auto"
1691 # end --with-threads
1693 # OpenLDAP --with-tls
1694 # Check whether --with-tls or --without-tls was given.
1695 if test "${with_tls+set}" = set; then
1699 for ol_val in auto ssleay openssl yes no ; do
1700 if test "$withval" = "$ol_val" ; then
1704 if test "$ol_arg" = "invalid" ; then
1705 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1707 ol_with_tls="$ol_arg"
1714 # OpenLDAP --with-yielding_select
1715 # Check whether --with-yielding_select or --without-yielding_select was given.
1716 if test "${with_yielding_select+set}" = set; then
1717 withval="$with_yielding_select"
1720 for ol_val in auto yes no manual ; do
1721 if test "$withval" = "$ol_val" ; then
1725 if test "$ol_arg" = "invalid" ; then
1726 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1728 ol_with_yielding_select="$ol_arg"
1731 ol_with_yielding_select="auto"
1733 # end --with-yielding_select
1737 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1738 if test "${with_xxslapdoptions+set}" = set; then
1739 withval="$with_xxslapdoptions"
1743 # OpenLDAP --enable-slapd
1744 # Check whether --enable-slapd or --disable-slapd was given.
1745 if test "${enable_slapd+set}" = set; then
1746 enableval="$enable_slapd"
1749 for ol_val in auto yes no ; do
1750 if test "$enableval" = "$ol_val" ; then
1754 if test "$ol_arg" = "invalid" ; then
1755 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1757 ol_enable_slapd="$ol_arg"
1760 ol_enable_slapd="yes"
1762 # end --enable-slapd
1763 # OpenLDAP --enable-aci
1764 # Check whether --enable-aci or --disable-aci was given.
1765 if test "${enable_aci+set}" = set; then
1766 enableval="$enable_aci"
1769 for ol_val in auto yes no ; do
1770 if test "$enableval" = "$ol_val" ; then
1774 if test "$ol_arg" = "invalid" ; then
1775 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1777 ol_enable_aci="$ol_arg"
1783 # OpenLDAP --enable-cleartext
1784 # Check whether --enable-cleartext or --disable-cleartext was given.
1785 if test "${enable_cleartext+set}" = set; then
1786 enableval="$enable_cleartext"
1789 for ol_val in auto yes no ; do
1790 if test "$enableval" = "$ol_val" ; then
1794 if test "$ol_arg" = "invalid" ; then
1795 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1797 ol_enable_cleartext="$ol_arg"
1800 ol_enable_cleartext="yes"
1802 # end --enable-cleartext
1803 # OpenLDAP --enable-crypt
1804 # Check whether --enable-crypt or --disable-crypt was given.
1805 if test "${enable_crypt+set}" = set; then
1806 enableval="$enable_crypt"
1809 for ol_val in auto yes no ; do
1810 if test "$enableval" = "$ol_val" ; then
1814 if test "$ol_arg" = "invalid" ; then
1815 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1817 ol_enable_crypt="$ol_arg"
1820 ol_enable_crypt="no"
1822 # end --enable-crypt
1823 # OpenLDAP --enable-dynamic
1824 # Check whether --enable-dynamic or --disable-dynamic was given.
1825 if test "${enable_dynamic+set}" = set; then
1826 enableval="$enable_dynamic"
1829 for ol_val in auto yes no ; do
1830 if test "$enableval" = "$ol_val" ; then
1834 if test "$ol_arg" = "invalid" ; then
1835 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1837 ol_enable_dynamic="$ol_arg"
1840 ol_enable_dynamic="no"
1842 # end --enable-dynamic
1843 # OpenLDAP --enable-kpasswd
1844 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1845 if test "${enable_kpasswd+set}" = set; then
1846 enableval="$enable_kpasswd"
1849 for ol_val in auto yes no ; do
1850 if test "$enableval" = "$ol_val" ; then
1854 if test "$ol_arg" = "invalid" ; then
1855 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1857 ol_enable_kpasswd="$ol_arg"
1860 ol_enable_kpasswd="no"
1862 # end --enable-kpasswd
1863 # OpenLDAP --enable-lmpasswd
1864 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1865 if test "${enable_lmpasswd+set}" = set; then
1866 enableval="$enable_lmpasswd"
1869 for ol_val in auto yes no ; do
1870 if test "$enableval" = "$ol_val" ; then
1874 if test "$ol_arg" = "invalid" ; then
1875 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1877 ol_enable_lmpasswd="$ol_arg"
1880 ol_enable_lmpasswd="no"
1882 # end --enable-lmpasswd
1883 # OpenLDAP --enable-spasswd
1884 # Check whether --enable-spasswd or --disable-spasswd was given.
1885 if test "${enable_spasswd+set}" = set; then
1886 enableval="$enable_spasswd"
1889 for ol_val in auto yes no ; do
1890 if test "$enableval" = "$ol_val" ; then
1894 if test "$ol_arg" = "invalid" ; then
1895 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1897 ol_enable_spasswd="$ol_arg"
1900 ol_enable_spasswd="no"
1902 # end --enable-spasswd
1903 # OpenLDAP --enable-modules
1904 # Check whether --enable-modules or --disable-modules was given.
1905 if test "${enable_modules+set}" = set; then
1906 enableval="$enable_modules"
1909 for ol_val in auto yes no ; do
1910 if test "$enableval" = "$ol_val" ; then
1914 if test "$ol_arg" = "invalid" ; then
1915 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1917 ol_enable_modules="$ol_arg"
1920 ol_enable_modules="no"
1922 # end --enable-modules
1923 # OpenLDAP --enable-phonetic
1924 # Check whether --enable-phonetic or --disable-phonetic was given.
1925 if test "${enable_phonetic+set}" = set; then
1926 enableval="$enable_phonetic"
1929 for ol_val in auto yes no ; do
1930 if test "$enableval" = "$ol_val" ; then
1934 if test "$ol_arg" = "invalid" ; then
1935 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1937 ol_enable_phonetic="$ol_arg"
1940 ol_enable_phonetic="no"
1942 # end --enable-phonetic
1943 # OpenLDAP --enable-rlookups
1944 # Check whether --enable-rlookups or --disable-rlookups was given.
1945 if test "${enable_rlookups+set}" = set; then
1946 enableval="$enable_rlookups"
1949 for ol_val in auto yes no ; do
1950 if test "$enableval" = "$ol_val" ; then
1954 if test "$ol_arg" = "invalid" ; then
1955 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1957 ol_enable_rlookups="$ol_arg"
1960 ol_enable_rlookups="no"
1962 # end --enable-rlookups
1963 # OpenLDAP --enable-slp
1964 # Check whether --enable-slp or --disable-slp was given.
1965 if test "${enable_slp+set}" = set; then
1966 enableval="$enable_slp"
1969 for ol_val in auto yes no ; do
1970 if test "$enableval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1977 ol_enable_slp="$ol_arg"
1983 # OpenLDAP --enable-wrappers
1984 # Check whether --enable-wrappers or --disable-wrappers was given.
1985 if test "${enable_wrappers+set}" = set; then
1986 enableval="$enable_wrappers"
1989 for ol_val in auto yes no ; do
1990 if test "$enableval" = "$ol_val" ; then
1994 if test "$ol_arg" = "invalid" ; then
1995 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1997 ol_enable_wrappers="$ol_arg"
2000 ol_enable_wrappers="no"
2002 # end --enable-wrappers
2004 # OpenLDAP --enable-bdb
2005 # Check whether --enable-bdb or --disable-bdb was given.
2006 if test "${enable_bdb+set}" = set; then
2007 enableval="$enable_bdb"
2010 for ol_val in auto yes no ; do
2011 if test "$enableval" = "$ol_val" ; then
2015 if test "$ol_arg" = "invalid" ; then
2016 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2018 ol_enable_bdb="$ol_arg"
2024 # OpenLDAP --with-bdb_module
2025 # Check whether --with-bdb_module or --without-bdb_module was given.
2026 if test "${with_bdb_module+set}" = set; then
2027 withval="$with_bdb_module"
2030 for ol_val in static dynamic ; do
2031 if test "$withval" = "$ol_val" ; then
2035 if test "$ol_arg" = "invalid" ; then
2036 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2038 ol_with_bdb_module="$ol_arg"
2041 ol_with_bdb_module="static"
2043 # end --with-bdb_module
2045 # OpenLDAP --enable-dnssrv
2046 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2047 if test "${enable_dnssrv+set}" = set; then
2048 enableval="$enable_dnssrv"
2051 for ol_val in auto yes no ; do
2052 if test "$enableval" = "$ol_val" ; then
2056 if test "$ol_arg" = "invalid" ; then
2057 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2059 ol_enable_dnssrv="$ol_arg"
2062 ol_enable_dnssrv="no"
2064 # end --enable-dnssrv
2065 # OpenLDAP --with-dnssrv_module
2066 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2067 if test "${with_dnssrv_module+set}" = set; then
2068 withval="$with_dnssrv_module"
2071 for ol_val in static dynamic ; do
2072 if test "$withval" = "$ol_val" ; then
2076 if test "$ol_arg" = "invalid" ; then
2077 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2079 ol_with_dnssrv_module="$ol_arg"
2082 ol_with_dnssrv_module="static"
2084 # end --with-dnssrv_module
2086 # OpenLDAP --enable-ldap
2087 # Check whether --enable-ldap or --disable-ldap was given.
2088 if test "${enable_ldap+set}" = set; then
2089 enableval="$enable_ldap"
2092 for ol_val in auto yes no ; do
2093 if test "$enableval" = "$ol_val" ; then
2097 if test "$ol_arg" = "invalid" ; then
2098 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2100 ol_enable_ldap="$ol_arg"
2106 # OpenLDAP --with-ldap_module
2107 # Check whether --with-ldap_module or --without-ldap_module was given.
2108 if test "${with_ldap_module+set}" = set; then
2109 withval="$with_ldap_module"
2112 for ol_val in static dynamic ; do
2113 if test "$withval" = "$ol_val" ; then
2117 if test "$ol_arg" = "invalid" ; then
2118 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2120 ol_with_ldap_module="$ol_arg"
2123 ol_with_ldap_module="static"
2125 # end --with-ldap_module
2127 # OpenLDAP --enable-ldbm
2128 # Check whether --enable-ldbm or --disable-ldbm was given.
2129 if test "${enable_ldbm+set}" = set; then
2130 enableval="$enable_ldbm"
2133 for ol_val in auto yes no ; do
2134 if test "$enableval" = "$ol_val" ; then
2138 if test "$ol_arg" = "invalid" ; then
2139 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2141 ol_enable_ldbm="$ol_arg"
2147 # OpenLDAP --with-ldbm_api
2148 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2149 if test "${with_ldbm_api+set}" = set; then
2150 withval="$with_ldbm_api"
2153 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2154 if test "$withval" = "$ol_val" ; then
2158 if test "$ol_arg" = "invalid" ; then
2159 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2161 ol_with_ldbm_api="$ol_arg"
2164 ol_with_ldbm_api="auto"
2166 # end --with-ldbm_api
2168 # OpenLDAP --with-ldbm_module
2169 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2170 if test "${with_ldbm_module+set}" = set; then
2171 withval="$with_ldbm_module"
2174 for ol_val in static dynamic ; do
2175 if test "$withval" = "$ol_val" ; then
2179 if test "$ol_arg" = "invalid" ; then
2180 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2182 ol_with_ldbm_module="$ol_arg"
2185 ol_with_ldbm_module="static"
2187 # end --with-ldbm_module
2189 # OpenLDAP --with-ldbm_type
2190 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2191 if test "${with_ldbm_type+set}" = set; then
2192 withval="$with_ldbm_type"
2195 for ol_val in auto btree hash ; do
2196 if test "$withval" = "$ol_val" ; then
2200 if test "$ol_arg" = "invalid" ; then
2201 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2203 ol_with_ldbm_type="$ol_arg"
2206 ol_with_ldbm_type="auto"
2208 # end --with-ldbm_type
2210 # OpenLDAP --enable-meta
2211 # Check whether --enable-meta or --disable-meta was given.
2212 if test "${enable_meta+set}" = set; then
2213 enableval="$enable_meta"
2216 for ol_val in auto yes no ; do
2217 if test "$enableval" = "$ol_val" ; then
2221 if test "$ol_arg" = "invalid" ; then
2222 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2224 ol_enable_meta="$ol_arg"
2230 # OpenLDAP --with-meta_module
2231 # Check whether --with-meta_module or --without-meta_module was given.
2232 if test "${with_meta_module+set}" = set; then
2233 withval="$with_meta_module"
2236 for ol_val in static dynamic ; do
2237 if test "$withval" = "$ol_val" ; then
2241 if test "$ol_arg" = "invalid" ; then
2242 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2244 ol_with_meta_module="$ol_arg"
2247 ol_with_meta_module="static"
2249 # end --with-meta_module
2251 # OpenLDAP --enable-monitor
2252 # Check whether --enable-monitor or --disable-monitor was given.
2253 if test "${enable_monitor+set}" = set; then
2254 enableval="$enable_monitor"
2257 for ol_val in auto yes no ; do
2258 if test "$enableval" = "$ol_val" ; then
2262 if test "$ol_arg" = "invalid" ; then
2263 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2265 ol_enable_monitor="$ol_arg"
2268 ol_enable_monitor="no"
2270 # end --enable-monitor
2271 # OpenLDAP --with-monitor_module
2272 # Check whether --with-monitor_module or --without-monitor_module was given.
2273 if test "${with_monitor_module+set}" = set; then
2274 withval="$with_monitor_module"
2277 for ol_val in static dynamic ; do
2278 if test "$withval" = "$ol_val" ; then
2282 if test "$ol_arg" = "invalid" ; then
2283 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2285 ol_with_monitor_module="$ol_arg"
2288 ol_with_monitor_module="static"
2290 # end --with-monitor_module
2292 # OpenLDAP --enable-passwd
2293 # Check whether --enable-passwd or --disable-passwd was given.
2294 if test "${enable_passwd+set}" = set; then
2295 enableval="$enable_passwd"
2298 for ol_val in auto yes no ; do
2299 if test "$enableval" = "$ol_val" ; then
2303 if test "$ol_arg" = "invalid" ; then
2304 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2306 ol_enable_passwd="$ol_arg"
2309 ol_enable_passwd="no"
2311 # end --enable-passwd
2312 # OpenLDAP --with-passwd_module
2313 # Check whether --with-passwd_module or --without-passwd_module was given.
2314 if test "${with_passwd_module+set}" = set; then
2315 withval="$with_passwd_module"
2318 for ol_val in static dynamic ; do
2319 if test "$withval" = "$ol_val" ; then
2323 if test "$ol_arg" = "invalid" ; then
2324 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2326 ol_with_passwd_module="$ol_arg"
2329 ol_with_passwd_module="static"
2331 # end --with-passwd_module
2333 # OpenLDAP --enable-perl
2334 # Check whether --enable-perl or --disable-perl was given.
2335 if test "${enable_perl+set}" = set; then
2336 enableval="$enable_perl"
2339 for ol_val in auto yes no ; do
2340 if test "$enableval" = "$ol_val" ; then
2344 if test "$ol_arg" = "invalid" ; then
2345 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2347 ol_enable_perl="$ol_arg"
2353 # OpenLDAP --with-perl_module
2354 # Check whether --with-perl_module or --without-perl_module was given.
2355 if test "${with_perl_module+set}" = set; then
2356 withval="$with_perl_module"
2359 for ol_val in static dynamic ; do
2360 if test "$withval" = "$ol_val" ; then
2364 if test "$ol_arg" = "invalid" ; then
2365 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2367 ol_with_perl_module="$ol_arg"
2370 ol_with_perl_module="static"
2372 # end --with-perl_module
2374 # OpenLDAP --enable-shell
2375 # Check whether --enable-shell or --disable-shell was given.
2376 if test "${enable_shell+set}" = set; then
2377 enableval="$enable_shell"
2380 for ol_val in auto yes no ; do
2381 if test "$enableval" = "$ol_val" ; then
2385 if test "$ol_arg" = "invalid" ; then
2386 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2388 ol_enable_shell="$ol_arg"
2391 ol_enable_shell="no"
2393 # end --enable-shell
2394 # OpenLDAP --with-shell_module
2395 # Check whether --with-shell_module or --without-shell_module was given.
2396 if test "${with_shell_module+set}" = set; then
2397 withval="$with_shell_module"
2400 for ol_val in static dynamic ; do
2401 if test "$withval" = "$ol_val" ; then
2405 if test "$ol_arg" = "invalid" ; then
2406 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2408 ol_with_shell_module="$ol_arg"
2411 ol_with_shell_module="static"
2413 # end --with-shell_module
2415 # OpenLDAP --enable-sql
2416 # Check whether --enable-sql or --disable-sql was given.
2417 if test "${enable_sql+set}" = set; then
2418 enableval="$enable_sql"
2421 for ol_val in auto yes no ; do
2422 if test "$enableval" = "$ol_val" ; then
2426 if test "$ol_arg" = "invalid" ; then
2427 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2429 ol_enable_sql="$ol_arg"
2435 # OpenLDAP --with-sql_module
2436 # Check whether --with-sql_module or --without-sql_module was given.
2437 if test "${with_sql_module+set}" = set; then
2438 withval="$with_sql_module"
2441 for ol_val in static dynamic ; do
2442 if test "$withval" = "$ol_val" ; then
2446 if test "$ol_arg" = "invalid" ; then
2447 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2449 ol_with_sql_module="$ol_arg"
2452 ol_with_sql_module="static"
2454 # end --with-sql_module
2457 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2458 if test "${with_xxslurpdoptions+set}" = set; then
2459 withval="$with_xxslurpdoptions"
2463 # OpenLDAP --enable-slurpd
2464 # Check whether --enable-slurpd or --disable-slurpd was given.
2465 if test "${enable_slurpd+set}" = set; then
2466 enableval="$enable_slurpd"
2469 for ol_val in auto yes no ; do
2470 if test "$enableval" = "$ol_val" ; then
2474 if test "$ol_arg" = "invalid" ; then
2475 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2477 ol_enable_slurpd="$ol_arg"
2480 ol_enable_slurpd="auto"
2482 # end --enable-slurpd
2484 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2485 if test "${with_xxliboptions+set}" = set; then
2486 withval="$with_xxliboptions"
2490 # Check whether --enable-static or --disable-static was given.
2491 if test "${enable_static+set}" = set; then
2492 enableval="$enable_static"
2493 p=${PACKAGE-default}
2495 yes) enable_static=yes ;;
2496 no) enable_static=no ;;
2499 # Look at the argument we got. We use all the common list separators.
2500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2501 for pkg in $enableval; do
2502 if test "X$pkg" = "X$p"; then
2513 # Check whether --enable-shared or --disable-shared was given.
2514 if test "${enable_shared+set}" = set; then
2515 enableval="$enable_shared"
2516 p=${PACKAGE-default}
2518 yes) enable_shared=yes ;;
2519 no) enable_shared=no ;;
2522 # Look at the argument we got. We use all the common list separators.
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2524 for pkg in $enableval; do
2525 if test "X$pkg" = "X$p"; then
2539 if test $ol_enable_slapd = no ; then
2540 if test $ol_enable_bdb = yes ; then
2541 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2543 if test $ol_enable_dnssrv = yes ; then
2544 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2546 if test $ol_enable_ldap = yes ; then
2547 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2549 if test $ol_enable_ldbm = yes ; then
2550 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2552 if test $ol_enable_meta = yes ; then
2553 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2555 if test $ol_enable_monitor = yes ; then
2556 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2558 if test $ol_enable_passwd = yes ; then
2559 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2561 if test $ol_enable_perl = yes ; then
2562 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2564 if test $ol_enable_shell = yes ; then
2565 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2567 if test $ol_enable_sql = yes ; then
2568 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2570 if test $ol_enable_modules = yes ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2573 if test $ol_enable_wrappers = yes ; then
2574 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2576 if test $ol_enable_phonetic = yes ; then
2577 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2579 if test $ol_enable_rlookups = yes ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2582 if test $ol_enable_aci = yes ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2585 if test $ol_with_ldbm_api != auto ; then
2586 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2588 if test $ol_with_ldbm_type != auto ; then
2589 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2591 if test $ol_with_bdb_module != static ; then
2592 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2594 if test $ol_with_dnssrv_module != static ; then
2595 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2597 if test $ol_with_ldap_module != static ; then
2598 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2600 if test $ol_with_ldbm_module != static ; then
2601 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2603 if test $ol_with_meta_module != static ; then
2604 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2606 if test $ol_with_monitor_module != static ; then
2607 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2609 if test $ol_with_passwd_module != static ; then
2610 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2612 if test $ol_with_perl_module != static ; then
2613 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2615 if test $ol_with_shell_module != static ; then
2616 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2618 if test $ol_with_sql_module != static ; then
2619 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2621 if test $ol_enable_slurpd = yes ; then
2622 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2624 if test $ol_enable_rewrite = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2628 # force settings to no
2634 ol_enable_monitor=no
2640 ol_enable_modules=no
2641 ol_enable_phonetic=no
2642 ol_enable_rlookups=no
2644 ol_enable_wrappers=no
2645 ol_enable_dynamic=no
2648 ol_with_ldbm_type=no
2650 ol_with_bdb_module=static
2651 ol_with_dnssrv_module=static
2652 ol_with_ldap_module=static
2653 ol_with_ldbm_module=static
2654 ol_with_meta_module=static
2655 ol_with_monitor_module=static
2656 ol_with_passwd_module=static
2657 ol_with_perl_module=static
2658 ol_with_shell_module=static
2659 ol_with_sql_module=static
2663 ol_enable_rewrite=no
2665 elif test $ol_enable_ldbm = no ; then
2667 if test $ol_with_ldbm_api != auto ; then
2668 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2671 if test $ol_with_ldbm_type != auto ; then
2672 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2675 if test $ol_with_ldbm_module != static ; then
2676 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2679 if test $ol_enable_modules != yes -a \
2680 $ol_enable_bdb = no -a \
2681 $ol_enable_dnssrv = no -a \
2682 $ol_enable_ldap = no -a \
2683 $ol_enable_meta = no -a \
2684 $ol_enable_monitor = no -a \
2685 $ol_enable_passwd = no -a \
2686 $ol_enable_perl = no -a \
2687 $ol_enable_shell = no -a \
2688 $ol_enable_sql = no ; then
2690 if test $ol_enable_slapd = yes ; then
2691 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2693 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2699 ol_with_ldbm_type=no
2700 ol_with_ldbm_module=static
2702 if test $ol_enable_bdb != no ; then
2703 ol_with_ldbm_api=berkeley
2707 if test $ol_with_ldbm_api = gdbm -a \
2708 $ol_with_ldbm_type = btree ; then
2709 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2711 if test $ol_with_ldbm_api = mdbm -a \
2712 $ol_with_ldbm_type = btree ; then
2713 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2715 if test $ol_with_ldbm_api = ndbm -a \
2716 $ol_with_ldbm_type = btree ; then
2717 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2720 if test $ol_enable_bdb = yes ; then
2721 if test $ol_with_ldbm_api = auto ; then
2722 ol_with_ldbm_api=berkeley
2723 elif test $ol_with_ldbm_api != berkeley ; then
2724 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2727 elif test $ol_enable_bdb = auto ; then
2728 if test $ol_with_ldbm_api != berkeley \
2729 -o $ol_with_ldbm_api != auto ; then
2730 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2736 if test $ol_enable_slurpd = yes ; then
2737 if test $ol_with_threads = no ; then
2738 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2742 if test $ol_enable_lmpasswd = yes ; then
2743 if test $ol_with_tls = no ; then
2744 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2748 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2749 if test $ol_with_kerberos = no ; then
2750 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2751 elif test $ol_with_kerberos = auto ; then
2752 ol_with_kerberos=yes
2755 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2756 if test $ol_with_kerberos = auto ; then
2758 elif test $ol_with_kerberos != no ; then
2759 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2764 if test $ol_enable_spasswd = yes ; then
2765 if test $ol_with_cyrus_sasl = no ; then
2766 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2768 ol_with_cyrus_sasl=yes
2771 echo "$ac_t""done" 1>&6
2799 BUILD_BDB_DYNAMIC=static
2800 BUILD_DNSSRV_DYNAMIC=static
2801 BUILD_LDAP_DYNAMIC=static
2802 BUILD_LDBM_DYNAMIC=static
2803 BUILD_META_DYNAMIC=static
2804 BUILD_MONITOR_DYNAMIC=static
2805 BUILD_PASSWD_DYNAMIC=static
2806 BUILD_PERL_DYNAMIC=static
2807 BUILD_SHELL_DYNAMIC=static
2808 BUILD_SQL_DYNAMIC=static
2810 SLAPD_MODULES_LDFLAGS=
2811 SLAPD_MODULES_CPPFLAGS=
2814 SLAPD_STATIC_BACKENDS=
2815 SLAPD_DYNAMIC_BACKENDS=
2837 # Find a good install program. We prefer a C program (faster),
2838 # so one script is as good as another. But avoid the broken or
2839 # incompatible versions:
2840 # SysV /etc/install, /usr/sbin/install
2841 # SunOS /usr/etc/install
2842 # IRIX /sbin/install
2844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847 # ./install, which can be erroneously created by make from ./install.sh.
2848 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2849 echo "configure:2850: checking for a BSD compatible install" >&5
2850 if test -z "$INSTALL"; then
2851 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2855 for ac_dir in $PATH; do
2856 # Account for people who put trailing slashes in PATH elements.
2858 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2863 for ac_prog in ginstall scoinst install; do
2864 if test -f $ac_dir/$ac_prog; then
2865 if test $ac_prog = install &&
2866 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2867 # AIX install. It has an incompatible calling convention.
2869 elif test $ac_prog = install &&
2870 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2871 # program-specific install script used by HP pwplus--don't use.
2874 ac_cv_path_install="$ac_dir/$ac_prog -c"
2885 if test "${ac_cv_path_install+set}" = set; then
2886 INSTALL="$ac_cv_path_install"
2888 # As a last resort, use the slow shell script. We don't cache a
2889 # path for INSTALL within a source directory, because that will
2890 # break other packages using the cache if that directory is
2891 # removed, or if the path is relative.
2892 INSTALL="$ac_install_sh"
2895 echo "$ac_t""$INSTALL" 1>&6
2897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2898 # It thinks the first close brace ends the variable substitution.
2899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2906 cat >> confdefs.h <<\EOF
2907 #define HAVE_MKVERSION 1
2915 *-*-aix*) if test -z "$CC" ; then
2916 case "$ol_with_threads" in
2917 auto | yes | posix) ol_aix_threads=yes ;;
2923 if test $ol_aix_threads = yes ; then
2924 if test -z "${CC}" ; then
2925 for ac_prog in cc_r xlc_r cc
2927 # Extract the first word of "$ac_prog", so it can be a program name with args.
2928 set dummy $ac_prog; ac_word=$2
2929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_word" >&5
2931 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2939 for ac_dir in $ac_dummy; do
2940 test -z "$ac_dir" && ac_dir=.
2941 if test -f $ac_dir/$ac_word; then
2942 ac_cv_prog_CC="$ac_prog"
2950 if test -n "$CC"; then
2951 echo "$ac_t""$CC" 1>&6
2953 echo "$ac_t""no" 1>&6
2956 test -n "$CC" && break
2960 if test "$CC" = cc ; then
2961 if test $ol_with_threads != auto ; then
2962 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2964 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2970 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2971 ol_with_threads=posix
2972 ol_cv_pthread_create=yes
2976 if test -z "${CC}"; then
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2982 echo "configure:2983: checking for $ac_word" >&5
2983 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2991 for ac_dir in $ac_dummy; do
2992 test -z "$ac_dir" && ac_dir=.
2993 if test -f $ac_dir/$ac_word; then
2994 ac_cv_prog_CC="$ac_prog"
3002 if test -n "$CC"; then
3003 echo "$ac_t""$CC" 1>&6
3005 echo "$ac_t""no" 1>&6
3008 test -n "$CC" && break
3014 for ac_prog in ar gar
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_word" >&5
3020 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$AR"; then
3024 ac_cv_prog_AR="$AR" # Let the user override the test.
3026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3028 for ac_dir in $ac_dummy; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/$ac_word; then
3031 ac_cv_prog_AR="$ac_prog"
3039 if test -n "$AR"; then
3040 echo "$ac_t""$AR" 1>&6
3042 echo "$ac_t""no" 1>&6
3045 test -n "$AR" && break
3047 test -n "$AR" || AR="ar"
3052 # Find the correct PATH separator. Usually this is `:', but
3053 # DJGPP uses `;' like DOS.
3054 if test "X${PATH_SEPARATOR+set}" != Xset; then
3055 UNAME=${UNAME-`uname 2>/dev/null`}
3057 *-DOS) lt_cv_sys_path_separator=';' ;;
3058 *) lt_cv_sys_path_separator=':' ;;
3060 PATH_SEPARATOR=$lt_cv_sys_path_separator
3063 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3064 echo "configure:3065: checking for Cygwin environment" >&5
3065 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3075 #define __CYGWIN__ __CYGWIN32__
3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3092 echo "$ac_t""$ac_cv_cygwin" 1>&6
3094 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3095 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3096 echo "configure:3097: checking for mingw32 environment" >&5
3097 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3108 if { (eval echo configure:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3120 echo "$ac_t""$ac_cv_mingw32" 1>&6
3122 test "$ac_cv_mingw32" = yes && MINGW32=yes
3123 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3124 echo "configure:3125: checking for EMX OS/2 environment" >&5
3125 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3148 echo "$ac_t""$ac_cv_emxos2" 1>&6
3150 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3151 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3152 echo "configure:3153: checking how to run the C preprocessor" >&5
3153 # On Suns, sometimes $CPP names a directory.
3154 if test -n "$CPP" && test -d "$CPP"; then
3157 if test -z "$CPP"; then
3158 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 # This must be in double quotes, not single quotes, because CPP may get
3162 # substituted into the Makefile and "${CC-cc}" will confuse make.
3164 # On the NeXT, cc -E runs the code through the compiler's parser,
3165 # not just through cpp.
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3173 { (eval echo configure:3174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3175 if test -z "$ac_err"; then
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3182 CPP="${CC-cc} -E -traditional-cpp"
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3190 { (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3192 if test -z "$ac_err"; then
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3199 CPP="${CC-cc} -nologo -E"
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3207 { (eval echo configure:3208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3209 if test -z "$ac_err"; then
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3223 ac_cv_prog_CPP="$CPP"
3225 CPP="$ac_cv_prog_CPP"
3227 ac_cv_prog_CPP="$CPP"
3229 echo "$ac_t""$CPP" 1>&6
3231 # Check whether --enable-fast-install or --disable-fast-install was given.
3232 if test "${enable_fast_install+set}" = set; then
3233 enableval="$enable_fast_install"
3234 p=${PACKAGE-default}
3236 yes) enable_fast_install=yes ;;
3237 no) enable_fast_install=no ;;
3239 enable_fast_install=no
3240 # Look at the argument we got. We use all the common list separators.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3242 for pkg in $enableval; do
3243 if test "X$pkg" = "X$p"; then
3244 enable_fast_install=yes
3251 enable_fast_install=yes
3254 # Extract the first word of "gcc", so it can be a program name with args.
3255 set dummy gcc; ac_word=$2
3256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_word" >&5
3258 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3266 for ac_dir in $ac_dummy; do
3267 test -z "$ac_dir" && ac_dir=.
3268 if test -f $ac_dir/$ac_word; then
3277 if test -n "$CC"; then
3278 echo "$ac_t""$CC" 1>&6
3280 echo "$ac_t""no" 1>&6
3283 if test -z "$CC"; then
3284 # Extract the first word of "cc", so it can be a program name with args.
3285 set dummy cc; ac_word=$2
3286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3287 echo "configure:3288: checking for $ac_word" >&5
3288 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3297 for ac_dir in $ac_dummy; do
3298 test -z "$ac_dir" && ac_dir=.
3299 if test -f $ac_dir/$ac_word; then
3300 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3301 ac_prog_rejected=yes
3309 if test $ac_prog_rejected = yes; then
3310 # We found a bogon in the path, so make sure we never use it.
3311 set dummy $ac_cv_prog_CC
3313 if test $# -gt 0; then
3314 # We chose a different compiler from the bogus one.
3315 # However, it has the same basename, so the bogon will be chosen
3316 # first if we set CC to just the basename; use the full file name.
3318 set dummy "$ac_dir/$ac_word" "$@"
3326 if test -n "$CC"; then
3327 echo "$ac_t""$CC" 1>&6
3329 echo "$ac_t""no" 1>&6
3332 if test -z "$CC"; then
3333 case "`uname -s`" in
3334 *win32* | *WIN32* | *CYGWIN*)
3335 # Extract the first word of "cl", so it can be a program name with args.
3336 set dummy cl; ac_word=$2
3337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3338 echo "configure:3339: checking for $ac_word" >&5
3339 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 for ac_dir in $ac_dummy; do
3348 test -z "$ac_dir" && ac_dir=.
3349 if test -f $ac_dir/$ac_word; then
3358 if test -n "$CC"; then
3359 echo "$ac_t""$CC" 1>&6
3361 echo "$ac_t""no" 1>&6
3366 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3369 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3370 echo "configure:3371: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3377 cross_compiling=$ac_cv_prog_cc_cross
3379 cat > conftest.$ac_ext << EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3387 ac_cv_prog_cc_works=yes
3388 # If we can't run a trivial program, we are probably using a cross compiler.
3389 if (./conftest; exit) 2>/dev/null; then
3390 ac_cv_prog_cc_cross=no
3392 ac_cv_prog_cc_cross=yes
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 ac_cv_prog_cc_works=no
3401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3405 cross_compiling=$ac_cv_prog_cc_cross
3407 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3408 if test $ac_cv_prog_cc_works = no; then
3409 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3411 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3412 echo "configure:3413: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3413 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3414 cross_compiling=$ac_cv_prog_cc_cross
3416 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3417 echo "configure:3418: checking whether we are using GNU C" >&5
3418 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.c <<EOF
3426 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3433 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3435 if test $ac_cv_prog_gcc = yes; then
3441 ac_test_CFLAGS="${CFLAGS+set}"
3442 ac_save_CFLAGS="$CFLAGS"
3444 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3445 echo "configure:3446: checking whether ${CC-cc} accepts -g" >&5
3446 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 echo 'void f(){}' > conftest.c
3450 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3459 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS="$ac_save_CFLAGS"
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3469 if test "$GCC" = yes; then
3476 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3477 if test "${with_gnu_ld+set}" = set; then
3478 withval="$with_gnu_ld"
3479 test "$withval" = no || with_gnu_ld=yes
3485 if test "$GCC" = yes; then
3486 # Check if gcc -print-prog-name=ld gives a path.
3487 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3488 echo "configure:3489: checking for ld used by GCC" >&5
3491 # gcc leaves a trailing carriage return which upsets mingw
3492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3497 # Accept absolute paths.
3498 [\\/]* | [A-Za-z]:[\\/]*)
3499 re_direlt='/[^/][^/]*/\.\./'
3500 # Canonicalize the path of ld
3501 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3503 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3505 test -z "$LD" && LD="$ac_prog"
3508 # If it fails, then pretend we aren't using GCC.
3512 # If it is relative, then search for the first ld in PATH.
3516 elif test "$with_gnu_ld" = yes; then
3517 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3518 echo "configure:3519: checking for GNU ld" >&5
3520 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3521 echo "configure:3522: checking for non-GNU ld" >&5
3523 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 if test -z "$LD"; then
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3528 for ac_dir in $PATH; do
3529 test -z "$ac_dir" && ac_dir=.
3530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3531 lt_cv_path_LD="$ac_dir/$ac_prog"
3532 # Check to see if the program is GNU ld. I'd rather use --version,
3533 # but apparently some GNU ld's only accept -v.
3534 # Break only if it was the GNU/non-GNU ld that we prefer.
3535 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3536 test "$with_gnu_ld" != no && break
3538 test "$with_gnu_ld" != yes && break
3544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3549 if test -n "$LD"; then
3550 echo "$ac_t""$LD" 1>&6
3552 echo "$ac_t""no" 1>&6
3554 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3555 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3556 echo "configure:3557: checking if the linker ($LD) is GNU ld" >&5
3557 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3561 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3562 lt_cv_prog_gnu_ld=yes
3564 lt_cv_prog_gnu_ld=no
3568 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3569 with_gnu_ld=$lt_cv_prog_gnu_ld
3572 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3573 echo "configure:3574: checking for $LD option to reload object files" >&5
3574 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 lt_cv_ld_reload_flag='-r'
3580 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3581 reload_flag=$lt_cv_ld_reload_flag
3582 test -n "$reload_flag" && reload_flag=" $reload_flag"
3584 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3585 echo "configure:3586: checking for BSD-compatible nm" >&5
3586 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 if test -n "$NM"; then
3590 # Let the user override the test.
3593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3594 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3595 test -z "$ac_dir" && ac_dir=.
3596 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3597 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3598 # Check to see if the nm accepts a BSD-compat flag.
3599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3600 # nm: unknown option "B" ignored
3601 # Tru64's nm complains that /dev/null is an invalid object file
3602 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3603 lt_cv_path_NM="$tmp_nm -B"
3605 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3606 lt_cv_path_NM="$tmp_nm -p"
3609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3610 continue # so that we can try to find one that supports BSD flags
3615 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3620 echo "$ac_t""$NM" 1>&6
3622 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3623 echo "configure:3624: checking whether ln -s works" >&5
3624 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3628 if ln -s X conftestdata 2>/dev/null
3631 ac_cv_prog_LN_S="ln -s"
3636 LN_S="$ac_cv_prog_LN_S"
3637 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3638 echo "$ac_t""yes" 1>&6
3640 echo "$ac_t""no" 1>&6
3643 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3644 echo "configure:3645: checking how to recognise dependant libraries" >&5
3645 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 lt_cv_file_magic_cmd='$MAGIC_CMD'
3649 lt_cv_file_magic_test_file=
3650 lt_cv_deplibs_check_method='unknown'
3651 # Need to set the preceding variable on all platforms that support
3652 # interlibrary dependencies.
3653 # 'none' -- dependencies not supported.
3654 # `unknown' -- same as none, but documents that we really don't know.
3655 # 'pass_all' -- all dependencies passed with no checks.
3656 # 'test_compile' -- check by making test program.
3657 # 'file_magic [[regex]]' -- check by looking for files in library path
3658 # which responds to the $file_magic_cmd with a given egrep regex.
3659 # If you have `file' or equivalent on your system and you're not sure
3660 # whether `pass_all' will *always* work, you probably want this one.
3664 lt_cv_deplibs_check_method=pass_all
3668 lt_cv_deplibs_check_method=pass_all
3672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3673 lt_cv_file_magic_cmd='/usr/bin/file -L'
3674 lt_cv_file_magic_test_file=/shlib/libc.so
3677 cygwin* | mingw* | pw32*)
3678 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3679 lt_cv_file_magic_cmd='$OBJDUMP -f'
3682 darwin* | rhapsody*)
3683 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3684 lt_cv_file_magic_cmd='/usr/bin/file -L'
3686 rhapsody* | darwin1.[012])
3687 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3690 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3696 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3699 # Not sure whether the presence of OpenBSD here was a mistake.
3700 # Let's accept both of them until this is cleared up.
3701 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3702 lt_cv_file_magic_cmd=/usr/bin/file
3703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3707 lt_cv_deplibs_check_method=pass_all
3712 lt_cv_deplibs_check_method=pass_all
3716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3717 lt_cv_file_magic_cmd=/usr/bin/file
3718 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3724 # this will be overridden with pass_all, but let us keep it just in case
3725 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3729 *-32|*"-32 ") libmagic=32-bit;;
3730 *-n32|*"-n32 ") libmagic=N32;;
3731 *-64|*"-64 ") libmagic=64-bit;;
3732 *) libmagic=never-match;;
3734 # this will be overridden with pass_all, but let us keep it just in case
3735 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3738 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3739 lt_cv_deplibs_check_method=pass_all
3742 # This must be Linux ELF.
3745 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3746 lt_cv_deplibs_check_method=pass_all ;;
3748 # glibc up to 2.1.1 does not perform some relocations on ARM
3749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3751 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3755 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3756 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3758 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3764 lt_cv_file_magic_cmd=/usr/bin/file
3765 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3769 lt_cv_file_magic_cmd=/usr/bin/file
3770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3774 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3778 osf3* | osf4* | osf5*)
3779 # this will be overridden with pass_all, but let us keep it just in case
3780 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3781 lt_cv_file_magic_test_file=/shlib/libc.so
3782 lt_cv_deplibs_check_method=pass_all
3786 lt_cv_deplibs_check_method=pass_all
3790 lt_cv_deplibs_check_method=pass_all
3791 lt_cv_file_magic_test_file=/lib/libc.so
3794 sysv5uw[78]* | sysv4*uw2*)
3795 lt_cv_deplibs_check_method=pass_all
3798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3799 case $host_vendor in
3801 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]'
3802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3805 lt_cv_deplibs_check_method=pass_all
3808 lt_cv_file_magic_cmd='/bin/file'
3809 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3812 lt_cv_file_magic_cmd='/bin/file'
3813 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3814 lt_cv_file_magic_test_file=/lib/libc.so
3822 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3823 file_magic_cmd=$lt_cv_file_magic_cmd
3824 deplibs_check_method=$lt_cv_deplibs_check_method
3826 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3827 echo "configure:3828: checking for object suffix" >&5
3828 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3832 echo 'int i = 1;' > conftest.$ac_ext
3833 if { (eval echo configure:3834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3834 for ac_file in conftest.*; do
3837 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3841 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3846 echo "$ac_t""$ac_cv_objext" 1>&6
3847 OBJEXT=$ac_cv_objext
3848 ac_objext=$ac_cv_objext
3853 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3854 echo "configure:3855: checking for executable suffix" >&5
3855 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3862 echo 'int main () { return 0; }' > conftest.$ac_ext
3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3865 for file in conftest.*; do
3867 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3868 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3872 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3875 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3880 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3881 echo "$ac_t""${ac_cv_exeext}" 1>&6
3884 if test $host != $build; then
3885 ac_tool_prefix=${host_alias}-
3893 # Check for command to grab the raw symbol name followed by C symbol from nm.
3894 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3895 echo "configure:3896: checking command to parse $NM output" >&5
3896 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3900 # These are sane defaults that work on at least a few old systems.
3901 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3903 # Character class describing NM global symbol codes.
3904 symcode='[BCDEGRST]'
3906 # Regexp to match symbols that can be accessed directly from C.
3907 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3909 # Transform the above into a raw symbol and a C symbol.
3910 symxfrm='\1 \2\3 \3'
3912 # Transform an extracted symbol line into a proper C declaration
3913 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3915 # Transform an extracted symbol line into symbol name and symbol address
3916 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'"
3918 # Define system-specific variables.
3923 cygwin* | mingw* | pw32*)
3924 symcode='[ABCDGISTW]'
3926 hpux*) # Its linker distinguishes data from code symbols
3927 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3928 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'"
3931 symcode='[BCDEGRST]'
3941 # Handle CRLF in mingw tool chain
3945 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3949 # If we're using GNU nm, then use its standard symbol codes.
3950 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3951 symcode='[ABCDGISTW]'
3954 # Try without a prefix undercore, then with it.
3955 for ac_symprfx in "" "_"; do
3957 # Write the raw and C identifiers.
3958 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3960 # Check to see that the pipe works correctly.
3963 cat > conftest.$ac_ext <<EOF
3968 void nm_test_func(){}
3972 int main(){nm_test_var='a';nm_test_func();return(0);}
3975 if { (eval echo configure:3976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3976 # Now try to grab the symbols.
3978 if { (eval echo configure:3979: \"$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
3979 # Try sorting and uniquifying the output.
3980 if sort "$nlist" | uniq > "$nlist"T; then
3981 mv -f "$nlist"T "$nlist"
3986 # Make sure that we snagged all the symbols we need.
3987 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3988 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3989 cat <<EOF > conftest.$ac_ext
3995 # Now generate the symbol file.
3996 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3998 cat <<EOF >> conftest.$ac_ext
3999 #if defined (__STDC__) && __STDC__
4000 # define lt_ptr void *
4002 # define lt_ptr char *
4006 /* The mapping between symbol names and symbols. */
4011 lt_preloaded_symbols[] =
4014 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4015 cat <<\EOF >> conftest.$ac_ext
4023 # Now try linking the two files.
4024 mv conftest.$ac_objext conftstm.$ac_objext
4026 save_CFLAGS="$CFLAGS"
4027 LIBS="conftstm.$ac_objext"
4028 CFLAGS="$CFLAGS$no_builtin_flag"
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4033 CFLAGS="$save_CFLAGS"
4035 echo "cannot find nm_test_func in $nlist" >&5
4038 echo "cannot find nm_test_var in $nlist" >&5
4041 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4044 echo "$progname: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 rm -f conftest* conftst*
4049 # Do not use the global_symbol_pipe unless it works.
4050 if test "$pipe_works" = yes; then
4053 lt_cv_sys_global_symbol_pipe=
4059 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4061 global_symbol_to_cdecl=
4062 global_symbol_to_c_name_address=
4064 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4065 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4067 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4069 echo "$ac_t""failed" 1>&6
4071 echo "$ac_t""ok" 1>&6
4074 for ac_hdr in dlfcn.h
4076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4078 echo "configure:4079: checking for $ac_hdr" >&5
4079 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4088 { (eval echo configure:4089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4090 if test -z "$ac_err"; then
4092 eval "ac_cv_header_$ac_safe=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_header_$ac_safe=no"
4102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_hdr 1
4110 echo "$ac_t""no" 1>&6
4118 # Only perform the check for file, if the check method requires it
4119 case $deplibs_check_method in
4121 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4122 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4123 echo "configure:4124: checking for ${ac_tool_prefix}file" >&5
4124 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4135 ac_save_MAGIC_CMD="$MAGIC_CMD"
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4137 ac_dummy="/usr/bin:$PATH"
4138 for ac_dir in $ac_dummy; do
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f $ac_dir/${ac_tool_prefix}file; then
4141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4142 if test -n "$file_magic_test_file"; then
4143 case $deplibs_check_method in
4145 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4148 egrep "$file_magic_regex" > /dev/null; then
4153 *** Warning: the command libtool uses to detect shared libraries,
4154 *** $file_magic_cmd, produces output that libtool cannot recognize.
4155 *** The result is that libtool may fail to recognize shared libraries
4156 *** as such. This will affect the creation of libtool libraries that
4157 *** depend on shared libraries, but programs linked with such libtool
4158 *** libraries will work regardless of this problem. Nevertheless, you
4159 *** may want to report the problem to your system manager and/or to
4160 *** bug-libtool@gnu.org
4170 MAGIC_CMD="$ac_save_MAGIC_CMD"
4175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4176 if test -n "$MAGIC_CMD"; then
4177 echo "$ac_t""$MAGIC_CMD" 1>&6
4179 echo "$ac_t""no" 1>&6
4182 if test -z "$lt_cv_path_MAGIC_CMD"; then
4183 if test -n "$ac_tool_prefix"; then
4184 echo $ac_n "checking for file""... $ac_c" 1>&6
4185 echo "configure:4186: checking for file" >&5
4186 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4194 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4197 ac_save_MAGIC_CMD="$MAGIC_CMD"
4198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4199 ac_dummy="/usr/bin:$PATH"
4200 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 if test -f $ac_dir/file; then
4203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4204 if test -n "$file_magic_test_file"; then
4205 case $deplibs_check_method in
4207 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4210 egrep "$file_magic_regex" > /dev/null; then
4215 *** Warning: the command libtool uses to detect shared libraries,
4216 *** $file_magic_cmd, produces output that libtool cannot recognize.
4217 *** The result is that libtool may fail to recognize shared libraries
4218 *** as such. This will affect the creation of libtool libraries that
4219 *** depend on shared libraries, but programs linked with such libtool
4220 *** libraries will work regardless of this problem. Nevertheless, you
4221 *** may want to report the problem to your system manager and/or to
4222 *** bug-libtool@gnu.org
4232 MAGIC_CMD="$ac_save_MAGIC_CMD"
4237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4238 if test -n "$MAGIC_CMD"; then
4239 echo "$ac_t""$MAGIC_CMD" 1>&6
4241 echo "$ac_t""no" 1>&6
4253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_word" >&5
4257 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 if test -n "$RANLIB"; then
4261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 for ac_dir in $ac_dummy; do
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f $ac_dir/$ac_word; then
4268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4275 RANLIB="$ac_cv_prog_RANLIB"
4276 if test -n "$RANLIB"; then
4277 echo "$ac_t""$RANLIB" 1>&6
4279 echo "$ac_t""no" 1>&6
4283 if test -z "$ac_cv_prog_RANLIB"; then
4284 if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "ranlib", so it can be a program name with args.
4286 set dummy ranlib; ac_word=$2
4287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4288 echo "configure:4289: checking for $ac_word" >&5
4289 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 if test -n "$RANLIB"; then
4293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4297 for ac_dir in $ac_dummy; do
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f $ac_dir/$ac_word; then
4300 ac_cv_prog_RANLIB="ranlib"
4305 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4308 RANLIB="$ac_cv_prog_RANLIB"
4309 if test -n "$RANLIB"; then
4310 echo "$ac_t""$RANLIB" 1>&6
4312 echo "$ac_t""no" 1>&6
4320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4321 set dummy ${ac_tool_prefix}strip; ac_word=$2
4322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_word" >&5
4324 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 if test -n "$STRIP"; then
4328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4332 for ac_dir in $ac_dummy; do
4333 test -z "$ac_dir" && ac_dir=.
4334 if test -f $ac_dir/$ac_word; then
4335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4342 STRIP="$ac_cv_prog_STRIP"
4343 if test -n "$STRIP"; then
4344 echo "$ac_t""$STRIP" 1>&6
4346 echo "$ac_t""no" 1>&6
4350 if test -z "$ac_cv_prog_STRIP"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "strip", so it can be a program name with args.
4353 set dummy strip; ac_word=$2
4354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_word" >&5
4356 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 if test -n "$STRIP"; then
4360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4364 for ac_dir in $ac_dummy; do
4365 test -z "$ac_dir" && ac_dir=.
4366 if test -f $ac_dir/$ac_word; then
4367 ac_cv_prog_STRIP="strip"
4372 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4375 STRIP="$ac_cv_prog_STRIP"
4376 if test -n "$STRIP"; then
4377 echo "$ac_t""$STRIP" 1>&6
4379 echo "$ac_t""no" 1>&6
4389 enable_win32_dll=yes
4391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4392 if test "${enable_libtool_lock+set}" = set; then
4393 enableval="$enable_libtool_lock"
4397 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4399 # Some flags need to be propagated to the compiler or linker for good
4403 # Find out which ABI we are using.
4404 echo '#line 4405 "configure"' > conftest.$ac_ext
4405 if { (eval echo configure:4406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4406 case `/usr/bin/file conftest.$ac_objext` in
4422 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4423 SAVE_CFLAGS="$CFLAGS"
4424 CFLAGS="$CFLAGS -belf"
4425 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4426 echo "configure:4427: checking whether the C compiler needs -belf" >&5
4427 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4436 cross_compiling=$ac_cv_prog_cc_cross
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4448 lt_cv_cc_needs_belf=yes
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 lt_cv_cc_needs_belf=no
4457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4461 cross_compiling=$ac_cv_prog_cc_cross
4465 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4466 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4467 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4468 CFLAGS="$SAVE_CFLAGS"
4472 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4473 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4474 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_word" >&5
4477 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 if test -n "$DLLTOOL"; then
4481 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4485 for ac_dir in $ac_dummy; do
4486 test -z "$ac_dir" && ac_dir=.
4487 if test -f $ac_dir/$ac_word; then
4488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4495 DLLTOOL="$ac_cv_prog_DLLTOOL"
4496 if test -n "$DLLTOOL"; then
4497 echo "$ac_t""$DLLTOOL" 1>&6
4499 echo "$ac_t""no" 1>&6
4503 if test -z "$ac_cv_prog_DLLTOOL"; then
4504 if test -n "$ac_tool_prefix"; then
4505 # Extract the first word of "dlltool", so it can be a program name with args.
4506 set dummy dlltool; ac_word=$2
4507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4508 echo "configure:4509: checking for $ac_word" >&5
4509 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 if test -n "$DLLTOOL"; then
4513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4517 for ac_dir in $ac_dummy; do
4518 test -z "$ac_dir" && ac_dir=.
4519 if test -f $ac_dir/$ac_word; then
4520 ac_cv_prog_DLLTOOL="dlltool"
4525 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4528 DLLTOOL="$ac_cv_prog_DLLTOOL"
4529 if test -n "$DLLTOOL"; then
4530 echo "$ac_t""$DLLTOOL" 1>&6
4532 echo "$ac_t""no" 1>&6
4540 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}as; ac_word=$2
4542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_word" >&5
4544 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 if test -n "$AS"; then
4548 ac_cv_prog_AS="$AS" # Let the user override the test.
4550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4552 for ac_dir in $ac_dummy; do
4553 test -z "$ac_dir" && ac_dir=.
4554 if test -f $ac_dir/$ac_word; then
4555 ac_cv_prog_AS="${ac_tool_prefix}as"
4563 if test -n "$AS"; then
4564 echo "$ac_t""$AS" 1>&6
4566 echo "$ac_t""no" 1>&6
4570 if test -z "$ac_cv_prog_AS"; then
4571 if test -n "$ac_tool_prefix"; then
4572 # Extract the first word of "as", so it can be a program name with args.
4573 set dummy as; ac_word=$2
4574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4575 echo "configure:4576: checking for $ac_word" >&5
4576 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 if test -n "$AS"; then
4580 ac_cv_prog_AS="$AS" # Let the user override the test.
4582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4584 for ac_dir in $ac_dummy; do
4585 test -z "$ac_dir" && ac_dir=.
4586 if test -f $ac_dir/$ac_word; then
4592 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4596 if test -n "$AS"; then
4597 echo "$ac_t""$AS" 1>&6
4599 echo "$ac_t""no" 1>&6
4607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_word" >&5
4611 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 if test -n "$OBJDUMP"; then
4615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4619 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 if test -f $ac_dir/$ac_word; then
4622 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4629 OBJDUMP="$ac_cv_prog_OBJDUMP"
4630 if test -n "$OBJDUMP"; then
4631 echo "$ac_t""$OBJDUMP" 1>&6
4633 echo "$ac_t""no" 1>&6
4637 if test -z "$ac_cv_prog_OBJDUMP"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "objdump", so it can be a program name with args.
4640 set dummy objdump; ac_word=$2
4641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4642 echo "configure:4643: checking for $ac_word" >&5
4643 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 if test -n "$OBJDUMP"; then
4647 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4651 for ac_dir in $ac_dummy; do
4652 test -z "$ac_dir" && ac_dir=.
4653 if test -f $ac_dir/$ac_word; then
4654 ac_cv_prog_OBJDUMP="objdump"
4659 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4662 OBJDUMP="$ac_cv_prog_OBJDUMP"
4663 if test -n "$OBJDUMP"; then
4664 echo "$ac_t""$OBJDUMP" 1>&6
4666 echo "$ac_t""no" 1>&6
4675 # recent cygwin and mingw systems supply a stub DllMain which the user
4676 # can override, but on older systems we have to supply one
4677 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4678 echo "configure:4679: checking if libtool should supply DllMain function" >&5
4679 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4687 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 lt_cv_need_dllmain=no
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 lt_cv_need_dllmain=yes
4703 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4706 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4707 # old mingw systems require "-dll" to link a DLL, while more recent ones
4709 SAVE_CFLAGS="$CFLAGS"
4710 CFLAGS="$CFLAGS -mdll"
4711 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4712 echo "configure:4713: checking how to link DLLs" >&5
4713 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 lt_cv_cc_dll_switch=-mdll
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 lt_cv_cc_dll_switch=-dll
4736 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4737 CFLAGS="$SAVE_CFLAGS" ;;
4738 *-*-cygwin* | *-*-pw32*)
4739 # cygwin systems need to pass --dll to the linker, and not link
4740 # crt.o which will require a WinMain@16 definition.
4741 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4747 # Sed substitution that helps us do robust quoting. It backslashifies
4748 # metacharacters that are still active within double-quoted strings.
4749 Xsed='sed -e s/^X//'
4750 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4752 # Same as above, but do not quote variable references.
4753 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4755 # Sed substitution to delay expansion of an escaped shell variable in a
4756 # double_quote_subst'ed string.
4757 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4763 default_ofile=libtool
4764 can_build_shared=yes
4766 # All known linkers require a `.a' archive for static linking (except M$VC,
4767 # which needs '.lib').
4769 ltmain="$ac_aux_dir/ltmain.sh"
4770 ofile="$default_ofile"
4771 with_gnu_ld="$lt_cv_prog_gnu_ld"
4772 need_locks="$enable_libtool_lock"
4775 old_CFLAGS="$CFLAGS"
4777 # Set sane defaults for various variables
4778 test -z "$AR" && AR=ar
4779 test -z "$AR_FLAGS" && AR_FLAGS=cru
4780 test -z "$AS" && AS=as
4781 test -z "$CC" && CC=cc
4782 test -z "$DLLTOOL" && DLLTOOL=dlltool
4783 test -z "$LD" && LD=ld
4784 test -z "$LN_S" && LN_S="ln -s"
4785 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4786 test -z "$NM" && NM=nm
4787 test -z "$OBJDUMP" && OBJDUMP=objdump
4788 test -z "$RANLIB" && RANLIB=:
4789 test -z "$STRIP" && STRIP=:
4790 test -z "$ac_objext" && ac_objext=o
4792 if test x"$host" != x"$build"; then
4793 ac_tool_prefix=${host_alias}-
4798 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4801 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4806 # AIX sometimes has problems with the GCC collect2 program. For some
4807 # reason, if we set the COLLECT_NAMES environment variable, the problems
4808 # vanish in a puff of smoke.
4809 if test "X${COLLECT_NAMES+set}" != Xset; then
4811 export COLLECT_NAMES
4816 # Determine commands to create old-style static archives.
4817 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4818 old_postinstall_cmds='chmod 644 $oldlib'
4819 old_postuninstall_cmds=
4821 if test -n "$RANLIB"; then
4824 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4827 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4830 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4833 # Allow CC to be a program name with arguments.
4837 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4838 echo "configure:4839: checking for objdir" >&5
4839 rm -f .libs 2>/dev/null
4840 mkdir .libs 2>/dev/null
4841 if test -d .libs; then
4844 # MS-DOS does not allow filenames that begin with a dot.
4847 rmdir .libs 2>/dev/null
4848 echo "$ac_t""$objdir" 1>&6
4851 # Check whether --with-pic or --without-pic was given.
4852 if test "${with_pic+set}" = set; then
4859 test -z "$pic_mode" && pic_mode=default
4861 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4862 # in isolation, and that seeing it set (from the cache) indicates that
4863 # the associated values are set (in the cache) correctly too.
4864 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $compiler option to produce PIC" >&5
4866 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4870 lt_cv_prog_cc_shlib=
4872 lt_cv_prog_cc_static=
4873 lt_cv_prog_cc_no_builtin=
4874 lt_cv_prog_cc_can_build_shared=$can_build_shared
4876 if test "$GCC" = yes; then
4877 lt_cv_prog_cc_wl='-Wl,'
4878 lt_cv_prog_cc_static='-static'
4882 # Below there is a dirty hack to force normal static linking with -ldl
4883 # The problem is because libdl dynamically linked with both libc and
4884 # libC (AIX C++ library), which obviously doesn't included in libraries
4885 # list by gcc. This cause undefined symbols with -static flags.
4886 # This hack allows C programs to be linked with "-static -ldl", but
4887 # not sure about C++ programs.
4888 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4891 # FIXME: we need at least 68020 code to build shared libraries, but
4892 # adding the `-m68020' flag to GCC prevents building anything better,
4894 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4896 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4897 # PIC is the default for these OSes.
4899 darwin* | rhapsody*)
4900 # PIC is the default on this platform
4901 # Common symbols not allowed in MH_DYLIB files
4902 lt_cv_prog_cc_pic='-fno-common'
4904 cygwin* | mingw* | pw32* | os2*)
4905 # This hack is so that the source file can tell whether it is being
4906 # built for inclusion in a dll (and should export symbols for example).
4907 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4910 if test -d /usr/nec; then
4911 lt_cv_prog_cc_pic=-Kconform_pic
4915 lt_cv_prog_cc_pic='-fPIC'
4919 # PORTME Check for PIC flags for the system compiler.
4921 aix3* | aix4* | aix5*)
4922 lt_cv_prog_cc_wl='-Wl,'
4923 # All AIX code is PIC.
4924 if test "$host_cpu" = ia64; then
4925 # AIX 5 now supports IA64 processor
4926 lt_cv_prog_cc_static='-Bstatic'
4928 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4932 hpux9* | hpux10* | hpux11*)
4933 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4934 lt_cv_prog_cc_wl='-Wl,'
4935 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4936 lt_cv_prog_cc_pic='+Z'
4940 lt_cv_prog_cc_wl='-Wl,'
4941 lt_cv_prog_cc_static='-non_shared'
4942 # PIC (with -KPIC) is the default.
4945 cygwin* | mingw* | pw32* | os2*)
4946 # This hack is so that the source file can tell whether it is being
4947 # built for inclusion in a dll (and should export symbols for example).
4948 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4952 lt_cv_prog_cc_pic='-KPIC'
4953 lt_cv_prog_cc_static='-Bstatic'
4956 osf3* | osf4* | osf5*)
4957 # All OSF/1 code is PIC.
4958 lt_cv_prog_cc_wl='-Wl,'
4959 lt_cv_prog_cc_static='-non_shared'
4963 lt_cv_prog_cc_pic='-Kpic'
4964 lt_cv_prog_cc_static='-dn'
4965 lt_cv_prog_cc_shlib='-belf'
4969 lt_cv_prog_cc_pic='-KPIC'
4970 lt_cv_prog_cc_static='-Bstatic'
4971 lt_cv_prog_cc_wl='-Wl,'
4975 lt_cv_prog_cc_pic='-PIC'
4976 lt_cv_prog_cc_static='-Bstatic'
4977 lt_cv_prog_cc_wl='-Qoption ld '
4980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4981 lt_cv_prog_cc_pic='-KPIC'
4982 lt_cv_prog_cc_static='-Bstatic'
4983 if test "x$host_vendor" = xsni; then
4984 lt_cv_prog_cc_wl='-LD'
4986 lt_cv_prog_cc_wl='-Wl,'
4991 lt_cv_prog_cc_pic='-pic'
4992 lt_cv_prog_cc_static='-Bstatic'
4996 if test -d /usr/nec ;then
4997 lt_cv_prog_cc_pic='-Kconform_pic'
4998 lt_cv_prog_cc_static='-Bstatic'
5003 lt_cv_prog_cc_can_build_shared=no
5010 if test -z "$lt_cv_prog_cc_pic"; then
5011 echo "$ac_t""none" 1>&6
5013 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5015 # Check to make sure the pic_flag actually works.
5016 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5017 echo "configure:5018: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5018 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 save_CFLAGS="$CFLAGS"
5022 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5031 if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5034 hpux9* | hpux10* | hpux11*)
5035 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5036 # they create non-PIC objects. So, if there were any warnings, we
5037 # assume that PIC is not supported.
5038 if test -s conftest.err; then
5039 lt_cv_prog_cc_pic_works=no
5041 lt_cv_prog_cc_pic_works=yes
5045 lt_cv_prog_cc_pic_works=yes
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 lt_cv_prog_cc_pic_works=no
5057 CFLAGS="$save_CFLAGS"
5062 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5064 lt_cv_prog_cc_can_build_shared=no
5066 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5069 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5072 # Check for any special shared library compilation flags.
5073 if test -n "$lt_cv_prog_cc_shlib"; then
5074 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5075 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5077 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5078 lt_cv_prog_cc_can_build_shared=no
5082 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5083 echo "configure:5084: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5084 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 lt_cv_prog_cc_static_works=no
5088 save_LDFLAGS="$LDFLAGS"
5089 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 lt_cv_prog_cc_static_works=yes
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5106 LDFLAGS="$save_LDFLAGS"
5111 # Belt *and* braces to stop my trousers falling down:
5112 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5113 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5115 pic_flag="$lt_cv_prog_cc_pic"
5116 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5117 wl="$lt_cv_prog_cc_wl"
5118 link_static_flag="$lt_cv_prog_cc_static"
5119 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5120 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5123 # Check to see if options -o and -c are simultaneously supported by compiler
5124 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5125 echo "configure:5126: checking if $compiler supports -c -o file.$ac_objext" >&5
5126 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5130 $rm -r conftest 2>/dev/null
5133 echo "int some_variable = 0;" > conftest.$ac_ext
5135 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5136 # that will create temporary files in the current directory regardless of
5137 # the output directory. Thus, making CWD read-only will cause this test
5138 # to fail, enabling locking or at least warning the user not to do parallel
5141 save_CFLAGS="$CFLAGS"
5142 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5144 if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5145 # The compiler can only warn and ignore the option if not recognized
5146 # So say no if there are warnings
5147 if test -s out/conftest.err; then
5148 lt_cv_compiler_c_o=no
5150 lt_cv_compiler_c_o=yes
5153 # Append any errors to the config.log.
5154 cat out/conftest.err 1>&5
5155 lt_cv_compiler_c_o=no
5157 CFLAGS="$save_CFLAGS"
5163 $rm -r conftest 2>/dev/null
5167 compiler_c_o=$lt_cv_compiler_c_o
5168 echo "$ac_t""$compiler_c_o" 1>&6
5170 if test x"$compiler_c_o" = x"yes"; then
5171 # Check to see if we can write to a .lo
5172 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5173 echo "configure:5174: checking if $compiler supports -c -o file.lo" >&5
5174 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5178 lt_cv_compiler_o_lo=no
5179 save_CFLAGS="$CFLAGS"
5180 CFLAGS="$CFLAGS -c -o conftest.lo"
5181 save_objext="$ac_objext"
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5188 int some_variable = 0;
5191 if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193 # The compiler can only warn and ignore the option if not recognized
5194 # So say no if there are warnings
5195 if test -s conftest.err; then
5196 lt_cv_compiler_o_lo=no
5198 lt_cv_compiler_o_lo=yes
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5206 ac_objext="$save_objext"
5207 CFLAGS="$save_CFLAGS"
5211 compiler_o_lo=$lt_cv_compiler_o_lo
5212 echo "$ac_t""$compiler_o_lo" 1>&6
5217 # Check to see if we can do hard links to lock some files if needed
5218 hard_links="nottested"
5219 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5220 # do not overwrite the value of need_locks provided by the user
5221 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5222 echo "configure:5223: checking if we can lock with hard links" >&5
5225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5227 ln conftest.a conftest.b 2>&5 || hard_links=no
5228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5229 echo "$ac_t""$hard_links" 1>&6
5230 if test "$hard_links" = no; then
5231 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5238 if test "$GCC" = yes; then
5239 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5240 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5241 echo "configure:5242: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5242 echo "int some_variable = 0;" > conftest.$ac_ext
5243 save_CFLAGS="$CFLAGS"
5244 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5245 compiler_rtti_exceptions=no
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5251 int some_variable = 0;
5254 if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5256 # The compiler can only warn and ignore the option if not recognized
5257 # So say no if there are warnings
5258 if test -s conftest.err; then
5259 compiler_rtti_exceptions=no
5261 compiler_rtti_exceptions=yes
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5269 CFLAGS="$save_CFLAGS"
5270 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5272 if test "$compiler_rtti_exceptions" = "yes"; then
5273 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5275 no_builtin_flag=' -fno-builtin'
5279 # See if the linker supports building shared libraries.
5280 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5281 echo "configure:5282: checking whether the linker ($LD) supports shared libraries" >&5
5283 allow_undefined_flag=
5285 need_lib_prefix=unknown
5286 need_version=unknown
5287 # when you set need_version to no, make sure it does not cause -set_version
5288 # flags to be left without arguments
5290 archive_expsym_cmds=
5291 old_archive_from_new_cmds=
5292 old_archive_from_expsyms_cmds=
5293 export_dynamic_flag_spec=
5294 whole_archive_flag_spec=
5295 thread_safe_flag_spec=
5296 hardcode_into_libs=no
5297 hardcode_libdir_flag_spec=
5298 hardcode_libdir_separator=
5301 hardcode_shlibpath_var=unsupported
5303 link_all_deplibs=unknown
5304 always_export_symbols=no
5305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5306 # include_expsyms should be a list of space-separated symbols to be *always*
5307 # included in the symbol list
5309 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5312 # as well as any symbol that contains `d'.
5313 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5315 # platforms (ab)use it in PIC code, but their linkers get confused if
5316 # the symbol is explicitly referenced. Since portable code cannot
5317 # rely on this symbol name, it's probably fine to never include it in
5318 # preloaded symbol tables.
5319 extract_expsyms_cmds=
5322 cygwin* | mingw* | pw32*)
5323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5324 # When not using gcc, we currently assume that we are using
5325 # Microsoft Visual C++.
5326 if test "$GCC" != yes; then
5336 if test "$with_gnu_ld" = yes; then
5337 # If archive_cmds runs LD, not CC, wlarc should be empty
5340 # See if GNU ld supports shared libraries.
5342 aix3* | aix4* | aix5*)
5343 # On AIX, the GNU linker is very broken
5344 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5348 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5349 *** to be unable to reliably create shared libraries on AIX.
5350 *** Therefore, libtool is disabling shared libraries support. If you
5351 *** really care for shared libraries, you may want to modify your PATH
5352 *** so that a non-GNU linker is found, and then restart.
5358 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)'
5359 hardcode_libdir_flag_spec='-L$libdir'
5360 hardcode_minus_L=yes
5362 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5363 # that the semantics of dynamic libraries on AmigaOS, at least up
5364 # to version 4, is to share data among multiple programs linked
5365 # with the same dynamic library. Since this doesn't match the
5366 # behavior of shared libraries on other platforms, we can use
5372 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5373 allow_undefined_flag=unsupported
5374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5375 # support --undefined. This deserves some investigation. FIXME
5376 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5382 cygwin* | mingw* | pw32*)
5383 # hardcode_libdir_flag_spec is actually meaningless, as there is
5384 # no search path for DLLs.
5385 hardcode_libdir_flag_spec='-L$libdir'
5386 allow_undefined_flag=unsupported
5387 always_export_symbols=yes
5389 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5390 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5391 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5392 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5393 else $CC -o impgen impgen.c ; fi)~
5394 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5396 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5398 # cygwin and mingw dlls have different entry points and sets of symbols
5400 # FIXME: what about values for MSVC?
5401 dll_entry=__cygwin_dll_entry@12
5402 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5406 dll_entry=_DllMainCRTStartup@12
5407 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5411 # mingw and cygwin differ, and it's simplest to just exclude the union
5412 # of the two symbol sets.
5413 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5415 # recent cygwin and mingw systems supply a stub DllMain which the user
5416 # can override, but on older systems we have to supply one (in ltdll.c)
5417 if test "x$lt_cv_need_dllmain" = "xyes"; then
5418 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5419 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~
5420 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5426 # Extract the symbol export list from an `--export-all' def file,
5427 # then regenerate the def file from the symbol export list, so that
5428 # the compiled dll only exports the symbol export list.
5429 # Be careful not to strip the DATA tag left be newer dlltools.
5430 export_symbols_cmds="$ltdll_cmds"'
5431 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5432 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5434 # If the export-symbols file already is a .def file (1st line
5435 # is EXPORTS), use it as is.
5436 # If DATA tags from a recent dlltool are present, honour them!
5437 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5438 cp $export_symbols $output_objdir/$soname-def;
5440 echo EXPORTS > $output_objdir/$soname-def;
5442 cat $export_symbols | while read symbol; do
5445 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5446 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5448 _lt_hint=`expr 1 + \$_lt_hint`;
5452 $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~
5453 $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~
5454 $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~
5455 $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~
5456 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5461 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5464 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5465 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5470 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5474 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5475 *** create shared libraries on Solaris systems. Therefore, libtool
5476 *** is disabling shared libraries support. We urge you to upgrade GNU
5477 *** binutils to release 2.9.1 or newer. Another option is to modify
5478 *** your PATH or compiler configuration so that the native linker is
5479 *** used, and then restart.
5482 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5491 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5494 hardcode_shlibpath_var=no
5498 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5507 if test "$ld_shlibs" = yes; then
5508 runpath_var=LD_RUN_PATH
5509 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5510 export_dynamic_flag_spec='${wl}--export-dynamic'
5512 cygwin* | mingw* | pw32*)
5513 # dlltool doesn't understand --whole-archive et. al.
5514 whole_archive_flag_spec=
5517 # ancient GNU ld didn't support --whole-archive et. al.
5518 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5519 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5521 whole_archive_flag_spec=
5527 # PORTME fill in a description of your system's linker (not GNU ld)
5530 allow_undefined_flag=unsupported
5531 always_export_symbols=yes
5532 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'
5533 # Note: this linker hardcodes the directories in LIBPATH if there
5534 # are no directories specified by -L.
5535 hardcode_minus_L=yes
5536 if test "$GCC" = yes && test -z "$link_static_flag"; then
5537 # Neither direct hardcoding nor static linking is supported with a
5539 hardcode_direct=unsupported
5544 if test "$host_cpu" = ia64; then
5545 # On IA64, the linker does run time linking by default, so we don't
5546 # have to do anything special.
5547 aix_use_runtimelinking=no
5548 exp_sym_flag='-Bexport'
5551 aix_use_runtimelinking=no
5553 # Test if we are trying to use run time linking or normal
5554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5555 # need to do runtime linking.
5556 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5557 for ld_flag in $LDFLAGS; do
5558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5559 aix_use_runtimelinking=yes
5565 exp_sym_flag='-bexport'
5566 no_entry_flag='-bnoentry'
5569 # When large executables or shared objects are built, AIX ld can
5570 # have problems creating the table of contents. If linking a library
5571 # or program results in "error TOC overflow" add -mminimal-toc to
5572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5577 hardcode_libdir_separator=':'
5578 if test "$GCC" = yes; then
5579 case $host_os in aix4.[012]|aix4.[012].*)
5580 collect2name=`${CC} -print-prog-name=collect2`
5581 if test -f "$collect2name" && \
5582 strings "$collect2name" | grep resolve_lib_name >/dev/null
5584 # We have reworked collect2
5587 # We have old collect2
5588 hardcode_direct=unsupported
5589 # It fails to find uninstalled libraries when the uninstalled
5590 # path is not listed in the libpath. Setting hardcode_minus_L
5591 # to unsupported forces relinking
5592 hardcode_minus_L=yes
5593 hardcode_libdir_flag_spec='-L$libdir'
5594 hardcode_libdir_separator=
5598 shared_flag='-shared'
5601 if test "$host_cpu" = ia64; then
5602 shared_flag='${wl}-G'
5604 if test "$aix_use_runtimelinking" = yes; then
5605 shared_flag='${wl}-G'
5607 shared_flag='${wl}-bM:SRE'
5612 # It seems that -bexpall can do strange things, so it is better to
5613 # generate a list of symbols to export.
5614 always_export_symbols=yes
5615 if test "$aix_use_runtimelinking" = yes; then
5616 # Warning - without using the other runtime loading flags (-brtl),
5617 # -berok will link without error, but may produce a broken library.
5618 allow_undefined_flag='-berok'
5619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5620 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"
5622 if test "$host_cpu" = ia64; then
5623 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5624 allow_undefined_flag="-z nodefs"
5625 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"
5627 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5628 # Warning - without using the other run time loading flags,
5629 # -berok will link without error, but may produce a broken library.
5630 allow_undefined_flag='${wl}-berok'
5631 # This is a bit strange, but is similar to how AIX traditionally builds
5632 # it's shared libraries.
5633 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'
5639 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)'
5640 hardcode_libdir_flag_spec='-L$libdir'
5641 hardcode_minus_L=yes
5642 # see comment about different semantics on the GNU ld section
5646 cygwin* | mingw* | pw32*)
5647 # When not using gcc, we currently assume that we are using
5648 # Microsoft Visual C++.
5649 # hardcode_libdir_flag_spec is actually meaningless, as there is
5650 # no search path for DLLs.
5651 hardcode_libdir_flag_spec=' '
5652 allow_undefined_flag=unsupported
5653 # Tell ltmain to make .lib files, not .a files.
5655 # FIXME: Setting linknames here is a bad hack.
5656 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5657 # The linker will automatically build a .lib file if we build a DLL.
5658 old_archive_from_new_cmds='true'
5659 # FIXME: Should let the user specify the lib program.
5660 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5661 fix_srcfile_path='`cygpath -w "$srcfile"`'
5664 darwin* | rhapsody*)
5666 rhapsody* | darwin1.[012])
5667 allow_undefined_flag='-undefined suppress'
5670 allow_undefined_flag='-flat_namespace -undefined suppress'
5673 # FIXME: Relying on posixy $() will cause problems for
5674 # cross-compilation, but unfortunately the echo tests do not
5675 # yet detect zsh echo's removal of \ escapes.
5676 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'
5677 # We need to add '_' to the symbols in $export_symbols first
5678 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5680 hardcode_shlibpath_var=no
5681 whole_archive_flag_spec='-all_load $convenience'
5688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5689 # support. Future versions do this automatically, but an explicit c++rt0.o
5690 # does not break anything, and helps significantly (at the cost of a little
5693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5694 hardcode_libdir_flag_spec='-R$libdir'
5696 hardcode_shlibpath_var=no
5699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5703 hardcode_minus_L=yes
5704 hardcode_shlibpath_var=no
5707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5709 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5710 hardcode_libdir_flag_spec='-R$libdir'
5712 hardcode_shlibpath_var=no
5715 hpux9* | hpux10* | hpux11*)
5717 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' ;;
5718 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5721 hardcode_libdir_separator=:
5723 hardcode_minus_L=yes # Not in the search PATH, but as the default
5724 # location of the library.
5725 export_dynamic_flag_spec='${wl}-E'
5729 if test "$GCC" = yes; then
5730 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'
5732 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'
5734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5735 hardcode_libdir_separator=:
5736 link_all_deplibs=yes
5740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5745 hardcode_libdir_flag_spec='-R$libdir'
5747 hardcode_shlibpath_var=no
5751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5754 hardcode_libdir_separator=:
5755 hardcode_shlibpath_var=no
5760 hardcode_shlibpath_var=no
5761 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5764 export_dynamic_flag_spec='${wl}-E'
5767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5769 hardcode_libdir_flag_spec='-R$libdir'
5772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5780 hardcode_libdir_flag_spec='-L$libdir'
5781 hardcode_minus_L=yes
5782 allow_undefined_flag=unsupported
5783 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'
5784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5788 if test "$GCC" = yes; then
5789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5790 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'
5792 allow_undefined_flag=' -expect_unresolved \*'
5793 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'
5795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5796 hardcode_libdir_separator=:
5799 osf4* | osf5*) # as osf3* with the addition of -msym flag
5800 if test "$GCC" = yes; then
5801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5802 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'
5803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5805 allow_undefined_flag=' -expect_unresolved \*'
5806 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'
5807 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5808 $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'
5810 #Both c and cxx compiler support -rpath directly
5811 hardcode_libdir_flag_spec='-rpath $libdir'
5813 hardcode_libdir_separator=:
5817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5818 hardcode_shlibpath_var=no
5819 runpath_var=LD_RUN_PATH
5820 hardcode_runpath_var=yes
5821 export_dynamic_flag_spec='${wl}-Bexport'
5825 # gcc --version < 3.0 without binutils cannot create self contained
5826 # shared libraries reliably, requiring libgcc.a to resolve some of
5827 # the object symbols generated in some cases. Libraries that use
5828 # assert need libgcc.a to resolve __eprintf, for example. Linking
5829 # a copy of libgcc.a into every shared library to guarantee resolving
5830 # such symbols causes other problems: According to Tim Van Holder
5831 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5832 # (to the application) exception stack for one thing.
5833 no_undefined_flag=' -z defs'
5834 if test "$GCC" = yes; then
5835 case `$CC --version 2>/dev/null` in
5839 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5840 *** create self contained shared libraries on Solaris systems, without
5841 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5842 *** -no-undefined support, which will at least allow you to build shared
5843 *** libraries. However, you may find that when you link such libraries
5844 *** into an application without using GCC, you have to manually add
5845 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5846 *** upgrade to a newer version of GCC. Another option is to rebuild your
5847 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5854 # $CC -shared without GNU ld will not create a library from C++
5855 # object files and a static libstdc++, better avoid it by now
5856 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5857 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5859 hardcode_libdir_flag_spec='-R$libdir'
5860 hardcode_shlibpath_var=no
5862 solaris2.[0-5] | solaris2.[0-5].*) ;;
5863 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5864 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5866 link_all_deplibs=yes
5870 if test "x$host_vendor" = xsequent; then
5871 # Use $CC to link under sequent, because it throws in some extra .o
5872 # files that make .init and .fini sections work.
5873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5877 hardcode_libdir_flag_spec='-L$libdir'
5879 hardcode_minus_L=yes
5880 hardcode_shlibpath_var=no
5884 if test "x$host_vendor" = xsno; then
5885 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5886 hardcode_direct=yes # is this really true???
5888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5891 runpath_var='LD_RUN_PATH'
5892 hardcode_shlibpath_var=no
5896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5897 hardcode_shlibpath_var=no
5898 export_dynamic_flag_spec='-Bexport'
5902 no_undefined_flag=' -z text'
5903 # $CC -shared without GNU ld will not create a library from C++
5904 # object files and a static libstdc++, better avoid it by now
5905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5906 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5908 hardcode_libdir_flag_spec=
5909 hardcode_shlibpath_var=no
5910 runpath_var='LD_RUN_PATH'
5914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5915 hardcode_libdir_flag_spec='-L$libdir'
5916 hardcode_shlibpath_var=no
5920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5921 hardcode_libdir_flag_spec='-L$libdir'
5922 hardcode_shlibpath_var=no
5926 if test -d /usr/nec; then
5927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5928 hardcode_shlibpath_var=no
5929 runpath_var=LD_RUN_PATH
5930 hardcode_runpath_var=yes
5936 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5939 hardcode_shlibpath_var=no
5940 hardcode_runpath_var=yes
5941 runpath_var=LD_RUN_PATH
5944 sysv5uw7* | unixware7*)
5945 no_undefined_flag='${wl}-z ${wl}text'
5946 if test "$GCC" = yes; then
5947 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5949 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5951 runpath_var='LD_RUN_PATH'
5952 hardcode_shlibpath_var=no
5960 echo "$ac_t""$ld_shlibs" 1>&6
5961 test "$ld_shlibs" = no && can_build_shared=no
5963 # Check hardcoding attributes.
5964 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5965 echo "configure:5966: checking how to hardcode library paths into programs" >&5
5967 if test -n "$hardcode_libdir_flag_spec" || \
5968 test -n "$runpath_var"; then
5970 # We can hardcode non-existant directories.
5971 if test "$hardcode_direct" != no &&
5972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5973 # have to relink, otherwise we might link with an installed library
5974 # when we should be linking with a yet-to-be-installed one
5975 ## test "$hardcode_shlibpath_var" != no &&
5976 test "$hardcode_minus_L" != no; then
5977 # Linking always hardcodes the temporary library directory.
5978 hardcode_action=relink
5980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5981 hardcode_action=immediate
5984 # We cannot hardcode anything, or else we can only hardcode existing
5986 hardcode_action=unsupported
5988 echo "$ac_t""$hardcode_action" 1>&6
5992 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5993 echo "configure:5994: checking whether stripping libraries is possible" >&5
5994 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5995 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5996 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5997 echo "$ac_t""yes" 1>&6
5999 echo "$ac_t""no" 1>&6
6002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6003 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6005 # PORTME Fill in your ld.so characteristics
6006 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6007 echo "configure:6008: checking dynamic linker characteristics" >&5
6009 libname_spec='lib$name'
6016 shlibpath_overrides_runpath=unknown
6018 dynamic_linker="$host_os ld.so"
6019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6020 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6025 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6026 shlibpath_var=LIBPATH
6028 # AIX has no versioning support, so we append a major version to the name.
6029 soname_spec='${libname}${release}.so$major'
6034 if test "$host_cpu" = ia64; then
6035 # AIX 5 supports IA64
6036 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6037 shlibpath_var=LD_LIBRARY_PATH
6039 # With GCC up to 2.95.x, collect2 would create an import file
6040 # for dependence libraries. The import file would start with
6041 # the line `#! .'. This would cause the generated library to
6042 # depend on `.', always an invalid library. This was fixed in
6043 # development snapshots of GCC prior to 3.0.
6045 aix4 | aix4.[01] | aix4.[01].*)
6046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6048 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6055 # AIX (on Power*) has no versioning support, so currently we can
6056 # not hardcode correct soname into executable. Probably we can
6057 # add versioning support to collect2, so additional links can
6058 # be useful in future.
6059 if test "$aix_use_runtimelinking" = yes; then
6060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6061 # instead of lib<name>.a to let people know that these are not
6062 # typical AIX shared libraries.
6063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6065 # We preserve .a as extension for shared libraries through AIX4.2
6066 # and later when we are not doing run time linking.
6067 library_names_spec='${libname}${release}.a $libname.a'
6068 soname_spec='${libname}${release}.so$major'
6070 shlibpath_var=LIBPATH
6075 library_names_spec='$libname.ixlibrary $libname.a'
6076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6077 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'
6081 library_names_spec='${libname}.so'
6082 dynamic_linker="$host_os ld.so"
6083 shlibpath_var=LIBRARY_PATH
6089 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6090 soname_spec='${libname}${release}.so$major'
6091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6092 shlibpath_var=LD_LIBRARY_PATH
6093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6095 export_dynamic_flag_spec=-rdynamic
6096 # the default ld.so.conf also contains /usr/contrib/lib and
6097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6098 # libtool to hard-code these into programs
6101 cygwin* | mingw* | pw32*)
6102 version_type=windows
6105 case $GCC,$host_os in
6107 library_names_spec='$libname.dll.a'
6108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6109 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6110 dldir=$destdir/`dirname \$dlpath`~
6111 test -d \$dldir || mkdir -p \$dldir~
6112 $install_prog .libs/$dlname \$dldir/$dlname'
6113 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6114 dlpath=$dir/\$dldll~
6118 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6125 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6128 dynamic_linker='Win32 ld.exe'
6129 # FIXME: first we should search . and the directory the executable is in
6133 darwin* | rhapsody*)
6134 dynamic_linker="$host_os dyld"
6138 # FIXME: Relying on posixy $() will cause problems for
6139 # cross-compilation, but unfortunately the echo tests do not
6140 # yet detect zsh echo's removal of \ escapes.
6141 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)'
6142 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6143 shlibpath_overrides_runpath=yes
6144 shlibpath_var=DYLD_LIBRARY_PATH
6152 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6153 version_type=freebsd-$objformat
6154 case $version_type in
6156 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6161 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6165 shlibpath_var=LD_LIBRARY_PATH
6168 shlibpath_overrides_runpath=yes
6171 shlibpath_overrides_runpath=no
6172 hardcode_into_libs=yes
6181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6182 soname_spec='${libname}${release}.so$major'
6183 shlibpath_var=LD_LIBRARY_PATH
6184 hardcode_into_libs=yes
6187 hpux9* | hpux10* | hpux11*)
6188 # Give a soname corresponding to the major version so that dld.sl refuses to
6189 # link against other versions.
6190 dynamic_linker="$host_os dld.sl"
6194 shlibpath_var=SHLIB_PATH
6195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6196 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6197 soname_spec='${libname}${release}.sl$major'
6198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6199 postinstall_cmds='chmod 555 $lib'
6206 soname_spec='${libname}${release}.so$major'
6207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6213 case $LD in # libtool.m4 will add one of these switches to LD
6214 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6215 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6216 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6217 *) libsuff= shlibsuff= libmagic=never-match;;
6221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6222 shlibpath_overrides_runpath=no
6223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6227 # No shared lib support for Linux oldld, aout, or coff.
6228 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6232 # This must be Linux ELF.
6237 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6238 soname_spec='${libname}${release}.so$major'
6239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6240 shlibpath_var=LD_LIBRARY_PATH
6241 shlibpath_overrides_runpath=no
6242 # This implies no fast_install, which is unacceptable.
6243 # Some rework will be needed to allow for fast_install
6244 # before this can be enabled.
6245 hardcode_into_libs=yes
6247 # We used to test for /lib/ld.so.1 and disable shared libraries on
6248 # powerpc, because MkLinux only supported shared libraries with the
6249 # GNU dynamic linker. Since this was broken with cross compilers,
6250 # most powerpc-linux boxes support dynamic linking these days and
6251 # people can always --disable-shared, the test was removed, and we
6252 # assume the GNU/Linux dynamic linker is in use.
6253 dynamic_linker='GNU/Linux ld.so'
6260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6261 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6263 dynamic_linker='NetBSD (a.out) ld.so'
6265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6266 soname_spec='${libname}${release}.so$major'
6267 dynamic_linker='NetBSD ld.elf_so'
6269 shlibpath_var=LD_LIBRARY_PATH
6270 shlibpath_overrides_runpath=yes
6271 hardcode_into_libs=yes
6276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6277 shlibpath_var=LD_LIBRARY_PATH
6278 shlibpath_overrides_runpath=yes
6285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6287 openbsd2.[89] | openbsd2.[89].*)
6288 shlibpath_overrides_runpath=no
6291 shlibpath_overrides_runpath=yes
6295 shlibpath_overrides_runpath=yes
6297 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6299 shlibpath_var=LD_LIBRARY_PATH
6303 libname_spec='$name'
6305 library_names_spec='$libname.dll $libname.a'
6306 dynamic_linker='OS/2 ld.exe'
6307 shlibpath_var=LIBPATH
6310 osf3* | osf4* | osf5*)
6313 soname_spec='${libname}${release}.so'
6314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6315 shlibpath_var=LD_LIBRARY_PATH
6316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6322 soname_spec='${libname}${release}.so$major'
6323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6324 shlibpath_var=LD_LIBRARY_PATH
6331 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6332 soname_spec='${libname}${release}.so$major'
6333 shlibpath_var=LD_LIBRARY_PATH
6334 shlibpath_overrides_runpath=yes
6335 hardcode_into_libs=yes
6336 # ldd complains unless libraries are executable
6337 postinstall_cmds='chmod +x $lib'
6342 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6344 shlibpath_var=LD_LIBRARY_PATH
6345 shlibpath_overrides_runpath=yes
6346 if test "$with_gnu_ld" = yes; then
6352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6354 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6355 soname_spec='${libname}${release}.so$major'
6356 shlibpath_var=LD_LIBRARY_PATH
6357 case $host_vendor in
6359 shlibpath_overrides_runpath=no
6364 shlibpath_overrides_runpath=no
6365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6372 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6373 soname_spec='${libname}${release}.so$major'
6374 shlibpath_var=LD_LIBRARY_PATH
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6382 soname_spec='${libname}${release}.so$major'
6383 shlibpath_var=LD_LIBRARY_PATH
6387 if test -d /usr/nec ;then
6389 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6390 soname_spec='$libname.so.$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6399 echo "$ac_t""$dynamic_linker" 1>&6
6400 test "$dynamic_linker" = no && can_build_shared=no
6402 # Report the final consequences.
6403 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6404 echo "configure:6405: checking if libtool supports shared libraries" >&5
6405 echo "$ac_t""$can_build_shared" 1>&6
6407 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6408 echo "configure:6409: checking whether to build shared libraries" >&5
6409 test "$can_build_shared" = "no" && enable_shared=no
6411 # On AIX, shared libraries and static libraries use the same namespace, and
6412 # are all built from PIC.
6415 test "$enable_shared" = yes && enable_static=no
6416 if test -n "$RANLIB"; then
6417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6418 postinstall_cmds='$RANLIB $lib'
6423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6424 test "$enable_shared" = yes && enable_static=no
6428 echo "$ac_t""$enable_shared" 1>&6
6430 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6431 echo "configure:6432: checking whether to build static libraries" >&5
6432 # Make sure either enable_shared or enable_static is yes.
6433 test "$enable_shared" = yes || enable_static=yes
6434 echo "$ac_t""$enable_static" 1>&6
6436 if test "$hardcode_action" = relink; then
6437 # Fast installation is not supported
6438 enable_fast_install=no
6439 elif test "$shlibpath_overrides_runpath" = yes ||
6440 test "$enable_shared" = no; then
6441 # Fast installation is not necessary
6442 enable_fast_install=needless
6445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6446 if test "$GCC" = yes; then
6447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6450 if test "x$enable_dlopen" != xyes; then
6451 enable_dlopen=unknown
6452 enable_dlopen_self=unknown
6453 enable_dlopen_self_static=unknown
6460 lt_cv_dlopen="load_add_on"
6462 lt_cv_dlopen_self=yes
6465 cygwin* | mingw* | pw32*)
6466 lt_cv_dlopen="LoadLibrary"
6471 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6472 echo "configure:6473: checking for shl_load" >&5
6473 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char shl_load(); below. */
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6490 /* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6503 eval "ac_cv_func_shl_load=yes"
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6508 eval "ac_cv_func_shl_load=no"
6513 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6514 echo "$ac_t""yes" 1>&6
6515 lt_cv_dlopen="shl_load"
6517 echo "$ac_t""no" 1>&6
6518 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6519 echo "configure:6520: checking for shl_load in -ldld" >&5
6520 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6524 ac_save_LIBS="$LIBS"
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6540 eval "ac_cv_lib_$ac_lib_var=yes"
6542 echo "configure: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 eval "ac_cv_lib_$ac_lib_var=no"
6548 LIBS="$ac_save_LIBS"
6551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6552 echo "$ac_t""yes" 1>&6
6553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6555 echo "$ac_t""no" 1>&6
6556 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6557 echo "configure:6558: checking for dlopen" >&5
6558 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char dlopen(); below. */
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6588 eval "ac_cv_func_dlopen=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_func_dlopen=no"
6598 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 lt_cv_dlopen="dlopen"
6602 echo "$ac_t""no" 1>&6
6603 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6604 echo "configure:6605: checking for dlopen in -ldl" >&5
6605 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6606 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 ac_save_LIBS="$LIBS"
6611 cat > conftest.$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6625 eval "ac_cv_lib_$ac_lib_var=yes"
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6630 eval "ac_cv_lib_$ac_lib_var=no"
6633 LIBS="$ac_save_LIBS"
6636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6640 echo "$ac_t""no" 1>&6
6641 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6642 echo "configure:6643: checking for dlopen in -lsvld" >&5
6643 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 ac_save_LIBS="$LIBS"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_lib_$ac_lib_var=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_lib_$ac_lib_var=no"
6671 LIBS="$ac_save_LIBS"
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6678 echo "$ac_t""no" 1>&6
6679 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6680 echo "configure:6681: checking for dld_link in -ldld" >&5
6681 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6682 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6685 ac_save_LIBS="$LIBS"
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6701 eval "ac_cv_lib_$ac_lib_var=yes"
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 eval "ac_cv_lib_$ac_lib_var=no"
6709 LIBS="$ac_save_LIBS"
6712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6714 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6716 echo "$ac_t""no" 1>&6
6737 if test "x$lt_cv_dlopen" != xno; then
6743 case $lt_cv_dlopen in
6745 save_CPPFLAGS="$CPPFLAGS"
6746 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6748 save_LDFLAGS="$LDFLAGS"
6749 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6752 LIBS="$lt_cv_dlopen_libs $LIBS"
6754 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6755 echo "configure:6756: checking whether a program can dlopen itself" >&5
6756 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 if test "$cross_compiling" = yes; then :
6760 lt_cv_dlopen_self=cross
6762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6763 lt_status=$lt_dlunknown
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6775 # define LT_DLGLOBAL RTLD_GLOBAL
6778 # define LT_DLGLOBAL DL_GLOBAL
6780 # define LT_DLGLOBAL 0
6784 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6785 find out it does not work in some platform. */
6786 #ifndef LT_DLLAZY_OR_NOW
6788 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6791 # define LT_DLLAZY_OR_NOW DL_LAZY
6794 # define LT_DLLAZY_OR_NOW RTLD_NOW
6797 # define LT_DLLAZY_OR_NOW DL_NOW
6799 # define LT_DLLAZY_OR_NOW 0
6807 extern "C" void exit (int);
6810 void fnord() { int i=42;}
6813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6814 int status = $lt_dlunknown;
6818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6819 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6820 /* dlclose (self); */
6826 if { (eval echo configure:6827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6827 (./conftest; exit; ) 2>/dev/null
6830 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6831 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6832 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6835 # compilation failed
6836 lt_cv_dlopen_self=no
6844 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6846 if test "x$lt_cv_dlopen_self" = xyes; then
6847 LDFLAGS="$LDFLAGS $link_static_flag"
6848 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6849 echo "configure:6850: checking whether a statically linked program can dlopen itself" >&5
6850 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6853 if test "$cross_compiling" = yes; then :
6854 lt_cv_dlopen_self_static=cross
6856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6857 lt_status=$lt_dlunknown
6858 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6869 # define LT_DLGLOBAL RTLD_GLOBAL
6872 # define LT_DLGLOBAL DL_GLOBAL
6874 # define LT_DLGLOBAL 0
6878 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6879 find out it does not work in some platform. */
6880 #ifndef LT_DLLAZY_OR_NOW
6882 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6885 # define LT_DLLAZY_OR_NOW DL_LAZY
6888 # define LT_DLLAZY_OR_NOW RTLD_NOW
6891 # define LT_DLLAZY_OR_NOW DL_NOW
6893 # define LT_DLLAZY_OR_NOW 0
6901 extern "C" void exit (int);
6904 void fnord() { int i=42;}
6907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6908 int status = $lt_dlunknown;
6912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6914 /* dlclose (self); */
6920 if { (eval echo configure:6921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6921 (./conftest; exit; ) 2>/dev/null
6924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6926 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6929 # compilation failed
6930 lt_cv_dlopen_self_static=no
6938 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6941 CPPFLAGS="$save_CPPFLAGS"
6942 LDFLAGS="$save_LDFLAGS"
6947 case $lt_cv_dlopen_self in
6948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6949 *) enable_dlopen_self=unknown ;;
6952 case $lt_cv_dlopen_self_static in
6953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6954 *) enable_dlopen_self_static=unknown ;;
6959 if test "$enable_shared" = yes && test "$GCC" = yes; then
6960 case $archive_cmds in
6962 # FIXME: we may have to deal with multi-command sequences.
6965 # Test whether the compiler implicitly links with -lc since on some
6966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6967 # to ld, don't add -lc before -lgcc.
6968 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6969 echo "configure:6970: checking whether -lc should be explicitly linked in" >&5
6970 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6974 echo 'static int dummy;' > conftest.$ac_ext
6976 if { (eval echo configure:6977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6979 libobjs=conftest.$ac_objext
6981 wl=$lt_cv_prog_cc_wl
6987 save_allow_undefined_flag=$allow_undefined_flag
6988 allow_undefined_flag=
6989 if { (eval echo configure:6990: \"$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; }
6991 lt_cv_archive_cmds_need_lc=no
6993 lt_cv_archive_cmds_need_lc=yes
6995 allow_undefined_flag=$save_allow_undefined_flag
6997 cat conftest.err 1>&5
7001 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7005 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7007 # The second clause should only fire when bootstrapping the
7008 # libtool distribution, otherwise you forgot to ship ltmain.sh
7009 # with your package, and you will get complaints that there are
7010 # no rules to generate ltmain.sh.
7011 if test -f "$ltmain"; then
7014 # If there is no Makefile yet, we rely on a make rule to execute
7015 # `config.status --recheck' to rerun these tests and create the
7016 # libtool script then.
7017 test -f Makefile && make "$ltmain"
7020 if test -f "$ltmain"; then
7021 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7024 echo creating $ofile
7026 # Now quote all the things that may contain metacharacters while being
7027 # careful not to overquote the AC_SUBSTed values. We take copies of the
7028 # variables and quote the copies for generation of the libtool script.
7029 for var in echo old_CC old_CFLAGS \
7030 AR AR_FLAGS CC LD LN_S NM SHELL \
7031 reload_flag reload_cmds wl \
7032 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7033 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7034 library_names_spec soname_spec \
7035 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7036 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7037 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7038 old_striplib striplib file_magic_cmd export_symbols_cmds \
7039 deplibs_check_method allow_undefined_flag no_undefined_flag \
7040 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7041 global_symbol_to_c_name_address \
7042 hardcode_libdir_flag_spec hardcode_libdir_separator \
7043 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7044 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7047 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7048 old_postinstall_cmds | old_postuninstall_cmds | \
7049 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7050 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7051 postinstall_cmds | postuninstall_cmds | \
7052 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7053 # Double-quote double-evaled strings.
7054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7062 cat <<__EOF__ > "${ofile}T"
7065 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7066 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7067 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7069 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7070 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7072 # This program is free software; you can redistribute it and/or modify
7073 # it under the terms of the GNU General Public License as published by
7074 # the Free Software Foundation; either version 2 of the License, or
7075 # (at your option) any later version.
7077 # This program is distributed in the hope that it will be useful, but
7078 # WITHOUT ANY WARRANTY; without even the implied warranty of
7079 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7080 # General Public License for more details.
7082 # You should have received a copy of the GNU General Public License
7083 # along with this program; if not, write to the Free Software
7084 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7086 # As a special exception to the GNU General Public License, if you
7087 # distribute this file as part of a program that contains a
7088 # configuration script generated by Autoconf, you may include it under
7089 # the same distribution terms that you use for the rest of that program.
7091 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7092 Xsed="sed -e s/^X//"
7094 # The HP-UX ksh and POSIX shell print the target directory to stdout
7096 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7098 # ### BEGIN LIBTOOL CONFIG
7100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7102 # Shell to use when invoking shell scripts.
7105 # Whether or not to build shared libraries.
7106 build_libtool_libs=$enable_shared
7108 # Whether or not to build static libraries.
7109 build_old_libs=$enable_static
7111 # Whether or not to add -lc for building shared libraries.
7112 build_libtool_need_lc=$need_lc
7114 # Whether or not to optimize for fast installation.
7115 fast_install=$enable_fast_install
7118 host_alias=$host_alias
7121 # An echo program that does not interpret backslashes.
7126 AR_FLAGS=$lt_AR_FLAGS
7128 # The default C compiler.
7131 # Is the compiler the GNU C compiler?
7134 # The linker used to build libraries.
7137 # Whether we need hard or soft links.
7140 # A BSD-compatible nm program.
7143 # A symbol stripping program
7146 # Used to examine libraries when file_magic_cmd begins "file"
7147 MAGIC_CMD=$MAGIC_CMD
7149 # Used on cygwin: DLL creation program.
7152 # Used on cygwin: object dumper.
7155 # Used on cygwin: assembler.
7158 # The name of the directory that contains temporary libtool files.
7161 # How to create reloadable object files.
7162 reload_flag=$lt_reload_flag
7163 reload_cmds=$lt_reload_cmds
7165 # How to pass a linker flag through the compiler.
7168 # Object file suffix (normally "o").
7171 # Old archive suffix (normally "a").
7174 # Executable file suffix (normally "").
7177 # Additional compiler flags for building library objects.
7178 pic_flag=$lt_pic_flag
7181 # Does compiler simultaneously support -c and -o options?
7182 compiler_c_o=$lt_compiler_c_o
7184 # Can we write directly to a .lo ?
7185 compiler_o_lo=$lt_compiler_o_lo
7187 # Must we lock files when doing compilation ?
7188 need_locks=$lt_need_locks
7190 # Do we need the lib prefix for modules?
7191 need_lib_prefix=$need_lib_prefix
7193 # Do we need a version for libraries?
7194 need_version=$need_version
7196 # Whether dlopen is supported.
7197 dlopen_support=$enable_dlopen
7199 # Whether dlopen of programs is supported.
7200 dlopen_self=$enable_dlopen_self
7202 # Whether dlopen of statically linked programs is supported.
7203 dlopen_self_static=$enable_dlopen_self_static
7205 # Compiler flag to prevent dynamic linking.
7206 link_static_flag=$lt_link_static_flag
7208 # Compiler flag to turn off builtin functions.
7209 no_builtin_flag=$lt_no_builtin_flag
7211 # Compiler flag to allow reflexive dlopens.
7212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7214 # Compiler flag to generate shared objects directly from archives.
7215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7217 # Compiler flag to generate thread-safe objects.
7218 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7220 # Library versioning type.
7221 version_type=$version_type
7223 # Format of library name prefix.
7224 libname_spec=$lt_libname_spec
7226 # List of archive names. First name is the real one, the rest are links.
7227 # The last name is the one that the linker finds with -lNAME.
7228 library_names_spec=$lt_library_names_spec
7230 # The coded name of the library, if different from the real name.
7231 soname_spec=$lt_soname_spec
7233 # Commands used to build and install an old-style archive.
7235 old_archive_cmds=$lt_old_archive_cmds
7236 old_postinstall_cmds=$lt_old_postinstall_cmds
7237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7239 # Create an old-style archive from a shared archive.
7240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7242 # Create a temporary old-style archive to link instead of a shared archive.
7243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7245 # Commands used to build and install a shared archive.
7246 archive_cmds=$lt_archive_cmds
7247 archive_expsym_cmds=$lt_archive_expsym_cmds
7248 postinstall_cmds=$lt_postinstall_cmds
7249 postuninstall_cmds=$lt_postuninstall_cmds
7251 # Commands to strip libraries.
7252 old_striplib=$lt_old_striplib
7253 striplib=$lt_striplib
7255 # Method to check whether dependent libraries are shared objects.
7256 deplibs_check_method=$lt_deplibs_check_method
7258 # Command to use when deplibs_check_method == file_magic.
7259 file_magic_cmd=$lt_file_magic_cmd
7261 # Flag that allows shared libraries with undefined symbols to be built.
7262 allow_undefined_flag=$lt_allow_undefined_flag
7264 # Flag that forces no undefined symbols.
7265 no_undefined_flag=$lt_no_undefined_flag
7267 # Commands used to finish a libtool library installation in a directory.
7268 finish_cmds=$lt_finish_cmds
7270 # Same as above, but a single script fragment to be evaled but not shown.
7271 finish_eval=$lt_finish_eval
7273 # Take the output of nm and produce a listing of raw symbols and C names.
7274 global_symbol_pipe=$lt_global_symbol_pipe
7276 # Transform the output of nm in a proper C declaration
7277 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7279 # Transform the output of nm in a C name address pair
7280 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7282 # This is the shared library runtime path variable.
7283 runpath_var=$runpath_var
7285 # This is the shared library path variable.
7286 shlibpath_var=$shlibpath_var
7288 # Is shlibpath searched before the hard-coded library search path?
7289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7291 # How to hardcode a shared library path into an executable.
7292 hardcode_action=$hardcode_action
7294 # Whether we should hardcode library paths into libraries.
7295 hardcode_into_libs=$hardcode_into_libs
7297 # Flag to hardcode \$libdir into a binary during linking.
7298 # This must work even if \$libdir does not exist.
7299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7301 # Whether we need a single -rpath flag with a separated argument.
7302 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7304 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7306 hardcode_direct=$hardcode_direct
7308 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7310 hardcode_minus_L=$hardcode_minus_L
7312 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7313 # the resulting binary.
7314 hardcode_shlibpath_var=$hardcode_shlibpath_var
7316 # Variables whose values should be saved in libtool wrapper scripts and
7317 # restored at relink time.
7318 variables_saved_for_relink="$variables_saved_for_relink"
7320 # Whether libtool must link a program against all its dependency libraries.
7321 link_all_deplibs=$link_all_deplibs
7323 # Compile-time system search path for libraries
7324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7326 # Run-time system search path for libraries
7327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7329 # Fix the shell variable \$srcfile for the compiler.
7330 fix_srcfile_path="$fix_srcfile_path"
7332 # Set to yes if exported symbols are required.
7333 always_export_symbols=$always_export_symbols
7335 # The commands to list exported symbols.
7336 export_symbols_cmds=$lt_export_symbols_cmds
7338 # The commands to extract the exported symbol list from a shared archive.
7339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7341 # Symbols that should not be listed in the preloaded symbols.
7342 exclude_expsyms=$lt_exclude_expsyms
7344 # Symbols that must always be exported.
7345 include_expsyms=$lt_include_expsyms
7347 # ### END LIBTOOL CONFIG
7353 cat <<\EOF >> "${ofile}T"
7355 # AIX sometimes has problems with the GCC collect2 program. For some
7356 # reason, if we set the COLLECT_NAMES environment variable, the problems
7357 # vanish in a puff of smoke.
7358 if test "X${COLLECT_NAMES+set}" != Xset; then
7360 export COLLECT_NAMES
7367 cygwin* | mingw* | pw32* | os2*)
7368 cat <<'EOF' >> "${ofile}T"
7369 # This is a source program that is used to create dlls on Windows
7370 # Don't remove nor modify the starting and closing comments
7371 # /* ltdll.c starts here */
7372 # #define WIN32_LEAN_AND_MEAN
7373 # #include <windows.h>
7374 # #undef WIN32_LEAN_AND_MEAN
7375 # #include <stdio.h>
7377 # #ifndef __CYGWIN__
7378 # # ifdef __CYGWIN32__
7379 # # define __CYGWIN__ __CYGWIN32__
7383 # #ifdef __cplusplus
7386 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7387 # #ifdef __cplusplus
7392 # #include <cygwin/cygwin_dll.h>
7393 # DECLARE_CYGWIN_DLL( DllMain );
7395 # HINSTANCE __hDllInstance_base;
7398 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7400 # __hDllInstance_base = hInst;
7403 # /* ltdll.c ends here */
7404 # This is a source program that is used to create import libraries
7405 # on Windows for dlls which lack them. Don't remove nor modify the
7406 # starting and closing comments
7407 # /* impgen.c starts here */
7408 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7410 # This file is part of GNU libtool.
7412 # This program is free software; you can redistribute it and/or modify
7413 # it under the terms of the GNU General Public License as published by
7414 # the Free Software Foundation; either version 2 of the License, or
7415 # (at your option) any later version.
7417 # This program is distributed in the hope that it will be useful,
7418 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7420 # GNU General Public License for more details.
7422 # You should have received a copy of the GNU General Public License
7423 # along with this program; if not, write to the Free Software
7424 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7427 # #include <stdio.h> /* for printf() */
7428 # #include <unistd.h> /* for open(), lseek(), read() */
7429 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7430 # #include <string.h> /* for strdup() */
7432 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7434 # #define O_BINARY 0
7437 # static unsigned int
7438 # pe_get16 (fd, offset)
7442 # unsigned char b[2];
7443 # lseek (fd, offset, SEEK_SET);
7445 # return b[0] + (b[1]<<8);
7448 # static unsigned int
7449 # pe_get32 (fd, offset)
7453 # unsigned char b[4];
7454 # lseek (fd, offset, SEEK_SET);
7456 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7459 # static unsigned int
7463 # unsigned char *b = ptr;
7464 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7473 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7474 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7475 # unsigned long name_rvas, nexp;
7476 # unsigned char *expdata, *erva;
7477 # char *filename, *dll_name;
7479 # filename = argv[1];
7481 # dll = open(filename, O_RDONLY|O_BINARY);
7485 # dll_name = filename;
7487 # for (i=0; filename[i]; i++)
7488 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7489 # dll_name = filename + i +1;
7491 # pe_header_offset = pe_get32 (dll, 0x3c);
7492 # opthdr_ofs = pe_header_offset + 4 + 20;
7493 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7495 # if (num_entries < 1) /* no exports */
7498 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7499 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7500 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7501 # secptr = (pe_header_offset + 4 + 20 +
7502 # pe_get16 (dll, pe_header_offset + 4 + 16));
7505 # for (i = 0; i < nsections; i++)
7508 # unsigned long secptr1 = secptr + 40 * i;
7509 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7510 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7511 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7512 # lseek(dll, secptr1, SEEK_SET);
7513 # read(dll, sname, 8);
7514 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7516 # expptr = fptr + (export_rva - vaddr);
7517 # if (export_rva + export_size > vaddr + vsize)
7518 # export_size = vsize - (export_rva - vaddr);
7523 # expdata = (unsigned char*)malloc(export_size);
7524 # lseek (dll, expptr, SEEK_SET);
7525 # read (dll, expdata, export_size);
7526 # erva = expdata - export_rva;
7528 # nexp = pe_as32 (expdata+24);
7529 # name_rvas = pe_as32 (expdata+32);
7531 # printf ("EXPORTS\n");
7532 # for (i = 0; i<nexp; i++)
7534 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7535 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7540 # /* impgen.c ends here */
7546 # We use sed instead of cat because bash on DJGPP gets confused if
7547 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7548 # text mode, it properly converts lines to CR/LF. This bash problem
7549 # is reportedly fixed, but why not run on old versions too?
7550 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7552 mv -f "${ofile}T" "$ofile" || \
7553 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7561 # This can be used to rebuild libtool when needed
7562 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7564 # Always use our own libtool.
7565 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7567 # Prevent multiple expansion
7571 for ac_prog in mawk gawk nawk awk
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7576 echo "configure:7577: checking for $ac_word" >&5
7577 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 if test -n "$AWK"; then
7581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7585 for ac_dir in $ac_dummy; do
7586 test -z "$ac_dir" && ac_dir=.
7587 if test -f $ac_dir/$ac_word; then
7588 ac_cv_prog_AWK="$ac_prog"
7595 AWK="$ac_cv_prog_AWK"
7596 if test -n "$AWK"; then
7597 echo "$ac_t""$AWK" 1>&6
7599 echo "$ac_t""no" 1>&6
7602 test -n "$AWK" && break
7605 # test for ln hardlink support
7606 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7607 echo "configure:7608: checking whether ln works" >&5
7608 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 rm -f conftest.src conftest.dst
7612 echo "conftest" > conftest.src
7613 if ln conftest.src conftest.dst 2>/dev/null
7615 ol_cv_prog_LN_H="ln"
7617 ol_cv_prog_LN_H="cp"
7619 rm -f conftest.src conftest.dst
7622 LN_H="$ol_cv_prog_LN_H"
7623 if test "$ol_cv_prog_LN_H" = "ln"; then
7624 echo "$ac_t""yes" 1>&6
7626 echo "$ac_t""no" 1>&6
7629 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7630 echo "configure:7631: checking whether ln -s works" >&5
7631 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7635 if ln -s X conftestdata 2>/dev/null
7638 ac_cv_prog_LN_S="ln -s"
7643 LN_S="$ac_cv_prog_LN_S"
7644 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7645 echo "$ac_t""yes" 1>&6
7647 echo "$ac_t""no" 1>&6
7651 # Extract the first word of "sendmail", so it can be a program name with args.
7652 set dummy sendmail; ac_word=$2
7653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7654 echo "configure:7655: checking for $ac_word" >&5
7655 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7656 echo $ac_n "(cached) $ac_c" 1>&6
7660 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7663 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7667 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7668 for ac_dir in $ac_dummy; do
7669 test -z "$ac_dir" && ac_dir=.
7670 if test -f $ac_dir/$ac_word; then
7671 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7676 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7680 SENDMAIL="$ac_cv_path_SENDMAIL"
7681 if test -n "$SENDMAIL"; then
7682 echo "$ac_t""$SENDMAIL" 1>&6
7684 echo "$ac_t""no" 1>&6
7687 # Extract the first word of "vi", so it can be a program name with args.
7688 set dummy vi; ac_word=$2
7689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7690 echo "configure:7691: checking for $ac_word" >&5
7691 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7696 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7699 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7703 ac_dummy="$PATH:/usr/ucb"
7704 for ac_dir in $ac_dummy; do
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f $ac_dir/$ac_word; then
7707 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7712 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7716 EDITOR="$ac_cv_path_EDITOR"
7717 if test -n "$EDITOR"; then
7718 echo "$ac_t""$EDITOR" 1>&6
7720 echo "$ac_t""no" 1>&6
7723 # Extract the first word of "finger", so it can be a program name with args.
7724 set dummy finger; ac_word=$2
7725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_word" >&5
7727 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7732 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
7735 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
7738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7739 ac_dummy="$PATH:/usr/ucb"
7740 for ac_dir in $ac_dummy; do
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/$ac_word; then
7743 ac_cv_path_FINGER="$ac_dir/$ac_word"
7748 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
7752 FINGER="$ac_cv_path_FINGER"
7753 if test -n "$FINGER"; then
7754 echo "$ac_t""$FINGER" 1>&6
7756 echo "$ac_t""no" 1>&6
7761 if test $ol_enable_perl != no ; then
7762 # Extract the first word of "perl", so it can be a program name with args.
7763 set dummy perl; ac_word=$2
7764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7765 echo "configure:7766: checking for $ac_word" >&5
7766 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7771 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7774 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7779 for ac_dir in $ac_dummy; do
7780 test -z "$ac_dir" && ac_dir=.
7781 if test -f $ac_dir/$ac_word; then
7782 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7787 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7791 PERLBIN="$ac_cv_path_PERLBIN"
7792 if test -n "$PERLBIN"; then
7793 echo "$ac_t""$PERLBIN" 1>&6
7795 echo "$ac_t""no" 1>&6
7799 if test "no$PERLBIN" = "no" ; then
7800 if test $ol_enable_perl = yes ; then
7801 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7805 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7806 if test x"$ol_with_perl_module" = "xstatic" ; then
7807 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7809 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7815 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7816 echo "configure:7817: checking how to run the C preprocessor" >&5
7817 # On Suns, sometimes $CPP names a directory.
7818 if test -n "$CPP" && test -d "$CPP"; then
7821 if test -z "$CPP"; then
7822 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 # This must be in double quotes, not single quotes, because CPP may get
7826 # substituted into the Makefile and "${CC-cc}" will confuse make.
7828 # On the NeXT, cc -E runs the code through the compiler's parser,
7829 # not just through cpp.
7830 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7843 echo "configure: failed program was:" >&5
7844 cat conftest.$ac_ext >&5
7846 CPP="${CC-cc} -E -traditional-cpp"
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7854 { (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7856 if test -z "$ac_err"; then
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7863 CPP="${CC-cc} -nologo -E"
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7871 { (eval echo configure:7872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7873 if test -z "$ac_err"; then
7877 echo "configure: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7887 ac_cv_prog_CPP="$CPP"
7889 CPP="$ac_cv_prog_CPP"
7891 ac_cv_prog_CPP="$CPP"
7893 echo "$ac_t""$CPP" 1>&6
7896 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7897 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7899 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7900 echo "configure: warning: programs compiled here do run here..." 1>&2
7901 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7903 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7904 echo "configure: warning: programs compiled here do not run here..." 1>&2
7905 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7909 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7910 echo "configure:7911: checking for Cygwin environment" >&5
7911 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7912 echo $ac_n "(cached) $ac_c" 1>&6
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure"
7916 #include "confdefs.h"
7921 #define __CYGWIN__ __CYGWIN32__
7926 if { (eval echo configure:7927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7938 echo "$ac_t""$ac_cv_cygwin" 1>&6
7940 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7941 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7942 echo "configure:7943: checking for mingw32 environment" >&5
7943 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7954 if { (eval echo configure:7955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7966 echo "$ac_t""$ac_cv_mingw32" 1>&6
7968 test "$ac_cv_mingw32" = yes && MINGW32=yes
7972 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7973 echo "configure:7974: checking for executable suffix" >&5
7974 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7981 echo 'int main () { return 0; }' > conftest.$ac_ext
7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7984 for file in conftest.*; do
7986 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7987 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7991 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7994 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7999 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8000 echo "$ac_t""${ac_cv_exeext}" 1>&6
8003 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8004 echo "configure:8005: checking for object suffix" >&5
8005 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8009 echo 'int i = 1;' > conftest.$ac_ext
8010 if { (eval echo configure:8011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8011 for ac_file in conftest.*; do
8014 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8018 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8023 echo "$ac_t""$ac_cv_objext" 1>&6
8024 OBJEXT=$ac_cv_objext
8025 ac_objext=$ac_cv_objext
8028 cat >> confdefs.h <<EOF
8029 #define EXEEXT "${EXEEXT}"
8033 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8034 echo "configure:8035: checking for be_app in -lbe" >&5
8035 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8039 ac_save_LIBS="$LIBS"
8040 LIBS="-lbe -lroot -lnet $LIBS"
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8053 if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8055 eval "ac_cv_lib_$ac_lib_var=yes"
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8060 eval "ac_cv_lib_$ac_lib_var=no"
8063 LIBS="$ac_save_LIBS"
8066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8067 echo "$ac_t""yes" 1>&6
8068 LIBS="$LIBS -lbe -lroot -lnet"
8070 echo "$ac_t""no" 1>&6
8078 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8079 echo "configure:8080: checking for ${CC-cc} option to accept ANSI C" >&5
8080 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8083 am_cv_prog_cc_stdc=no
8085 # Don't try gcc -ansi; that turns off useful extensions and
8086 # breaks some systems' header files.
8087 # AIX -qlanglvl=ansi
8088 # Ultrix and OSF/1 -std1
8089 # HP-UX 10.20 and later -Ae
8090 # HP-UX older versions -Aa -D_HPUX_SOURCE
8091 # SVR4 -Xc -D__EXTENSIONS__
8092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8094 CC="$ac_save_CC $ac_arg"
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8100 #include <sys/types.h>
8101 #include <sys/stat.h>
8102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8103 struct buf { int x; };
8104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8105 static char *e (p, i)
8111 static char *f (char * (*g) (char **, int), char **p, ...)
8116 s = g (p, va_arg (v,int));
8120 int test (int i, double x);
8121 struct s1 {int (*f) (int a);};
8122 struct s2 {int (*f) (double a);};
8123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8133 if { (eval echo configure:8134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8135 am_cv_prog_cc_stdc="$ac_arg"; break
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8146 if test -z "$am_cv_prog_cc_stdc"; then
8147 echo "$ac_t""none needed" 1>&6
8149 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8151 case "x$am_cv_prog_cc_stdc" in
8153 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8156 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8157 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8160 # test for make depend flag
8163 if test -z "${MKDEP}"; then
8165 if test -z "${MKDEP_FLAGS}"; then
8166 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8167 echo "configure:8168: checking for ${OL_MKDEP} depend flag" >&5
8168 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8173 for flag in "-M" "-xM"; do
8174 cat > conftest.c <<EOF
8177 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8178 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8180 if test ! -f conftest."${ac_object}" ; then
8182 OL_MKDEP_FLAGS="$flag"
8191 echo "$ac_t""$ol_cv_mkdep" 1>&6
8194 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8199 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8204 if test "${ol_cv_mkdep}" = no ; then
8205 # this will soon become an error
8206 echo "configure: warning: do not know how to generate dependencies" 1>&2
8209 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8210 echo "configure:8211: checking for afopen in -ls" >&5
8211 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8215 ac_save_LIBS="$LIBS"
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 eval "ac_cv_lib_$ac_lib_var=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 eval "ac_cv_lib_$ac_lib_var=no"
8239 LIBS="$ac_save_LIBS"
8242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8243 echo "$ac_t""yes" 1>&6
8246 cat >> confdefs.h <<\EOF
8247 #define HAVE_AIX_SECURITY 1
8252 echo "$ac_t""no" 1>&6
8258 if test $ol_enable_modules != no ; then
8259 for ac_hdr in ltdl.h
8261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8263 echo "configure:8264: checking for $ac_hdr" >&5
8264 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8273 { (eval echo configure:8274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8275 if test -z "$ac_err"; then
8277 eval "ac_cv_header_$ac_safe=yes"
8280 echo "configure: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8283 eval "ac_cv_header_$ac_safe=no"
8287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8288 echo "$ac_t""yes" 1>&6
8289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8290 cat >> confdefs.h <<EOF
8291 #define $ac_tr_hdr 1
8295 echo "$ac_t""no" 1>&6
8300 if test $ac_cv_header_ltdl_h = no ; then
8301 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8304 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8305 echo "configure:8306: checking for lt_dlinit in -lltdl" >&5
8306 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 ac_save_LIBS="$LIBS"
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 /* Override any gcc2 internal prototype to avoid an error. */
8316 /* We use char because int might match the return type of a gcc2
8317 builtin and then its argument prototype would still apply. */
8324 if { (eval echo configure:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8326 eval "ac_cv_lib_$ac_lib_var=yes"
8328 echo "configure: failed program was:" >&5
8329 cat conftest.$ac_ext >&5
8331 eval "ac_cv_lib_$ac_lib_var=no"
8334 LIBS="$ac_save_LIBS"
8337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8338 echo "$ac_t""yes" 1>&6
8341 cat >> confdefs.h <<\EOF
8342 #define HAVE_LIBLTDL 1
8347 echo "$ac_t""no" 1>&6
8351 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8352 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8356 ol_with_bdb_module=static
8357 ol_with_dnssrv_module=static
8358 ol_with_ldap_module=static
8359 ol_with_ldbm_module=static
8360 ol_with_meta_module=static
8361 ol_with_monitor_module=static
8362 ol_with_passwd_module=static
8363 ol_with_perl_module=static
8364 ol_with_shell_module=static
8365 ol_with_sql_module=static
8369 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8370 echo "configure:8371: checking for EBCDIC" >&5
8371 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8380 #include <__ASCII__/generate_error.h>
8384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8385 { (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8387 if test -z "$ac_err"; then
8389 ol_cv_cpp_ebcdic=yes
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8400 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8401 if test $ol_cv_cpp_ebcdic = yes ; then
8402 cat >> confdefs.h <<\EOF
8403 #define HAVE_EBCDIC 1
8408 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8409 echo "configure:8410: checking for ANSI C header files" >&5
8410 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8422 { (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8424 if test -z "$ac_err"; then
8426 ol_cv_header_stdc=yes
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8432 ol_cv_header_stdc=no
8436 if test $ol_cv_header_stdc = yes; then
8437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8444 egrep "memchr" >/dev/null 2>&1; then
8448 ol_cv_header_stdc=no
8454 if test $ol_cv_header_stdc = yes; then
8455 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then
8466 ol_cv_header_stdc=no
8472 if test $ol_cv_header_stdc = yes; then
8473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8474 if test "$cross_compiling" = yes; then
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8485 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8486 || ('j' <= (c) && (c) <= 'r') \
8487 || ('s' <= (c) && (c) <= 'z'))
8488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8491 int main () { int i; for (i = 0; i < 256; i++)
8492 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8503 ol_cv_header_stdc=no
8511 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8512 if test $ol_cv_header_stdc = yes; then
8513 cat >> confdefs.h <<\EOF
8514 #define STDC_HEADERS 1
8518 ac_cv_header_stdc=disable
8521 if test $ol_cv_header_stdc != yes; then
8522 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8526 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8529 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8530 echo "configure:8531: checking for $ac_hdr that defines DIR" >&5
8531 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8537 #include <sys/types.h>
8543 if { (eval echo configure:8544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8545 eval "ac_cv_header_dirent_$ac_safe=yes"
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 eval "ac_cv_header_dirent_$ac_safe=no"
8554 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8555 echo "$ac_t""yes" 1>&6
8556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8557 cat >> confdefs.h <<EOF
8558 #define $ac_tr_hdr 1
8560 ac_header_dirent=$ac_hdr; break
8562 echo "$ac_t""no" 1>&6
8565 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8566 if test $ac_header_dirent = dirent.h; then
8567 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8568 echo "configure:8569: checking for opendir in -ldir" >&5
8569 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8570 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8571 echo $ac_n "(cached) $ac_c" 1>&6
8573 ac_save_LIBS="$LIBS"
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 /* Override any gcc2 internal prototype to avoid an error. */
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 eval "ac_cv_lib_$ac_lib_var=yes"
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8594 eval "ac_cv_lib_$ac_lib_var=no"
8597 LIBS="$ac_save_LIBS"
8600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6
8604 echo "$ac_t""no" 1>&6
8608 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8609 echo "configure:8610: checking for opendir in -lx" >&5
8610 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8611 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8614 ac_save_LIBS="$LIBS"
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8630 eval "ac_cv_lib_$ac_lib_var=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 eval "ac_cv_lib_$ac_lib_var=no"
8638 LIBS="$ac_save_LIBS"
8641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8645 echo "$ac_t""no" 1>&6
8650 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8651 echo "configure:8652: checking for sys/wait.h that is POSIX.1 compatible" >&5
8652 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8655 cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure"
8657 #include "confdefs.h"
8658 #include <sys/types.h>
8659 #include <sys/wait.h>
8661 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8664 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8672 if { (eval echo configure:8673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8674 ac_cv_header_sys_wait_h=yes
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8679 ac_cv_header_sys_wait_h=no
8684 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8685 if test $ac_cv_header_sys_wait_h = yes; then
8686 cat >> confdefs.h <<\EOF
8687 #define HAVE_SYS_WAIT_H 1
8692 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8693 echo "configure:8694: checking POSIX termios" >&5
8694 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 #include <sys/types.h>
8702 #include <termios.h>
8704 /* SunOS 4.0.3 has termios.h but not the library calls. */
8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710 am_cv_sys_posix_termios=yes
8712 echo "configure: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8715 am_cv_sys_posix_termios=no
8720 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8723 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8724 echo "configure:8725: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8725 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8726 echo $ac_n "(cached) $ac_c" 1>&6
8728 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8730 gwinsz_in_termios_h=no
8731 if test $am_cv_sys_posix_termios = yes; then
8732 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8735 #include <sys/types.h>
8736 # include <termios.h>
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 egrep "yes" >/dev/null 2>&1; then
8745 gwinsz_in_termios_h=yes
8751 if test $gwinsz_in_termios_h = no; then
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8755 #include <sys/types.h>
8756 # include <sys/ioctl.h>
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 egrep "yes" >/dev/null 2>&1; then
8765 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8773 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8774 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8775 cat >> confdefs.h <<\EOF
8776 #define GWINSZ_IN_SYS_IOCTL 1
8781 if test $am_cv_sys_posix_termios = yes ; then
8782 cat >> confdefs.h <<\EOF
8783 #define HAVE_POSIX_TERMIOS 1
8835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8837 echo "configure:8838: checking for $ac_hdr" >&5
8838 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8847 { (eval echo configure:8848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8849 if test -z "$ac_err"; then
8851 eval "ac_cv_header_$ac_safe=yes"
8854 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8857 eval "ac_cv_header_$ac_safe=no"
8861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8862 echo "$ac_t""yes" 1>&6
8863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8864 cat >> confdefs.h <<EOF
8865 #define $ac_tr_hdr 1
8869 echo "$ac_t""no" 1>&6
8876 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8877 echo "configure:8878: checking for dlopen" >&5
8878 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884 /* System header to define __stub macros and hopefully few prototypes,
8885 which can conflict with char dlopen(); below. */
8887 /* Override any gcc2 internal prototype to avoid an error. */
8888 /* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
8895 /* The GNU C library defines this for functions which it implements
8896 to always fail with ENOSYS. Some functions are actually named
8897 something starting with __ and the normal name is an alias. */
8898 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8908 eval "ac_cv_func_dlopen=yes"
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8913 eval "ac_cv_func_dlopen=no"
8918 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8922 echo "$ac_t""no" 1>&6
8923 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8924 echo "configure:8925: checking for dlopen in -ldl" >&5
8925 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8926 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8929 ac_save_LIBS="$LIBS"
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8934 /* Override any gcc2 internal prototype to avoid an error. */
8935 /* We use char because int might match the return type of a gcc2
8936 builtin and then its argument prototype would still apply. */
8943 if { (eval echo configure:8944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8945 eval "ac_cv_lib_$ac_lib_var=yes"
8947 echo "configure: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 eval "ac_cv_lib_$ac_lib_var=no"
8953 LIBS="$ac_save_LIBS"
8956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8957 echo "$ac_t""yes" 1>&6
8958 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8960 cat >> confdefs.h <<EOF
8961 #define $ac_tr_lib 1
8967 echo "$ac_t""no" 1>&6
8973 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8974 echo "configure:8975: checking for sigset in -lV3" >&5
8975 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8976 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8977 echo $ac_n "(cached) $ac_c" 1>&6
8979 ac_save_LIBS="$LIBS"
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* Override any gcc2 internal prototype to avoid an error. */
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8993 if { (eval echo configure:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8995 eval "ac_cv_lib_$ac_lib_var=yes"
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
9000 eval "ac_cv_lib_$ac_lib_var=no"
9003 LIBS="$ac_save_LIBS"
9006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9007 echo "$ac_t""yes" 1>&6
9008 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9010 cat >> confdefs.h <<EOF
9011 #define $ac_tr_lib 1
9017 echo "$ac_t""no" 1>&6
9021 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9022 echo "configure:9023: checking for winsock" >&5
9024 for curlib in ws2_32 wsock32; do
9025 LIBS="$LIBS -l$curlib"
9026 cat > conftest.$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9032 char closesocket@4();
9033 char gethostname@8();
9044 if { (eval echo configure:9045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9048 echo "configure: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9055 if test $have_winsock = yes; then
9056 cat >> confdefs.h <<\EOF
9057 #define HAVE_WINSOCK 1
9060 ac_cv_func_socket=yes
9061 ac_cv_func_select=yes
9062 ac_cv_func_closesocket=yes
9063 ac_cv_func_gethostname=yes
9064 if test $curlib = ws2_32; then
9065 have_winsock=winsock2
9066 cat >> confdefs.h <<\EOF
9067 #define HAVE_WINSOCK2 1
9075 echo "$ac_t""$have_winsock" 1>&6
9078 echo $ac_n "checking for socket""... $ac_c" 1>&6
9079 echo "configure:9080: checking for socket" >&5
9080 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9081 echo $ac_n "(cached) $ac_c" 1>&6
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9086 /* System header to define __stub macros and hopefully few prototypes,
9087 which can conflict with char socket(); below. */
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9097 /* The GNU C library defines this for functions which it implements
9098 to always fail with ENOSYS. Some functions are actually named
9099 something starting with __ and the normal name is an alias. */
9100 #if defined (__stub_socket) || defined (__stub___socket)
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9110 eval "ac_cv_func_socket=yes"
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9115 eval "ac_cv_func_socket=no"
9120 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9121 echo "$ac_t""yes" 1>&6
9124 echo "$ac_t""no" 1>&6
9126 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9127 echo "configure:9128: checking for main in -lsocket" >&5
9128 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9129 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9132 ac_save_LIBS="$LIBS"
9133 LIBS="-lsocket $LIBS"
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9144 eval "ac_cv_lib_$ac_lib_var=yes"
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 eval "ac_cv_lib_$ac_lib_var=no"
9152 LIBS="$ac_save_LIBS"
9155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9156 echo "$ac_t""yes" 1>&6
9157 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9159 cat >> confdefs.h <<EOF
9160 #define $ac_tr_lib 1
9163 LIBS="-lsocket $LIBS"
9166 echo "$ac_t""no" 1>&6
9169 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9170 echo "configure:9171: checking for main in -lnet" >&5
9171 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9172 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9175 ac_save_LIBS="$LIBS"
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9185 if { (eval echo configure:9186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9187 eval "ac_cv_lib_$ac_lib_var=yes"
9189 echo "configure: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 eval "ac_cv_lib_$ac_lib_var=no"
9195 LIBS="$ac_save_LIBS"
9198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9199 echo "$ac_t""yes" 1>&6
9200 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9202 cat >> confdefs.h <<EOF
9203 #define $ac_tr_lib 1
9209 echo "$ac_t""no" 1>&6
9212 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9213 echo "configure:9214: checking for main in -lnsl_s" >&5
9214 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9215 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9218 ac_save_LIBS="$LIBS"
9219 LIBS="-lnsl_s $LIBS"
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9228 if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9230 eval "ac_cv_lib_$ac_lib_var=yes"
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9235 eval "ac_cv_lib_$ac_lib_var=no"
9238 LIBS="$ac_save_LIBS"
9241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9242 echo "$ac_t""yes" 1>&6
9243 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9245 cat >> confdefs.h <<EOF
9246 #define $ac_tr_lib 1
9249 LIBS="-lnsl_s $LIBS"
9252 echo "$ac_t""no" 1>&6
9255 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9256 echo "configure:9257: checking for main in -lnsl" >&5
9257 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9259 echo $ac_n "(cached) $ac_c" 1>&6
9261 ac_save_LIBS="$LIBS"
9263 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure"
9265 #include "confdefs.h"
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9273 eval "ac_cv_lib_$ac_lib_var=yes"
9275 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9278 eval "ac_cv_lib_$ac_lib_var=no"
9281 LIBS="$ac_save_LIBS"
9284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9285 echo "$ac_t""yes" 1>&6
9286 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9288 cat >> confdefs.h <<EOF
9289 #define $ac_tr_lib 1
9295 echo "$ac_t""no" 1>&6
9298 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9299 echo "configure:9300: checking for socket in -linet" >&5
9300 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9301 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9304 ac_save_LIBS="$LIBS"
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 /* Override any gcc2 internal prototype to avoid an error. */
9310 /* We use char because int might match the return type of a gcc2
9311 builtin and then its argument prototype would still apply. */
9318 if { (eval echo configure:9319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9320 eval "ac_cv_lib_$ac_lib_var=yes"
9322 echo "configure: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9325 eval "ac_cv_lib_$ac_lib_var=no"
9328 LIBS="$ac_save_LIBS"
9331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9332 echo "$ac_t""yes" 1>&6
9333 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9335 cat >> confdefs.h <<EOF
9336 #define $ac_tr_lib 1
9342 echo "$ac_t""no" 1>&6
9345 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9346 echo "configure:9347: checking for main in -lgen" >&5
9347 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9348 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9349 echo $ac_n "(cached) $ac_c" 1>&6
9351 ac_save_LIBS="$LIBS"
9353 cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9361 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9363 eval "ac_cv_lib_$ac_lib_var=yes"
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9368 eval "ac_cv_lib_$ac_lib_var=no"
9371 LIBS="$ac_save_LIBS"
9374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9375 echo "$ac_t""yes" 1>&6
9376 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9377 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9378 cat >> confdefs.h <<EOF
9379 #define $ac_tr_lib 1
9385 echo "$ac_t""no" 1>&6
9392 echo $ac_n "checking for select""... $ac_c" 1>&6
9393 echo "configure:9394: checking for select" >&5
9394 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 /* System header to define __stub macros and hopefully few prototypes,
9401 which can conflict with char select(); below. */
9403 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9411 /* The GNU C library defines this for functions which it implements
9412 to always fail with ENOSYS. Some functions are actually named
9413 something starting with __ and the normal name is an alias. */
9414 #if defined (__stub_select) || defined (__stub___select)
9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9424 eval "ac_cv_func_select=yes"
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 eval "ac_cv_func_select=no"
9434 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9435 echo "$ac_t""yes" 1>&6
9438 echo "$ac_t""no" 1>&6
9439 { echo "configure: error: select() required." 1>&2; exit 1; }
9443 if test "${ac_cv_header_winsock_h}" != yes; then
9444 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9445 echo "configure:9446: checking types of arguments for select()" >&5
9446 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9449 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
9452 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9455 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9456 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9457 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #ifdef HAVE_SYS_TYPES_H
9462 #include <sys/types.h>
9464 #ifdef HAVE_SYS_TIME_H
9465 #include <sys/time.h>
9467 #ifdef HAVE_SYS_SELECT_H
9468 #include <sys/select.h>
9470 #ifdef HAVE_SYS_SOCKET_H
9471 #include <sys/socket.h>
9473 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);
9478 if { (eval echo configure:9479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9480 ac_not_found=no ; break 3
9482 echo "configure: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9497 if test "$ac_not_found" = yes; then
9498 ac_cv_func_select_arg1=int
9499 ac_cv_func_select_arg234='int *'
9500 ac_cv_func_select_arg5='struct timeval *'
9502 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9503 cat >> confdefs.h <<EOF
9504 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9507 cat >> confdefs.h <<EOF
9508 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9511 cat >> confdefs.h <<EOF
9512 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9519 for ac_hdr in regex.h
9521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9523 echo "configure:9524: checking for $ac_hdr" >&5
9524 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9533 { (eval echo configure:9534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9535 if test -z "$ac_err"; then
9537 eval "ac_cv_header_$ac_safe=yes"
9540 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9543 eval "ac_cv_header_$ac_safe=no"
9547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9548 echo "$ac_t""yes" 1>&6
9549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9550 cat >> confdefs.h <<EOF
9551 #define $ac_tr_hdr 1
9555 echo "$ac_t""no" 1>&6
9559 if test "$ac_cv_header_regex_h" != yes ; then
9560 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9563 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9564 echo "configure:9565: checking for library containing regfree" >&5
9565 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9568 ac_func_search_save_LIBS="$LIBS"
9569 ac_cv_search_regfree="no"
9570 cat > conftest.$ac_ext <<EOF
9571 #line 9572 "configure"
9572 #include "confdefs.h"
9573 /* Override any gcc2 internal prototype to avoid an error. */
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9584 ac_cv_search_regfree="none required"
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9590 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 /* Override any gcc2 internal prototype to avoid an error. */
9596 /* We use char because int might match the return type of a gcc2
9597 builtin and then its argument prototype would still apply. */
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9606 ac_cv_search_regfree="-l$ac_lib"
9609 echo "configure: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9614 LIBS="$ac_func_search_save_LIBS"
9617 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9618 if test "$ac_cv_search_regfree" != "no"; then
9619 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9622 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9626 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9627 echo "configure:9628: checking for compatible POSIX regex" >&5
9628 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9632 if test "$cross_compiling" = yes; then
9633 ol_cv_c_posix_regex=cross
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9639 #include <sys/types.h>
9641 static char *pattern, *string;
9649 if(regcomp(&re, pattern, 0)) {
9653 string = "ALL MATCH";
9655 rc = regexec(&re, string, 0, (void*)0, 0);
9662 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9664 ol_cv_c_posix_regex=yes
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9669 ol_cv_c_posix_regex=no
9676 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9678 if test "$ol_cv_c_posix_regex" = no ; then
9679 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9684 for ac_hdr in sys/uuid.h
9686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9688 echo "configure:9689: checking for $ac_hdr" >&5
9689 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9692 cat > conftest.$ac_ext <<EOF
9693 #line 9694 "configure"
9694 #include "confdefs.h"
9697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9698 { (eval echo configure:9699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9700 if test -z "$ac_err"; then
9702 eval "ac_cv_header_$ac_safe=yes"
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9708 eval "ac_cv_header_$ac_safe=no"
9712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9713 echo "$ac_t""yes" 1>&6
9714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9715 cat >> confdefs.h <<EOF
9716 #define $ac_tr_hdr 1
9720 echo "$ac_t""no" 1>&6
9724 if test $ac_cv_header_sys_uuid_h = yes ; then
9727 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9728 echo "configure:9729: checking for library containing uuid_to_str" >&5
9729 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9732 ac_func_search_save_LIBS="$LIBS"
9733 ac_cv_search_uuid_to_str="no"
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 /* Override any gcc2 internal prototype to avoid an error. */
9738 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9746 if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9748 ac_cv_search_uuid_to_str="none required"
9750 echo "configure: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9754 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9759 /* Override any gcc2 internal prototype to avoid an error. */
9760 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9768 if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9770 ac_cv_search_uuid_to_str="-l$ac_lib"
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9778 LIBS="$ac_func_search_save_LIBS"
9781 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9782 if test "$ac_cv_search_uuid_to_str" != "no"; then
9783 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9790 if test have_uuid = yes ; then
9791 cat >> confdefs.h <<\EOF
9792 #define HAVE_UUID_TO_STR 1
9796 test "$ac_cv_search_uuid_to_str" = "none required" || \
9797 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9801 if test $have_uuid = no ; then
9802 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9803 echo "configure:9804: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9805 LIBS="$LIBS -lrpcrt4"
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9810 char UuidCreate@4();
9811 char UuidToStringA@8();
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9830 if test $need_rpcrt = yes; then
9831 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9834 echo "$ac_t""$need_rpcrt" 1>&6
9838 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9839 echo "configure:9840: checking for res_query" >&5
9840 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9843 cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 /* System header to define __stub macros and hopefully few prototypes,
9847 which can conflict with char res_query(); below. */
9849 /* Override any gcc2 internal prototype to avoid an error. */
9850 /* We use char because int might match the return type of a gcc2
9851 builtin and then its argument prototype would still apply. */
9857 /* The GNU C library defines this for functions which it implements
9858 to always fail with ENOSYS. Some functions are actually named
9859 something starting with __ and the normal name is an alias. */
9860 #if defined (__stub_res_query) || defined (__stub___res_query)
9868 if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9870 eval "ac_cv_func_res_query=yes"
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
9875 eval "ac_cv_func_res_query=no"
9880 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9881 echo "$ac_t""yes" 1>&6
9884 echo "$ac_t""no" 1>&6
9887 if test $ac_cv_func_res_query = no ; then
9888 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9889 echo "configure:9890: checking for __res_query" >&5
9890 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 /* System header to define __stub macros and hopefully few prototypes,
9897 which can conflict with char __res_query(); below. */
9899 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9907 /* The GNU C library defines this for functions which it implements
9908 to always fail with ENOSYS. Some functions are actually named
9909 something starting with __ and the normal name is an alias. */
9910 #if defined (__stub___res_query) || defined (__stub_____res_query)
9918 if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9920 eval "ac_cv_func___res_query=yes"
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 eval "ac_cv_func___res_query=no"
9930 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9931 echo "$ac_t""yes" 1>&6
9934 echo "$ac_t""no" 1>&6
9937 ac_cv_func_res_query=$ac_cv_func___res_query
9940 if test $ac_cv_func_res_query = no ; then
9941 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9942 echo "configure:9943: checking for res_query in -lbind" >&5
9943 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9945 echo $ac_n "(cached) $ac_c" 1>&6
9947 ac_save_LIBS="$LIBS"
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* Override any gcc2 internal prototype to avoid an error. */
9953 /* We use char because int might match the return type of a gcc2
9954 builtin and then its argument prototype would still apply. */
9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 eval "ac_cv_lib_$ac_lib_var=yes"
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 eval "ac_cv_lib_$ac_lib_var=no"
9971 LIBS="$ac_save_LIBS"
9974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9976 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9978 cat >> confdefs.h <<EOF
9979 #define $ac_tr_lib 1
9985 echo "$ac_t""no" 1>&6
9988 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9991 if test $ac_cv_func_res_query = no ; then
9992 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9993 echo "configure:9994: checking for __res_query in -lbind" >&5
9994 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9995 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9998 ac_save_LIBS="$LIBS"
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 /* Override any gcc2 internal prototype to avoid an error. */
10004 /* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10006 char __res_query();
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10014 eval "ac_cv_lib_$ac_lib_var=yes"
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10019 eval "ac_cv_lib_$ac_lib_var=no"
10022 LIBS="$ac_save_LIBS"
10025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
10027 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10029 cat >> confdefs.h <<EOF
10030 #define $ac_tr_lib 1
10033 LIBS="-lbind $LIBS"
10036 echo "$ac_t""no" 1>&6
10039 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10042 if test $ac_cv_func_res_query = no ; then
10043 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10044 echo "configure:10045: checking for res_query in -lresolv" >&5
10045 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10049 ac_save_LIBS="$LIBS"
10050 LIBS="-lresolv $LIBS"
10051 cat > conftest.$ac_ext <<EOF
10052 #line 10053 "configure"
10053 #include "confdefs.h"
10054 /* Override any gcc2 internal prototype to avoid an error. */
10055 /* We use char because int might match the return type of a gcc2
10056 builtin and then its argument prototype would still apply. */
10063 if { (eval echo configure:10064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10065 eval "ac_cv_lib_$ac_lib_var=yes"
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10070 eval "ac_cv_lib_$ac_lib_var=no"
10073 LIBS="$ac_save_LIBS"
10076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10077 echo "$ac_t""yes" 1>&6
10078 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10080 cat >> confdefs.h <<EOF
10081 #define $ac_tr_lib 1
10084 LIBS="-lresolv $LIBS"
10087 echo "$ac_t""no" 1>&6
10090 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10093 if test $ac_cv_func_res_query = no ; then
10094 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10095 echo "configure:10096: checking for __res_query in -lresolv" >&5
10096 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10098 echo $ac_n "(cached) $ac_c" 1>&6
10100 ac_save_LIBS="$LIBS"
10101 LIBS="-lresolv $LIBS"
10102 cat > conftest.$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 /* Override any gcc2 internal prototype to avoid an error. */
10106 /* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10108 char __res_query();
10114 if { (eval echo configure:10115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10116 eval "ac_cv_lib_$ac_lib_var=yes"
10118 echo "configure: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10121 eval "ac_cv_lib_$ac_lib_var=no"
10124 LIBS="$ac_save_LIBS"
10127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10128 echo "$ac_t""yes" 1>&6
10129 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10131 cat >> confdefs.h <<EOF
10132 #define $ac_tr_lib 1
10135 LIBS="-lresolv $LIBS"
10138 echo "$ac_t""no" 1>&6
10141 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10144 if test "$ac_cv_func_res_query" = yes ; then
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_RES_QUERY 1
10150 if test $ol_enable_dnssrv != no ; then
10155 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10156 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10159 for ac_func in getaddrinfo gai_strerror inet_ntop
10161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10162 echo "configure:10163: checking for $ac_func" >&5
10163 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10164 echo $ac_n "(cached) $ac_c" 1>&6
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 /* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char $ac_func(); below. */
10171 #include <assert.h>
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10180 /* The GNU C library defines this for functions which it implements
10181 to always fail with ENOSYS. Some functions are actually named
10182 something starting with __ and the normal name is an alias. */
10183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10193 eval "ac_cv_func_$ac_func=yes"
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10198 eval "ac_cv_func_$ac_func=no"
10203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10204 echo "$ac_t""yes" 1>&6
10205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10206 cat >> confdefs.h <<EOF
10207 #define $ac_tr_func 1
10211 echo "$ac_t""no" 1>&6
10217 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10218 if test $ol_enable_ipv6 = yes ; then
10219 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10221 elif test $ol_enable_ipv6 != no ; then
10222 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10223 echo "configure:10224: checking INET6_ADDRSTRLEN" >&5
10224 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10232 # include <netinet/in.h>
10233 # ifdef INET6_ADDRSTRLEN
10234 __has_inet6_addrstrlen__;
10238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10239 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10241 ol_cv_inet6_addrstrlen=yes
10244 ol_cv_inet6_addrstrlen=no
10250 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10252 if test $ol_cv_inet6_addrstrlen = yes ; then
10254 elif test $ol_enable_ipv6 = yes ; then
10255 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10259 if test $ol_enable_local != no ; then
10260 for ac_hdr in sys/un.h
10262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10264 echo "configure:10265: checking for $ac_hdr" >&5
10265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10274 { (eval echo configure:10275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10276 if test -z "$ac_err"; then
10278 eval "ac_cv_header_$ac_safe=yes"
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10284 eval "ac_cv_header_$ac_safe=no"
10288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10291 cat >> confdefs.h <<EOF
10292 #define $ac_tr_hdr 1
10296 echo "$ac_t""no" 1>&6
10301 if test $ol_enable_local = auto ; then
10302 ol_enable_local=$ac_cv_header_sys_un_h
10303 elif test $ac_cv_header_sys_un_h = no ; then
10304 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10313 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10314 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10315 -o $ol_with_kerberos = k425 ; then
10317 for ac_hdr in krb5.h
10319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10321 echo "configure:10322: checking for $ac_hdr" >&5
10322 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10331 { (eval echo configure:10332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10333 if test -z "$ac_err"; then
10335 eval "ac_cv_header_$ac_safe=yes"
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10341 eval "ac_cv_header_$ac_safe=no"
10345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10346 echo "$ac_t""yes" 1>&6
10347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10348 cat >> confdefs.h <<EOF
10349 #define $ac_tr_hdr 1
10353 echo "$ac_t""no" 1>&6
10358 if test $ac_cv_header_krb5_h = yes ; then
10359 for ac_hdr in heim_err.h
10361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10363 echo "configure:10364: checking for $ac_hdr" >&5
10364 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10373 { (eval echo configure:10374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10375 if test -z "$ac_err"; then
10377 eval "ac_cv_header_$ac_safe=yes"
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10383 eval "ac_cv_header_$ac_safe=no"
10387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10388 echo "$ac_t""yes" 1>&6
10389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10390 cat >> confdefs.h <<EOF
10391 #define $ac_tr_hdr 1
10395 echo "$ac_t""no" 1>&6
10399 if test $ac_cv_header_heim_err_h = yes ; then
10405 if test $krb5_impl = mit; then
10406 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10407 echo "configure:10408: checking for main in -lk5crypto" >&5
10408 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10412 ac_save_LIBS="$LIBS"
10413 LIBS="-lk5crypto $LIBS"
10414 cat > conftest.$ac_ext <<EOF
10415 #line 10416 "configure"
10416 #include "confdefs.h"
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10429 eval "ac_cv_lib_$ac_lib_var=no"
10432 LIBS="$ac_save_LIBS"
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 krb5crypto=k5crypto
10439 echo "$ac_t""no" 1>&6
10444 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10445 echo "configure:10446: checking for main in -lkrb5" >&5
10446 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10450 ac_save_LIBS="$LIBS"
10451 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10460 if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10462 eval "ac_cv_lib_$ac_lib_var=yes"
10464 echo "configure: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10467 eval "ac_cv_lib_$ac_lib_var=no"
10470 LIBS="$ac_save_LIBS"
10473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10474 echo "$ac_t""yes" 1>&6
10476 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10478 echo "$ac_t""no" 1>&6
10483 elif test $krb5_impl = heimdal; then
10484 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10485 echo "configure:10486: checking for main in -lkrb5" >&5
10486 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10487 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10490 ac_save_LIBS="$LIBS"
10491 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10500 if { (eval echo configure:10501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10502 eval "ac_cv_lib_$ac_lib_var=yes"
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10507 eval "ac_cv_lib_$ac_lib_var=no"
10510 LIBS="$ac_save_LIBS"
10513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10514 echo "$ac_t""yes" 1>&6
10516 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
10518 echo "$ac_t""no" 1>&6
10523 cat >> confdefs.h <<\EOF
10524 #define HAVE_HEIMDAL_KERBEROS 1
10530 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10533 if test $have_krb5 = yes ; then
10536 cat >> confdefs.h <<\EOF
10537 #define HAVE_KRB5 1
10541 if test $ol_enable_kpasswd != no ; then
10542 ol_link_kpasswd=yes;
10545 if test $ol_with_kerberos = k5only ; then
10546 ol_with_kerberos=found
10549 elif test $ol_with_kerberos != auto ; then
10550 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10556 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10557 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10559 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10563 echo "configure:10564: checking for $ac_hdr" >&5
10564 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10573 { (eval echo configure:10574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10575 if test -z "$ac_err"; then
10577 eval "ac_cv_header_$ac_safe=yes"
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10583 eval "ac_cv_header_$ac_safe=no"
10587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10588 echo "$ac_t""yes" 1>&6
10589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10590 cat >> confdefs.h <<EOF
10591 #define $ac_tr_hdr 1
10595 echo "$ac_t""no" 1>&6
10600 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10601 if test $krb5_impl = mit; then
10602 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10603 echo "configure:10604: checking for main in -lkrb4" >&5
10604 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10608 ac_save_LIBS="$LIBS"
10609 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10620 eval "ac_cv_lib_$ac_lib_var=yes"
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10625 eval "ac_cv_lib_$ac_lib_var=no"
10628 LIBS="$ac_save_LIBS"
10631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10632 echo "$ac_t""yes" 1>&6
10634 KRB4_LIBS="-lkrb4 -ldes425"
10636 echo "$ac_t""no" 1>&6
10641 elif test $krb5_impl = heimdal; then
10642 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10643 echo "configure:10644: checking for main in -lkrb4" >&5
10644 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10648 ac_save_LIBS="$LIBS"
10649 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10660 eval "ac_cv_lib_$ac_lib_var=yes"
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10665 eval "ac_cv_lib_$ac_lib_var=no"
10668 LIBS="$ac_save_LIBS"
10671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
10676 echo "$ac_t""no" 1>&6
10683 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10686 if test $have_k425 = yes ; then
10687 ol_with_kerberos=found
10690 cat >> confdefs.h <<\EOF
10691 #define HAVE_KRB425 1
10694 cat >> confdefs.h <<\EOF
10695 #define HAVE_KRB4 1
10699 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10700 echo "configure:10701: checking for des_debug in Kerberos libraries" >&5
10701 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10702 echo $ac_n "(cached) $ac_c" 1>&6
10706 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10711 #include <kerberosIV/krb.h>
10712 #include <kerberosIV/des.h>
10713 extern int des_debug;
10721 if { (eval echo configure:10722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10723 ol_cv_var_des_debug=yes
10725 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10728 ol_cv_var_des_debug=no
10735 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10737 if test $ol_cv_var_des_debug = yes ; then
10738 cat >> confdefs.h <<\EOF
10739 #define HAVE_DES_DEBUG 1
10749 if test $ol_link_krb5 = yes ; then
10750 ol_with_kerberos=found
10753 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10754 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10756 for ac_hdr in krb.h des.h krb-archaeology.h
10758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10760 echo "configure:10761: checking for $ac_hdr" >&5
10761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10762 echo $ac_n "(cached) $ac_c" 1>&6
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10770 { (eval echo configure:10771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10772 if test -z "$ac_err"; then
10774 eval "ac_cv_header_$ac_safe=yes"
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10780 eval "ac_cv_header_$ac_safe=no"
10784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10787 cat >> confdefs.h <<EOF
10788 #define $ac_tr_hdr 1
10792 echo "$ac_t""no" 1>&6
10797 if test $ac_cv_header_krb_h = yes ; then
10798 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10799 echo "configure:10800: checking for main in -lkrb" >&5
10800 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10801 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10804 ac_save_LIBS="$LIBS"
10805 LIBS="-lkrb -ldes $LIBS"
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10814 if { (eval echo configure:10815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10816 eval "ac_cv_lib_$ac_lib_var=yes"
10818 echo "configure: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10821 eval "ac_cv_lib_$ac_lib_var=no"
10824 LIBS="$ac_save_LIBS"
10827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10828 echo "$ac_t""yes" 1>&6
10831 echo "$ac_t""no" 1>&6
10836 if test $have_k4 = yes ; then
10837 ol_with_kerberos=found
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_KRB4 1
10845 KRB4_LIBS="-lkrb -ldes"
10847 if test $ac_cv_header_krb_archaeology_h = yes ; then
10848 cat >> confdefs.h <<\EOF
10849 #define HAVE_KTH_KERBEROS 1
10857 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10858 ol_link_kpasswd=yes
10861 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10864 elif test $ol_enable_kbind = yes ; then
10865 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10868 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10869 cat >> confdefs.h <<\EOF
10870 #define HAVE_KERBEROS 1
10874 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10875 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10879 if test $ol_with_tls != no ; then
10880 for ac_hdr in openssl/ssl.h ssl.h
10882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10884 echo "configure:10885: checking for $ac_hdr" >&5
10885 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10886 echo $ac_n "(cached) $ac_c" 1>&6
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10894 { (eval echo configure:10895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10896 if test -z "$ac_err"; then
10898 eval "ac_cv_header_$ac_safe=yes"
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10904 eval "ac_cv_header_$ac_safe=no"
10908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10909 echo "$ac_t""yes" 1>&6
10910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10911 cat >> confdefs.h <<EOF
10912 #define $ac_tr_hdr 1
10916 echo "$ac_t""no" 1>&6
10921 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10922 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10923 echo "configure:10924: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10924 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10928 ac_save_LIBS="$LIBS"
10929 LIBS="-lssl -lcrypto $LIBS"
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10933 /* Override any gcc2 internal prototype to avoid an error. */
10934 /* We use char because int might match the return type of a gcc2
10935 builtin and then its argument prototype would still apply. */
10936 char SSLeay_add_ssl_algorithms();
10939 SSLeay_add_ssl_algorithms()
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10944 eval "ac_cv_lib_$ac_lib_var=yes"
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10949 eval "ac_cv_lib_$ac_lib_var=no"
10952 LIBS="$ac_save_LIBS"
10955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10956 echo "$ac_t""yes" 1>&6
10960 echo "$ac_t""no" 1>&6
10965 if test $have_ssleay = no ; then
10966 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10967 echo "configure:10968: checking for SSL_library_init in -lssl" >&5
10968 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10969 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10972 ac_save_LIBS="$LIBS"
10973 LIBS="-lssl -lcrypto $LIBS"
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 /* Override any gcc2 internal prototype to avoid an error. */
10978 /* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10980 char SSL_library_init();
10986 if { (eval echo configure:10987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10988 eval "ac_cv_lib_$ac_lib_var=yes"
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10993 eval "ac_cv_lib_$ac_lib_var=no"
10996 LIBS="$ac_save_LIBS"
10999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11000 echo "$ac_t""yes" 1>&6
11004 echo "$ac_t""no" 1>&6
11010 if test $have_ssleay = no ; then
11011 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11012 echo "configure:11013: checking for ssl3_accept in -lssl" >&5
11013 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11015 echo $ac_n "(cached) $ac_c" 1>&6
11017 ac_save_LIBS="$LIBS"
11018 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 /* Override any gcc2 internal prototype to avoid an error. */
11023 /* We use char because int might match the return type of a gcc2
11024 builtin and then its argument prototype would still apply. */
11025 char ssl3_accept();
11031 if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11033 eval "ac_cv_lib_$ac_lib_var=yes"
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11038 eval "ac_cv_lib_$ac_lib_var=no"
11041 LIBS="$ac_save_LIBS"
11044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11045 echo "$ac_t""yes" 1>&6
11049 echo "$ac_t""no" 1>&6
11055 if test $have_ssleay = yes ; then
11059 cat >> confdefs.h <<\EOF
11060 #define HAVE_SSLEAY 1
11064 if test $need_rsaref = yes; then
11065 cat >> confdefs.h <<\EOF
11066 #define HAVE_RSAREF 1
11070 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11072 TLS_LIBS="-lssl -lcrypto"
11078 echo "configure: warning: TLS privacy protection not supported!" 1>&2
11081 if test $ol_link_tls = yes ; then
11082 cat >> confdefs.h <<\EOF
11087 elif test $ol_with_tls = auto ; then
11088 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11089 echo "configure: warning: TLS privacy protection not supported!" 1>&2
11091 elif test $ol_with_tls != no ; then
11092 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11095 if test $ol_enable_lmpasswd != no; then
11096 if test $ol_link_tls != yes ; then
11097 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11100 cat >> confdefs.h <<\EOF
11101 #define SLAPD_LMHASH 1
11108 gethostbyname_r gethostbyaddr_r \
11111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11112 echo "configure:11113: checking for $ac_func" >&5
11113 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11114 echo $ac_n "(cached) $ac_c" 1>&6
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 /* System header to define __stub macros and hopefully few prototypes,
11120 which can conflict with char $ac_func(); below. */
11121 #include <assert.h>
11122 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11130 /* The GNU C library defines this for functions which it implements
11131 to always fail with ENOSYS. Some functions are actually named
11132 something starting with __ and the normal name is an alias. */
11133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 eval "ac_cv_func_$ac_func=yes"
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11148 eval "ac_cv_func_$ac_func=no"
11153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11154 echo "$ac_t""yes" 1>&6
11155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11156 cat >> confdefs.h <<EOF
11157 #define $ac_tr_func 1
11161 echo "$ac_t""no" 1>&6
11166 if test "$ac_cv_func_ctime_r" = no ; then
11167 ol_cv_func_ctime_r_nargs=0
11169 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11170 echo "configure:11171: checking number of arguments of ctime_r" >&5
11171 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11179 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11182 if { (eval echo configure:11183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11184 ol_cv_func_ctime_r_nargs3=yes
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11189 ol_cv_func_ctime_r_nargs3=no
11193 cat > conftest.$ac_ext <<EOF
11194 #line 11195 "configure"
11195 #include "confdefs.h"
11198 time_t ti; char *buffer; ctime_r(&ti,buffer);
11201 if { (eval echo configure:11202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11203 ol_cv_func_ctime_r_nargs2=yes
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 ol_cv_func_ctime_r_nargs2=no
11212 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11213 $ol_cv_func_ctime_r_nargs2 = no ; then
11215 ol_cv_func_ctime_r_nargs=3
11217 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11218 $ol_cv_func_ctime_r_nargs2 = yes ; then
11220 ol_cv_func_ctime_r_nargs=2
11223 ol_cv_func_ctime_r_nargs=0
11228 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11230 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11231 cat >> confdefs.h <<EOF
11232 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11239 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11240 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11241 echo "configure:11242: checking number of arguments of gethostbyname_r" >&5
11242 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 #include <sys/types.h>
11249 #include <sys/socket.h>
11250 #include <netinet/in.h>
11252 #define BUFSIZE (sizeof(struct hostent)+10)
11254 struct hostent hent; char buffer[BUFSIZE];
11255 int bufsize=BUFSIZE;int h_errno;
11256 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11257 buffer, bufsize, &h_errno);
11260 if { (eval echo configure:11261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11262 ol_cv_func_gethostbyname_r_nargs5=yes
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11267 ol_cv_func_gethostbyname_r_nargs5=no
11271 cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure"
11273 #include "confdefs.h"
11274 #include <sys/types.h>
11275 #include <sys/socket.h>
11276 #include <netinet/in.h>
11278 #define BUFSIZE (sizeof(struct hostent)+10)
11280 struct hostent hent;struct hostent *rhent;
11281 char buffer[BUFSIZE];
11282 int bufsize=BUFSIZE;int h_errno;
11283 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11287 if { (eval echo configure:11288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11289 ol_cv_func_gethostbyname_r_nargs6=yes
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11294 ol_cv_func_gethostbyname_r_nargs6=no
11298 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11299 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11301 ol_cv_func_gethostbyname_r_nargs=5
11303 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11304 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11306 ol_cv_func_gethostbyname_r_nargs=6
11309 ol_cv_func_gethostbyname_r_nargs=0
11314 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11315 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11316 cat >> confdefs.h <<EOF
11317 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11323 ol_cv_func_gethostbyname_r_nargs=0
11326 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11327 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11328 echo "configure:11329: checking number of arguments of gethostbyaddr_r" >&5
11329 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11330 echo $ac_n "(cached) $ac_c" 1>&6
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure"
11334 #include "confdefs.h"
11335 #include <sys/types.h>
11336 #include <sys/socket.h>
11337 #include <netinet/in.h>
11339 #define BUFSIZE (sizeof(struct hostent)+10)
11341 struct hostent hent; char buffer[BUFSIZE];
11342 struct in_addr add;
11343 size_t alen=sizeof(struct in_addr);
11344 int bufsize=BUFSIZE;int h_errno;
11345 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11346 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11349 if { (eval echo configure:11350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11351 ol_cv_func_gethostbyaddr_r_nargs7=yes
11353 echo "configure: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11356 ol_cv_func_gethostbyaddr_r_nargs7=no
11360 cat > conftest.$ac_ext <<EOF
11361 #line 11362 "configure"
11362 #include "confdefs.h"
11363 #include <sys/types.h>
11364 #include <sys/socket.h>
11365 #include <netinet/in.h>
11367 #define BUFSIZE (sizeof(struct hostent)+10)
11369 struct hostent hent;
11370 struct hostent *rhent; char buffer[BUFSIZE];
11371 struct in_addr add;
11372 size_t alen=sizeof(struct in_addr);
11373 int bufsize=BUFSIZE;int h_errno;
11374 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11375 alen, AF_INET, &hent, buffer, bufsize,
11379 if { (eval echo configure:11380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11381 ol_cv_func_gethostbyaddr_r_nargs8=yes
11383 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11386 ol_cv_func_gethostbyaddr_r_nargs8=no
11390 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11391 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11393 ol_cv_func_gethostbyaddr_r_nargs=7
11395 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11396 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11398 ol_cv_func_gethostbyaddr_r_nargs=8
11401 ol_cv_func_gethostbyaddr_r_nargs=0
11406 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11407 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11408 cat >> confdefs.h <<EOF
11409 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11415 ol_cv_func_gethostbyaddr_r_nargs=0
11418 if test "$ac_cv_func_ctime_r" = yes \
11419 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11420 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11421 -a "$ac_cv_func_gethostbyname_r" = yes \
11422 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11423 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11424 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11425 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11426 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11429 cat >> confdefs.h <<\EOF
11430 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11437 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11438 -o $ol_with_threads = nt ; then
11441 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11442 echo "configure:11443: checking for _beginthread" >&5
11443 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11444 echo $ac_n "(cached) $ac_c" 1>&6
11446 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure"
11448 #include "confdefs.h"
11449 /* System header to define __stub macros and hopefully few prototypes,
11450 which can conflict with char _beginthread(); below. */
11451 #include <assert.h>
11452 /* Override any gcc2 internal prototype to avoid an error. */
11453 /* We use char because int might match the return type of a gcc2
11454 builtin and then its argument prototype would still apply. */
11455 char _beginthread();
11460 /* The GNU C library defines this for functions which it implements
11461 to always fail with ENOSYS. Some functions are actually named
11462 something starting with __ and the normal name is an alias. */
11463 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11473 eval "ac_cv_func__beginthread=yes"
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11478 eval "ac_cv_func__beginthread=no"
11483 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11484 echo "$ac_t""yes" 1>&6
11487 echo "$ac_t""no" 1>&6
11491 if test $ac_cv_func__beginthread = yes ; then
11492 cat >> confdefs.h <<\EOF
11493 #define HAVE_NT_THREADS 1
11496 ol_cv_nt_threads=yes
11500 if test "$ol_cv_nt_threads" = yes ; then
11502 ol_with_threads=found
11503 ol_with_yielding_select=yes
11505 cat >> confdefs.h <<\EOF
11506 #define HAVE_NT_SERVICE_MANAGER 1
11509 cat >> confdefs.h <<\EOF
11510 #define HAVE_NT_EVENT_LOG 1
11515 if test $ol_with_threads = nt ; then
11516 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11520 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11521 -o $ol_with_threads = posix ; then
11523 for ac_hdr in pthread.h
11525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11527 echo "configure:11528: checking for $ac_hdr" >&5
11528 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11529 echo $ac_n "(cached) $ac_c" 1>&6
11531 cat > conftest.$ac_ext <<EOF
11532 #line 11533 "configure"
11533 #include "confdefs.h"
11536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11537 { (eval echo configure:11538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11539 if test -z "$ac_err"; then
11541 eval "ac_cv_header_$ac_safe=yes"
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11547 eval "ac_cv_header_$ac_safe=no"
11551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11552 echo "$ac_t""yes" 1>&6
11553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11554 cat >> confdefs.h <<EOF
11555 #define $ac_tr_hdr 1
11559 echo "$ac_t""no" 1>&6
11564 if test $ac_cv_header_pthread_h = yes ; then
11565 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11566 echo "configure:11567: checking POSIX thread version" >&5
11567 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11568 echo $ac_n "(cached) $ac_c" 1>&6
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11575 # include <pthread.h>
11576 /* this check could be improved */
11577 # ifdef PTHREAD_ONCE_INIT
11578 pthread_version_final;
11582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11583 egrep "pthread_version_final" >/dev/null 2>&1; then
11585 ol_pthread_final=yes
11588 ol_pthread_final=no
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11597 # include <pthread.h>
11598 /* this check could be improved */
11599 # ifdef pthread_once_init
11600 pthread_version_draft4;
11604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11605 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11607 ol_pthread_draft4=yes
11610 ol_pthread_draft4=no
11615 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11616 ol_cv_pthread_version=final
11617 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11618 ol_cv_pthread_version=draft4
11620 ol_cv_pthread_version=unknown
11625 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11628 if test $ol_cv_pthread_version = final ; then
11629 cat >> confdefs.h <<\EOF
11630 #define HAVE_PTHREADS_FINAL 1
11633 elif test $ol_cv_pthread_version = draft4 ; then
11634 cat >> confdefs.h <<\EOF
11635 #define HAVE_PTHREADS_D4 1
11639 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11642 # consider threads found
11643 ol_with_threads=found
11646 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11647 echo "configure:11648: checking for LinuxThreads pthread.h" >&5
11648 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11651 cat > conftest.$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11654 #include <pthread.h>
11656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11657 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11659 ol_cv_header_linux_threads=yes
11662 ol_cv_header_linux_threads=no
11669 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11670 if test $ol_cv_header_linux_threads = yes; then
11671 cat >> confdefs.h <<\EOF
11672 #define HAVE_LINUX_THREADS 1
11678 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11679 echo "configure:11680: checking for GNU Pth pthread.h" >&5
11680 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11686 #include <pthread.h>
11687 #ifdef _POSIX_THREAD_IS_GNU_PTH
11692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11693 egrep "__gnu_pth__" >/dev/null 2>&1; then
11695 ol_cv_header_gnu_pth_pthread_h=yes
11698 ol_cv_header_gnu_pth_pthread_h=no
11705 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11708 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11709 for ac_hdr in sched.h
11711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11713 echo "configure:11714: checking for $ac_hdr" >&5
11714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11723 { (eval echo configure:11724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11725 if test -z "$ac_err"; then
11727 eval "ac_cv_header_$ac_safe=yes"
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11733 eval "ac_cv_header_$ac_safe=no"
11737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11738 echo "$ac_t""yes" 1>&6
11739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11740 cat >> confdefs.h <<EOF
11741 #define $ac_tr_hdr 1
11745 echo "$ac_t""no" 1>&6
11752 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11753 echo "configure:11754: checking for pthread_create in default libraries" >&5
11754 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11755 echo $ac_n "(cached) $ac_c" 1>&6
11758 if test "$cross_compiling" = yes; then
11759 cat > conftest.$ac_ext <<EOF
11760 #line 11761 "configure"
11761 #include "confdefs.h"
11762 /* pthread test headers */
11763 #include <pthread.h>
11765 #define NULL (void*)0
11768 static void *task(p)
11771 return (void *) (p == NULL);
11776 /* pthread test function */
11781 #ifdef HAVE_PTHREADS_FINAL
11782 /* Final pthreads */
11783 pthread_attr_t attr;
11785 status = pthread_attr_init(&attr);
11786 if( status ) return status;
11788 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11790 #if defined( PTHREAD_CREATE_JOINABLE )
11791 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11793 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11796 #ifdef PTHREAD_CREATE_DETACHED
11798 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11801 if( status ) return status;
11804 status = pthread_create( &t, &attr, task, NULL );
11805 if( status ) return status;
11807 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11809 /* give thread a chance to complete */
11810 /* it should remain joinable and hence detachable */
11813 status = pthread_detach( t );
11814 if( status ) return status;
11819 /* Draft 4 pthreads */
11820 status = pthread_create( &t, pthread_attr_default, task, NULL );
11821 if( status ) return status;
11824 /* give thread a chance to complete */
11825 /* it should remain joinable and hence detachable */
11828 status = pthread_detach( &t );
11829 if( status ) return status;
11833 #ifdef HAVE_LINUX_THREADS
11834 pthread_kill_other_threads_np();
11841 if { (eval echo configure:11842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11843 ol_cv_pthread_create=yes
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11848 ol_cv_pthread_create=no
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 /* pthread test headers */
11856 #include <pthread.h>
11858 #define NULL (void*)0
11861 static void *task(p)
11864 return (void *) (p == NULL);
11868 int main(argc, argv)
11873 /* pthread test function */
11878 #ifdef HAVE_PTHREADS_FINAL
11879 /* Final pthreads */
11880 pthread_attr_t attr;
11882 status = pthread_attr_init(&attr);
11883 if( status ) return status;
11885 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11887 #if defined( PTHREAD_CREATE_JOINABLE )
11888 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11890 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11893 #ifdef PTHREAD_CREATE_DETACHED
11895 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11898 if( status ) return status;
11901 status = pthread_create( &t, &attr, task, NULL );
11902 if( status ) return status;
11904 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11906 /* give thread a chance to complete */
11907 /* it should remain joinable and hence detachable */
11910 status = pthread_detach( t );
11911 if( status ) return status;
11916 /* Draft 4 pthreads */
11917 status = pthread_create( &t, pthread_attr_default, task, NULL );
11918 if( status ) return status;
11921 /* give thread a chance to complete */
11922 /* it should remain joinable and hence detachable */
11925 status = pthread_detach( &t );
11926 if( status ) return status;
11930 #ifdef HAVE_LINUX_THREADS
11931 pthread_kill_other_threads_np();
11939 if { (eval echo configure:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11941 ol_cv_pthread_create=yes
11943 echo "configure: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
11946 ol_cv_pthread_create=no
11953 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11955 if test $ol_cv_pthread_create != no ; then
11956 ol_link_threads=posix
11957 ol_link_pthreads=""
11960 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11961 if test "$ol_link_threads" = no ; then
11963 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11964 echo "configure:11965: checking for pthread link with -kthread" >&5
11965 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11966 echo $ac_n "(cached) $ac_c" 1>&6
11971 LIBS="-kthread $LIBS"
11973 if test "$cross_compiling" = yes; then
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11977 /* pthread test headers */
11978 #include <pthread.h>
11980 #define NULL (void*)0
11983 static void *task(p)
11986 return (void *) (p == NULL);
11991 /* pthread test function */
11996 #ifdef HAVE_PTHREADS_FINAL
11997 /* Final pthreads */
11998 pthread_attr_t attr;
12000 status = pthread_attr_init(&attr);
12001 if( status ) return status;
12003 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12005 #if defined( PTHREAD_CREATE_JOINABLE )
12006 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12008 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12011 #ifdef PTHREAD_CREATE_DETACHED
12013 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12016 if( status ) return status;
12019 status = pthread_create( &t, &attr, task, NULL );
12020 if( status ) return status;
12022 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12024 /* give thread a chance to complete */
12025 /* it should remain joinable and hence detachable */
12028 status = pthread_detach( t );
12029 if( status ) return status;
12034 /* Draft 4 pthreads */
12035 status = pthread_create( &t, pthread_attr_default, task, NULL );
12036 if( status ) return status;
12039 /* give thread a chance to complete */
12040 /* it should remain joinable and hence detachable */
12043 status = pthread_detach( &t );
12044 if( status ) return status;
12048 #ifdef HAVE_LINUX_THREADS
12049 pthread_kill_other_threads_np();
12056 if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12058 ol_cv_pthread_kthread=yes
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12063 ol_cv_pthread_kthread=no
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12070 /* pthread test headers */
12071 #include <pthread.h>
12073 #define NULL (void*)0
12076 static void *task(p)
12079 return (void *) (p == NULL);
12083 int main(argc, argv)
12088 /* pthread test function */
12093 #ifdef HAVE_PTHREADS_FINAL
12094 /* Final pthreads */
12095 pthread_attr_t attr;
12097 status = pthread_attr_init(&attr);
12098 if( status ) return status;
12100 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12102 #if defined( PTHREAD_CREATE_JOINABLE )
12103 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12105 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12108 #ifdef PTHREAD_CREATE_DETACHED
12110 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12113 if( status ) return status;
12116 status = pthread_create( &t, &attr, task, NULL );
12117 if( status ) return status;
12119 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12121 /* give thread a chance to complete */
12122 /* it should remain joinable and hence detachable */
12125 status = pthread_detach( t );
12126 if( status ) return status;
12131 /* Draft 4 pthreads */
12132 status = pthread_create( &t, pthread_attr_default, task, NULL );
12133 if( status ) return status;
12136 /* give thread a chance to complete */
12137 /* it should remain joinable and hence detachable */
12140 status = pthread_detach( &t );
12141 if( status ) return status;
12145 #ifdef HAVE_LINUX_THREADS
12146 pthread_kill_other_threads_np();
12154 if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12156 ol_cv_pthread_kthread=yes
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12161 ol_cv_pthread_kthread=no
12172 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12174 if test $ol_cv_pthread_kthread = yes ; then
12175 ol_link_pthreads="-kthread"
12176 ol_link_threads=posix
12180 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12181 if test "$ol_link_threads" = no ; then
12183 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12184 echo "configure:12185: checking for pthread link with -pthread" >&5
12185 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12186 echo $ac_n "(cached) $ac_c" 1>&6
12191 LIBS="-pthread $LIBS"
12193 if test "$cross_compiling" = yes; then
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 /* pthread test headers */
12198 #include <pthread.h>
12200 #define NULL (void*)0
12203 static void *task(p)
12206 return (void *) (p == NULL);
12211 /* pthread test function */
12216 #ifdef HAVE_PTHREADS_FINAL
12217 /* Final pthreads */
12218 pthread_attr_t attr;
12220 status = pthread_attr_init(&attr);
12221 if( status ) return status;
12223 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12225 #if defined( PTHREAD_CREATE_JOINABLE )
12226 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12228 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12231 #ifdef PTHREAD_CREATE_DETACHED
12233 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12236 if( status ) return status;
12239 status = pthread_create( &t, &attr, task, NULL );
12240 if( status ) return status;
12242 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12244 /* give thread a chance to complete */
12245 /* it should remain joinable and hence detachable */
12248 status = pthread_detach( t );
12249 if( status ) return status;
12254 /* Draft 4 pthreads */
12255 status = pthread_create( &t, pthread_attr_default, task, NULL );
12256 if( status ) return status;
12259 /* give thread a chance to complete */
12260 /* it should remain joinable and hence detachable */
12263 status = pthread_detach( &t );
12264 if( status ) return status;
12268 #ifdef HAVE_LINUX_THREADS
12269 pthread_kill_other_threads_np();
12276 if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12278 ol_cv_pthread_pthread=yes
12280 echo "configure: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12283 ol_cv_pthread_pthread=no
12287 cat > conftest.$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 /* pthread test headers */
12291 #include <pthread.h>
12293 #define NULL (void*)0
12296 static void *task(p)
12299 return (void *) (p == NULL);
12303 int main(argc, argv)
12308 /* pthread test function */
12313 #ifdef HAVE_PTHREADS_FINAL
12314 /* Final pthreads */
12315 pthread_attr_t attr;
12317 status = pthread_attr_init(&attr);
12318 if( status ) return status;
12320 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12322 #if defined( PTHREAD_CREATE_JOINABLE )
12323 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12325 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12328 #ifdef PTHREAD_CREATE_DETACHED
12330 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12333 if( status ) return status;
12336 status = pthread_create( &t, &attr, task, NULL );
12337 if( status ) return status;
12339 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12341 /* give thread a chance to complete */
12342 /* it should remain joinable and hence detachable */
12345 status = pthread_detach( t );
12346 if( status ) return status;
12351 /* Draft 4 pthreads */
12352 status = pthread_create( &t, pthread_attr_default, task, NULL );
12353 if( status ) return status;
12356 /* give thread a chance to complete */
12357 /* it should remain joinable and hence detachable */
12360 status = pthread_detach( &t );
12361 if( status ) return status;
12365 #ifdef HAVE_LINUX_THREADS
12366 pthread_kill_other_threads_np();
12374 if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12376 ol_cv_pthread_pthread=yes
12378 echo "configure: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12381 ol_cv_pthread_pthread=no
12392 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12394 if test $ol_cv_pthread_pthread = yes ; then
12395 ol_link_pthreads="-pthread"
12396 ol_link_threads=posix
12400 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12401 if test "$ol_link_threads" = no ; then
12403 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12404 echo "configure:12405: checking for pthread link with -pthreads" >&5
12405 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12406 echo $ac_n "(cached) $ac_c" 1>&6
12411 LIBS="-pthreads $LIBS"
12413 if test "$cross_compiling" = yes; then
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* pthread test headers */
12418 #include <pthread.h>
12420 #define NULL (void*)0
12423 static void *task(p)
12426 return (void *) (p == NULL);
12431 /* pthread test function */
12436 #ifdef HAVE_PTHREADS_FINAL
12437 /* Final pthreads */
12438 pthread_attr_t attr;
12440 status = pthread_attr_init(&attr);
12441 if( status ) return status;
12443 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12445 #if defined( PTHREAD_CREATE_JOINABLE )
12446 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12448 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12451 #ifdef PTHREAD_CREATE_DETACHED
12453 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12456 if( status ) return status;
12459 status = pthread_create( &t, &attr, task, NULL );
12460 if( status ) return status;
12462 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12464 /* give thread a chance to complete */
12465 /* it should remain joinable and hence detachable */
12468 status = pthread_detach( t );
12469 if( status ) return status;
12474 /* Draft 4 pthreads */
12475 status = pthread_create( &t, pthread_attr_default, task, NULL );
12476 if( status ) return status;
12479 /* give thread a chance to complete */
12480 /* it should remain joinable and hence detachable */
12483 status = pthread_detach( &t );
12484 if( status ) return status;
12488 #ifdef HAVE_LINUX_THREADS
12489 pthread_kill_other_threads_np();
12496 if { (eval echo configure:12497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498 ol_cv_pthread_pthreads=yes
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12503 ol_cv_pthread_pthreads=no
12507 cat > conftest.$ac_ext <<EOF
12508 #line 12509 "configure"
12509 #include "confdefs.h"
12510 /* pthread test headers */
12511 #include <pthread.h>
12513 #define NULL (void*)0
12516 static void *task(p)
12519 return (void *) (p == NULL);
12523 int main(argc, argv)
12528 /* pthread test function */
12533 #ifdef HAVE_PTHREADS_FINAL
12534 /* Final pthreads */
12535 pthread_attr_t attr;
12537 status = pthread_attr_init(&attr);
12538 if( status ) return status;
12540 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12542 #if defined( PTHREAD_CREATE_JOINABLE )
12543 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12545 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12548 #ifdef PTHREAD_CREATE_DETACHED
12550 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12553 if( status ) return status;
12556 status = pthread_create( &t, &attr, task, NULL );
12557 if( status ) return status;
12559 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12561 /* give thread a chance to complete */
12562 /* it should remain joinable and hence detachable */
12565 status = pthread_detach( t );
12566 if( status ) return status;
12571 /* Draft 4 pthreads */
12572 status = pthread_create( &t, pthread_attr_default, task, NULL );
12573 if( status ) return status;
12576 /* give thread a chance to complete */
12577 /* it should remain joinable and hence detachable */
12580 status = pthread_detach( &t );
12581 if( status ) return status;
12585 #ifdef HAVE_LINUX_THREADS
12586 pthread_kill_other_threads_np();
12594 if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12596 ol_cv_pthread_pthreads=yes
12598 echo "configure: failed program was:" >&5
12599 cat conftest.$ac_ext >&5
12601 ol_cv_pthread_pthreads=no
12612 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12614 if test $ol_cv_pthread_pthreads = yes ; then
12615 ol_link_pthreads="-pthreads"
12616 ol_link_threads=posix
12620 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12621 if test "$ol_link_threads" = no ; then
12623 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12624 echo "configure:12625: checking for pthread link with -mthreads" >&5
12625 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12626 echo $ac_n "(cached) $ac_c" 1>&6
12631 LIBS="-mthreads $LIBS"
12633 if test "$cross_compiling" = yes; then
12634 cat > conftest.$ac_ext <<EOF
12635 #line 12636 "configure"
12636 #include "confdefs.h"
12637 /* pthread test headers */
12638 #include <pthread.h>
12640 #define NULL (void*)0
12643 static void *task(p)
12646 return (void *) (p == NULL);
12651 /* pthread test function */
12656 #ifdef HAVE_PTHREADS_FINAL
12657 /* Final pthreads */
12658 pthread_attr_t attr;
12660 status = pthread_attr_init(&attr);
12661 if( status ) return status;
12663 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12665 #if defined( PTHREAD_CREATE_JOINABLE )
12666 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12668 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12671 #ifdef PTHREAD_CREATE_DETACHED
12673 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12676 if( status ) return status;
12679 status = pthread_create( &t, &attr, task, NULL );
12680 if( status ) return status;
12682 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12684 /* give thread a chance to complete */
12685 /* it should remain joinable and hence detachable */
12688 status = pthread_detach( t );
12689 if( status ) return status;
12694 /* Draft 4 pthreads */
12695 status = pthread_create( &t, pthread_attr_default, task, NULL );
12696 if( status ) return status;
12699 /* give thread a chance to complete */
12700 /* it should remain joinable and hence detachable */
12703 status = pthread_detach( &t );
12704 if( status ) return status;
12708 #ifdef HAVE_LINUX_THREADS
12709 pthread_kill_other_threads_np();
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718 ol_cv_pthread_mthreads=yes
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 ol_cv_pthread_mthreads=no
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 /* pthread test headers */
12731 #include <pthread.h>
12733 #define NULL (void*)0
12736 static void *task(p)
12739 return (void *) (p == NULL);
12743 int main(argc, argv)
12748 /* pthread test function */
12753 #ifdef HAVE_PTHREADS_FINAL
12754 /* Final pthreads */
12755 pthread_attr_t attr;
12757 status = pthread_attr_init(&attr);
12758 if( status ) return status;
12760 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12762 #if defined( PTHREAD_CREATE_JOINABLE )
12763 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12765 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12768 #ifdef PTHREAD_CREATE_DETACHED
12770 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12773 if( status ) return status;
12776 status = pthread_create( &t, &attr, task, NULL );
12777 if( status ) return status;
12779 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12781 /* give thread a chance to complete */
12782 /* it should remain joinable and hence detachable */
12785 status = pthread_detach( t );
12786 if( status ) return status;
12791 /* Draft 4 pthreads */
12792 status = pthread_create( &t, pthread_attr_default, task, NULL );
12793 if( status ) return status;
12796 /* give thread a chance to complete */
12797 /* it should remain joinable and hence detachable */
12800 status = pthread_detach( &t );
12801 if( status ) return status;
12805 #ifdef HAVE_LINUX_THREADS
12806 pthread_kill_other_threads_np();
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12816 ol_cv_pthread_mthreads=yes
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 ol_cv_pthread_mthreads=no
12832 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12834 if test $ol_cv_pthread_mthreads = yes ; then
12835 ol_link_pthreads="-mthreads"
12836 ol_link_threads=posix
12840 # Pthread try link: -thread (ol_cv_pthread_thread)
12841 if test "$ol_link_threads" = no ; then
12843 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12844 echo "configure:12845: checking for pthread link with -thread" >&5
12845 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12846 echo $ac_n "(cached) $ac_c" 1>&6
12851 LIBS="-thread $LIBS"
12853 if test "$cross_compiling" = yes; then
12854 cat > conftest.$ac_ext <<EOF
12855 #line 12856 "configure"
12856 #include "confdefs.h"
12857 /* pthread test headers */
12858 #include <pthread.h>
12860 #define NULL (void*)0
12863 static void *task(p)
12866 return (void *) (p == NULL);
12871 /* pthread test function */
12876 #ifdef HAVE_PTHREADS_FINAL
12877 /* Final pthreads */
12878 pthread_attr_t attr;
12880 status = pthread_attr_init(&attr);
12881 if( status ) return status;
12883 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12885 #if defined( PTHREAD_CREATE_JOINABLE )
12886 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12888 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12891 #ifdef PTHREAD_CREATE_DETACHED
12893 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12896 if( status ) return status;
12899 status = pthread_create( &t, &attr, task, NULL );
12900 if( status ) return status;
12902 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12904 /* give thread a chance to complete */
12905 /* it should remain joinable and hence detachable */
12908 status = pthread_detach( t );
12909 if( status ) return status;
12914 /* Draft 4 pthreads */
12915 status = pthread_create( &t, pthread_attr_default, task, NULL );
12916 if( status ) return status;
12919 /* give thread a chance to complete */
12920 /* it should remain joinable and hence detachable */
12923 status = pthread_detach( &t );
12924 if( status ) return status;
12928 #ifdef HAVE_LINUX_THREADS
12929 pthread_kill_other_threads_np();
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12938 ol_cv_pthread_thread=yes
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12943 ol_cv_pthread_thread=no
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* pthread test headers */
12951 #include <pthread.h>
12953 #define NULL (void*)0
12956 static void *task(p)
12959 return (void *) (p == NULL);
12963 int main(argc, argv)
12968 /* pthread test function */
12973 #ifdef HAVE_PTHREADS_FINAL
12974 /* Final pthreads */
12975 pthread_attr_t attr;
12977 status = pthread_attr_init(&attr);
12978 if( status ) return status;
12980 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12982 #if defined( PTHREAD_CREATE_JOINABLE )
12983 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12985 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12988 #ifdef PTHREAD_CREATE_DETACHED
12990 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12993 if( status ) return status;
12996 status = pthread_create( &t, &attr, task, NULL );
12997 if( status ) return status;
12999 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13001 /* give thread a chance to complete */
13002 /* it should remain joinable and hence detachable */
13005 status = pthread_detach( t );
13006 if( status ) return status;
13011 /* Draft 4 pthreads */
13012 status = pthread_create( &t, pthread_attr_default, task, NULL );
13013 if( status ) return status;
13016 /* give thread a chance to complete */
13017 /* it should remain joinable and hence detachable */
13020 status = pthread_detach( &t );
13021 if( status ) return status;
13025 #ifdef HAVE_LINUX_THREADS
13026 pthread_kill_other_threads_np();
13034 if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13036 ol_cv_pthread_thread=yes
13038 echo "configure: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13041 ol_cv_pthread_thread=no
13052 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13054 if test $ol_cv_pthread_thread = yes ; then
13055 ol_link_pthreads="-thread"
13056 ol_link_threads=posix
13061 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13062 if test "$ol_link_threads" = no ; then
13063 # try -lpthread -lmach -lexc -lc_r
13064 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13065 echo "configure:13066: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13066 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13067 echo $ac_n "(cached) $ac_c" 1>&6
13072 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13074 if test "$cross_compiling" = yes; then
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 /* pthread test headers */
13079 #include <pthread.h>
13081 #define NULL (void*)0
13084 static void *task(p)
13087 return (void *) (p == NULL);
13092 /* pthread test function */
13097 #ifdef HAVE_PTHREADS_FINAL
13098 /* Final pthreads */
13099 pthread_attr_t attr;
13101 status = pthread_attr_init(&attr);
13102 if( status ) return status;
13104 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13106 #if defined( PTHREAD_CREATE_JOINABLE )
13107 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13109 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13112 #ifdef PTHREAD_CREATE_DETACHED
13114 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13117 if( status ) return status;
13120 status = pthread_create( &t, &attr, task, NULL );
13121 if( status ) return status;
13123 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13125 /* give thread a chance to complete */
13126 /* it should remain joinable and hence detachable */
13129 status = pthread_detach( t );
13130 if( status ) return status;
13135 /* Draft 4 pthreads */
13136 status = pthread_create( &t, pthread_attr_default, task, NULL );
13137 if( status ) return status;
13140 /* give thread a chance to complete */
13141 /* it should remain joinable and hence detachable */
13144 status = pthread_detach( &t );
13145 if( status ) return status;
13149 #ifdef HAVE_LINUX_THREADS
13150 pthread_kill_other_threads_np();
13157 if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13159 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13164 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13168 cat > conftest.$ac_ext <<EOF
13169 #line 13170 "configure"
13170 #include "confdefs.h"
13171 /* pthread test headers */
13172 #include <pthread.h>
13174 #define NULL (void*)0
13177 static void *task(p)
13180 return (void *) (p == NULL);
13184 int main(argc, argv)
13189 /* pthread test function */
13194 #ifdef HAVE_PTHREADS_FINAL
13195 /* Final pthreads */
13196 pthread_attr_t attr;
13198 status = pthread_attr_init(&attr);
13199 if( status ) return status;
13201 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13203 #if defined( PTHREAD_CREATE_JOINABLE )
13204 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13206 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13209 #ifdef PTHREAD_CREATE_DETACHED
13211 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13214 if( status ) return status;
13217 status = pthread_create( &t, &attr, task, NULL );
13218 if( status ) return status;
13220 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13222 /* give thread a chance to complete */
13223 /* it should remain joinable and hence detachable */
13226 status = pthread_detach( t );
13227 if( status ) return status;
13232 /* Draft 4 pthreads */
13233 status = pthread_create( &t, pthread_attr_default, task, NULL );
13234 if( status ) return status;
13237 /* give thread a chance to complete */
13238 /* it should remain joinable and hence detachable */
13241 status = pthread_detach( &t );
13242 if( status ) return status;
13246 #ifdef HAVE_LINUX_THREADS
13247 pthread_kill_other_threads_np();
13255 if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13257 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13262 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13273 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13275 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13276 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13277 ol_link_threads=posix
13281 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13282 if test "$ol_link_threads" = no ; then
13283 # try -lpthread -lmach -lexc
13284 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13285 echo "configure:13286: checking for pthread link with -lpthread -lmach -lexc" >&5
13286 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13287 echo $ac_n "(cached) $ac_c" 1>&6
13292 LIBS="-lpthread -lmach -lexc $LIBS"
13294 if test "$cross_compiling" = yes; then
13295 cat > conftest.$ac_ext <<EOF
13296 #line 13297 "configure"
13297 #include "confdefs.h"
13298 /* pthread test headers */
13299 #include <pthread.h>
13301 #define NULL (void*)0
13304 static void *task(p)
13307 return (void *) (p == NULL);
13312 /* pthread test function */
13317 #ifdef HAVE_PTHREADS_FINAL
13318 /* Final pthreads */
13319 pthread_attr_t attr;
13321 status = pthread_attr_init(&attr);
13322 if( status ) return status;
13324 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13326 #if defined( PTHREAD_CREATE_JOINABLE )
13327 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13329 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13332 #ifdef PTHREAD_CREATE_DETACHED
13334 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13337 if( status ) return status;
13340 status = pthread_create( &t, &attr, task, NULL );
13341 if( status ) return status;
13343 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13345 /* give thread a chance to complete */
13346 /* it should remain joinable and hence detachable */
13349 status = pthread_detach( t );
13350 if( status ) return status;
13355 /* Draft 4 pthreads */
13356 status = pthread_create( &t, pthread_attr_default, task, NULL );
13357 if( status ) return status;
13360 /* give thread a chance to complete */
13361 /* it should remain joinable and hence detachable */
13364 status = pthread_detach( &t );
13365 if( status ) return status;
13369 #ifdef HAVE_LINUX_THREADS
13370 pthread_kill_other_threads_np();
13377 if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13379 ol_cv_pthread_lpthread_lmach_lexc=yes
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13384 ol_cv_pthread_lpthread_lmach_lexc=no
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13391 /* pthread test headers */
13392 #include <pthread.h>
13394 #define NULL (void*)0
13397 static void *task(p)
13400 return (void *) (p == NULL);
13404 int main(argc, argv)
13409 /* pthread test function */
13414 #ifdef HAVE_PTHREADS_FINAL
13415 /* Final pthreads */
13416 pthread_attr_t attr;
13418 status = pthread_attr_init(&attr);
13419 if( status ) return status;
13421 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13423 #if defined( PTHREAD_CREATE_JOINABLE )
13424 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13426 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13429 #ifdef PTHREAD_CREATE_DETACHED
13431 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13434 if( status ) return status;
13437 status = pthread_create( &t, &attr, task, NULL );
13438 if( status ) return status;
13440 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13442 /* give thread a chance to complete */
13443 /* it should remain joinable and hence detachable */
13446 status = pthread_detach( t );
13447 if( status ) return status;
13452 /* Draft 4 pthreads */
13453 status = pthread_create( &t, pthread_attr_default, task, NULL );
13454 if( status ) return status;
13457 /* give thread a chance to complete */
13458 /* it should remain joinable and hence detachable */
13461 status = pthread_detach( &t );
13462 if( status ) return status;
13466 #ifdef HAVE_LINUX_THREADS
13467 pthread_kill_other_threads_np();
13475 if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13477 ol_cv_pthread_lpthread_lmach_lexc=yes
13479 echo "configure: failed program was:" >&5
13480 cat conftest.$ac_ext >&5
13482 ol_cv_pthread_lpthread_lmach_lexc=no
13493 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13495 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13496 ol_link_pthreads="-lpthread -lmach -lexc"
13497 ol_link_threads=posix
13502 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13503 if test "$ol_link_threads" = no ; then
13504 # try -lpthread -Wl,-woff,85
13505 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13506 echo "configure:13507: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13507 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13508 echo $ac_n "(cached) $ac_c" 1>&6
13513 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13515 if test "$cross_compiling" = yes; then
13516 cat > conftest.$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13519 /* pthread test headers */
13520 #include <pthread.h>
13522 #define NULL (void*)0
13525 static void *task(p)
13528 return (void *) (p == NULL);
13533 /* pthread test function */
13538 #ifdef HAVE_PTHREADS_FINAL
13539 /* Final pthreads */
13540 pthread_attr_t attr;
13542 status = pthread_attr_init(&attr);
13543 if( status ) return status;
13545 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13547 #if defined( PTHREAD_CREATE_JOINABLE )
13548 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13550 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13553 #ifdef PTHREAD_CREATE_DETACHED
13555 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13558 if( status ) return status;
13561 status = pthread_create( &t, &attr, task, NULL );
13562 if( status ) return status;
13564 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13566 /* give thread a chance to complete */
13567 /* it should remain joinable and hence detachable */
13570 status = pthread_detach( t );
13571 if( status ) return status;
13576 /* Draft 4 pthreads */
13577 status = pthread_create( &t, pthread_attr_default, task, NULL );
13578 if( status ) return status;
13581 /* give thread a chance to complete */
13582 /* it should remain joinable and hence detachable */
13585 status = pthread_detach( &t );
13586 if( status ) return status;
13590 #ifdef HAVE_LINUX_THREADS
13591 pthread_kill_other_threads_np();
13598 if { (eval echo configure:13599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13600 ol_cv_pthread_lib_lpthread_woff=yes
13602 echo "configure: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13605 ol_cv_pthread_lib_lpthread_woff=no
13609 cat > conftest.$ac_ext <<EOF
13610 #line 13611 "configure"
13611 #include "confdefs.h"
13612 /* pthread test headers */
13613 #include <pthread.h>
13615 #define NULL (void*)0
13618 static void *task(p)
13621 return (void *) (p == NULL);
13625 int main(argc, argv)
13630 /* pthread test function */
13635 #ifdef HAVE_PTHREADS_FINAL
13636 /* Final pthreads */
13637 pthread_attr_t attr;
13639 status = pthread_attr_init(&attr);
13640 if( status ) return status;
13642 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13644 #if defined( PTHREAD_CREATE_JOINABLE )
13645 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13647 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13650 #ifdef PTHREAD_CREATE_DETACHED
13652 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13655 if( status ) return status;
13658 status = pthread_create( &t, &attr, task, NULL );
13659 if( status ) return status;
13661 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13663 /* give thread a chance to complete */
13664 /* it should remain joinable and hence detachable */
13667 status = pthread_detach( t );
13668 if( status ) return status;
13673 /* Draft 4 pthreads */
13674 status = pthread_create( &t, pthread_attr_default, task, NULL );
13675 if( status ) return status;
13678 /* give thread a chance to complete */
13679 /* it should remain joinable and hence detachable */
13682 status = pthread_detach( &t );
13683 if( status ) return status;
13687 #ifdef HAVE_LINUX_THREADS
13688 pthread_kill_other_threads_np();
13696 if { (eval echo configure:13697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13698 ol_cv_pthread_lib_lpthread_woff=yes
13700 echo "configure: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13703 ol_cv_pthread_lib_lpthread_woff=no
13714 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13716 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13717 ol_link_pthreads="-lpthread -Wl,-woff,85"
13718 ol_link_threads=posix
13723 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13724 if test "$ol_link_threads" = no ; then
13726 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13727 echo "configure:13728: checking for pthread link with -lpthread" >&5
13728 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13729 echo $ac_n "(cached) $ac_c" 1>&6
13734 LIBS="-lpthread $LIBS"
13736 if test "$cross_compiling" = yes; then
13737 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13740 /* pthread test headers */
13741 #include <pthread.h>
13743 #define NULL (void*)0
13746 static void *task(p)
13749 return (void *) (p == NULL);
13754 /* pthread test function */
13759 #ifdef HAVE_PTHREADS_FINAL
13760 /* Final pthreads */
13761 pthread_attr_t attr;
13763 status = pthread_attr_init(&attr);
13764 if( status ) return status;
13766 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13768 #if defined( PTHREAD_CREATE_JOINABLE )
13769 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13771 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13774 #ifdef PTHREAD_CREATE_DETACHED
13776 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13779 if( status ) return status;
13782 status = pthread_create( &t, &attr, task, NULL );
13783 if( status ) return status;
13785 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13787 /* give thread a chance to complete */
13788 /* it should remain joinable and hence detachable */
13791 status = pthread_detach( t );
13792 if( status ) return status;
13797 /* Draft 4 pthreads */
13798 status = pthread_create( &t, pthread_attr_default, task, NULL );
13799 if( status ) return status;
13802 /* give thread a chance to complete */
13803 /* it should remain joinable and hence detachable */
13806 status = pthread_detach( &t );
13807 if( status ) return status;
13811 #ifdef HAVE_LINUX_THREADS
13812 pthread_kill_other_threads_np();
13819 if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13821 ol_cv_pthread_lpthread=yes
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13826 ol_cv_pthread_lpthread=no
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13833 /* pthread test headers */
13834 #include <pthread.h>
13836 #define NULL (void*)0
13839 static void *task(p)
13842 return (void *) (p == NULL);
13846 int main(argc, argv)
13851 /* pthread test function */
13856 #ifdef HAVE_PTHREADS_FINAL
13857 /* Final pthreads */
13858 pthread_attr_t attr;
13860 status = pthread_attr_init(&attr);
13861 if( status ) return status;
13863 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13865 #if defined( PTHREAD_CREATE_JOINABLE )
13866 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13868 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13871 #ifdef PTHREAD_CREATE_DETACHED
13873 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13876 if( status ) return status;
13879 status = pthread_create( &t, &attr, task, NULL );
13880 if( status ) return status;
13882 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13884 /* give thread a chance to complete */
13885 /* it should remain joinable and hence detachable */
13888 status = pthread_detach( t );
13889 if( status ) return status;
13894 /* Draft 4 pthreads */
13895 status = pthread_create( &t, pthread_attr_default, task, NULL );
13896 if( status ) return status;
13899 /* give thread a chance to complete */
13900 /* it should remain joinable and hence detachable */
13903 status = pthread_detach( &t );
13904 if( status ) return status;
13908 #ifdef HAVE_LINUX_THREADS
13909 pthread_kill_other_threads_np();
13917 if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13919 ol_cv_pthread_lpthread=yes
13921 echo "configure: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13924 ol_cv_pthread_lpthread=no
13935 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13937 if test $ol_cv_pthread_lpthread = yes ; then
13938 ol_link_pthreads="-lpthread"
13939 ol_link_threads=posix
13943 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13944 if test "$ol_link_threads" = no ; then
13946 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13947 echo "configure:13948: checking for pthread link with -lc_r" >&5
13948 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13949 echo $ac_n "(cached) $ac_c" 1>&6
13956 if test "$cross_compiling" = yes; then
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960 /* pthread test headers */
13961 #include <pthread.h>
13963 #define NULL (void*)0
13966 static void *task(p)
13969 return (void *) (p == NULL);
13974 /* pthread test function */
13979 #ifdef HAVE_PTHREADS_FINAL
13980 /* Final pthreads */
13981 pthread_attr_t attr;
13983 status = pthread_attr_init(&attr);
13984 if( status ) return status;
13986 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13988 #if defined( PTHREAD_CREATE_JOINABLE )
13989 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13991 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13994 #ifdef PTHREAD_CREATE_DETACHED
13996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13999 if( status ) return status;
14002 status = pthread_create( &t, &attr, task, NULL );
14003 if( status ) return status;
14005 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14007 /* give thread a chance to complete */
14008 /* it should remain joinable and hence detachable */
14011 status = pthread_detach( t );
14012 if( status ) return status;
14017 /* Draft 4 pthreads */
14018 status = pthread_create( &t, pthread_attr_default, task, NULL );
14019 if( status ) return status;
14022 /* give thread a chance to complete */
14023 /* it should remain joinable and hence detachable */
14026 status = pthread_detach( &t );
14027 if( status ) return status;
14031 #ifdef HAVE_LINUX_THREADS
14032 pthread_kill_other_threads_np();
14039 if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14041 ol_cv_pthread_lc_r=yes
14043 echo "configure: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14046 ol_cv_pthread_lc_r=no
14050 cat > conftest.$ac_ext <<EOF
14051 #line 14052 "configure"
14052 #include "confdefs.h"
14053 /* pthread test headers */
14054 #include <pthread.h>
14056 #define NULL (void*)0
14059 static void *task(p)
14062 return (void *) (p == NULL);
14066 int main(argc, argv)
14071 /* pthread test function */
14076 #ifdef HAVE_PTHREADS_FINAL
14077 /* Final pthreads */
14078 pthread_attr_t attr;
14080 status = pthread_attr_init(&attr);
14081 if( status ) return status;
14083 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14085 #if defined( PTHREAD_CREATE_JOINABLE )
14086 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14088 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14091 #ifdef PTHREAD_CREATE_DETACHED
14093 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14096 if( status ) return status;
14099 status = pthread_create( &t, &attr, task, NULL );
14100 if( status ) return status;
14102 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14104 /* give thread a chance to complete */
14105 /* it should remain joinable and hence detachable */
14108 status = pthread_detach( t );
14109 if( status ) return status;
14114 /* Draft 4 pthreads */
14115 status = pthread_create( &t, pthread_attr_default, task, NULL );
14116 if( status ) return status;
14119 /* give thread a chance to complete */
14120 /* it should remain joinable and hence detachable */
14123 status = pthread_detach( &t );
14124 if( status ) return status;
14128 #ifdef HAVE_LINUX_THREADS
14129 pthread_kill_other_threads_np();
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14139 ol_cv_pthread_lc_r=yes
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 ol_cv_pthread_lc_r=no
14155 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14157 if test $ol_cv_pthread_lc_r = yes ; then
14158 ol_link_pthreads="-lc_r"
14159 ol_link_threads=posix
14164 # Pthread try link: -threads (ol_cv_pthread_threads)
14165 if test "$ol_link_threads" = no ; then
14167 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14168 echo "configure:14169: checking for pthread link with -threads" >&5
14169 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14175 LIBS="-threads $LIBS"
14177 if test "$cross_compiling" = yes; then
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 /* pthread test headers */
14182 #include <pthread.h>
14184 #define NULL (void*)0
14187 static void *task(p)
14190 return (void *) (p == NULL);
14195 /* pthread test function */
14200 #ifdef HAVE_PTHREADS_FINAL
14201 /* Final pthreads */
14202 pthread_attr_t attr;
14204 status = pthread_attr_init(&attr);
14205 if( status ) return status;
14207 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14209 #if defined( PTHREAD_CREATE_JOINABLE )
14210 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14212 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14215 #ifdef PTHREAD_CREATE_DETACHED
14217 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14220 if( status ) return status;
14223 status = pthread_create( &t, &attr, task, NULL );
14224 if( status ) return status;
14226 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14228 /* give thread a chance to complete */
14229 /* it should remain joinable and hence detachable */
14232 status = pthread_detach( t );
14233 if( status ) return status;
14238 /* Draft 4 pthreads */
14239 status = pthread_create( &t, pthread_attr_default, task, NULL );
14240 if( status ) return status;
14243 /* give thread a chance to complete */
14244 /* it should remain joinable and hence detachable */
14247 status = pthread_detach( &t );
14248 if( status ) return status;
14252 #ifdef HAVE_LINUX_THREADS
14253 pthread_kill_other_threads_np();
14260 if { (eval echo configure:14261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14262 ol_cv_pthread_threads=yes
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14267 ol_cv_pthread_threads=no
14271 cat > conftest.$ac_ext <<EOF
14272 #line 14273 "configure"
14273 #include "confdefs.h"
14274 /* pthread test headers */
14275 #include <pthread.h>
14277 #define NULL (void*)0
14280 static void *task(p)
14283 return (void *) (p == NULL);
14287 int main(argc, argv)
14292 /* pthread test function */
14297 #ifdef HAVE_PTHREADS_FINAL
14298 /* Final pthreads */
14299 pthread_attr_t attr;
14301 status = pthread_attr_init(&attr);
14302 if( status ) return status;
14304 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14306 #if defined( PTHREAD_CREATE_JOINABLE )
14307 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14309 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14312 #ifdef PTHREAD_CREATE_DETACHED
14314 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14317 if( status ) return status;
14320 status = pthread_create( &t, &attr, task, NULL );
14321 if( status ) return status;
14323 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14325 /* give thread a chance to complete */
14326 /* it should remain joinable and hence detachable */
14329 status = pthread_detach( t );
14330 if( status ) return status;
14335 /* Draft 4 pthreads */
14336 status = pthread_create( &t, pthread_attr_default, task, NULL );
14337 if( status ) return status;
14340 /* give thread a chance to complete */
14341 /* it should remain joinable and hence detachable */
14344 status = pthread_detach( &t );
14345 if( status ) return status;
14349 #ifdef HAVE_LINUX_THREADS
14350 pthread_kill_other_threads_np();
14358 if { (eval echo configure:14359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14360 ol_cv_pthread_threads=yes
14362 echo "configure: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14365 ol_cv_pthread_threads=no
14376 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14378 if test $ol_cv_pthread_threads = yes ; then
14379 ol_link_pthreads="-threads"
14380 ol_link_threads=posix
14385 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14386 if test "$ol_link_threads" = no ; then
14387 # try -lpthreads -lmach -lexc -lc_r
14388 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14389 echo "configure:14390: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14390 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14391 echo $ac_n "(cached) $ac_c" 1>&6
14396 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14398 if test "$cross_compiling" = yes; then
14399 cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure"
14401 #include "confdefs.h"
14402 /* pthread test headers */
14403 #include <pthread.h>
14405 #define NULL (void*)0
14408 static void *task(p)
14411 return (void *) (p == NULL);
14416 /* pthread test function */
14421 #ifdef HAVE_PTHREADS_FINAL
14422 /* Final pthreads */
14423 pthread_attr_t attr;
14425 status = pthread_attr_init(&attr);
14426 if( status ) return status;
14428 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14430 #if defined( PTHREAD_CREATE_JOINABLE )
14431 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14433 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14436 #ifdef PTHREAD_CREATE_DETACHED
14438 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14441 if( status ) return status;
14444 status = pthread_create( &t, &attr, task, NULL );
14445 if( status ) return status;
14447 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14449 /* give thread a chance to complete */
14450 /* it should remain joinable and hence detachable */
14453 status = pthread_detach( t );
14454 if( status ) return status;
14459 /* Draft 4 pthreads */
14460 status = pthread_create( &t, pthread_attr_default, task, NULL );
14461 if( status ) return status;
14464 /* give thread a chance to complete */
14465 /* it should remain joinable and hence detachable */
14468 status = pthread_detach( &t );
14469 if( status ) return status;
14473 #ifdef HAVE_LINUX_THREADS
14474 pthread_kill_other_threads_np();
14481 if { (eval echo configure:14482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14483 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14485 echo "configure: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14488 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14492 cat > conftest.$ac_ext <<EOF
14493 #line 14494 "configure"
14494 #include "confdefs.h"
14495 /* pthread test headers */
14496 #include <pthread.h>
14498 #define NULL (void*)0
14501 static void *task(p)
14504 return (void *) (p == NULL);
14508 int main(argc, argv)
14513 /* pthread test function */
14518 #ifdef HAVE_PTHREADS_FINAL
14519 /* Final pthreads */
14520 pthread_attr_t attr;
14522 status = pthread_attr_init(&attr);
14523 if( status ) return status;
14525 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14527 #if defined( PTHREAD_CREATE_JOINABLE )
14528 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14530 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14533 #ifdef PTHREAD_CREATE_DETACHED
14535 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14538 if( status ) return status;
14541 status = pthread_create( &t, &attr, task, NULL );
14542 if( status ) return status;
14544 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14546 /* give thread a chance to complete */
14547 /* it should remain joinable and hence detachable */
14550 status = pthread_detach( t );
14551 if( status ) return status;
14556 /* Draft 4 pthreads */
14557 status = pthread_create( &t, pthread_attr_default, task, NULL );
14558 if( status ) return status;
14561 /* give thread a chance to complete */
14562 /* it should remain joinable and hence detachable */
14565 status = pthread_detach( &t );
14566 if( status ) return status;
14570 #ifdef HAVE_LINUX_THREADS
14571 pthread_kill_other_threads_np();
14579 if { (eval echo configure:14580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14581 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14586 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14597 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14599 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14600 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14601 ol_link_threads=posix
14605 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14606 if test "$ol_link_threads" = no ; then
14607 # try -lpthreads -lmach -lexc
14608 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14609 echo "configure:14610: checking for pthread link with -lpthreads -lmach -lexc" >&5
14610 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14611 echo $ac_n "(cached) $ac_c" 1>&6
14616 LIBS="-lpthreads -lmach -lexc $LIBS"
14618 if test "$cross_compiling" = yes; then
14619 cat > conftest.$ac_ext <<EOF
14620 #line 14621 "configure"
14621 #include "confdefs.h"
14622 /* pthread test headers */
14623 #include <pthread.h>
14625 #define NULL (void*)0
14628 static void *task(p)
14631 return (void *) (p == NULL);
14636 /* pthread test function */
14641 #ifdef HAVE_PTHREADS_FINAL
14642 /* Final pthreads */
14643 pthread_attr_t attr;
14645 status = pthread_attr_init(&attr);
14646 if( status ) return status;
14648 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14650 #if defined( PTHREAD_CREATE_JOINABLE )
14651 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14653 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14656 #ifdef PTHREAD_CREATE_DETACHED
14658 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14661 if( status ) return status;
14664 status = pthread_create( &t, &attr, task, NULL );
14665 if( status ) return status;
14667 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14669 /* give thread a chance to complete */
14670 /* it should remain joinable and hence detachable */
14673 status = pthread_detach( t );
14674 if( status ) return status;
14679 /* Draft 4 pthreads */
14680 status = pthread_create( &t, pthread_attr_default, task, NULL );
14681 if( status ) return status;
14684 /* give thread a chance to complete */
14685 /* it should remain joinable and hence detachable */
14688 status = pthread_detach( &t );
14689 if( status ) return status;
14693 #ifdef HAVE_LINUX_THREADS
14694 pthread_kill_other_threads_np();
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 ol_cv_pthread_lpthreads_lmach_lexc=yes
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14708 ol_cv_pthread_lpthreads_lmach_lexc=no
14712 cat > conftest.$ac_ext <<EOF
14713 #line 14714 "configure"
14714 #include "confdefs.h"
14715 /* pthread test headers */
14716 #include <pthread.h>
14718 #define NULL (void*)0
14721 static void *task(p)
14724 return (void *) (p == NULL);
14728 int main(argc, argv)
14733 /* pthread test function */
14738 #ifdef HAVE_PTHREADS_FINAL
14739 /* Final pthreads */
14740 pthread_attr_t attr;
14742 status = pthread_attr_init(&attr);
14743 if( status ) return status;
14745 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14747 #if defined( PTHREAD_CREATE_JOINABLE )
14748 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14750 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14753 #ifdef PTHREAD_CREATE_DETACHED
14755 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14758 if( status ) return status;
14761 status = pthread_create( &t, &attr, task, NULL );
14762 if( status ) return status;
14764 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14766 /* give thread a chance to complete */
14767 /* it should remain joinable and hence detachable */
14770 status = pthread_detach( t );
14771 if( status ) return status;
14776 /* Draft 4 pthreads */
14777 status = pthread_create( &t, pthread_attr_default, task, NULL );
14778 if( status ) return status;
14781 /* give thread a chance to complete */
14782 /* it should remain joinable and hence detachable */
14785 status = pthread_detach( &t );
14786 if( status ) return status;
14790 #ifdef HAVE_LINUX_THREADS
14791 pthread_kill_other_threads_np();
14799 if { (eval echo configure:14800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14801 ol_cv_pthread_lpthreads_lmach_lexc=yes
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14806 ol_cv_pthread_lpthreads_lmach_lexc=no
14817 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14819 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14820 ol_link_pthreads="-lpthreads -lmach -lexc"
14821 ol_link_threads=posix
14825 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14826 if test "$ol_link_threads" = no ; then
14827 # try -lpthreads -lexc
14828 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14829 echo "configure:14830: checking for pthread link with -lpthreads -lexc" >&5
14830 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14831 echo $ac_n "(cached) $ac_c" 1>&6
14836 LIBS="-lpthreads -lexc $LIBS"
14838 if test "$cross_compiling" = yes; then
14839 cat > conftest.$ac_ext <<EOF
14840 #line 14841 "configure"
14841 #include "confdefs.h"
14842 /* pthread test headers */
14843 #include <pthread.h>
14845 #define NULL (void*)0
14848 static void *task(p)
14851 return (void *) (p == NULL);
14856 /* pthread test function */
14861 #ifdef HAVE_PTHREADS_FINAL
14862 /* Final pthreads */
14863 pthread_attr_t attr;
14865 status = pthread_attr_init(&attr);
14866 if( status ) return status;
14868 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14870 #if defined( PTHREAD_CREATE_JOINABLE )
14871 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14873 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14876 #ifdef PTHREAD_CREATE_DETACHED
14878 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14881 if( status ) return status;
14884 status = pthread_create( &t, &attr, task, NULL );
14885 if( status ) return status;
14887 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14889 /* give thread a chance to complete */
14890 /* it should remain joinable and hence detachable */
14893 status = pthread_detach( t );
14894 if( status ) return status;
14899 /* Draft 4 pthreads */
14900 status = pthread_create( &t, pthread_attr_default, task, NULL );
14901 if( status ) return status;
14904 /* give thread a chance to complete */
14905 /* it should remain joinable and hence detachable */
14908 status = pthread_detach( &t );
14909 if( status ) return status;
14913 #ifdef HAVE_LINUX_THREADS
14914 pthread_kill_other_threads_np();
14921 if { (eval echo configure:14922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14923 ol_cv_pthread_lpthreads_lexc=yes
14925 echo "configure: failed program was:" >&5
14926 cat conftest.$ac_ext >&5
14928 ol_cv_pthread_lpthreads_lexc=no
14932 cat > conftest.$ac_ext <<EOF
14933 #line 14934 "configure"
14934 #include "confdefs.h"
14935 /* pthread test headers */
14936 #include <pthread.h>
14938 #define NULL (void*)0
14941 static void *task(p)
14944 return (void *) (p == NULL);
14948 int main(argc, argv)
14953 /* pthread test function */
14958 #ifdef HAVE_PTHREADS_FINAL
14959 /* Final pthreads */
14960 pthread_attr_t attr;
14962 status = pthread_attr_init(&attr);
14963 if( status ) return status;
14965 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14967 #if defined( PTHREAD_CREATE_JOINABLE )
14968 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14970 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14973 #ifdef PTHREAD_CREATE_DETACHED
14975 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14978 if( status ) return status;
14981 status = pthread_create( &t, &attr, task, NULL );
14982 if( status ) return status;
14984 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14986 /* give thread a chance to complete */
14987 /* it should remain joinable and hence detachable */
14990 status = pthread_detach( t );
14991 if( status ) return status;
14996 /* Draft 4 pthreads */
14997 status = pthread_create( &t, pthread_attr_default, task, NULL );
14998 if( status ) return status;
15001 /* give thread a chance to complete */
15002 /* it should remain joinable and hence detachable */
15005 status = pthread_detach( &t );
15006 if( status ) return status;
15010 #ifdef HAVE_LINUX_THREADS
15011 pthread_kill_other_threads_np();
15019 if { (eval echo configure:15020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15021 ol_cv_pthread_lpthreads_lexc=yes
15023 echo "configure: failed program was:" >&5
15024 cat conftest.$ac_ext >&5
15026 ol_cv_pthread_lpthreads_lexc=no
15037 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15039 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15040 ol_link_pthreads="-lpthreads -lexc"
15041 ol_link_threads=posix
15046 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15047 if test "$ol_link_threads" = no ; then
15049 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15050 echo "configure:15051: checking for pthread link with -lpthreads" >&5
15051 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15052 echo $ac_n "(cached) $ac_c" 1>&6
15057 LIBS="-lpthreads $LIBS"
15059 if test "$cross_compiling" = yes; then
15060 cat > conftest.$ac_ext <<EOF
15061 #line 15062 "configure"
15062 #include "confdefs.h"
15063 /* pthread test headers */
15064 #include <pthread.h>
15066 #define NULL (void*)0
15069 static void *task(p)
15072 return (void *) (p == NULL);
15077 /* pthread test function */
15082 #ifdef HAVE_PTHREADS_FINAL
15083 /* Final pthreads */
15084 pthread_attr_t attr;
15086 status = pthread_attr_init(&attr);
15087 if( status ) return status;
15089 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15091 #if defined( PTHREAD_CREATE_JOINABLE )
15092 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15094 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15097 #ifdef PTHREAD_CREATE_DETACHED
15099 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15102 if( status ) return status;
15105 status = pthread_create( &t, &attr, task, NULL );
15106 if( status ) return status;
15108 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15110 /* give thread a chance to complete */
15111 /* it should remain joinable and hence detachable */
15114 status = pthread_detach( t );
15115 if( status ) return status;
15120 /* Draft 4 pthreads */
15121 status = pthread_create( &t, pthread_attr_default, task, NULL );
15122 if( status ) return status;
15125 /* give thread a chance to complete */
15126 /* it should remain joinable and hence detachable */
15129 status = pthread_detach( &t );
15130 if( status ) return status;
15134 #ifdef HAVE_LINUX_THREADS
15135 pthread_kill_other_threads_np();
15142 if { (eval echo configure:15143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15144 ol_cv_pthread_lib_lpthreads=yes
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15149 ol_cv_pthread_lib_lpthreads=no
15153 cat > conftest.$ac_ext <<EOF
15154 #line 15155 "configure"
15155 #include "confdefs.h"
15156 /* pthread test headers */
15157 #include <pthread.h>
15159 #define NULL (void*)0
15162 static void *task(p)
15165 return (void *) (p == NULL);
15169 int main(argc, argv)
15174 /* pthread test function */
15179 #ifdef HAVE_PTHREADS_FINAL
15180 /* Final pthreads */
15181 pthread_attr_t attr;
15183 status = pthread_attr_init(&attr);
15184 if( status ) return status;
15186 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15188 #if defined( PTHREAD_CREATE_JOINABLE )
15189 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15191 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15194 #ifdef PTHREAD_CREATE_DETACHED
15196 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15199 if( status ) return status;
15202 status = pthread_create( &t, &attr, task, NULL );
15203 if( status ) return status;
15205 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15207 /* give thread a chance to complete */
15208 /* it should remain joinable and hence detachable */
15211 status = pthread_detach( t );
15212 if( status ) return status;
15217 /* Draft 4 pthreads */
15218 status = pthread_create( &t, pthread_attr_default, task, NULL );
15219 if( status ) return status;
15222 /* give thread a chance to complete */
15223 /* it should remain joinable and hence detachable */
15226 status = pthread_detach( &t );
15227 if( status ) return status;
15231 #ifdef HAVE_LINUX_THREADS
15232 pthread_kill_other_threads_np();
15240 if { (eval echo configure:15241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15242 ol_cv_pthread_lib_lpthreads=yes
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15247 ol_cv_pthread_lib_lpthreads=no
15258 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15260 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15261 ol_link_pthreads="-lpthreads"
15262 ol_link_threads=posix
15267 if test $ol_link_threads != no ; then
15268 cat >> confdefs.h <<\EOF
15269 #define HAVE_PTHREADS 1
15273 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15275 save_CPPFLAGS="$CPPFLAGS"
15277 LIBS="$LTHREAD_LIBS $LIBS"
15279 for ac_func in sched_yield pthread_yield
15281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15282 echo "configure:15283: checking for $ac_func" >&5
15283 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15284 echo $ac_n "(cached) $ac_c" 1>&6
15286 cat > conftest.$ac_ext <<EOF
15287 #line 15288 "configure"
15288 #include "confdefs.h"
15289 /* System header to define __stub macros and hopefully few prototypes,
15290 which can conflict with char $ac_func(); below. */
15291 #include <assert.h>
15292 /* Override any gcc2 internal prototype to avoid an error. */
15293 /* We use char because int might match the return type of a gcc2
15294 builtin and then its argument prototype would still apply. */
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15311 if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15313 eval "ac_cv_func_$ac_func=yes"
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15318 eval "ac_cv_func_$ac_func=no"
15323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15324 echo "$ac_t""yes" 1>&6
15325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15326 cat >> confdefs.h <<EOF
15327 #define $ac_tr_func 1
15331 echo "$ac_t""no" 1>&6
15336 if test $ac_cv_func_sched_yield = no -a \
15337 $ac_cv_func_pthread_yield = no ; then
15338 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15339 echo "configure:15340: checking for sched_yield in -lrt" >&5
15340 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15341 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15342 echo $ac_n "(cached) $ac_c" 1>&6
15344 ac_save_LIBS="$LIBS"
15346 cat > conftest.$ac_ext <<EOF
15347 #line 15348 "configure"
15348 #include "confdefs.h"
15349 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15352 char sched_yield();
15358 if { (eval echo configure:15359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15360 eval "ac_cv_lib_$ac_lib_var=yes"
15362 echo "configure: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15365 eval "ac_cv_lib_$ac_lib_var=no"
15368 LIBS="$ac_save_LIBS"
15371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15372 echo "$ac_t""yes" 1>&6
15373 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15374 cat >> confdefs.h <<\EOF
15375 #define HAVE_SCHED_YIELD 1
15378 ac_cv_func_sched_yield=yes
15380 echo "$ac_t""no" 1>&6
15381 ac_cv_func_sched_yield=no
15385 if test $ac_cv_func_sched_yield = no -a \
15386 $ac_cv_func_pthread_yield = no ; then
15387 for ac_func in thr_yield
15389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15390 echo "configure:15391: checking for $ac_func" >&5
15391 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char $ac_func(); below. */
15399 #include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 eval "ac_cv_func_$ac_func=yes"
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15426 eval "ac_cv_func_$ac_func=no"
15431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15432 echo "$ac_t""yes" 1>&6
15433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15434 cat >> confdefs.h <<EOF
15435 #define $ac_tr_func 1
15439 echo "$ac_t""no" 1>&6
15444 if test $ac_cv_func_sched_yield = no -a \
15445 $ac_cv_func_pthread_yield = no -a \
15446 "$ac_cv_func_thr_yield" = no ; then
15447 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15450 for ac_func in pthread_kill pthread_rwlock_destroy
15452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15453 echo "configure:15454: checking for $ac_func" >&5
15454 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15455 echo $ac_n "(cached) $ac_c" 1>&6
15457 cat > conftest.$ac_ext <<EOF
15458 #line 15459 "configure"
15459 #include "confdefs.h"
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char $ac_func(); below. */
15462 #include <assert.h>
15463 /* Override any gcc2 internal prototype to avoid an error. */
15464 /* We use char because int might match the return type of a gcc2
15465 builtin and then its argument prototype would still apply. */
15471 /* The GNU C library defines this for functions which it implements
15472 to always fail with ENOSYS. Some functions are actually named
15473 something starting with __ and the normal name is an alias. */
15474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15482 if { (eval echo configure:15483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15484 eval "ac_cv_func_$ac_func=yes"
15486 echo "configure: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15489 eval "ac_cv_func_$ac_func=no"
15494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15495 echo "$ac_t""yes" 1>&6
15496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15497 cat >> confdefs.h <<EOF
15498 #define $ac_tr_func 1
15502 echo "$ac_t""no" 1>&6
15507 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15508 echo "configure:15509: checking for pthread_detach with <pthread.h>" >&5
15509 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15510 echo $ac_n "(cached) $ac_c" 1>&6
15513 cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15517 #include <pthread.h>
15519 #define NULL (void*)0
15523 pthread_detach(NULL);
15526 if { (eval echo configure:15527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15528 ol_cv_func_pthread_detach=yes
15530 echo "configure: failed program was:" >&5
15531 cat conftest.$ac_ext >&5
15533 ol_cv_func_pthread_detach=no
15539 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15541 if test $ol_cv_func_pthread_detach = no ; then
15542 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15545 cat >> confdefs.h <<\EOF
15546 #define HAVE_PTHREAD_DETACH 1
15551 pthread_setconcurrency \
15552 pthread_getconcurrency \
15553 thr_setconcurrency \
15554 thr_getconcurrency \
15557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15558 echo "configure:15559: checking for $ac_func" >&5
15559 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15560 echo $ac_n "(cached) $ac_c" 1>&6
15562 cat > conftest.$ac_ext <<EOF
15563 #line 15564 "configure"
15564 #include "confdefs.h"
15565 /* System header to define __stub macros and hopefully few prototypes,
15566 which can conflict with char $ac_func(); below. */
15567 #include <assert.h>
15568 /* Override any gcc2 internal prototype to avoid an error. */
15569 /* We use char because int might match the return type of a gcc2
15570 builtin and then its argument prototype would still apply. */
15576 /* The GNU C library defines this for functions which it implements
15577 to always fail with ENOSYS. Some functions are actually named
15578 something starting with __ and the normal name is an alias. */
15579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15587 if { (eval echo configure:15588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15589 eval "ac_cv_func_$ac_func=yes"
15591 echo "configure: failed program was:" >&5
15592 cat conftest.$ac_ext >&5
15594 eval "ac_cv_func_$ac_func=no"
15599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15600 echo "$ac_t""yes" 1>&6
15601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15602 cat >> confdefs.h <<EOF
15603 #define $ac_tr_func 1
15607 echo "$ac_t""no" 1>&6
15613 for ac_func in pthread_kill_other_threads_np
15615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15616 echo "configure:15617: checking for $ac_func" >&5
15617 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15618 echo $ac_n "(cached) $ac_c" 1>&6
15620 cat > conftest.$ac_ext <<EOF
15621 #line 15622 "configure"
15622 #include "confdefs.h"
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func(); below. */
15625 #include <assert.h>
15626 /* Override any gcc2 internal prototype to avoid an error. */
15627 /* We use char because int might match the return type of a gcc2
15628 builtin and then its argument prototype would still apply. */
15634 /* The GNU C library defines this for functions which it implements
15635 to always fail with ENOSYS. Some functions are actually named
15636 something starting with __ and the normal name is an alias. */
15637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15645 if { (eval echo configure:15646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15647 eval "ac_cv_func_$ac_func=yes"
15649 echo "configure: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15652 eval "ac_cv_func_$ac_func=no"
15657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15658 echo "$ac_t""yes" 1>&6
15659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15660 cat >> confdefs.h <<EOF
15661 #define $ac_tr_func 1
15665 echo "$ac_t""no" 1>&6
15669 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15670 echo "configure:15671: checking for LinuxThreads implementation" >&5
15671 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15674 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15677 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15682 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15683 echo "configure:15684: checking for LinuxThreads consistency" >&5
15684 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15685 echo $ac_n "(cached) $ac_c" 1>&6
15688 if test $ol_cv_header_linux_threads = yes -a \
15689 $ol_cv_sys_linux_threads = yes; then
15690 ol_cv_linux_threads=yes
15691 elif test $ol_cv_header_linux_threads = no -a \
15692 $ol_cv_sys_linux_threads = no; then
15693 ol_cv_linux_threads=no
15695 ol_cv_linux_threads=error
15700 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15703 if test $ol_cv_linux_threads = error; then
15704 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15707 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15708 echo "configure:15709: checking if pthread_create() works" >&5
15709 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15710 echo $ac_n "(cached) $ac_c" 1>&6
15713 if test "$cross_compiling" = yes; then
15714 ol_cv_pthread_create_works=yes
15716 cat > conftest.$ac_ext <<EOF
15717 #line 15718 "configure"
15718 #include "confdefs.h"
15719 /* pthread test headers */
15720 #include <pthread.h>
15722 #define NULL (void*)0
15725 static void *task(p)
15728 return (void *) (p == NULL);
15732 int main(argc, argv)
15737 /* pthread test function */
15742 #ifdef HAVE_PTHREADS_FINAL
15743 /* Final pthreads */
15744 pthread_attr_t attr;
15746 status = pthread_attr_init(&attr);
15747 if( status ) return status;
15749 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15751 #if defined( PTHREAD_CREATE_JOINABLE )
15752 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15754 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15757 #ifdef PTHREAD_CREATE_DETACHED
15759 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15762 if( status ) return status;
15765 status = pthread_create( &t, &attr, task, NULL );
15766 if( status ) return status;
15768 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15770 /* give thread a chance to complete */
15771 /* it should remain joinable and hence detachable */
15774 status = pthread_detach( t );
15775 if( status ) return status;
15780 /* Draft 4 pthreads */
15781 status = pthread_create( &t, pthread_attr_default, task, NULL );
15782 if( status ) return status;
15785 /* give thread a chance to complete */
15786 /* it should remain joinable and hence detachable */
15789 status = pthread_detach( &t );
15790 if( status ) return status;
15794 #ifdef HAVE_LINUX_THREADS
15795 pthread_kill_other_threads_np();
15803 if { (eval echo configure:15804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15805 ol_cv_pthread_create_works=yes
15807 echo "configure: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15810 ol_cv_pthread_create_works=no
15817 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15819 if test $ol_cv_pthread_create_works = no ; then
15820 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15823 if test $ol_with_yielding_select = auto ; then
15824 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15825 echo "configure:15826: checking if select yields when using pthreads" >&5
15826 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15827 echo $ac_n "(cached) $ac_c" 1>&6
15830 if test "$cross_compiling" = yes; then
15831 ol_cv_pthread_select_yields=cross
15833 cat > conftest.$ac_ext <<EOF
15834 #line 15835 "configure"
15835 #include "confdefs.h"
15837 #include <sys/types.h>
15838 #include <sys/time.h>
15839 #include <unistd.h>
15840 #include <pthread.h>
15842 #define NULL (void*) 0
15845 static int fildes[2];
15847 static void *task(p)
15859 FD_SET(fildes[0], &rfds);
15861 /* we're not interested in any fds */
15862 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15869 exit(0); /* if we exit here, the select blocked the whole process */
15872 int main(argc, argv)
15878 /* create a pipe to select */
15879 if(pipe(&fildes[0])) {
15884 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15885 (void) pthread_setconcurrency(2);
15887 #ifdef HAVE_THR_SETCONCURRENCY
15888 /* Set Solaris LWP concurrency to 2 */
15889 thr_setconcurrency(2);
15893 #if HAVE_PTHREADS_D4
15894 pthread_create(&t, pthread_attr_default, task, NULL);
15896 pthread_create(&t, NULL, task, NULL);
15899 #if HAVE_SCHED_YIELD
15900 sched_yield(); /* make sure task runs first */
15902 #ifdef HAVE_PTHREAD_YIELD
15903 pthread_yield(); /* make sure task runs first */
15910 if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15912 ol_cv_pthread_select_yields=no
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15917 ol_cv_pthread_select_yields=yes
15924 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15926 if test $ol_cv_pthread_select_yields = cross ; then
15927 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15930 if test $ol_cv_pthread_select_yields = yes ; then
15931 ol_with_yielding_select=yes
15935 CPPFLAGS="$save_CPPFLAGS"
15938 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15942 if test $ol_with_threads = posix ; then
15943 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15947 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15948 -o $ol_with_threads = mach ; then
15950 for ac_hdr in mach/cthreads.h cthreads.h
15952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15954 echo "configure:15955: checking for $ac_hdr" >&5
15955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15956 echo $ac_n "(cached) $ac_c" 1>&6
15958 cat > conftest.$ac_ext <<EOF
15959 #line 15960 "configure"
15960 #include "confdefs.h"
15963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15964 { (eval echo configure:15965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15966 if test -z "$ac_err"; then
15968 eval "ac_cv_header_$ac_safe=yes"
15971 echo "configure: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15974 eval "ac_cv_header_$ac_safe=no"
15978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15979 echo "$ac_t""yes" 1>&6
15980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15981 cat >> confdefs.h <<EOF
15982 #define $ac_tr_hdr 1
15986 echo "$ac_t""no" 1>&6
15990 if test $ac_cv_header_mach_cthreads_h = yes ; then
15991 ol_with_threads=found
15993 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15994 echo "configure:15995: checking for cthread_fork" >&5
15995 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15996 echo $ac_n "(cached) $ac_c" 1>&6
15998 cat > conftest.$ac_ext <<EOF
15999 #line 16000 "configure"
16000 #include "confdefs.h"
16001 /* System header to define __stub macros and hopefully few prototypes,
16002 which can conflict with char cthread_fork(); below. */
16003 #include <assert.h>
16004 /* Override any gcc2 internal prototype to avoid an error. */
16005 /* We use char because int might match the return type of a gcc2
16006 builtin and then its argument prototype would still apply. */
16007 char cthread_fork();
16012 /* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
16015 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16023 if { (eval echo configure:16024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16025 eval "ac_cv_func_cthread_fork=yes"
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16030 eval "ac_cv_func_cthread_fork=no"
16035 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16036 echo "$ac_t""yes" 1>&6
16037 ol_link_threads=yes
16039 echo "$ac_t""no" 1>&6
16043 if test $ol_link_threads = no ; then
16044 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16045 echo "configure:16046: checking for cthread_fork with -all_load" >&5
16046 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16047 echo $ac_n "(cached) $ac_c" 1>&6
16051 LIBS="-all_load $LIBS"
16052 cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055 #include <mach/cthreads.h>
16058 cthread_fork((void *)0, (void *)0);
16062 if { (eval echo configure:16063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16064 ol_cv_cthread_all_load=yes
16066 echo "configure: failed program was:" >&5
16067 cat conftest.$ac_ext >&5
16069 ol_cv_cthread_all_load=no
16076 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16078 if test $ol_cv_cthread_all_load = yes ; then
16079 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16080 ol_link_threads=mach
16081 ol_with_threads=found
16085 elif test $ac_cv_header_cthreads_h = yes ; then
16087 ol_with_threads=found
16090 LIBS="$LIBS -lthreads"
16091 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16092 echo "configure:16093: checking for cthread_fork" >&5
16093 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16096 cat > conftest.$ac_ext <<EOF
16097 #line 16098 "configure"
16098 #include "confdefs.h"
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char cthread_fork(); below. */
16101 #include <assert.h>
16102 /* Override any gcc2 internal prototype to avoid an error. */
16103 /* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16105 char cthread_fork();
16110 /* The GNU C library defines this for functions which it implements
16111 to always fail with ENOSYS. Some functions are actually named
16112 something starting with __ and the normal name is an alias. */
16113 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16121 if { (eval echo configure:16122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16123 eval "ac_cv_func_cthread_fork=yes"
16125 echo "configure: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16128 eval "ac_cv_func_cthread_fork=no"
16133 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16134 echo "$ac_t""yes" 1>&6
16135 ol_link_threads=yes
16137 echo "$ac_t""no" 1>&6
16142 if test $ol_link_threads = yes ; then
16143 LTHREAD_LIBS="-lthreads"
16144 ol_link_threads=mach
16145 ol_with_threads=found
16147 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16150 elif test $ol_with_threads = mach ; then
16151 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16154 if test $ol_link_threads = mach ; then
16155 cat >> confdefs.h <<\EOF
16156 #define HAVE_MACH_CTHREADS 1
16159 elif test $ol_with_threads = found ; then
16160 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16164 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16165 -o $ol_with_threads = pth ; then
16167 for ac_hdr in pth.h
16169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16171 echo "configure:16172: checking for $ac_hdr" >&5
16172 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16181 { (eval echo configure:16182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16183 if test -z "$ac_err"; then
16185 eval "ac_cv_header_$ac_safe=yes"
16188 echo "configure: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16191 eval "ac_cv_header_$ac_safe=no"
16195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16196 echo "$ac_t""yes" 1>&6
16197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16198 cat >> confdefs.h <<EOF
16199 #define $ac_tr_hdr 1
16203 echo "$ac_t""no" 1>&6
16208 if test $ac_cv_header_pth_h = yes ; then
16209 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16210 echo "configure:16211: checking for pth_version in -lpth" >&5
16211 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16213 echo $ac_n "(cached) $ac_c" 1>&6
16215 ac_save_LIBS="$LIBS"
16217 cat > conftest.$ac_ext <<EOF
16218 #line 16219 "configure"
16219 #include "confdefs.h"
16220 /* Override any gcc2 internal prototype to avoid an error. */
16221 /* We use char because int might match the return type of a gcc2
16222 builtin and then its argument prototype would still apply. */
16223 char pth_version();
16229 if { (eval echo configure:16230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16231 eval "ac_cv_lib_$ac_lib_var=yes"
16233 echo "configure: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16236 eval "ac_cv_lib_$ac_lib_var=no"
16239 LIBS="$ac_save_LIBS"
16242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16243 echo "$ac_t""yes" 1>&6
16246 echo "$ac_t""no" 1>&6
16251 if test $have_pth = yes ; then
16252 cat >> confdefs.h <<\EOF
16253 #define HAVE_GNU_PTH 1
16256 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16257 ol_link_threads=pth
16258 ol_with_threads=found
16260 if test $ol_with_yielding_select = auto ; then
16261 ol_with_yielding_select=yes
16267 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16268 -o $ol_with_threads = lwp ; then
16270 for ac_hdr in thread.h synch.h
16272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16274 echo "configure:16275: checking for $ac_hdr" >&5
16275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16278 cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16284 { (eval echo configure:16285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16286 if test -z "$ac_err"; then
16288 eval "ac_cv_header_$ac_safe=yes"
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 eval "ac_cv_header_$ac_safe=no"
16298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16299 echo "$ac_t""yes" 1>&6
16300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16301 cat >> confdefs.h <<EOF
16302 #define $ac_tr_hdr 1
16306 echo "$ac_t""no" 1>&6
16310 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16311 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16312 echo "configure:16313: checking for thr_create in -lthread" >&5
16313 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16315 echo $ac_n "(cached) $ac_c" 1>&6
16317 ac_save_LIBS="$LIBS"
16318 LIBS="-lthread $LIBS"
16319 cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16322 /* Override any gcc2 internal prototype to avoid an error. */
16323 /* We use char because int might match the return type of a gcc2
16324 builtin and then its argument prototype would still apply. */
16331 if { (eval echo configure:16332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16333 eval "ac_cv_lib_$ac_lib_var=yes"
16335 echo "configure: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16338 eval "ac_cv_lib_$ac_lib_var=no"
16341 LIBS="$ac_save_LIBS"
16344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16345 echo "$ac_t""yes" 1>&6
16348 echo "$ac_t""no" 1>&6
16353 if test $have_thr = yes ; then
16354 cat >> confdefs.h <<\EOF
16358 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16359 ol_link_threads=thr
16361 if test $ol_with_yielding_select = auto ; then
16362 ol_with_yielding_select=yes
16366 thr_setconcurrency \
16367 thr_getconcurrency \
16370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16371 echo "configure:16372: checking for $ac_func" >&5
16372 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16375 cat > conftest.$ac_ext <<EOF
16376 #line 16377 "configure"
16377 #include "confdefs.h"
16378 /* System header to define __stub macros and hopefully few prototypes,
16379 which can conflict with char $ac_func(); below. */
16380 #include <assert.h>
16381 /* Override any gcc2 internal prototype to avoid an error. */
16382 /* We use char because int might match the return type of a gcc2
16383 builtin and then its argument prototype would still apply. */
16389 /* The GNU C library defines this for functions which it implements
16390 to always fail with ENOSYS. Some functions are actually named
16391 something starting with __ and the normal name is an alias. */
16392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16400 if { (eval echo configure:16401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16402 eval "ac_cv_func_$ac_func=yes"
16404 echo "configure: failed program was:" >&5
16405 cat conftest.$ac_ext >&5
16407 eval "ac_cv_func_$ac_func=no"
16412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16413 echo "$ac_t""yes" 1>&6
16414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16415 cat >> confdefs.h <<EOF
16416 #define $ac_tr_func 1
16420 echo "$ac_t""no" 1>&6
16427 for ac_hdr in lwp/lwp.h
16429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16431 echo "configure:16432: checking for $ac_hdr" >&5
16432 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16433 echo $ac_n "(cached) $ac_c" 1>&6
16435 cat > conftest.$ac_ext <<EOF
16436 #line 16437 "configure"
16437 #include "confdefs.h"
16440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16441 { (eval echo configure:16442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16443 if test -z "$ac_err"; then
16445 eval "ac_cv_header_$ac_safe=yes"
16448 echo "configure: failed program was:" >&5
16449 cat conftest.$ac_ext >&5
16451 eval "ac_cv_header_$ac_safe=no"
16455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16456 echo "$ac_t""yes" 1>&6
16457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16458 cat >> confdefs.h <<EOF
16459 #define $ac_tr_hdr 1
16463 echo "$ac_t""no" 1>&6
16467 if test $ac_cv_header_lwp_lwp_h = yes ; then
16468 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16469 echo "configure:16470: checking for lwp_create in -llwp" >&5
16470 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16472 echo $ac_n "(cached) $ac_c" 1>&6
16474 ac_save_LIBS="$LIBS"
16476 cat > conftest.$ac_ext <<EOF
16477 #line 16478 "configure"
16478 #include "confdefs.h"
16479 /* Override any gcc2 internal prototype to avoid an error. */
16480 /* We use char because int might match the return type of a gcc2
16481 builtin and then its argument prototype would still apply. */
16488 if { (eval echo configure:16489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16490 eval "ac_cv_lib_$ac_lib_var=yes"
16492 echo "configure: failed program was:" >&5
16493 cat conftest.$ac_ext >&5
16495 eval "ac_cv_lib_$ac_lib_var=no"
16498 LIBS="$ac_save_LIBS"
16501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16502 echo "$ac_t""yes" 1>&6
16505 echo "$ac_t""no" 1>&6
16510 if test $have_lwp = yes ; then
16511 cat >> confdefs.h <<\EOF
16515 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16516 ol_link_threads=lwp
16518 if test $ol_with_yielding_select = auto ; then
16519 ol_with_yielding_select=no
16525 if test $ol_with_yielding_select = yes ; then
16526 cat >> confdefs.h <<\EOF
16527 #define HAVE_YIELDING_SELECT 1
16532 if test $ol_with_threads = manual ; then
16533 ol_link_threads=yes
16535 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16537 for ac_hdr in pthread.h sched.h
16539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16541 echo "configure:16542: checking for $ac_hdr" >&5
16542 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16543 echo $ac_n "(cached) $ac_c" 1>&6
16545 cat > conftest.$ac_ext <<EOF
16546 #line 16547 "configure"
16547 #include "confdefs.h"
16550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16551 { (eval echo configure:16552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16553 if test -z "$ac_err"; then
16555 eval "ac_cv_header_$ac_safe=yes"
16558 echo "configure: failed program was:" >&5
16559 cat conftest.$ac_ext >&5
16561 eval "ac_cv_header_$ac_safe=no"
16565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16566 echo "$ac_t""yes" 1>&6
16567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16568 cat >> confdefs.h <<EOF
16569 #define $ac_tr_hdr 1
16573 echo "$ac_t""no" 1>&6
16577 for ac_func in sched_yield pthread_yield
16579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16580 echo "configure:16581: checking for $ac_func" >&5
16581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16582 echo $ac_n "(cached) $ac_c" 1>&6
16584 cat > conftest.$ac_ext <<EOF
16585 #line 16586 "configure"
16586 #include "confdefs.h"
16587 /* System header to define __stub macros and hopefully few prototypes,
16588 which can conflict with char $ac_func(); below. */
16589 #include <assert.h>
16590 /* Override any gcc2 internal prototype to avoid an error. */
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16598 /* The GNU C library defines this for functions which it implements
16599 to always fail with ENOSYS. Some functions are actually named
16600 something starting with __ and the normal name is an alias. */
16601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16609 if { (eval echo configure:16610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16611 eval "ac_cv_func_$ac_func=yes"
16613 echo "configure: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16616 eval "ac_cv_func_$ac_func=no"
16621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16622 echo "$ac_t""yes" 1>&6
16623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16624 cat >> confdefs.h <<EOF
16625 #define $ac_tr_func 1
16629 echo "$ac_t""no" 1>&6
16634 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16635 echo "configure:16636: checking for LinuxThreads pthread.h" >&5
16636 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16637 echo $ac_n "(cached) $ac_c" 1>&6
16639 cat > conftest.$ac_ext <<EOF
16640 #line 16641 "configure"
16641 #include "confdefs.h"
16642 #include <pthread.h>
16644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16645 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16647 ol_cv_header_linux_threads=yes
16650 ol_cv_header_linux_threads=no
16657 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16658 if test $ol_cv_header_linux_threads = yes; then
16659 cat >> confdefs.h <<\EOF
16660 #define HAVE_LINUX_THREADS 1
16666 for ac_hdr in mach/cthreads.h
16668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16670 echo "configure:16671: checking for $ac_hdr" >&5
16671 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16672 echo $ac_n "(cached) $ac_c" 1>&6
16674 cat > conftest.$ac_ext <<EOF
16675 #line 16676 "configure"
16676 #include "confdefs.h"
16679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16680 { (eval echo configure:16681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16682 if test -z "$ac_err"; then
16684 eval "ac_cv_header_$ac_safe=yes"
16687 echo "configure: failed program was:" >&5
16688 cat conftest.$ac_ext >&5
16690 eval "ac_cv_header_$ac_safe=no"
16694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16695 echo "$ac_t""yes" 1>&6
16696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16697 cat >> confdefs.h <<EOF
16698 #define $ac_tr_hdr 1
16702 echo "$ac_t""no" 1>&6
16706 for ac_hdr in lwp/lwp.h
16708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16710 echo "configure:16711: checking for $ac_hdr" >&5
16711 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16712 echo $ac_n "(cached) $ac_c" 1>&6
16714 cat > conftest.$ac_ext <<EOF
16715 #line 16716 "configure"
16716 #include "confdefs.h"
16719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16720 { (eval echo configure:16721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16722 if test -z "$ac_err"; then
16724 eval "ac_cv_header_$ac_safe=yes"
16727 echo "configure: failed program was:" >&5
16728 cat conftest.$ac_ext >&5
16730 eval "ac_cv_header_$ac_safe=no"
16734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16735 echo "$ac_t""yes" 1>&6
16736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16737 cat >> confdefs.h <<EOF
16738 #define $ac_tr_hdr 1
16742 echo "$ac_t""no" 1>&6
16746 for ac_hdr in thread.h synch.h
16748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16750 echo "configure:16751: checking for $ac_hdr" >&5
16751 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16752 echo $ac_n "(cached) $ac_c" 1>&6
16754 cat > conftest.$ac_ext <<EOF
16755 #line 16756 "configure"
16756 #include "confdefs.h"
16759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16760 { (eval echo configure:16761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16762 if test -z "$ac_err"; then
16764 eval "ac_cv_header_$ac_safe=yes"
16767 echo "configure: failed program was:" >&5
16768 cat conftest.$ac_ext >&5
16770 eval "ac_cv_header_$ac_safe=no"
16774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16775 echo "$ac_t""yes" 1>&6
16776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16777 cat >> confdefs.h <<EOF
16778 #define $ac_tr_hdr 1
16782 echo "$ac_t""no" 1>&6
16788 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16789 cat >> confdefs.h <<\EOF
16790 #define REENTRANT 1
16793 cat >> confdefs.h <<\EOF
16794 #define _REENTRANT 1
16797 cat >> confdefs.h <<\EOF
16798 #define THREAD_SAFE 1
16801 cat >> confdefs.h <<\EOF
16802 #define _THREAD_SAFE 1
16805 cat >> confdefs.h <<\EOF
16806 #define THREADSAFE 1
16809 cat >> confdefs.h <<\EOF
16810 #define _THREADSAFE 1
16813 cat >> confdefs.h <<\EOF
16814 #define _SGI_MP_SOURCE 1
16818 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16819 echo "configure:16820: checking for thread specific errno" >&5
16820 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16821 echo $ac_n "(cached) $ac_c" 1>&6
16824 cat > conftest.$ac_ext <<EOF
16825 #line 16826 "configure"
16826 #include "confdefs.h"
16832 if { (eval echo configure:16833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16834 ol_cv_errno_thread_specific=yes
16836 echo "configure: failed program was:" >&5
16837 cat conftest.$ac_ext >&5
16839 ol_cv_errno_thread_specific=no
16845 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16847 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16848 echo "configure:16849: checking for thread specific h_errno" >&5
16849 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16850 echo $ac_n "(cached) $ac_c" 1>&6
16853 cat > conftest.$ac_ext <<EOF
16854 #line 16855 "configure"
16855 #include "confdefs.h"
16861 if { (eval echo configure:16862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16863 ol_cv_h_errno_thread_specific=yes
16865 echo "configure: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16868 ol_cv_h_errno_thread_specific=no
16874 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16876 if test $ol_cv_errno_thread_specific != yes \
16877 -o $ol_cv_h_errno_thread_specific != yes ; then
16878 LIBS="$LTHREAD_LIBS $LIBS"
16884 if test $ol_link_threads = no ; then
16885 if test $ol_with_threads = yes ; then
16886 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16889 if test $ol_with_threads = auto ; then
16890 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16894 cat >> confdefs.h <<\EOF
16895 #define NO_THREADS 1
16901 if test $ol_link_threads != no ; then
16902 cat >> confdefs.h <<\EOF
16903 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16910 if test $ol_with_ldbm_api = auto \
16911 -o $ol_with_ldbm_api = berkeley \
16912 -o $ol_with_ldbm_api = bcompat ; then
16914 if test $ol_with_ldbm_api = bcompat; then \
16915 for ac_hdr in db_185.h db.h
16917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16919 echo "configure:16920: checking for $ac_hdr" >&5
16920 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16923 cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16929 { (eval echo configure:16930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16931 if test -z "$ac_err"; then
16933 eval "ac_cv_header_$ac_safe=yes"
16936 echo "configure: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16939 eval "ac_cv_header_$ac_safe=no"
16943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16944 echo "$ac_t""yes" 1>&6
16945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16946 cat >> confdefs.h <<EOF
16947 #define $ac_tr_hdr 1
16951 echo "$ac_t""no" 1>&6
16955 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16956 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16957 echo "configure:16958: checking if Berkeley DB header compatibility" >&5
16958 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16959 echo $ac_n "(cached) $ac_c" 1>&6
16962 cat > conftest.$ac_ext <<EOF
16963 #line 16964 "configure"
16964 #include "confdefs.h"
16967 # include <db_185.h>
16972 /* this check could be improved */
16973 #ifndef DB_VERSION_MAJOR
16974 # define DB_VERSION_MAJOR 1
16977 #if DB_VERSION_MAJOR == 1
16982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16983 egrep "__db_version_1" >/dev/null 2>&1; then
16985 ol_cv_header_db1=yes
16988 ol_cv_header_db1=no
16994 echo "$ac_t""$ol_cv_header_db1" 1>&6
16996 if test $ol_cv_header_db1 = yes ; then
16998 if test $ol_cv_lib_db = no ; then
16999 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17000 echo "configure:17001: checking for Berkeley DB link (default)" >&5
17001 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17002 echo $ac_n "(cached) $ac_c" 1>&6
17007 LIBS="$ol_DB_LIB $LIBS"
17009 cat > conftest.$ac_ext <<EOF
17010 #line 17011 "configure"
17011 #include "confdefs.h"
17013 #ifdef HAVE_DB_185_H
17014 # include <db_185.h>
17019 #ifndef DB_VERSION_MAJOR
17020 # define DB_VERSION_MAJOR 1
17024 #define NULL ((void*)0)
17029 #if DB_VERSION_MAJOR > 1
17032 int major, minor, patch;
17034 version = db_version( &major, &minor, &patch );
17036 if( major != DB_VERSION_MAJOR ||
17037 minor < DB_VERSION_MINOR )
17039 printf("Berkeley DB version mismatch\n"
17040 "\texpected: %s\n\tgot: %s\n",
17041 DB_VERSION_STRING, version);
17047 #if DB_VERSION_MAJOR > 2
17048 db_env_create( NULL, 0 );
17049 #elif DB_VERSION_MAJOR > 1
17050 db_appexit( NULL );
17052 (void) dbopen( NULL, 0, 0, 0, NULL);
17057 if { (eval echo configure:17058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17061 echo "configure: failed program was:" >&5
17062 cat conftest.$ac_ext >&5
17072 echo "$ac_t""$ol_cv_db_none" 1>&6
17074 if test $ol_cv_db_none = yes ; then
17079 if test $ol_cv_lib_db = no ; then
17080 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17081 echo "configure:17082: checking for Berkeley DB link (-ldb)" >&5
17082 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17083 echo $ac_n "(cached) $ac_c" 1>&6
17088 LIBS="$ol_DB_LIB $LIBS"
17090 cat > conftest.$ac_ext <<EOF
17091 #line 17092 "configure"
17092 #include "confdefs.h"
17094 #ifdef HAVE_DB_185_H
17095 # include <db_185.h>
17100 #ifndef DB_VERSION_MAJOR
17101 # define DB_VERSION_MAJOR 1
17105 #define NULL ((void*)0)
17110 #if DB_VERSION_MAJOR > 1
17113 int major, minor, patch;
17115 version = db_version( &major, &minor, &patch );
17117 if( major != DB_VERSION_MAJOR ||
17118 minor < DB_VERSION_MINOR )
17120 printf("Berkeley DB version mismatch\n"
17121 "\texpected: %s\n\tgot: %s\n",
17122 DB_VERSION_STRING, version);
17128 #if DB_VERSION_MAJOR > 2
17129 db_env_create( NULL, 0 );
17130 #elif DB_VERSION_MAJOR > 1
17131 db_appexit( NULL );
17133 (void) dbopen( NULL, 0, 0, 0, NULL);
17138 if { (eval echo configure:17139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17142 echo "configure: failed program was:" >&5
17143 cat conftest.$ac_ext >&5
17153 echo "$ac_t""$ol_cv_db_db" 1>&6
17155 if test $ol_cv_db_db = yes ; then
17160 if test $ol_cv_lib_db = no ; then
17161 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17162 echo "configure:17163: checking for Berkeley DB link (-ldb4)" >&5
17163 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17164 echo $ac_n "(cached) $ac_c" 1>&6
17169 LIBS="$ol_DB_LIB $LIBS"
17171 cat > conftest.$ac_ext <<EOF
17172 #line 17173 "configure"
17173 #include "confdefs.h"
17175 #ifdef HAVE_DB_185_H
17176 # include <db_185.h>
17181 #ifndef DB_VERSION_MAJOR
17182 # define DB_VERSION_MAJOR 1
17186 #define NULL ((void*)0)
17191 #if DB_VERSION_MAJOR > 1
17194 int major, minor, patch;
17196 version = db_version( &major, &minor, &patch );
17198 if( major != DB_VERSION_MAJOR ||
17199 minor < DB_VERSION_MINOR )
17201 printf("Berkeley DB version mismatch\n"
17202 "\texpected: %s\n\tgot: %s\n",
17203 DB_VERSION_STRING, version);
17209 #if DB_VERSION_MAJOR > 2
17210 db_env_create( NULL, 0 );
17211 #elif DB_VERSION_MAJOR > 1
17212 db_appexit( NULL );
17214 (void) dbopen( NULL, 0, 0, 0, NULL);
17219 if { (eval echo configure:17220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17223 echo "configure: failed program was:" >&5
17224 cat conftest.$ac_ext >&5
17234 echo "$ac_t""$ol_cv_db_db4" 1>&6
17236 if test $ol_cv_db_db4 = yes ; then
17241 if test $ol_cv_lib_db = no ; then
17242 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17243 echo "configure:17244: checking for Berkeley DB link (-ldb3)" >&5
17244 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17245 echo $ac_n "(cached) $ac_c" 1>&6
17250 LIBS="$ol_DB_LIB $LIBS"
17252 cat > conftest.$ac_ext <<EOF
17253 #line 17254 "configure"
17254 #include "confdefs.h"
17256 #ifdef HAVE_DB_185_H
17257 # include <db_185.h>
17262 #ifndef DB_VERSION_MAJOR
17263 # define DB_VERSION_MAJOR 1
17267 #define NULL ((void*)0)
17272 #if DB_VERSION_MAJOR > 1
17275 int major, minor, patch;
17277 version = db_version( &major, &minor, &patch );
17279 if( major != DB_VERSION_MAJOR ||
17280 minor < DB_VERSION_MINOR )
17282 printf("Berkeley DB version mismatch\n"
17283 "\texpected: %s\n\tgot: %s\n",
17284 DB_VERSION_STRING, version);
17290 #if DB_VERSION_MAJOR > 2
17291 db_env_create( NULL, 0 );
17292 #elif DB_VERSION_MAJOR > 1
17293 db_appexit( NULL );
17295 (void) dbopen( NULL, 0, 0, 0, NULL);
17300 if { (eval echo configure:17301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17304 echo "configure: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17315 echo "$ac_t""$ol_cv_db_db3" 1>&6
17317 if test $ol_cv_db_db3 = yes ; then
17322 if test $ol_cv_lib_db = no ; then
17323 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17324 echo "configure:17325: checking for Berkeley DB link (-ldb2)" >&5
17325 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17326 echo $ac_n "(cached) $ac_c" 1>&6
17331 LIBS="$ol_DB_LIB $LIBS"
17333 cat > conftest.$ac_ext <<EOF
17334 #line 17335 "configure"
17335 #include "confdefs.h"
17337 #ifdef HAVE_DB_185_H
17338 # include <db_185.h>
17343 #ifndef DB_VERSION_MAJOR
17344 # define DB_VERSION_MAJOR 1
17348 #define NULL ((void*)0)
17353 #if DB_VERSION_MAJOR > 1
17356 int major, minor, patch;
17358 version = db_version( &major, &minor, &patch );
17360 if( major != DB_VERSION_MAJOR ||
17361 minor < DB_VERSION_MINOR )
17363 printf("Berkeley DB version mismatch\n"
17364 "\texpected: %s\n\tgot: %s\n",
17365 DB_VERSION_STRING, version);
17371 #if DB_VERSION_MAJOR > 2
17372 db_env_create( NULL, 0 );
17373 #elif DB_VERSION_MAJOR > 1
17374 db_appexit( NULL );
17376 (void) dbopen( NULL, 0, 0, 0, NULL);
17381 if { (eval echo configure:17382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17385 echo "configure: failed program was:" >&5
17386 cat conftest.$ac_ext >&5
17396 echo "$ac_t""$ol_cv_db_db2" 1>&6
17398 if test $ol_cv_db_db2 = yes ; then
17403 if test $ol_cv_lib_db = no ; then
17404 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17405 echo "configure:17406: checking for Berkeley DB link (-ldb1)" >&5
17406 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17407 echo $ac_n "(cached) $ac_c" 1>&6
17412 LIBS="$ol_DB_LIB $LIBS"
17414 cat > conftest.$ac_ext <<EOF
17415 #line 17416 "configure"
17416 #include "confdefs.h"
17418 #ifdef HAVE_DB_185_H
17419 # include <db_185.h>
17424 #ifndef DB_VERSION_MAJOR
17425 # define DB_VERSION_MAJOR 1
17429 #define NULL ((void*)0)
17434 #if DB_VERSION_MAJOR > 1
17437 int major, minor, patch;
17439 version = db_version( &major, &minor, &patch );
17441 if( major != DB_VERSION_MAJOR ||
17442 minor < DB_VERSION_MINOR )
17444 printf("Berkeley DB version mismatch\n"
17445 "\texpected: %s\n\tgot: %s\n",
17446 DB_VERSION_STRING, version);
17452 #if DB_VERSION_MAJOR > 2
17453 db_env_create( NULL, 0 );
17454 #elif DB_VERSION_MAJOR > 1
17455 db_appexit( NULL );
17457 (void) dbopen( NULL, 0, 0, 0, NULL);
17462 if { (eval echo configure:17463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17466 echo "configure: failed program was:" >&5
17467 cat conftest.$ac_ext >&5
17477 echo "$ac_t""$ol_cv_db_db1" 1>&6
17479 if test $ol_cv_db_db1 = yes ; then
17485 if test "$ol_cv_lib_db" != no ; then
17486 ol_cv_berkeley_db=yes
17492 ol_cv_berkeley_db=no
17495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17497 echo "configure:17498: checking for $ac_hdr" >&5
17498 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17499 echo $ac_n "(cached) $ac_c" 1>&6
17501 cat > conftest.$ac_ext <<EOF
17502 #line 17503 "configure"
17503 #include "confdefs.h"
17506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17507 { (eval echo configure:17508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17509 if test -z "$ac_err"; then
17511 eval "ac_cv_header_$ac_safe=yes"
17514 echo "configure: failed program was:" >&5
17515 cat conftest.$ac_ext >&5
17517 eval "ac_cv_header_$ac_safe=no"
17521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17522 echo "$ac_t""yes" 1>&6
17523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17524 cat >> confdefs.h <<EOF
17525 #define $ac_tr_hdr 1
17529 echo "$ac_t""no" 1>&6
17533 if test $ac_cv_header_db_h = yes; then
17535 if test $ol_cv_lib_db = no ; then
17536 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17537 echo "configure:17538: checking for Berkeley DB link (default)" >&5
17538 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17539 echo $ac_n "(cached) $ac_c" 1>&6
17544 LIBS="$ol_DB_LIB $LIBS"
17546 cat > conftest.$ac_ext <<EOF
17547 #line 17548 "configure"
17548 #include "confdefs.h"
17550 #ifdef HAVE_DB_185_H
17551 # include <db_185.h>
17556 #ifndef DB_VERSION_MAJOR
17557 # define DB_VERSION_MAJOR 1
17561 #define NULL ((void*)0)
17566 #if DB_VERSION_MAJOR > 1
17569 int major, minor, patch;
17571 version = db_version( &major, &minor, &patch );
17573 if( major != DB_VERSION_MAJOR ||
17574 minor < DB_VERSION_MINOR )
17576 printf("Berkeley DB version mismatch\n"
17577 "\texpected: %s\n\tgot: %s\n",
17578 DB_VERSION_STRING, version);
17584 #if DB_VERSION_MAJOR > 2
17585 db_env_create( NULL, 0 );
17586 #elif DB_VERSION_MAJOR > 1
17587 db_appexit( NULL );
17589 (void) dbopen( NULL, 0, 0, 0, NULL);
17594 if { (eval echo configure:17595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17598 echo "configure: failed program was:" >&5
17599 cat conftest.$ac_ext >&5
17609 echo "$ac_t""$ol_cv_db_none" 1>&6
17611 if test $ol_cv_db_none = yes ; then
17616 if test $ol_cv_lib_db = no ; then
17617 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17618 echo "configure:17619: checking for Berkeley DB link (-ldb)" >&5
17619 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17620 echo $ac_n "(cached) $ac_c" 1>&6
17625 LIBS="$ol_DB_LIB $LIBS"
17627 cat > conftest.$ac_ext <<EOF
17628 #line 17629 "configure"
17629 #include "confdefs.h"
17631 #ifdef HAVE_DB_185_H
17632 # include <db_185.h>
17637 #ifndef DB_VERSION_MAJOR
17638 # define DB_VERSION_MAJOR 1
17642 #define NULL ((void*)0)
17647 #if DB_VERSION_MAJOR > 1
17650 int major, minor, patch;
17652 version = db_version( &major, &minor, &patch );
17654 if( major != DB_VERSION_MAJOR ||
17655 minor < DB_VERSION_MINOR )
17657 printf("Berkeley DB version mismatch\n"
17658 "\texpected: %s\n\tgot: %s\n",
17659 DB_VERSION_STRING, version);
17665 #if DB_VERSION_MAJOR > 2
17666 db_env_create( NULL, 0 );
17667 #elif DB_VERSION_MAJOR > 1
17668 db_appexit( NULL );
17670 (void) dbopen( NULL, 0, 0, 0, NULL);
17675 if { (eval echo configure:17676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17679 echo "configure: failed program was:" >&5
17680 cat conftest.$ac_ext >&5
17690 echo "$ac_t""$ol_cv_db_db" 1>&6
17692 if test $ol_cv_db_db = yes ; then
17697 if test $ol_cv_lib_db = no ; then
17698 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17699 echo "configure:17700: checking for Berkeley DB link (-ldb4)" >&5
17700 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17701 echo $ac_n "(cached) $ac_c" 1>&6
17706 LIBS="$ol_DB_LIB $LIBS"
17708 cat > conftest.$ac_ext <<EOF
17709 #line 17710 "configure"
17710 #include "confdefs.h"
17712 #ifdef HAVE_DB_185_H
17713 # include <db_185.h>
17718 #ifndef DB_VERSION_MAJOR
17719 # define DB_VERSION_MAJOR 1
17723 #define NULL ((void*)0)
17728 #if DB_VERSION_MAJOR > 1
17731 int major, minor, patch;
17733 version = db_version( &major, &minor, &patch );
17735 if( major != DB_VERSION_MAJOR ||
17736 minor < DB_VERSION_MINOR )
17738 printf("Berkeley DB version mismatch\n"
17739 "\texpected: %s\n\tgot: %s\n",
17740 DB_VERSION_STRING, version);
17746 #if DB_VERSION_MAJOR > 2
17747 db_env_create( NULL, 0 );
17748 #elif DB_VERSION_MAJOR > 1
17749 db_appexit( NULL );
17751 (void) dbopen( NULL, 0, 0, 0, NULL);
17756 if { (eval echo configure:17757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17760 echo "configure: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17771 echo "$ac_t""$ol_cv_db_db4" 1>&6
17773 if test $ol_cv_db_db4 = yes ; then
17778 if test $ol_cv_lib_db = no ; then
17779 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17780 echo "configure:17781: checking for Berkeley DB link (-ldb3)" >&5
17781 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17782 echo $ac_n "(cached) $ac_c" 1>&6
17787 LIBS="$ol_DB_LIB $LIBS"
17789 cat > conftest.$ac_ext <<EOF
17790 #line 17791 "configure"
17791 #include "confdefs.h"
17793 #ifdef HAVE_DB_185_H
17794 # include <db_185.h>
17799 #ifndef DB_VERSION_MAJOR
17800 # define DB_VERSION_MAJOR 1
17804 #define NULL ((void*)0)
17809 #if DB_VERSION_MAJOR > 1
17812 int major, minor, patch;
17814 version = db_version( &major, &minor, &patch );
17816 if( major != DB_VERSION_MAJOR ||
17817 minor < DB_VERSION_MINOR )
17819 printf("Berkeley DB version mismatch\n"
17820 "\texpected: %s\n\tgot: %s\n",
17821 DB_VERSION_STRING, version);
17827 #if DB_VERSION_MAJOR > 2
17828 db_env_create( NULL, 0 );
17829 #elif DB_VERSION_MAJOR > 1
17830 db_appexit( NULL );
17832 (void) dbopen( NULL, 0, 0, 0, NULL);
17837 if { (eval echo configure:17838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17841 echo "configure: failed program was:" >&5
17842 cat conftest.$ac_ext >&5
17852 echo "$ac_t""$ol_cv_db_db3" 1>&6
17854 if test $ol_cv_db_db3 = yes ; then
17859 if test $ol_cv_lib_db = no ; then
17860 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17861 echo "configure:17862: checking for Berkeley DB link (-ldb2)" >&5
17862 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17863 echo $ac_n "(cached) $ac_c" 1>&6
17868 LIBS="$ol_DB_LIB $LIBS"
17870 cat > conftest.$ac_ext <<EOF
17871 #line 17872 "configure"
17872 #include "confdefs.h"
17874 #ifdef HAVE_DB_185_H
17875 # include <db_185.h>
17880 #ifndef DB_VERSION_MAJOR
17881 # define DB_VERSION_MAJOR 1
17885 #define NULL ((void*)0)
17890 #if DB_VERSION_MAJOR > 1
17893 int major, minor, patch;
17895 version = db_version( &major, &minor, &patch );
17897 if( major != DB_VERSION_MAJOR ||
17898 minor < DB_VERSION_MINOR )
17900 printf("Berkeley DB version mismatch\n"
17901 "\texpected: %s\n\tgot: %s\n",
17902 DB_VERSION_STRING, version);
17908 #if DB_VERSION_MAJOR > 2
17909 db_env_create( NULL, 0 );
17910 #elif DB_VERSION_MAJOR > 1
17911 db_appexit( NULL );
17913 (void) dbopen( NULL, 0, 0, 0, NULL);
17918 if { (eval echo configure:17919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17922 echo "configure: failed program was:" >&5
17923 cat conftest.$ac_ext >&5
17933 echo "$ac_t""$ol_cv_db_db2" 1>&6
17935 if test $ol_cv_db_db2 = yes ; then
17940 if test $ol_cv_lib_db = no ; then
17941 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17942 echo "configure:17943: checking for Berkeley DB link (-ldb1)" >&5
17943 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17944 echo $ac_n "(cached) $ac_c" 1>&6
17949 LIBS="$ol_DB_LIB $LIBS"
17951 cat > conftest.$ac_ext <<EOF
17952 #line 17953 "configure"
17953 #include "confdefs.h"
17955 #ifdef HAVE_DB_185_H
17956 # include <db_185.h>
17961 #ifndef DB_VERSION_MAJOR
17962 # define DB_VERSION_MAJOR 1
17966 #define NULL ((void*)0)
17971 #if DB_VERSION_MAJOR > 1
17974 int major, minor, patch;
17976 version = db_version( &major, &minor, &patch );
17978 if( major != DB_VERSION_MAJOR ||
17979 minor < DB_VERSION_MINOR )
17981 printf("Berkeley DB version mismatch\n"
17982 "\texpected: %s\n\tgot: %s\n",
17983 DB_VERSION_STRING, version);
17989 #if DB_VERSION_MAJOR > 2
17990 db_env_create( NULL, 0 );
17991 #elif DB_VERSION_MAJOR > 1
17992 db_appexit( NULL );
17994 (void) dbopen( NULL, 0, 0, 0, NULL);
17999 if { (eval echo configure:18000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18014 echo "$ac_t""$ol_cv_db_db1" 1>&6
18016 if test $ol_cv_db_db1 = yes ; then
18022 if test "$ol_cv_lib_db" != no ; then
18023 ol_cv_berkeley_db=yes
18024 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18025 echo "configure:18026: checking for Berkeley DB thread support" >&5
18026 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18027 echo $ac_n "(cached) $ac_c" 1>&6
18031 if test $ol_cv_lib_db != yes ; then
18032 LIBS="$ol_cv_lib_db"
18035 if test "$cross_compiling" = yes; then
18036 ol_cv_berkeley_db_thread=cross
18038 cat > conftest.$ac_ext <<EOF
18039 #line 18040 "configure"
18040 #include "confdefs.h"
18042 #ifdef HAVE_DB_185_H
18048 #define NULL ((void *)0)
18053 u_int32_t flags = DB_CREATE |
18059 #if DB_VERSION_MAJOR > 2
18060 DB_ENV *env = NULL;
18062 rc = db_env_create( &env, 0 );
18064 flags |= DB_INIT_MPOOL;
18065 #ifdef DB_MPOOL_PRIVATE
18066 flags |= DB_MPOOL_PRIVATE;
18070 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18074 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18075 rc = env->open( env, NULL, flags, 0 );
18077 rc = env->open( env, NULL, NULL, flags, 0 );
18081 rc = env->close( env, 0 );
18085 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18091 memset( &env, '\0', sizeof(env) );
18093 rc = db_appinit( NULL, NULL, &env, flags );
18096 db_appexit( &env );
18099 unlink("__db_mpool.share");
18100 unlink("__db_lock.share");
18106 if { (eval echo configure:18107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18108 ol_cv_berkeley_db_thread=yes
18110 echo "configure: failed program was:" >&5
18111 cat conftest.$ac_ext >&5
18113 ol_cv_berkeley_db_thread=no
18121 if test $ol_cv_berkeley_db_thread != no ; then
18122 cat >> confdefs.h <<\EOF
18123 #define HAVE_BERKELEY_DB_THREAD 1
18130 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18136 if test $ol_cv_berkeley_db != no ; then
18137 cat >> confdefs.h <<\EOF
18138 #define HAVE_BERKELEY_DB 1
18142 ol_link_ldbm=berkeley
18143 ol_with_ldbm_api=berkeley
18145 if test $ol_with_ldbm_type = hash ; then
18146 cat >> confdefs.h <<\EOF
18147 #define LDBM_USE_DBHASH 1
18151 cat >> confdefs.h <<\EOF
18152 #define LDBM_USE_DBBTREE 1
18157 if test $ol_cv_lib_db != yes ; then
18158 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18163 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18164 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18165 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18166 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18167 echo "configure:18168: checking Berkeley DB version for BDB backend" >&5
18168 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18169 echo $ac_n "(cached) $ac_c" 1>&6
18172 cat > conftest.$ac_ext <<EOF
18173 #line 18174 "configure"
18174 #include "confdefs.h"
18178 /* this check could be improved */
18179 #ifndef DB_VERSION_MAJOR
18180 # define DB_VERSION_MAJOR 1
18183 /* require 4.0 or later */
18184 #if DB_VERSION_MAJOR >= 4
18185 __db_version_compat
18189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18190 egrep "__db_version_compat" >/dev/null 2>&1; then
18192 ol_cv_bdb_compat=yes
18195 ol_cv_bdb_compat=no
18201 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18204 if test $ol_cv_bdb_compat = yes ; then
18206 elif test $ol_enable_bdb = yes ; then
18207 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18213 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18214 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18215 ol_with_ldbm_api=none
18218 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18219 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18220 echo "configure:18221: checking for MDBM library" >&5
18221 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18222 echo $ac_n "(cached) $ac_c" 1>&6
18225 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18226 echo "configure:18227: checking for mdbm_set_chain" >&5
18227 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18228 echo $ac_n "(cached) $ac_c" 1>&6
18230 cat > conftest.$ac_ext <<EOF
18231 #line 18232 "configure"
18232 #include "confdefs.h"
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char mdbm_set_chain(); below. */
18235 #include <assert.h>
18236 /* Override any gcc2 internal prototype to avoid an error. */
18237 /* We use char because int might match the return type of a gcc2
18238 builtin and then its argument prototype would still apply. */
18239 char mdbm_set_chain();
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18250 f = mdbm_set_chain;
18255 if { (eval echo configure:18256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18257 eval "ac_cv_func_mdbm_set_chain=yes"
18259 echo "configure: failed program was:" >&5
18260 cat conftest.$ac_ext >&5
18262 eval "ac_cv_func_mdbm_set_chain=no"
18267 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18268 echo "$ac_t""yes" 1>&6
18271 echo "$ac_t""no" 1>&6
18273 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18274 echo "configure:18275: checking for mdbm_set_chain in -lmdbm" >&5
18275 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18277 echo $ac_n "(cached) $ac_c" 1>&6
18279 ac_save_LIBS="$LIBS"
18280 LIBS="-lmdbm $LIBS"
18281 cat > conftest.$ac_ext <<EOF
18282 #line 18283 "configure"
18283 #include "confdefs.h"
18284 /* Override any gcc2 internal prototype to avoid an error. */
18285 /* We use char because int might match the return type of a gcc2
18286 builtin and then its argument prototype would still apply. */
18287 char mdbm_set_chain();
18293 if { (eval echo configure:18294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18295 eval "ac_cv_lib_$ac_lib_var=yes"
18297 echo "configure: failed program was:" >&5
18298 cat conftest.$ac_ext >&5
18300 eval "ac_cv_lib_$ac_lib_var=no"
18303 LIBS="$ac_save_LIBS"
18306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18307 echo "$ac_t""yes" 1>&6
18308 ol_cv_lib_mdbm=-lmdbm
18310 echo "$ac_t""no" 1>&6
18321 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18324 for ac_hdr in mdbm.h
18326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18328 echo "configure:18329: checking for $ac_hdr" >&5
18329 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18330 echo $ac_n "(cached) $ac_c" 1>&6
18332 cat > conftest.$ac_ext <<EOF
18333 #line 18334 "configure"
18334 #include "confdefs.h"
18337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18338 { (eval echo configure:18339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18340 if test -z "$ac_err"; then
18342 eval "ac_cv_header_$ac_safe=yes"
18345 echo "configure: failed program was:" >&5
18346 cat conftest.$ac_ext >&5
18348 eval "ac_cv_header_$ac_safe=no"
18352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18353 echo "$ac_t""yes" 1>&6
18354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18355 cat >> confdefs.h <<EOF
18356 #define $ac_tr_hdr 1
18360 echo "$ac_t""no" 1>&6
18364 echo $ac_n "checking for db""... $ac_c" 1>&6
18365 echo "configure:18366: checking for db" >&5
18366 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18367 echo $ac_n "(cached) $ac_c" 1>&6
18370 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18378 echo "$ac_t""$ol_cv_mdbm" 1>&6
18379 if test $ol_cv_mdbm = yes ; then
18380 cat >> confdefs.h <<\EOF
18381 #define HAVE_MDBM 1
18387 if test $ol_cv_mdbm = yes ; then
18389 ol_with_ldbm_api=mdbm
18390 if test $ol_cv_lib_mdbm != yes ; then
18391 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18396 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18397 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18398 echo "configure:18399: checking for GDBM library" >&5
18399 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
18403 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18404 echo "configure:18405: checking for gdbm_open" >&5
18405 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18406 echo $ac_n "(cached) $ac_c" 1>&6
18408 cat > conftest.$ac_ext <<EOF
18409 #line 18410 "configure"
18410 #include "confdefs.h"
18411 /* System header to define __stub macros and hopefully few prototypes,
18412 which can conflict with char gdbm_open(); below. */
18413 #include <assert.h>
18414 /* Override any gcc2 internal prototype to avoid an error. */
18415 /* We use char because int might match the return type of a gcc2
18416 builtin and then its argument prototype would still apply. */
18422 /* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18433 if { (eval echo configure:18434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18435 eval "ac_cv_func_gdbm_open=yes"
18437 echo "configure: failed program was:" >&5
18438 cat conftest.$ac_ext >&5
18440 eval "ac_cv_func_gdbm_open=no"
18445 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18446 echo "$ac_t""yes" 1>&6
18449 echo "$ac_t""no" 1>&6
18451 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18452 echo "configure:18453: checking for gdbm_open in -lgdbm" >&5
18453 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18455 echo $ac_n "(cached) $ac_c" 1>&6
18457 ac_save_LIBS="$LIBS"
18458 LIBS="-lgdbm $LIBS"
18459 cat > conftest.$ac_ext <<EOF
18460 #line 18461 "configure"
18461 #include "confdefs.h"
18462 /* Override any gcc2 internal prototype to avoid an error. */
18463 /* We use char because int might match the return type of a gcc2
18464 builtin and then its argument prototype would still apply. */
18471 if { (eval echo configure:18472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18473 eval "ac_cv_lib_$ac_lib_var=yes"
18475 echo "configure: failed program was:" >&5
18476 cat conftest.$ac_ext >&5
18478 eval "ac_cv_lib_$ac_lib_var=no"
18481 LIBS="$ac_save_LIBS"
18484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18485 echo "$ac_t""yes" 1>&6
18486 ol_cv_lib_gdbm=-lgdbm
18488 echo "$ac_t""no" 1>&6
18499 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18502 for ac_hdr in gdbm.h
18504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18506 echo "configure:18507: checking for $ac_hdr" >&5
18507 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18508 echo $ac_n "(cached) $ac_c" 1>&6
18510 cat > conftest.$ac_ext <<EOF
18511 #line 18512 "configure"
18512 #include "confdefs.h"
18515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18516 { (eval echo configure:18517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18518 if test -z "$ac_err"; then
18520 eval "ac_cv_header_$ac_safe=yes"
18523 echo "configure: failed program was:" >&5
18524 cat conftest.$ac_ext >&5
18526 eval "ac_cv_header_$ac_safe=no"
18530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18531 echo "$ac_t""yes" 1>&6
18532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18533 cat >> confdefs.h <<EOF
18534 #define $ac_tr_hdr 1
18538 echo "$ac_t""no" 1>&6
18542 echo $ac_n "checking for db""... $ac_c" 1>&6
18543 echo "configure:18544: checking for db" >&5
18544 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18545 echo $ac_n "(cached) $ac_c" 1>&6
18548 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18556 echo "$ac_t""$ol_cv_gdbm" 1>&6
18557 if test $ol_cv_gdbm = yes ; then
18558 cat >> confdefs.h <<\EOF
18559 #define HAVE_GDBM 1
18565 if test $ol_cv_gdbm = yes ; then
18567 ol_with_ldbm_api=gdbm
18569 if test $ol_cv_lib_gdbm != yes ; then
18570 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18575 if test $ol_with_ldbm_api = ndbm ; then
18576 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18577 echo "configure:18578: checking for NDBM library" >&5
18578 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18579 echo $ac_n "(cached) $ac_c" 1>&6
18582 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18583 echo "configure:18584: checking for dbm_open" >&5
18584 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18585 echo $ac_n "(cached) $ac_c" 1>&6
18587 cat > conftest.$ac_ext <<EOF
18588 #line 18589 "configure"
18589 #include "confdefs.h"
18590 /* System header to define __stub macros and hopefully few prototypes,
18591 which can conflict with char dbm_open(); below. */
18592 #include <assert.h>
18593 /* Override any gcc2 internal prototype to avoid an error. */
18594 /* We use char because int might match the return type of a gcc2
18595 builtin and then its argument prototype would still apply. */
18601 /* The GNU C library defines this for functions which it implements
18602 to always fail with ENOSYS. Some functions are actually named
18603 something starting with __ and the normal name is an alias. */
18604 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18612 if { (eval echo configure:18613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18614 eval "ac_cv_func_dbm_open=yes"
18616 echo "configure: failed program was:" >&5
18617 cat conftest.$ac_ext >&5
18619 eval "ac_cv_func_dbm_open=no"
18624 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18625 echo "$ac_t""yes" 1>&6
18628 echo "$ac_t""no" 1>&6
18630 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18631 echo "configure:18632: checking for dbm_open in -lndbm" >&5
18632 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18633 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18634 echo $ac_n "(cached) $ac_c" 1>&6
18636 ac_save_LIBS="$LIBS"
18637 LIBS="-lndbm $LIBS"
18638 cat > conftest.$ac_ext <<EOF
18639 #line 18640 "configure"
18640 #include "confdefs.h"
18641 /* Override any gcc2 internal prototype to avoid an error. */
18642 /* We use char because int might match the return type of a gcc2
18643 builtin and then its argument prototype would still apply. */
18650 if { (eval echo configure:18651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18652 eval "ac_cv_lib_$ac_lib_var=yes"
18654 echo "configure: failed program was:" >&5
18655 cat conftest.$ac_ext >&5
18657 eval "ac_cv_lib_$ac_lib_var=no"
18660 LIBS="$ac_save_LIBS"
18663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18664 echo "$ac_t""yes" 1>&6
18665 ol_cv_lib_ndbm=-lndbm
18667 echo "$ac_t""no" 1>&6
18669 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18670 echo "configure:18671: checking for dbm_open in -ldbm" >&5
18671 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18672 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18673 echo $ac_n "(cached) $ac_c" 1>&6
18675 ac_save_LIBS="$LIBS"
18677 cat > conftest.$ac_ext <<EOF
18678 #line 18679 "configure"
18679 #include "confdefs.h"
18680 /* Override any gcc2 internal prototype to avoid an error. */
18681 /* We use char because int might match the return type of a gcc2
18682 builtin and then its argument prototype would still apply. */
18689 if { (eval echo configure:18690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18691 eval "ac_cv_lib_$ac_lib_var=yes"
18693 echo "configure: failed program was:" >&5
18694 cat conftest.$ac_ext >&5
18696 eval "ac_cv_lib_$ac_lib_var=no"
18699 LIBS="$ac_save_LIBS"
18702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18703 echo "$ac_t""yes" 1>&6
18704 ol_cv_lib_ndbm=-ldbm
18706 echo "$ac_t""no" 1>&6
18719 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18722 for ac_hdr in ndbm.h
18724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18726 echo "configure:18727: checking for $ac_hdr" >&5
18727 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18728 echo $ac_n "(cached) $ac_c" 1>&6
18730 cat > conftest.$ac_ext <<EOF
18731 #line 18732 "configure"
18732 #include "confdefs.h"
18735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18736 { (eval echo configure:18737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18738 if test -z "$ac_err"; then
18740 eval "ac_cv_header_$ac_safe=yes"
18743 echo "configure: failed program was:" >&5
18744 cat conftest.$ac_ext >&5
18746 eval "ac_cv_header_$ac_safe=no"
18750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18751 echo "$ac_t""yes" 1>&6
18752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18753 cat >> confdefs.h <<EOF
18754 #define $ac_tr_hdr 1
18758 echo "$ac_t""no" 1>&6
18762 echo $ac_n "checking for db""... $ac_c" 1>&6
18763 echo "configure:18764: checking for db" >&5
18764 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18765 echo $ac_n "(cached) $ac_c" 1>&6
18768 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18776 echo "$ac_t""$ol_cv_ndbm" 1>&6
18777 if test $ol_cv_ndbm = yes ; then
18778 cat >> confdefs.h <<\EOF
18779 #define HAVE_NDBM 1
18785 if test $ol_cv_ndbm = yes ; then
18787 ol_with_ldbm_api=ndbm
18789 if test $ol_cv_lib_ndbm != yes ; then
18790 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18795 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18796 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18797 if test $ol_enable_ldbm = yes ; then
18798 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18801 echo "configure: warning: disabling LDBM" 1>&2
18805 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18806 BUILD_LIBS_DYNAMIC=shared
18807 cat >> confdefs.h <<\EOF
18808 #define LDAP_LIBS_DYNAMIC 1
18812 BUILD_LIBS_DYNAMIC=static
18815 if test $ol_enable_wrappers != no ; then
18816 for ac_hdr in tcpd.h
18818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18820 echo "configure:18821: checking for $ac_hdr" >&5
18821 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18822 echo $ac_n "(cached) $ac_c" 1>&6
18824 cat > conftest.$ac_ext <<EOF
18825 #line 18826 "configure"
18826 #include "confdefs.h"
18829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18830 { (eval echo configure:18831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18832 if test -z "$ac_err"; then
18834 eval "ac_cv_header_$ac_safe=yes"
18837 echo "configure: failed program was:" >&5
18838 cat conftest.$ac_ext >&5
18840 eval "ac_cv_header_$ac_safe=no"
18844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18845 echo "$ac_t""yes" 1>&6
18846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18847 cat >> confdefs.h <<EOF
18848 #define $ac_tr_hdr 1
18851 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18852 echo "configure:18853: checking for TCP wrappers library" >&5
18854 LIBS="$LIBS -lwrap"
18855 cat > conftest.$ac_ext <<EOF
18856 #line 18857 "configure"
18857 #include "confdefs.h"
18860 int allow_severity = 0;
18861 int deny_severity = 0;
18863 struct request_info *req;
18871 if { (eval echo configure:18872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18873 echo "$ac_t""-lwrap" 1>&6
18877 echo "configure: failed program was:" >&5
18878 cat conftest.$ac_ext >&5
18882 cat > conftest.$ac_ext <<EOF
18883 #line 18884 "configure"
18884 #include "confdefs.h"
18887 int allow_severity = 0;
18888 int deny_severity = 0;
18890 struct request_info *req;
18898 if { (eval echo configure:18899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18900 echo "$ac_t""-lwrap -lnsl" 1>&6
18902 LIBS="$save_LIBS -lnsl"
18904 echo "configure: failed program was:" >&5
18905 cat conftest.$ac_ext >&5
18908 echo "$ac_t""no" 1>&6
18916 echo "$ac_t""no" 1>&6
18922 if test $have_wrappers = yes ; then
18923 cat >> confdefs.h <<\EOF
18924 #define HAVE_TCPD 1
18928 elif test $ol_enable_wrappers = yes ; then
18929 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
18931 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
18936 if test $ol_enable_syslog != no ; then
18937 echo $ac_n "checking for openlog""... $ac_c" 1>&6
18938 echo "configure:18939: checking for openlog" >&5
18939 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
18940 echo $ac_n "(cached) $ac_c" 1>&6
18942 cat > conftest.$ac_ext <<EOF
18943 #line 18944 "configure"
18944 #include "confdefs.h"
18945 /* System header to define __stub macros and hopefully few prototypes,
18946 which can conflict with char openlog(); below. */
18947 #include <assert.h>
18948 /* Override any gcc2 internal prototype to avoid an error. */
18949 /* We use char because int might match the return type of a gcc2
18950 builtin and then its argument prototype would still apply. */
18956 /* The GNU C library defines this for functions which it implements
18957 to always fail with ENOSYS. Some functions are actually named
18958 something starting with __ and the normal name is an alias. */
18959 #if defined (__stub_openlog) || defined (__stub___openlog)
18967 if { (eval echo configure:18968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18969 eval "ac_cv_func_openlog=yes"
18971 echo "configure: failed program was:" >&5
18972 cat conftest.$ac_ext >&5
18974 eval "ac_cv_func_openlog=no"
18979 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
18980 echo "$ac_t""yes" 1>&6
18983 echo "$ac_t""no" 1>&6
18986 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
18987 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
18989 ol_enable_syslog=$ac_cv_func_openlog
18994 if test $ol_enable_sql != no ; then
18995 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
18996 echo "configure:18997: checking for SQLDriverConnect in -liodbc" >&5
18997 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18998 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18999 echo $ac_n "(cached) $ac_c" 1>&6
19001 ac_save_LIBS="$LIBS"
19002 LIBS="-liodbc $LIBS"
19003 cat > conftest.$ac_ext <<EOF
19004 #line 19005 "configure"
19005 #include "confdefs.h"
19006 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char SQLDriverConnect();
19015 if { (eval echo configure:19016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19017 eval "ac_cv_lib_$ac_lib_var=yes"
19019 echo "configure: failed program was:" >&5
19020 cat conftest.$ac_ext >&5
19022 eval "ac_cv_lib_$ac_lib_var=no"
19025 LIBS="$ac_save_LIBS"
19028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19029 echo "$ac_t""yes" 1>&6
19032 echo "$ac_t""no" 1>&6
19036 if test $have_iodbc = yes ; then
19037 ol_link_sql="-liodbc"
19039 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19040 echo "configure:19041: checking for SQLDriverConnect in -lodbc" >&5
19041 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19043 echo $ac_n "(cached) $ac_c" 1>&6
19045 ac_save_LIBS="$LIBS"
19046 LIBS="-lodbc $LIBS"
19047 cat > conftest.$ac_ext <<EOF
19048 #line 19049 "configure"
19049 #include "confdefs.h"
19050 /* Override any gcc2 internal prototype to avoid an error. */
19051 /* We use char because int might match the return type of a gcc2
19052 builtin and then its argument prototype would still apply. */
19053 char SQLDriverConnect();
19059 if { (eval echo configure:19060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19061 eval "ac_cv_lib_$ac_lib_var=yes"
19063 echo "configure: failed program was:" >&5
19064 cat conftest.$ac_ext >&5
19066 eval "ac_cv_lib_$ac_lib_var=no"
19069 LIBS="$ac_save_LIBS"
19072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19073 echo "$ac_t""yes" 1>&6
19076 echo "$ac_t""no" 1>&6
19080 if test $have_odbc = yes ; then
19081 ol_link_sql="-lodbc"
19085 if test $ol_link_sql != no ; then
19086 SLAPD_SQL_LIBS="$ol_link_sql"
19088 elif test $ol_enable_sql != auto ; then
19089 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19094 for ac_hdr in termcap.h ncurses.h
19096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19098 echo "configure:19099: checking for $ac_hdr" >&5
19099 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19100 echo $ac_n "(cached) $ac_c" 1>&6
19102 cat > conftest.$ac_ext <<EOF
19103 #line 19104 "configure"
19104 #include "confdefs.h"
19107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19108 { (eval echo configure:19109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19110 if test -z "$ac_err"; then
19112 eval "ac_cv_header_$ac_safe=yes"
19115 echo "configure: failed program was:" >&5
19116 cat conftest.$ac_ext >&5
19118 eval "ac_cv_header_$ac_safe=no"
19122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19123 echo "$ac_t""yes" 1>&6
19124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19125 cat >> confdefs.h <<EOF
19126 #define $ac_tr_hdr 1
19130 echo "$ac_t""no" 1>&6
19135 if test $ol_link_termcap = no ; then
19136 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19137 echo "configure:19138: checking for tputs in -ltermcap" >&5
19138 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19140 echo $ac_n "(cached) $ac_c" 1>&6
19142 ac_save_LIBS="$LIBS"
19143 LIBS="-ltermcap $LIBS"
19144 cat > conftest.$ac_ext <<EOF
19145 #line 19146 "configure"
19146 #include "confdefs.h"
19147 /* Override any gcc2 internal prototype to avoid an error. */
19148 /* We use char because int might match the return type of a gcc2
19149 builtin and then its argument prototype would still apply. */
19156 if { (eval echo configure:19157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19158 eval "ac_cv_lib_$ac_lib_var=yes"
19160 echo "configure: failed program was:" >&5
19161 cat conftest.$ac_ext >&5
19163 eval "ac_cv_lib_$ac_lib_var=no"
19166 LIBS="$ac_save_LIBS"
19169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19170 echo "$ac_t""yes" 1>&6
19173 echo "$ac_t""no" 1>&6
19177 if test $have_termcap = yes ; then
19178 cat >> confdefs.h <<\EOF
19179 #define HAVE_TERMCAP 1
19182 ol_link_termcap=yes
19183 TERMCAP_LIBS=-ltermcap
19187 if test $ol_link_termcap = no ; then
19188 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19189 echo "configure:19190: checking for initscr in -lncurses" >&5
19190 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19192 echo $ac_n "(cached) $ac_c" 1>&6
19194 ac_save_LIBS="$LIBS"
19195 LIBS="-lncurses $LIBS"
19196 cat > conftest.$ac_ext <<EOF
19197 #line 19198 "configure"
19198 #include "confdefs.h"
19199 /* Override any gcc2 internal prototype to avoid an error. */
19200 /* We use char because int might match the return type of a gcc2
19201 builtin and then its argument prototype would still apply. */
19208 if { (eval echo configure:19209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19210 eval "ac_cv_lib_$ac_lib_var=yes"
19212 echo "configure: failed program was:" >&5
19213 cat conftest.$ac_ext >&5
19215 eval "ac_cv_lib_$ac_lib_var=no"
19218 LIBS="$ac_save_LIBS"
19221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19222 echo "$ac_t""yes" 1>&6
19225 echo "$ac_t""no" 1>&6
19229 if test $have_ncurses = yes ; then
19230 cat >> confdefs.h <<\EOF
19231 #define HAVE_NCURSES 1
19234 ol_link_termcap=yes
19235 TERMCAP_LIBS=-lncurses
19239 if test $ol_link_termcap = no ; then
19240 cat >> confdefs.h <<\EOF
19241 #define NO_TERMCAP 1
19249 if test $ol_with_cyrus_sasl != no ; then
19250 for ac_hdr in sasl/sasl.h sasl.h
19252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19254 echo "configure:19255: checking for $ac_hdr" >&5
19255 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19256 echo $ac_n "(cached) $ac_c" 1>&6
19258 cat > conftest.$ac_ext <<EOF
19259 #line 19260 "configure"
19260 #include "confdefs.h"
19263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19264 { (eval echo configure:19265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19266 if test -z "$ac_err"; then
19268 eval "ac_cv_header_$ac_safe=yes"
19271 echo "configure: failed program was:" >&5
19272 cat conftest.$ac_ext >&5
19274 eval "ac_cv_header_$ac_safe=no"
19278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19279 echo "$ac_t""yes" 1>&6
19280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19281 cat >> confdefs.h <<EOF
19282 #define $ac_tr_hdr 1
19286 echo "$ac_t""no" 1>&6
19291 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19292 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19293 echo "configure:19294: checking for sasl_client_init in -lsasl2" >&5
19294 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19295 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19296 echo $ac_n "(cached) $ac_c" 1>&6
19298 ac_save_LIBS="$LIBS"
19299 LIBS="-lsasl2 $LIBS"
19300 cat > conftest.$ac_ext <<EOF
19301 #line 19302 "configure"
19302 #include "confdefs.h"
19303 /* Override any gcc2 internal prototype to avoid an error. */
19304 /* We use char because int might match the return type of a gcc2
19305 builtin and then its argument prototype would still apply. */
19306 char sasl_client_init();
19312 if { (eval echo configure:19313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19314 eval "ac_cv_lib_$ac_lib_var=yes"
19316 echo "configure: failed program was:" >&5
19317 cat conftest.$ac_ext >&5
19319 eval "ac_cv_lib_$ac_lib_var=no"
19322 LIBS="$ac_save_LIBS"
19325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19326 echo "$ac_t""yes" 1>&6
19327 ol_link_sasl="-lsasl2"
19329 echo "$ac_t""no" 1>&6
19330 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19331 echo "configure:19332: checking for sasl_client_init in -lsasl" >&5
19332 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19334 echo $ac_n "(cached) $ac_c" 1>&6
19336 ac_save_LIBS="$LIBS"
19337 LIBS="-lsasl $LIBS"
19338 cat > conftest.$ac_ext <<EOF
19339 #line 19340 "configure"
19340 #include "confdefs.h"
19341 /* Override any gcc2 internal prototype to avoid an error. */
19342 /* We use char because int might match the return type of a gcc2
19343 builtin and then its argument prototype would still apply. */
19344 char sasl_client_init();
19350 if { (eval echo configure:19351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19352 eval "ac_cv_lib_$ac_lib_var=yes"
19354 echo "configure: failed program was:" >&5
19355 cat conftest.$ac_ext >&5
19357 eval "ac_cv_lib_$ac_lib_var=no"
19360 LIBS="$ac_save_LIBS"
19363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19364 echo "$ac_t""yes" 1>&6
19365 ol_link_sasl="-lsasl"
19367 echo "$ac_t""no" 1>&6
19374 if test $ol_link_sasl = no ; then
19375 if test $ol_with_cyrus_sasl != auto ; then
19376 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19378 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19379 echo "configure: warning: SASL authentication not supported!" 1>&2
19380 if test $ol_link_tls = no ; then
19381 echo "configure: warning: Strong authentication not supported!" 1>&2
19385 cat >> confdefs.h <<\EOF
19386 #define HAVE_CYRUS_SASL 1
19389 SASL_LIBS="$ol_link_sasl"
19390 if test $ol_enable_spasswd != no ; then
19391 ol_link_spasswd=yes
19396 echo "configure: warning: SASL authentication not supported!" 1>&2
19397 if test $ol_link_tls = no ; then
19398 echo "configure: warning: Strong authentication not supported!" 1>&2
19402 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19404 if test -r /dev/urandom ; then
19405 dev="/dev/urandom";
19406 elif test -r /idev/urandom ; then
19407 dev="/idev/urandom";
19408 elif test -r /dev/srandom ; then
19409 dev="/dev/srandom";
19410 elif test -r /dev/random ; then
19412 elif test -r /idev/random ; then
19413 dev="/idev/random";
19416 if test $dev != no ; then
19417 cat >> confdefs.h <<EOF
19418 #define URANDOM_DEVICE "$dev"
19425 if test $ol_with_fetch != no ; then
19427 LIBS="-lfetch -lcom_err $LIBS"
19428 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19429 echo "configure:19430: checking fetch(3) library" >&5
19430 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19431 echo $ac_n "(cached) $ac_c" 1>&6
19434 cat > conftest.$ac_ext <<EOF
19435 #line 19436 "configure"
19436 #include "confdefs.h"
19438 #include <sys/param.h>
19442 struct url *u = fetchParseURL("file:///");
19445 if { (eval echo configure:19446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19447 ol_cv_lib_fetch=yes
19449 echo "configure: failed program was:" >&5
19450 cat conftest.$ac_ext >&5
19457 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19459 if test $ol_cv_lib_fetch != no ; then
19460 ol_link_fetch="-lfetch -lcom_err"
19461 cat >> confdefs.h <<\EOF
19462 #define HAVE_FETCH 1
19468 if test $ol_cv_lib_fetch != no ; then
19469 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19470 ol_link_fetch=freebsd
19472 elif test $ol_with_fetch != auto ; then
19473 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19477 ol_link_readline=no
19478 if test $ol_with_readline != no ; then
19479 for ac_hdr in readline/readline.h readline/history.h
19481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19483 echo "configure:19484: checking for $ac_hdr" >&5
19484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19485 echo $ac_n "(cached) $ac_c" 1>&6
19487 cat > conftest.$ac_ext <<EOF
19488 #line 19489 "configure"
19489 #include "confdefs.h"
19492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19493 { (eval echo configure:19494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19495 if test -z "$ac_err"; then
19497 eval "ac_cv_header_$ac_safe=yes"
19500 echo "configure: failed program was:" >&5
19501 cat conftest.$ac_ext >&5
19503 eval "ac_cv_header_$ac_safe=no"
19507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19508 echo "$ac_t""yes" 1>&6
19509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19510 cat >> confdefs.h <<EOF
19511 #define $ac_tr_hdr 1
19515 echo "$ac_t""no" 1>&6
19520 if test $ac_cv_header_readline_readline_h = yes ; then
19522 LIBS="$TERMCAP_LIBS $LIBS"
19523 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19524 echo "configure:19525: checking for readline in -lreadline" >&5
19525 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19526 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19527 echo $ac_n "(cached) $ac_c" 1>&6
19529 ac_save_LIBS="$LIBS"
19530 LIBS="-lreadline $LIBS"
19531 cat > conftest.$ac_ext <<EOF
19532 #line 19533 "configure"
19533 #include "confdefs.h"
19534 /* Override any gcc2 internal prototype to avoid an error. */
19535 /* We use char because int might match the return type of a gcc2
19536 builtin and then its argument prototype would still apply. */
19543 if { (eval echo configure:19544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19545 eval "ac_cv_lib_$ac_lib_var=yes"
19547 echo "configure: failed program was:" >&5
19548 cat conftest.$ac_ext >&5
19550 eval "ac_cv_lib_$ac_lib_var=no"
19553 LIBS="$ac_save_LIBS"
19556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19557 echo "$ac_t""yes" 1>&6
19560 echo "$ac_t""no" 1>&6
19566 if test $have_readline = yes ; then
19567 ol_with_readline=found
19568 ol_link_readline=yes
19570 READLINE_LIBS="-lreadline"
19575 if test $ol_link_readline = yes ; then
19576 cat >> confdefs.h <<\EOF
19577 #define HAVE_READLINE 1
19583 if test $ol_enable_crypt != no ; then
19584 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19585 echo "configure:19586: checking for crypt" >&5
19586 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19587 echo $ac_n "(cached) $ac_c" 1>&6
19589 cat > conftest.$ac_ext <<EOF
19590 #line 19591 "configure"
19591 #include "confdefs.h"
19592 /* System header to define __stub macros and hopefully few prototypes,
19593 which can conflict with char crypt(); below. */
19594 #include <assert.h>
19595 /* Override any gcc2 internal prototype to avoid an error. */
19596 /* We use char because int might match the return type of a gcc2
19597 builtin and then its argument prototype would still apply. */
19603 /* The GNU C library defines this for functions which it implements
19604 to always fail with ENOSYS. Some functions are actually named
19605 something starting with __ and the normal name is an alias. */
19606 #if defined (__stub_crypt) || defined (__stub___crypt)
19614 if { (eval echo configure:19615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19616 eval "ac_cv_func_crypt=yes"
19618 echo "configure: failed program was:" >&5
19619 cat conftest.$ac_ext >&5
19621 eval "ac_cv_func_crypt=no"
19626 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19627 echo "$ac_t""yes" 1>&6
19630 echo "$ac_t""no" 1>&6
19632 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19633 echo "configure:19634: checking for crypt in -lcrypt" >&5
19634 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19635 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19636 echo $ac_n "(cached) $ac_c" 1>&6
19638 ac_save_LIBS="$LIBS"
19639 LIBS="-lcrypt $LIBS"
19640 cat > conftest.$ac_ext <<EOF
19641 #line 19642 "configure"
19642 #include "confdefs.h"
19643 /* Override any gcc2 internal prototype to avoid an error. */
19644 /* We use char because int might match the return type of a gcc2
19645 builtin and then its argument prototype would still apply. */
19652 if { (eval echo configure:19653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19654 eval "ac_cv_lib_$ac_lib_var=yes"
19656 echo "configure: failed program was:" >&5
19657 cat conftest.$ac_ext >&5
19659 eval "ac_cv_lib_$ac_lib_var=no"
19662 LIBS="$ac_save_LIBS"
19665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19666 echo "$ac_t""yes" 1>&6
19667 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19670 echo "$ac_t""no" 1>&6
19677 if test $have_crypt = yes ; then
19678 cat >> confdefs.h <<\EOF
19679 #define HAVE_CRYPT 1
19683 echo "configure: warning: could not find crypt" 1>&2
19684 if test $ol_enable_crypt = yes ; then
19685 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19688 echo "configure: warning: disabling crypt support" 1>&2
19693 if test $ol_enable_proctitle != no ; then
19694 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19695 echo "configure:19696: checking for setproctitle" >&5
19696 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19697 echo $ac_n "(cached) $ac_c" 1>&6
19699 cat > conftest.$ac_ext <<EOF
19700 #line 19701 "configure"
19701 #include "confdefs.h"
19702 /* System header to define __stub macros and hopefully few prototypes,
19703 which can conflict with char setproctitle(); below. */
19704 #include <assert.h>
19705 /* Override any gcc2 internal prototype to avoid an error. */
19706 /* We use char because int might match the return type of a gcc2
19707 builtin and then its argument prototype would still apply. */
19708 char setproctitle();
19713 /* The GNU C library defines this for functions which it implements
19714 to always fail with ENOSYS. Some functions are actually named
19715 something starting with __ and the normal name is an alias. */
19716 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19724 if { (eval echo configure:19725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19726 eval "ac_cv_func_setproctitle=yes"
19728 echo "configure: failed program was:" >&5
19729 cat conftest.$ac_ext >&5
19731 eval "ac_cv_func_setproctitle=no"
19736 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19737 echo "$ac_t""yes" 1>&6
19738 have_setproctitle=yes
19740 echo "$ac_t""no" 1>&6
19742 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19743 echo "configure:19744: checking for setproctitle in -lutil" >&5
19744 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
19745 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19746 echo $ac_n "(cached) $ac_c" 1>&6
19748 ac_save_LIBS="$LIBS"
19749 LIBS="-lutil $LIBS"
19750 cat > conftest.$ac_ext <<EOF
19751 #line 19752 "configure"
19752 #include "confdefs.h"
19753 /* Override any gcc2 internal prototype to avoid an error. */
19754 /* We use char because int might match the return type of a gcc2
19755 builtin and then its argument prototype would still apply. */
19756 char setproctitle();
19762 if { (eval echo configure:19763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19764 eval "ac_cv_lib_$ac_lib_var=yes"
19766 echo "configure: failed program was:" >&5
19767 cat conftest.$ac_ext >&5
19769 eval "ac_cv_lib_$ac_lib_var=no"
19772 LIBS="$ac_save_LIBS"
19775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19776 echo "$ac_t""yes" 1>&6
19777 have_setproctitle=yes
19778 LUTIL_LIBS="$LUTIL_LIBS -lutil"
19780 echo "$ac_t""no" 1>&6
19781 have_setproctitle=no
19782 LIBOBJS="$LIBOBJS setproctitle.o"
19783 LIBSRCS="$LIBSRCS setproctitle.c"
19789 if test $have_setproctitle = yes ; then
19790 cat >> confdefs.h <<\EOF
19791 #define HAVE_SETPROCTITLE 1
19797 if test $ol_enable_slp != no ; then
19798 for ac_hdr in slp.h
19800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19802 echo "configure:19803: checking for $ac_hdr" >&5
19803 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19804 echo $ac_n "(cached) $ac_c" 1>&6
19806 cat > conftest.$ac_ext <<EOF
19807 #line 19808 "configure"
19808 #include "confdefs.h"
19811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19812 { (eval echo configure:19813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19814 if test -z "$ac_err"; then
19816 eval "ac_cv_header_$ac_safe=yes"
19819 echo "configure: failed program was:" >&5
19820 cat conftest.$ac_ext >&5
19822 eval "ac_cv_header_$ac_safe=no"
19826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19827 echo "$ac_t""yes" 1>&6
19828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19829 cat >> confdefs.h <<EOF
19830 #define $ac_tr_hdr 1
19834 echo "$ac_t""no" 1>&6
19839 if test $ac_cv_header_slp_h = yes ; then
19840 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
19841 echo "configure:19842: checking for SLPOpen in -lslp" >&5
19842 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
19843 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19844 echo $ac_n "(cached) $ac_c" 1>&6
19846 ac_save_LIBS="$LIBS"
19848 cat > conftest.$ac_ext <<EOF
19849 #line 19850 "configure"
19850 #include "confdefs.h"
19851 /* Override any gcc2 internal prototype to avoid an error. */
19852 /* We use char because int might match the return type of a gcc2
19853 builtin and then its argument prototype would still apply. */
19860 if { (eval echo configure:19861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19862 eval "ac_cv_lib_$ac_lib_var=yes"
19864 echo "configure: failed program was:" >&5
19865 cat conftest.$ac_ext >&5
19867 eval "ac_cv_lib_$ac_lib_var=no"
19870 LIBS="$ac_save_LIBS"
19873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19874 echo "$ac_t""yes" 1>&6
19877 echo "$ac_t""no" 1>&6
19881 if test $have_slp = yes ; then
19882 cat >> confdefs.h <<\EOF
19886 SLAPD_SLP_LIBS=-lslp
19889 elif test $ol_enable_slp = yes ; then
19890 { echo "configure: error: SLP not found" 1>&2; exit 1; }
19894 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
19895 echo "configure:19896: checking for ANSI C header files" >&5
19896 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
19897 echo $ac_n "(cached) $ac_c" 1>&6
19899 cat > conftest.$ac_ext <<EOF
19900 #line 19901 "configure"
19901 #include "confdefs.h"
19902 #include <stdlib.h>
19903 #include <stdarg.h>
19904 #include <string.h>
19907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19908 { (eval echo configure:19909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19910 if test -z "$ac_err"; then
19912 ac_cv_header_stdc=yes
19915 echo "configure: failed program was:" >&5
19916 cat conftest.$ac_ext >&5
19918 ac_cv_header_stdc=no
19922 if test $ac_cv_header_stdc = yes; then
19923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19924 cat > conftest.$ac_ext <<EOF
19925 #line 19926 "configure"
19926 #include "confdefs.h"
19927 #include <string.h>
19929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19930 egrep "memchr" >/dev/null 2>&1; then
19934 ac_cv_header_stdc=no
19940 if test $ac_cv_header_stdc = yes; then
19941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19942 cat > conftest.$ac_ext <<EOF
19943 #line 19944 "configure"
19944 #include "confdefs.h"
19945 #include <stdlib.h>
19947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19948 egrep "free" >/dev/null 2>&1; then
19952 ac_cv_header_stdc=no
19958 if test $ac_cv_header_stdc = yes; then
19959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19960 if test "$cross_compiling" = yes; then
19963 cat > conftest.$ac_ext <<EOF
19964 #line 19965 "configure"
19965 #include "confdefs.h"
19967 #if ((' ' & 0x0FF) == 0x020)
19968 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19969 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19971 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
19972 || ('j' <= (c) && (c) <= 'r') \
19973 || ('s' <= (c) && (c) <= 'z'))
19974 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19977 int main () { int i; for (i = 0; i < 256; i++)
19978 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
19982 if { (eval echo configure:19983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19986 echo "configure: failed program was:" >&5
19987 cat conftest.$ac_ext >&5
19989 ac_cv_header_stdc=no
19997 echo "$ac_t""$ac_cv_header_stdc" 1>&6
19998 if test $ac_cv_header_stdc = yes; then
19999 cat >> confdefs.h <<\EOF
20000 #define STDC_HEADERS 1
20005 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20006 echo "configure:20007: checking for mode_t" >&5
20007 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20008 echo $ac_n "(cached) $ac_c" 1>&6
20010 cat > conftest.$ac_ext <<EOF
20011 #line 20012 "configure"
20012 #include "confdefs.h"
20013 #include <sys/types.h>
20015 #include <stdlib.h>
20016 #include <stddef.h>
20020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20021 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20023 eval "ac_cv_type_mode_t=yes"
20026 eval "ac_cv_type_mode_t=no"
20031 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20032 echo "$ac_t""yes" 1>&6
20034 echo "$ac_t""no" 1>&6
20035 cat >> confdefs.h <<EOF
20041 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20042 echo "configure:20043: checking for off_t" >&5
20043 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20044 echo $ac_n "(cached) $ac_c" 1>&6
20046 cat > conftest.$ac_ext <<EOF
20047 #line 20048 "configure"
20048 #include "confdefs.h"
20049 #include <sys/types.h>
20051 #include <stdlib.h>
20052 #include <stddef.h>
20056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20057 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20059 eval "ac_cv_type_off_t=yes"
20062 eval "ac_cv_type_off_t=no"
20067 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20068 echo "$ac_t""yes" 1>&6
20070 echo "$ac_t""no" 1>&6
20071 cat >> confdefs.h <<EOF
20077 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20078 echo "configure:20079: checking for pid_t" >&5
20079 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20080 echo $ac_n "(cached) $ac_c" 1>&6
20082 cat > conftest.$ac_ext <<EOF
20083 #line 20084 "configure"
20084 #include "confdefs.h"
20085 #include <sys/types.h>
20087 #include <stdlib.h>
20088 #include <stddef.h>
20092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20093 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20095 eval "ac_cv_type_pid_t=yes"
20098 eval "ac_cv_type_pid_t=no"
20103 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20104 echo "$ac_t""yes" 1>&6
20106 echo "$ac_t""no" 1>&6
20107 cat >> confdefs.h <<EOF
20113 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20114 echo "configure:20115: checking for ptrdiff_t" >&5
20115 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20116 echo $ac_n "(cached) $ac_c" 1>&6
20118 cat > conftest.$ac_ext <<EOF
20119 #line 20120 "configure"
20120 #include "confdefs.h"
20121 #include <stddef.h>
20126 if { (eval echo configure:20127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20128 am_cv_type_ptrdiff_t=yes
20130 echo "configure: failed program was:" >&5
20131 cat conftest.$ac_ext >&5
20133 am_cv_type_ptrdiff_t=no
20138 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20139 if test $am_cv_type_ptrdiff_t = yes; then
20140 cat >> confdefs.h <<\EOF
20141 #define HAVE_PTRDIFF_T 1
20146 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20147 echo "configure:20148: checking return type of signal handlers" >&5
20148 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20149 echo $ac_n "(cached) $ac_c" 1>&6
20151 cat > conftest.$ac_ext <<EOF
20152 #line 20153 "configure"
20153 #include "confdefs.h"
20154 #include <sys/types.h>
20155 #include <signal.h>
20160 extern "C" void (*signal (int, void (*)(int)))(int);
20162 void (*signal ()) ();
20169 if { (eval echo configure:20170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20171 ac_cv_type_signal=void
20173 echo "configure: failed program was:" >&5
20174 cat conftest.$ac_ext >&5
20176 ac_cv_type_signal=int
20181 echo "$ac_t""$ac_cv_type_signal" 1>&6
20182 cat >> confdefs.h <<EOF
20183 #define RETSIGTYPE $ac_cv_type_signal
20187 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20188 echo "configure:20189: checking for size_t" >&5
20189 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20190 echo $ac_n "(cached) $ac_c" 1>&6
20192 cat > conftest.$ac_ext <<EOF
20193 #line 20194 "configure"
20194 #include "confdefs.h"
20195 #include <sys/types.h>
20197 #include <stdlib.h>
20198 #include <stddef.h>
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20205 eval "ac_cv_type_size_t=yes"
20208 eval "ac_cv_type_size_t=no"
20213 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20214 echo "$ac_t""yes" 1>&6
20216 echo "$ac_t""no" 1>&6
20217 cat >> confdefs.h <<EOF
20218 #define size_t unsigned
20224 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20225 echo "configure:20226: checking for ssize_t" >&5
20226 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20227 echo $ac_n "(cached) $ac_c" 1>&6
20229 cat > conftest.$ac_ext <<EOF
20230 #line 20231 "configure"
20231 #include "confdefs.h"
20232 #include <sys/types.h>
20234 #include <stdlib.h>
20235 #include <stddef.h>
20239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20240 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20242 eval "ac_cv_type_ssize_t=yes"
20245 eval "ac_cv_type_ssize_t=no"
20250 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20251 echo "$ac_t""yes" 1>&6
20253 echo "$ac_t""no" 1>&6
20254 cat >> confdefs.h <<EOF
20255 #define ssize_t signed int
20260 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20261 echo "configure:20262: checking for caddr_t" >&5
20262 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20263 echo $ac_n "(cached) $ac_c" 1>&6
20265 cat > conftest.$ac_ext <<EOF
20266 #line 20267 "configure"
20267 #include "confdefs.h"
20268 #include <sys/types.h>
20270 #include <stdlib.h>
20271 #include <stddef.h>
20275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20276 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20278 eval "ac_cv_type_caddr_t=yes"
20281 eval "ac_cv_type_caddr_t=no"
20286 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20287 echo "$ac_t""yes" 1>&6
20289 echo "$ac_t""no" 1>&6
20290 cat >> confdefs.h <<EOF
20291 #define caddr_t char *
20297 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20298 echo "configure:20299: checking for socklen_t" >&5
20299 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20300 echo $ac_n "(cached) $ac_c" 1>&6
20302 cat > conftest.$ac_ext <<EOF
20303 #line 20304 "configure"
20304 #include "confdefs.h"
20306 #ifdef HAVE_SYS_TYPES_H
20307 #include <sys/types.h>
20309 #ifdef HAVE_SYS_SOCKET_H
20310 #include <sys/socket.h>
20317 if { (eval echo configure:20318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20319 ol_cv_type_socklen_t=yes
20321 echo "configure: failed program was:" >&5
20322 cat conftest.$ac_ext >&5
20324 ol_cv_type_socklen_t=no
20329 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20330 if test $ol_cv_type_socklen_t = no; then
20331 cat >> confdefs.h <<\EOF
20332 #define socklen_t int
20337 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20338 echo "configure:20339: checking for member st_blksize in aggregate type struct stat" >&5
20339 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20340 echo $ac_n "(cached) $ac_c" 1>&6
20342 cat > conftest.$ac_ext <<EOF
20343 #line 20344 "configure"
20344 #include "confdefs.h"
20345 #include <sys/types.h>
20346 #include <sys/stat.h>
20348 struct stat foo; foo.st_blksize;
20351 if { (eval echo configure:20352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20353 ac_cv_c_struct_member_st_blksize=yes
20355 echo "configure: failed program was:" >&5
20356 cat conftest.$ac_ext >&5
20358 ac_cv_c_struct_member_st_blksize=no
20363 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20364 st_blksize="$ac_cv_c_struct_member_st_blksize"
20365 if test $ac_cv_c_struct_member_st_blksize = yes; then
20366 cat >> confdefs.h <<\EOF
20367 #define HAVE_ST_BLKSIZE 1
20372 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20373 echo "configure:20374: checking whether time.h and sys/time.h may both be included" >&5
20374 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20375 echo $ac_n "(cached) $ac_c" 1>&6
20377 cat > conftest.$ac_ext <<EOF
20378 #line 20379 "configure"
20379 #include "confdefs.h"
20380 #include <sys/types.h>
20381 #include <sys/time.h>
20387 if { (eval echo configure:20388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20389 ac_cv_header_time=yes
20391 echo "configure: failed program was:" >&5
20392 cat conftest.$ac_ext >&5
20394 ac_cv_header_time=no
20399 echo "$ac_t""$ac_cv_header_time" 1>&6
20400 if test $ac_cv_header_time = yes; then
20401 cat >> confdefs.h <<\EOF
20402 #define TIME_WITH_SYS_TIME 1
20407 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20408 echo "configure:20409: checking whether struct tm is in sys/time.h or time.h" >&5
20409 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20410 echo $ac_n "(cached) $ac_c" 1>&6
20412 cat > conftest.$ac_ext <<EOF
20413 #line 20414 "configure"
20414 #include "confdefs.h"
20415 #include <sys/types.h>
20418 struct tm *tp; tp->tm_sec;
20421 if { (eval echo configure:20422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20423 ac_cv_struct_tm=time.h
20425 echo "configure: failed program was:" >&5
20426 cat conftest.$ac_ext >&5
20428 ac_cv_struct_tm=sys/time.h
20433 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20434 if test $ac_cv_struct_tm = sys/time.h; then
20435 cat >> confdefs.h <<\EOF
20436 #define TM_IN_SYS_TIME 1
20441 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20442 echo "configure:20443: checking for uid_t in sys/types.h" >&5
20443 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20444 echo $ac_n "(cached) $ac_c" 1>&6
20446 cat > conftest.$ac_ext <<EOF
20447 #line 20448 "configure"
20448 #include "confdefs.h"
20449 #include <sys/types.h>
20451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20452 egrep "uid_t" >/dev/null 2>&1; then
20454 ac_cv_type_uid_t=yes
20457 ac_cv_type_uid_t=no
20463 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20464 if test $ac_cv_type_uid_t = no; then
20465 cat >> confdefs.h <<\EOF
20469 cat >> confdefs.h <<\EOF
20475 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20476 echo "configure:20477: checking for sig_atomic_t" >&5
20477 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20478 echo $ac_n "(cached) $ac_c" 1>&6
20480 cat > conftest.$ac_ext <<EOF
20481 #line 20482 "configure"
20482 #include "confdefs.h"
20483 #include <signal.h>
20485 sig_atomic_t atomic;
20488 if { (eval echo configure:20489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20490 ol_cv_type_sig_atomic_t=yes
20492 echo "configure: failed program was:" >&5
20493 cat conftest.$ac_ext >&5
20495 ol_cv_type_sig_atomic_t=no
20500 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20501 if test $ol_cv_type_sig_atomic_t = no; then
20502 cat >> confdefs.h <<\EOF
20503 #define sig_atomic_t int
20510 # test for pw_gecos in struct passwd
20511 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20512 echo "configure:20513: checking struct passwd for pw_gecos" >&5
20513 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20514 echo $ac_n "(cached) $ac_c" 1>&6
20517 cat > conftest.$ac_ext <<EOF
20518 #line 20519 "configure"
20519 #include "confdefs.h"
20524 pwd.pw_gecos = pwd.pw_name;
20528 if { (eval echo configure:20529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20530 ol_cv_struct_passwd_pw_gecos=yes
20532 echo "configure: failed program was:" >&5
20533 cat conftest.$ac_ext >&5
20535 ol_cv_struct_passwd_pw_gecos=no
20540 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20541 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20542 cat >> confdefs.h <<\EOF
20543 #define HAVE_PW_GECOS 1
20548 # test for pw_passwd in struct passwd
20549 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20550 echo "configure:20551: checking struct passwd for pw_passwd" >&5
20551 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20552 echo $ac_n "(cached) $ac_c" 1>&6
20555 cat > conftest.$ac_ext <<EOF
20556 #line 20557 "configure"
20557 #include "confdefs.h"
20562 pwd.pw_passwd = pwd.pw_name;
20566 if { (eval echo configure:20567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20568 ol_cv_struct_passwd_pw_passwd=yes
20570 echo "configure: failed program was:" >&5
20571 cat conftest.$ac_ext >&5
20573 ol_cv_struct_passwd_pw_passwd=no
20578 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20579 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20580 cat >> confdefs.h <<\EOF
20581 #define HAVE_PW_PASSWD 1
20587 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20588 echo "configure:20589: checking if toupper() requires islower()" >&5
20589 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20590 echo $ac_n "(cached) $ac_c" 1>&6
20593 if test "$cross_compiling" = yes; then
20594 ol_cv_c_upper_lower=safe
20596 cat > conftest.$ac_ext <<EOF
20597 #line 20598 "configure"
20598 #include "confdefs.h"
20603 if ('C' == toupper('C'))
20609 if { (eval echo configure:20610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20611 ol_cv_c_upper_lower=no
20613 echo "configure: failed program was:" >&5
20614 cat conftest.$ac_ext >&5
20616 ol_cv_c_upper_lower=yes
20623 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20624 if test $ol_cv_c_upper_lower != no ; then
20625 cat >> confdefs.h <<\EOF
20626 #define C_UPPER_LOWER 1
20631 echo $ac_n "checking for working const""... $ac_c" 1>&6
20632 echo "configure:20633: checking for working const" >&5
20633 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20634 echo $ac_n "(cached) $ac_c" 1>&6
20636 cat > conftest.$ac_ext <<EOF
20637 #line 20638 "configure"
20638 #include "confdefs.h"
20642 /* Ultrix mips cc rejects this. */
20643 typedef int charset[2]; const charset x;
20644 /* SunOS 4.1.1 cc rejects this. */
20645 char const *const *ccp;
20647 /* NEC SVR4.0.2 mips cc rejects this. */
20648 struct point {int x, y;};
20649 static struct point const zero = {0,0};
20650 /* AIX XL C 1.02.0.0 rejects this.
20651 It does not let you subtract one const X* pointer from another in an arm
20652 of an if-expression whose if-part is not a constant expression */
20653 const char *g = "string";
20654 ccp = &g + (g ? g-g : 0);
20655 /* HPUX 7.0 cc rejects these. */
20658 ccp = (char const *const *) p;
20659 { /* SCO 3.2v4 cc rejects this. */
20661 char const *s = 0 ? (char *) 0 : (char const *) 0;
20665 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20666 int x[] = {25, 17};
20667 const int *foo = &x[0];
20670 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20671 typedef const int *iptr;
20675 { /* AIX XL C 1.02.0.0 rejects this saying
20676 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20677 struct s { int j; const int *ap[3]; };
20678 struct s *b; b->j = 5;
20680 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20681 const int foo = 10;
20686 if { (eval echo configure:20687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20690 echo "configure: failed program was:" >&5
20691 cat conftest.$ac_ext >&5
20698 echo "$ac_t""$ac_cv_c_const" 1>&6
20699 if test $ac_cv_c_const = no; then
20700 cat >> confdefs.h <<\EOF
20706 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20707 echo "configure:20708: checking if compiler understands volatile" >&5
20708 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20709 echo $ac_n "(cached) $ac_c" 1>&6
20711 cat > conftest.$ac_ext <<EOF
20712 #line 20713 "configure"
20713 #include "confdefs.h"
20716 volatile int a; int * volatile b = x ? &y : &z;
20717 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20721 if { (eval echo configure:20722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20723 ol_cv_c_volatile=yes
20725 echo "configure: failed program was:" >&5
20726 cat conftest.$ac_ext >&5
20728 ol_cv_c_volatile=no
20733 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20734 if test $ol_cv_c_volatile = yes; then
20737 cat >> confdefs.h <<\EOF
20744 if test $cross_compiling = yes ; then
20745 cat >> confdefs.h <<\EOF
20746 #define CROSS_COMPILING 1
20750 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
20751 echo "configure:20752: checking whether byte ordering is bigendian" >&5
20752 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
20753 echo $ac_n "(cached) $ac_c" 1>&6
20755 ac_cv_c_bigendian=unknown
20756 # See if sys/param.h defines the BYTE_ORDER macro.
20757 cat > conftest.$ac_ext <<EOF
20758 #line 20759 "configure"
20759 #include "confdefs.h"
20760 #include <sys/types.h>
20761 #include <sys/param.h>
20764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20765 bogus endian macros
20769 if { (eval echo configure:20770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20771 # It does; now see whether it defined to BIG_ENDIAN or not.
20772 cat > conftest.$ac_ext <<EOF
20773 #line 20774 "configure"
20774 #include "confdefs.h"
20775 #include <sys/types.h>
20776 #include <sys/param.h>
20779 #if BYTE_ORDER != BIG_ENDIAN
20784 if { (eval echo configure:20785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20786 ac_cv_c_bigendian=yes
20788 echo "configure: failed program was:" >&5
20789 cat conftest.$ac_ext >&5
20791 ac_cv_c_bigendian=no
20795 echo "configure: failed program was:" >&5
20796 cat conftest.$ac_ext >&5
20799 if test $ac_cv_c_bigendian = unknown; then
20800 if test "$cross_compiling" = yes; then
20801 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
20803 cat > conftest.$ac_ext <<EOF
20804 #line 20805 "configure"
20805 #include "confdefs.h"
20807 /* Are we little or big endian? From Harbison&Steele. */
20811 char c[sizeof (long)];
20814 exit (u.c[sizeof (long) - 1] == 1);
20817 if { (eval echo configure:20818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20819 ac_cv_c_bigendian=no
20821 echo "configure: failed program was:" >&5
20822 cat conftest.$ac_ext >&5
20824 ac_cv_c_bigendian=yes
20832 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
20833 if test $ac_cv_c_bigendian = yes; then
20834 cat >> confdefs.h <<\EOF
20835 #define WORDS_BIGENDIAN 1
20842 echo $ac_n "checking size of short""... $ac_c" 1>&6
20843 echo "configure:20844: checking size of short" >&5
20844 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
20845 echo $ac_n "(cached) $ac_c" 1>&6
20847 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20848 cat > conftest.$ac_ext <<EOF
20849 #line 20850 "configure"
20850 #include "confdefs.h"
20851 #include "confdefs.h"
20852 #include <sys/types.h>
20856 switch (0) case 0: case (sizeof (short) == $ac_size):;
20859 if { (eval echo configure:20860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20861 ac_cv_sizeof_short=$ac_size
20863 echo "configure: failed program was:" >&5
20864 cat conftest.$ac_ext >&5
20867 if test x$ac_cv_sizeof_short != x ; then break; fi
20872 if test x$ac_cv_sizeof_short = x ; then
20873 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
20875 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
20876 cat >> confdefs.h <<EOF
20877 #define SIZEOF_SHORT $ac_cv_sizeof_short
20881 echo $ac_n "checking size of int""... $ac_c" 1>&6
20882 echo "configure:20883: checking size of int" >&5
20883 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
20884 echo $ac_n "(cached) $ac_c" 1>&6
20886 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20887 cat > conftest.$ac_ext <<EOF
20888 #line 20889 "configure"
20889 #include "confdefs.h"
20890 #include "confdefs.h"
20891 #include <sys/types.h>
20895 switch (0) case 0: case (sizeof (int) == $ac_size):;
20898 if { (eval echo configure:20899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20900 ac_cv_sizeof_int=$ac_size
20902 echo "configure: failed program was:" >&5
20903 cat conftest.$ac_ext >&5
20906 if test x$ac_cv_sizeof_int != x ; then break; fi
20911 if test x$ac_cv_sizeof_int = x ; then
20912 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
20914 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
20915 cat >> confdefs.h <<EOF
20916 #define SIZEOF_INT $ac_cv_sizeof_int
20920 echo $ac_n "checking size of long""... $ac_c" 1>&6
20921 echo "configure:20922: checking size of long" >&5
20922 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
20923 echo $ac_n "(cached) $ac_c" 1>&6
20925 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20926 cat > conftest.$ac_ext <<EOF
20927 #line 20928 "configure"
20928 #include "confdefs.h"
20929 #include "confdefs.h"
20930 #include <sys/types.h>
20934 switch (0) case 0: case (sizeof (long) == $ac_size):;
20937 if { (eval echo configure:20938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20939 ac_cv_sizeof_long=$ac_size
20941 echo "configure: failed program was:" >&5
20942 cat conftest.$ac_ext >&5
20945 if test x$ac_cv_sizeof_long != x ; then break; fi
20950 if test x$ac_cv_sizeof_long = x ; then
20951 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
20953 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
20954 cat >> confdefs.h <<EOF
20955 #define SIZEOF_LONG $ac_cv_sizeof_long
20960 if test "$ac_cv_sizeof_int" -lt 4 ; then
20961 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
20963 cat >> confdefs.h <<\EOF
20964 #define LBER_INT_T long
20968 cat >> confdefs.h <<\EOF
20969 #define LBER_INT_T int
20974 cat >> confdefs.h <<\EOF
20975 #define LBER_LEN_T long
20978 cat >> confdefs.h <<\EOF
20979 #define LBER_SOCKET_T int
20982 cat >> confdefs.h <<\EOF
20983 #define LBER_TAG_T long
20987 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
20988 echo "configure:20989: checking for 8-bit clean memcmp" >&5
20989 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
20990 echo $ac_n "(cached) $ac_c" 1>&6
20992 if test "$cross_compiling" = yes; then
20993 ac_cv_func_memcmp_clean=no
20995 cat > conftest.$ac_ext <<EOF
20996 #line 20997 "configure"
20997 #include "confdefs.h"
21001 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21002 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21006 if { (eval echo configure:21007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21008 ac_cv_func_memcmp_clean=yes
21010 echo "configure: failed program was:" >&5
21011 cat conftest.$ac_ext >&5
21013 ac_cv_func_memcmp_clean=no
21020 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21021 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21023 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21024 echo "configure:21025: checking for strftime" >&5
21025 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21026 echo $ac_n "(cached) $ac_c" 1>&6
21028 cat > conftest.$ac_ext <<EOF
21029 #line 21030 "configure"
21030 #include "confdefs.h"
21031 /* System header to define __stub macros and hopefully few prototypes,
21032 which can conflict with char strftime(); below. */
21033 #include <assert.h>
21034 /* Override any gcc2 internal prototype to avoid an error. */
21035 /* We use char because int might match the return type of a gcc2
21036 builtin and then its argument prototype would still apply. */
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined (__stub_strftime) || defined (__stub___strftime)
21053 if { (eval echo configure:21054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21055 eval "ac_cv_func_strftime=yes"
21057 echo "configure: failed program was:" >&5
21058 cat conftest.$ac_ext >&5
21060 eval "ac_cv_func_strftime=no"
21065 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21066 echo "$ac_t""yes" 1>&6
21067 cat >> confdefs.h <<\EOF
21068 #define HAVE_STRFTIME 1
21072 echo "$ac_t""no" 1>&6
21073 # strftime is in -lintl on SCO UNIX.
21074 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21075 echo "configure:21076: checking for strftime in -lintl" >&5
21076 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21078 echo $ac_n "(cached) $ac_c" 1>&6
21080 ac_save_LIBS="$LIBS"
21081 LIBS="-lintl $LIBS"
21082 cat > conftest.$ac_ext <<EOF
21083 #line 21084 "configure"
21084 #include "confdefs.h"
21085 /* Override any gcc2 internal prototype to avoid an error. */
21086 /* We use char because int might match the return type of a gcc2
21087 builtin and then its argument prototype would still apply. */
21094 if { (eval echo configure:21095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21096 eval "ac_cv_lib_$ac_lib_var=yes"
21098 echo "configure: failed program was:" >&5
21099 cat conftest.$ac_ext >&5
21101 eval "ac_cv_lib_$ac_lib_var=no"
21104 LIBS="$ac_save_LIBS"
21107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21108 echo "$ac_t""yes" 1>&6
21109 cat >> confdefs.h <<\EOF
21110 #define HAVE_STRFTIME 1
21113 LIBS="-lintl $LIBS"
21115 echo "$ac_t""no" 1>&6
21121 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21122 echo "configure:21123: checking for inet_aton()" >&5
21123 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21124 echo $ac_n "(cached) $ac_c" 1>&6
21126 cat > conftest.$ac_ext <<EOF
21127 #line 21128 "configure"
21128 #include "confdefs.h"
21130 #ifdef HAVE_SYS_TYPES_H
21131 # include <sys/types.h>
21133 #ifdef HAVE_SYS_SOCKET_H
21134 # include <sys/socket.h>
21135 # ifdef HAVE_SYS_SELECT_H
21136 # include <sys/select.h>
21138 # include <netinet/in.h>
21139 # ifdef HAVE_ARPA_INET_H
21140 # include <arpa/inet.h>
21146 int rc = inet_aton( "255.255.255.255", &in );
21149 if { (eval echo configure:21150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21151 ol_cv_func_inet_aton=yes
21153 echo "configure: failed program was:" >&5
21154 cat conftest.$ac_ext >&5
21156 ol_cv_func_inet_aton=no
21161 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21162 if test $ol_cv_func_inet_aton != no; then
21163 cat >> confdefs.h <<\EOF
21164 #define HAVE_INET_ATON 1
21170 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21171 echo "configure:21172: checking for _spawnlp" >&5
21172 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21173 echo $ac_n "(cached) $ac_c" 1>&6
21175 cat > conftest.$ac_ext <<EOF
21176 #line 21177 "configure"
21177 #include "confdefs.h"
21178 /* System header to define __stub macros and hopefully few prototypes,
21179 which can conflict with char _spawnlp(); below. */
21180 #include <assert.h>
21181 /* Override any gcc2 internal prototype to avoid an error. */
21182 /* We use char because int might match the return type of a gcc2
21183 builtin and then its argument prototype would still apply. */
21189 /* The GNU C library defines this for functions which it implements
21190 to always fail with ENOSYS. Some functions are actually named
21191 something starting with __ and the normal name is an alias. */
21192 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21200 if { (eval echo configure:21201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21202 eval "ac_cv_func__spawnlp=yes"
21204 echo "configure: failed program was:" >&5
21205 cat conftest.$ac_ext >&5
21207 eval "ac_cv_func__spawnlp=no"
21212 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21213 echo "$ac_t""yes" 1>&6
21214 cat >> confdefs.h <<\EOF
21215 #define HAVE_SPAWNLP 1
21219 echo "$ac_t""no" 1>&6
21223 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21224 echo "configure:21225: checking for _snprintf" >&5
21225 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21226 echo $ac_n "(cached) $ac_c" 1>&6
21228 cat > conftest.$ac_ext <<EOF
21229 #line 21230 "configure"
21230 #include "confdefs.h"
21231 /* System header to define __stub macros and hopefully few prototypes,
21232 which can conflict with char _snprintf(); below. */
21233 #include <assert.h>
21234 /* Override any gcc2 internal prototype to avoid an error. */
21235 /* We use char because int might match the return type of a gcc2
21236 builtin and then its argument prototype would still apply. */
21242 /* The GNU C library defines this for functions which it implements
21243 to always fail with ENOSYS. Some functions are actually named
21244 something starting with __ and the normal name is an alias. */
21245 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21253 if { (eval echo configure:21254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21255 eval "ac_cv_func__snprintf=yes"
21257 echo "configure: failed program was:" >&5
21258 cat conftest.$ac_ext >&5
21260 eval "ac_cv_func__snprintf=no"
21265 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21266 echo "$ac_t""yes" 1>&6
21267 ac_cv_func_snprintf=yes
21268 cat >> confdefs.h <<\EOF
21269 #define snprintf _snprintf
21274 echo "$ac_t""no" 1>&6
21278 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21279 echo "configure:21280: checking for _vsnprintf" >&5
21280 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21281 echo $ac_n "(cached) $ac_c" 1>&6
21283 cat > conftest.$ac_ext <<EOF
21284 #line 21285 "configure"
21285 #include "confdefs.h"
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char _vsnprintf(); below. */
21288 #include <assert.h>
21289 /* Override any gcc2 internal prototype to avoid an error. */
21290 /* We use char because int might match the return type of a gcc2
21291 builtin and then its argument prototype would still apply. */
21297 /* The GNU C library defines this for functions which it implements
21298 to always fail with ENOSYS. Some functions are actually named
21299 something starting with __ and the normal name is an alias. */
21300 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21308 if { (eval echo configure:21309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21310 eval "ac_cv_func__vsnprintf=yes"
21312 echo "configure: failed program was:" >&5
21313 cat conftest.$ac_ext >&5
21315 eval "ac_cv_func__vsnprintf=no"
21320 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21321 echo "$ac_t""yes" 1>&6
21322 ac_cv_func_vsnprintf=yes
21323 cat >> confdefs.h <<\EOF
21324 #define vsnprintf _vsnprintf
21329 echo "$ac_t""no" 1>&6
21333 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21334 echo "configure:21335: checking for vprintf" >&5
21335 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21336 echo $ac_n "(cached) $ac_c" 1>&6
21338 cat > conftest.$ac_ext <<EOF
21339 #line 21340 "configure"
21340 #include "confdefs.h"
21341 /* System header to define __stub macros and hopefully few prototypes,
21342 which can conflict with char vprintf(); below. */
21343 #include <assert.h>
21344 /* Override any gcc2 internal prototype to avoid an error. */
21345 /* We use char because int might match the return type of a gcc2
21346 builtin and then its argument prototype would still apply. */
21352 /* The GNU C library defines this for functions which it implements
21353 to always fail with ENOSYS. Some functions are actually named
21354 something starting with __ and the normal name is an alias. */
21355 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21363 if { (eval echo configure:21364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21365 eval "ac_cv_func_vprintf=yes"
21367 echo "configure: failed program was:" >&5
21368 cat conftest.$ac_ext >&5
21370 eval "ac_cv_func_vprintf=no"
21375 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21376 echo "$ac_t""yes" 1>&6
21377 cat >> confdefs.h <<\EOF
21378 #define HAVE_VPRINTF 1
21382 echo "$ac_t""no" 1>&6
21385 if test "$ac_cv_func_vprintf" != yes; then
21386 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21387 echo "configure:21388: checking for _doprnt" >&5
21388 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21389 echo $ac_n "(cached) $ac_c" 1>&6
21391 cat > conftest.$ac_ext <<EOF
21392 #line 21393 "configure"
21393 #include "confdefs.h"
21394 /* System header to define __stub macros and hopefully few prototypes,
21395 which can conflict with char _doprnt(); below. */
21396 #include <assert.h>
21397 /* Override any gcc2 internal prototype to avoid an error. */
21398 /* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21405 /* The GNU C library defines this for functions which it implements
21406 to always fail with ENOSYS. Some functions are actually named
21407 something starting with __ and the normal name is an alias. */
21408 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21416 if { (eval echo configure:21417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21418 eval "ac_cv_func__doprnt=yes"
21420 echo "configure: failed program was:" >&5
21421 cat conftest.$ac_ext >&5
21423 eval "ac_cv_func__doprnt=no"
21428 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21429 echo "$ac_t""yes" 1>&6
21430 cat >> confdefs.h <<\EOF
21431 #define HAVE_DOPRNT 1
21435 echo "$ac_t""no" 1>&6
21441 if test $ac_cv_func_vprintf = yes ; then
21442 for ac_func in vsnprintf vsprintf
21444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21445 echo "configure:21446: checking for $ac_func" >&5
21446 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21447 echo $ac_n "(cached) $ac_c" 1>&6
21449 cat > conftest.$ac_ext <<EOF
21450 #line 21451 "configure"
21451 #include "confdefs.h"
21452 /* System header to define __stub macros and hopefully few prototypes,
21453 which can conflict with char $ac_func(); below. */
21454 #include <assert.h>
21455 /* Override any gcc2 internal prototype to avoid an error. */
21456 /* We use char because int might match the return type of a gcc2
21457 builtin and then its argument prototype would still apply. */
21463 /* The GNU C library defines this for functions which it implements
21464 to always fail with ENOSYS. Some functions are actually named
21465 something starting with __ and the normal name is an alias. */
21466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21474 if { (eval echo configure:21475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21476 eval "ac_cv_func_$ac_func=yes"
21478 echo "configure: failed program was:" >&5
21479 cat conftest.$ac_ext >&5
21481 eval "ac_cv_func_$ac_func=no"
21486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21487 echo "$ac_t""yes" 1>&6
21488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21489 cat >> confdefs.h <<EOF
21490 #define $ac_tr_func 1
21494 echo "$ac_t""no" 1>&6
21554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21555 echo "configure:21556: checking for $ac_func" >&5
21556 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21557 echo $ac_n "(cached) $ac_c" 1>&6
21559 cat > conftest.$ac_ext <<EOF
21560 #line 21561 "configure"
21561 #include "confdefs.h"
21562 /* System header to define __stub macros and hopefully few prototypes,
21563 which can conflict with char $ac_func(); below. */
21564 #include <assert.h>
21565 /* Override any gcc2 internal prototype to avoid an error. */
21566 /* We use char because int might match the return type of a gcc2
21567 builtin and then its argument prototype would still apply. */
21573 /* The GNU C library defines this for functions which it implements
21574 to always fail with ENOSYS. Some functions are actually named
21575 something starting with __ and the normal name is an alias. */
21576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21584 if { (eval echo configure:21585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21586 eval "ac_cv_func_$ac_func=yes"
21588 echo "configure: failed program was:" >&5
21589 cat conftest.$ac_ext >&5
21591 eval "ac_cv_func_$ac_func=no"
21596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21597 echo "$ac_t""yes" 1>&6
21598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21599 cat >> confdefs.h <<EOF
21600 #define $ac_tr_func 1
21604 echo "$ac_t""no" 1>&6
21609 for ac_func in getopt
21611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21612 echo "configure:21613: checking for $ac_func" >&5
21613 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21614 echo $ac_n "(cached) $ac_c" 1>&6
21616 cat > conftest.$ac_ext <<EOF
21617 #line 21618 "configure"
21618 #include "confdefs.h"
21619 /* System header to define __stub macros and hopefully few prototypes,
21620 which can conflict with char $ac_func(); below. */
21621 #include <assert.h>
21622 /* Override any gcc2 internal prototype to avoid an error. */
21623 /* We use char because int might match the return type of a gcc2
21624 builtin and then its argument prototype would still apply. */
21630 /* The GNU C library defines this for functions which it implements
21631 to always fail with ENOSYS. Some functions are actually named
21632 something starting with __ and the normal name is an alias. */
21633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21641 if { (eval echo configure:21642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21643 eval "ac_cv_func_$ac_func=yes"
21645 echo "configure: failed program was:" >&5
21646 cat conftest.$ac_ext >&5
21648 eval "ac_cv_func_$ac_func=no"
21653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21654 echo "$ac_t""yes" 1>&6
21655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21656 cat >> confdefs.h <<EOF
21657 #define $ac_tr_func 1
21661 echo "$ac_t""no" 1>&6
21662 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21668 if test "$ac_cv_func_getopt" != yes; then
21669 LIBSRCS="$LIBSRCS getopt.c"
21672 # Check Configuration
21673 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21674 echo "configure:21675: checking declaration of sys_errlist" >&5
21675 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21676 echo $ac_n "(cached) $ac_c" 1>&6
21679 cat > conftest.$ac_ext <<EOF
21680 #line 21681 "configure"
21681 #include "confdefs.h"
21684 #include <sys/types.h>
21687 #include <stdlib.h>
21690 char *c = (char *) *sys_errlist
21693 if { (eval echo configure:21694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21695 ol_cv_dcl_sys_errlist=yes
21696 ol_cv_have_sys_errlist=yes
21698 echo "configure: failed program was:" >&5
21699 cat conftest.$ac_ext >&5
21701 ol_cv_dcl_sys_errlist=no
21706 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21708 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21709 if test $ol_cv_dcl_sys_errlist = no ; then
21710 cat >> confdefs.h <<\EOF
21711 #define DECL_SYS_ERRLIST 1
21715 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21716 echo "configure:21717: checking existence of sys_errlist" >&5
21717 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21718 echo $ac_n "(cached) $ac_c" 1>&6
21721 cat > conftest.$ac_ext <<EOF
21722 #line 21723 "configure"
21723 #include "confdefs.h"
21726 char *c = (char *) *sys_errlist
21729 if { (eval echo configure:21730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21731 ol_cv_have_sys_errlist=yes
21733 echo "configure: failed program was:" >&5
21734 cat conftest.$ac_ext >&5
21736 ol_cv_have_sys_errlist=no
21741 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21743 if test $ol_cv_have_sys_errlist = yes ; then
21744 cat >> confdefs.h <<\EOF
21745 #define HAVE_SYS_ERRLIST 1
21752 if test "$ol_enable_debug" != no ; then
21753 cat >> confdefs.h <<\EOF
21754 #define LDAP_DEBUG 1
21758 if test "$ol_enable_syslog" = yes ; then
21759 cat >> confdefs.h <<\EOF
21760 #define LDAP_SYSLOG 1
21764 if test "$ol_enable_cache" = no ; then
21765 cat >> confdefs.h <<\EOF
21766 #define LDAP_NOCACHE 1
21770 if test "$ol_link_kbind" != no ; then
21771 cat >> confdefs.h <<\EOF
21772 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
21776 if test "$ol_enable_proctitle" != no ; then
21777 cat >> confdefs.h <<\EOF
21778 #define LDAP_PROCTITLE 1
21782 if test "$ol_enable_referrals" != no ; then
21783 cat >> confdefs.h <<\EOF
21784 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
21788 if test "$ol_enable_local" != no; then
21789 cat >> confdefs.h <<\EOF
21790 #define LDAP_PF_LOCAL 1
21794 if test "$ol_link_ipv6" != no; then
21795 cat >> confdefs.h <<\EOF
21796 #define LDAP_PF_INET6 1
21800 if test "$ol_enable_cleartext" != no ; then
21801 cat >> confdefs.h <<\EOF
21802 #define SLAPD_CLEARTEXT 1
21806 if test "$ol_enable_crypt" != no ; then
21807 cat >> confdefs.h <<\EOF
21808 #define SLAPD_CRYPT 1
21812 if test "$ol_link_kpasswd" != no ; then
21813 cat >> confdefs.h <<\EOF
21814 #define SLAPD_KPASSWD 1
21818 if test "$ol_link_spasswd" != no ; then
21819 cat >> confdefs.h <<\EOF
21820 #define SLAPD_SPASSWD 1
21824 if test "$ol_enable_phonetic" != no ; then
21825 cat >> confdefs.h <<\EOF
21826 #define SLAPD_PHONETIC 1
21830 if test "$ol_enable_rlookups" != no ; then
21831 cat >> confdefs.h <<\EOF
21832 #define SLAPD_RLOOKUPS 1
21836 if test "$ol_enable_aci" != no ; then
21837 cat >> confdefs.h <<\EOF
21838 #define SLAPD_ACI_ENABLED 1
21843 if test "$ol_link_modules" != no ; then
21844 cat >> confdefs.h <<\EOF
21845 #define SLAPD_MODULES 1
21849 SLAPD_MODULES_LDFLAGS="-dlopen self"
21852 if test "$ol_enable_bdb" != no ; then
21853 cat >> confdefs.h <<\EOF
21854 #define SLAPD_BDB 1
21859 if test "$ol_with_bdb_module" != static ; then
21860 cat >> confdefs.h <<\EOF
21861 #define SLAPD_BDB_DYNAMIC 1
21865 BUILD_BDB_DYNAMIC=shared
21866 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
21867 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
21869 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
21873 if test "$ol_link_dnssrv" != no ; then
21874 cat >> confdefs.h <<\EOF
21875 #define SLAPD_DNSSRV 1
21880 if test "$ol_with_dnssrv_module" != static ; then
21881 cat >> confdefs.h <<\EOF
21882 #define SLAPD_DNSSRV_DYNAMIC 1
21886 BUILD_DNSSRV_DYNAMIC=shared
21887 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
21888 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
21890 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
21894 if test "$ol_enable_ldap" != no ; then
21895 cat >> confdefs.h <<\EOF
21896 #define SLAPD_LDAP 1
21901 if test "$ol_with_ldap_module" != static ; then
21902 cat >> confdefs.h <<\EOF
21903 #define SLAPD_LDAP_DYNAMIC 1
21907 BUILD_LDAP_DYNAMIC=shared
21908 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
21909 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
21911 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
21915 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
21916 cat >> confdefs.h <<\EOF
21917 #define SLAPD_LDBM 1
21923 if test "$ol_with_ldbm_module" != static ; then
21924 cat >> confdefs.h <<\EOF
21925 #define SLAPD_LDBM_DYNAMIC 1
21929 BUILD_LDBM_DYNAMIC=shared
21930 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
21931 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
21933 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
21937 if test "$ol_enable_meta" != no ; then
21938 if test "$ol_enable_ldap" = no ; then
21939 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
21941 if test "$ol_enable_rewrite" = no ; then
21942 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
21944 cat >> confdefs.h <<\EOF
21945 #define SLAPD_META 1
21950 if test "$ol_with_meta_module" != static ; then
21951 cat >> confdefs.h <<\EOF
21952 #define SLAPD_META_DYNAMIC 1
21956 BUILD_META_DYNAMIC=shared
21957 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
21958 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
21960 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
21964 if test "$ol_enable_monitor" != no ; then
21965 cat >> confdefs.h <<\EOF
21966 #define SLAPD_MONITOR 1
21971 if test "$ol_with_monitor_module" != static ; then
21972 cat >> confdefs.h <<\EOF
21973 #define SLAPD_MONITOR_DYNAMIC 1
21977 BUILD_MONITOR_DYNAMIC=shared
21978 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
21979 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
21981 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
21985 if test "$ol_enable_passwd" != no ; then
21986 cat >> confdefs.h <<\EOF
21987 #define SLAPD_PASSWD 1
21992 if test "$ol_with_passwd_module" != static ; then
21993 cat >> confdefs.h <<\EOF
21994 #define SLAPD_PASSWD_DYNAMIC 1
21998 BUILD_PASSWD_DYNAMIC=shared
21999 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
22000 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22002 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22006 if test "$ol_link_perl" != no ; then
22007 cat >> confdefs.h <<\EOF
22008 #define SLAPD_PERL 1
22013 if test "$ol_with_perl_module" != static ; then
22014 cat >> confdefs.h <<\EOF
22015 #define SLAPD_PERL_DYNAMIC 1
22019 BUILD_PERL_DYNAMIC=shared
22020 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22021 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22023 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22027 if test "$ol_enable_shell" != no ; then
22028 cat >> confdefs.h <<\EOF
22029 #define SLAPD_SHELL 1
22034 if test "$ol_with_shell_module" != static ; then
22035 cat >> confdefs.h <<\EOF
22036 #define SLAPD_SHELL_DYNAMIC 1
22040 BUILD_SHELL_DYNAMIC=shared
22041 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22042 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22044 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22048 if test "$ol_link_sql" != no ; then
22049 cat >> confdefs.h <<\EOF
22050 #define SLAPD_SQL 1
22055 if test "$ol_with_sql_module" != static; then
22056 cat >> confdefs.h <<\EOF
22057 #define SLAPD_SQL_DYNAMIC 1
22061 BUILD_SQL_DYNAMIC=shared
22062 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22063 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22065 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22069 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22070 $BUILD_SLAPD = yes ; then
22074 if test "$ol_enable_rewrite" != no ; then
22075 cat >> confdefs.h <<\EOF
22076 #define ENABLE_REWRITE 1
22084 if test "$ac_cv_mingw32" = yes ; then
22086 SLAPD_MODULES_LDFLAGS=
22087 SLAPD_MODULES_LIST=
22156 # Check whether --with-xxinstall or --without-xxinstall was given.
22157 if test "${with_xxinstall+set}" = set; then
22158 withval="$with_xxinstall"
22166 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22169 # Let make expand exec_prefix.
22170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22172 # Any assignment to VPATH causes Sun make to only execute
22173 # the first set of double-colon rules, so remove it if not needed.
22174 # If there is a colon in the path, we need to keep it.
22175 if test "x$srcdir" = x.; then
22176 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22179 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22181 DEFS=-DHAVE_CONFIG_H
22183 # Without the "./", some shells look in PATH for config.status.
22184 : ${CONFIG_STATUS=./config.status}
22186 echo creating $CONFIG_STATUS
22187 rm -f $CONFIG_STATUS
22188 cat > $CONFIG_STATUS <<EOF
22190 # Generated automatically by configure.
22191 # Run this file to recreate the current configuration.
22192 # This directory was configured as follows,
22193 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22195 # $0 $ac_configure_args
22197 # Compiler output produced by configure, useful for debugging
22198 # configure, is in ./config.log if it exists.
22200 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22203 case "\$ac_option" in
22204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22205 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22206 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22207 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22208 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22210 -help | --help | --hel | --he | --h)
22211 echo "\$ac_cs_usage"; exit 0 ;;
22212 *) echo "\$ac_cs_usage"; exit 1 ;;
22216 ac_given_srcdir=$srcdir
22217 ac_given_INSTALL="$INSTALL"
22219 trap 'rm -fr `echo "\
22220 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22221 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22222 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22223 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22224 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22225 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22226 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22227 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22228 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22229 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22230 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22231 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22232 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22233 include/Makefile:build/top.mk:include/Makefile.in \
22234 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22235 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22236 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22237 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22238 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22239 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22240 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22241 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22242 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22243 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22244 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22245 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22246 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22247 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22248 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22249 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22250 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22251 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22252 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22253 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22254 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22255 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22256 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22257 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22258 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22259 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22260 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22261 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22263 cat >> $CONFIG_STATUS <<EOF
22265 # Protect against being on the right side of a sed subst in config.status.
22266 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22267 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22271 s%@CFLAGS@%$CFLAGS%g
22272 s%@CPPFLAGS@%$CPPFLAGS%g
22273 s%@CXXFLAGS@%$CXXFLAGS%g
22274 s%@FFLAGS@%$FFLAGS%g
22276 s%@LDFLAGS@%$LDFLAGS%g
22278 s%@exec_prefix@%$exec_prefix%g
22279 s%@prefix@%$prefix%g
22280 s%@program_transform_name@%$program_transform_name%g
22281 s%@bindir@%$bindir%g
22282 s%@sbindir@%$sbindir%g
22283 s%@libexecdir@%$libexecdir%g
22284 s%@datadir@%$datadir%g
22285 s%@sysconfdir@%$sysconfdir%g
22286 s%@sharedstatedir@%$sharedstatedir%g
22287 s%@localstatedir@%$localstatedir%g
22288 s%@libdir@%$libdir%g
22289 s%@includedir@%$includedir%g
22290 s%@oldincludedir@%$oldincludedir%g
22291 s%@infodir@%$infodir%g
22292 s%@mandir@%$mandir%g
22294 s%@host_alias@%$host_alias%g
22295 s%@host_cpu@%$host_cpu%g
22296 s%@host_vendor@%$host_vendor%g
22297 s%@host_os@%$host_os%g
22298 s%@target@%$target%g
22299 s%@target_alias@%$target_alias%g
22300 s%@target_cpu@%$target_cpu%g
22301 s%@target_vendor@%$target_vendor%g
22302 s%@target_os@%$target_os%g
22304 s%@build_alias@%$build_alias%g
22305 s%@build_cpu@%$build_cpu%g
22306 s%@build_vendor@%$build_vendor%g
22307 s%@build_os@%$build_os%g
22308 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22309 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22310 s%@INSTALL_DATA@%$INSTALL_DATA%g
22311 s%@PACKAGE@%$PACKAGE%g
22312 s%@VERSION@%$VERSION%g
22313 s%@ACLOCAL@%$ACLOCAL%g
22314 s%@AUTOCONF@%$AUTOCONF%g
22315 s%@AUTOMAKE@%$AUTOMAKE%g
22316 s%@AUTOHEADER@%$AUTOHEADER%g
22317 s%@MAKEINFO@%$MAKEINFO%g
22318 s%@install_sh@%$install_sh%g
22321 s%@AMTARFLAGS@%$AMTARFLAGS%g
22322 s%@SET_MAKE@%$SET_MAKE%g
22323 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22324 s%@top_builddir@%$top_builddir%g
22325 s%@ldap_subdir@%$ldap_subdir%g
22329 s%@OBJEXT@%$OBJEXT%g
22330 s%@EXEEXT@%$EXEEXT%g
22332 s%@RANLIB@%$RANLIB%g
22334 s%@DLLTOOL@%$DLLTOOL%g
22336 s%@OBJDUMP@%$OBJDUMP%g
22338 s%@LIBTOOL@%$LIBTOOL%g
22340 s%@SENDMAIL@%$SENDMAIL%g
22341 s%@EDITOR@%$EDITOR%g
22342 s%@FINGER@%$FINGER%g
22343 s%@PERLBIN@%$PERLBIN%g
22344 s%@OL_MKDEP@%$OL_MKDEP%g
22345 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22346 s%@LIBOBJS@%$LIBOBJS%g
22347 s%@LIBSRCS@%$LIBSRCS%g
22349 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22350 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22351 s%@BUILD_BDB@%$BUILD_BDB%g
22352 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22353 s%@BUILD_LDAP@%$BUILD_LDAP%g
22354 s%@BUILD_LDBM@%$BUILD_LDBM%g
22355 s%@BUILD_META@%$BUILD_META%g
22356 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22357 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22358 s%@BUILD_PERL@%$BUILD_PERL%g
22359 s%@BUILD_SHELL@%$BUILD_SHELL%g
22360 s%@BUILD_SQL@%$BUILD_SQL%g
22361 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22362 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22363 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22364 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22365 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22366 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22367 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22368 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22369 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22370 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22371 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22372 s%@LDBM_LIB@%$LDBM_LIB%g
22373 s%@LDAP_LIBS@%$LDAP_LIBS%g
22374 s%@LDIF_LIBS@%$LDIF_LIBS%g
22375 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22376 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22377 s%@LDBM_LIBS@%$LDBM_LIBS%g
22378 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22379 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22380 s%@WRAP_LIBS@%$WRAP_LIBS%g
22381 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22382 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22383 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22384 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22385 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22386 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22387 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22388 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22389 s%@KRB4_LIBS@%$KRB4_LIBS%g
22390 s%@KRB5_LIBS@%$KRB5_LIBS%g
22391 s%@READLINE_LIBS@%$READLINE_LIBS%g
22392 s%@SASL_LIBS@%$SASL_LIBS%g
22393 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22394 s%@TLS_LIBS@%$TLS_LIBS%g
22395 s%@MODULES_LIBS@%$MODULES_LIBS%g
22396 s%@AUTH_LIBS@%$AUTH_LIBS%g
22397 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22398 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22399 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22400 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22405 cat >> $CONFIG_STATUS <<\EOF
22407 # Split the substitutions into bite-sized pieces for seds with
22408 # small command number limits, like on Digital OSF/1 and HP-UX.
22409 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22410 ac_file=1 # Number of current file.
22411 ac_beg=1 # First line for current file.
22412 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22415 while $ac_more_lines; do
22416 if test $ac_beg -gt 1; then
22417 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22419 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22421 if test ! -s conftest.s$ac_file; then
22422 ac_more_lines=false
22423 rm -f conftest.s$ac_file
22425 if test -z "$ac_sed_cmds"; then
22426 ac_sed_cmds="sed -f conftest.s$ac_file"
22428 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22430 ac_file=`expr $ac_file + 1`
22432 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22435 if test -z "$ac_sed_cmds"; then
22440 cat >> $CONFIG_STATUS <<EOF
22442 CONFIG_FILES=\${CONFIG_FILES-"\
22443 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22444 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22445 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22446 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22447 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22448 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22449 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22450 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22451 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22452 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22453 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22454 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22455 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22456 include/Makefile:build/top.mk:include/Makefile.in \
22457 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22458 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22459 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22460 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22461 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22462 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22463 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22464 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22465 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22466 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22467 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22468 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22469 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22470 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22471 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22472 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22473 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22474 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22475 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22476 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22477 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22478 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22479 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22480 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22481 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22482 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22483 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22486 cat >> $CONFIG_STATUS <<\EOF
22487 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22488 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22490 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22491 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22492 *) ac_file_in="${ac_file}.in" ;;
22495 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22497 # Remove last slash and all that follows it. Not all systems have dirname.
22498 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22499 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22500 # The file is in a subdirectory.
22501 test ! -d "$ac_dir" && mkdir "$ac_dir"
22502 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22503 # A "../" for each directory in $ac_dir_suffix.
22504 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22506 ac_dir_suffix= ac_dots=
22509 case "$ac_given_srcdir" in
22511 if test -z "$ac_dots"; then top_srcdir=.
22512 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22513 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22514 *) # Relative path.
22515 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22516 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22519 case "$ac_given_INSTALL" in
22520 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22521 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22524 echo creating "$ac_file"
22526 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22528 *[Mm]akefile*) ac_comsub="1i\\
22529 # $configure_input" ;;
22533 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22535 s%@configure_input@%$configure_input%g
22536 s%@srcdir@%$srcdir%g
22537 s%@top_srcdir@%$top_srcdir%g
22538 s%@INSTALL@%$INSTALL%g
22539 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22543 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22544 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22546 # ac_d sets the value in "#define NAME VALUE" lines.
22547 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22548 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22551 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22552 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22553 ac_uB='\([ ]\)%\1#\2define\3'
22556 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22557 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22558 ac_eB='$%\1#\2define\3'
22562 if test "${CONFIG_HEADERS+set}" != set; then
22564 cat >> $CONFIG_STATUS <<EOF
22565 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22567 cat >> $CONFIG_STATUS <<\EOF
22569 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22570 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22572 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22573 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22574 *) ac_file_in="${ac_file}.in" ;;
22577 echo creating $ac_file
22579 rm -f conftest.frag conftest.in conftest.out
22580 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22581 cat $ac_file_inputs > conftest.in
22585 # Transform confdefs.h into a sed script conftest.vals that substitutes
22586 # the proper values into config.h.in to produce config.h. And first:
22587 # Protect against being on the right side of a sed subst in config.status.
22588 # Protect against being in an unquoted here document in config.status.
22589 rm -f conftest.vals
22590 cat > conftest.hdr <<\EOF
22593 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22597 sed -n -f conftest.hdr confdefs.h > conftest.vals
22600 # This sed command replaces #undef with comments. This is necessary, for
22601 # example, in the case of _POSIX_SOURCE, which is predefined and required
22602 # on some systems where configure will not decide to define it.
22603 cat >> conftest.vals <<\EOF
22604 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22607 # Break up conftest.vals because some shells have a limit on
22608 # the size of here documents, and old seds have small limits too.
22610 rm -f conftest.tail
22613 ac_lines=`grep -c . conftest.vals`
22614 # grep -c gives empty output for an empty file on some AIX systems.
22615 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22616 # Write a limited-size here document to conftest.frag.
22617 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22618 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22620 sed -f conftest.frag conftest.in > conftest.out
22622 mv conftest.out conftest.in
22623 ' >> $CONFIG_STATUS
22624 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22625 rm -f conftest.vals
22626 mv conftest.tail conftest.vals
22628 rm -f conftest.vals
22630 cat >> $CONFIG_STATUS <<\EOF
22631 rm -f conftest.frag conftest.h
22632 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22633 cat conftest.in >> conftest.h
22635 if cmp -s $ac_file conftest.h 2>/dev/null; then
22636 echo "$ac_file is unchanged"
22639 # Remove last slash and all that follows it. Not all systems have dirname.
22640 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22641 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22642 # The file is in a subdirectory.
22643 test ! -d "$ac_dir" && mkdir "$ac_dir"
22646 mv conftest.h $ac_file
22651 cat >> $CONFIG_STATUS <<EOF
22654 cat >> $CONFIG_STATUS <<\EOF
22657 echo Please run \"make depend\" to build dependencies
22661 chmod +x $CONFIG_STATUS
22662 rm -fr confdefs* $ac_clean_files
22663 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1