3 # from OpenLDAP: pkg/ldap/configure.in,v 1.417 2002/05/13 16:48:37 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-x-compile enable cross compiling [no]"
49 --with-cyrus-sasl with Cyrus SASL support [auto]"
51 --with-fetch with freeBSD fetch URL support [auto]"
53 --with-kerberos with Kerberos support [auto]"
55 --with-readline with readline support [auto]"
57 --with-threads with threads [auto]"
59 --with-tls with TLS/SSL support [auto]"
61 --with-yielding-select with implicitly yielding select [auto]"
64 SLAPD (Standalone LDAP Daemon) Options:"
66 --enable-slapd enable building slapd [yes]"
68 --enable-aci enable per-object ACIs (experimental) [no]"
70 --enable-cleartext enable cleartext passwords [yes]"
72 --enable-crypt enable crypt(3) passwords [no]"
74 --enable-dynamic enable linking built binaries with dynamic libs [no]"
76 --enable-kpasswd enable Kerberos password verification [no]"
78 --enable-lmpasswd enable LAN Manager passwords [no]"
80 --enable-spasswd enable (Cyrus) SASL password verification [no]"
82 --enable-modules enable dynamic module support [no]"
84 --enable-phonetic enable phonetic/soundex [no]"
86 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
88 --enable-rlookups enable reverse lookups of client hostnames [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|dynamic [static]"
98 --enable-dnssrv enable dnssrv backend [no]"
100 --with-dnssrv-module module type static|dynamic [static]"
102 --enable-ldap enable ldap backend [no]"
104 --with-ldap-module module type static|dynamic [static]"
106 --enable-ldbm enable ldbm backend [no]"
108 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
110 --with-ldbm-module module type static|dynamic [static]"
112 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
114 --enable-meta enable metadirectory backend [no]"
116 --with-meta-module module type static|dynamic [static]"
118 --enable-monitor enable monitor backend [no]"
120 --with-monitor-module module type static|dynamic [static]"
122 --enable-null enable null backend [no]"
124 --with-null-module module type static|dynamic [static]"
126 --enable-passwd enable passwd backend [no]"
128 --with-passwd-module module type static|dynamic [static]"
130 --enable-perl enable perl backend [no]"
132 --with-perl-module module type static|dynamic [static]"
134 --enable-shell enable shell backend [no]"
136 --with-shell-module module type static|dynamic [static]"
138 --enable-sql enable sql backend [no]"
140 --with-sql-module module type static|dynamic [static]"
142 --enable-tcl enable tcl backend [no]"
144 --with-tcl-module module type static|dynamic [static]"
147 SLURPD (Replication Daemon) Options:"
149 --enable-slurpd enable building slurpd [auto]"
152 Library Generation & Linking Options"
154 --enable-static[=PKGS] build static libraries [default=yes]"
156 --enable-shared[=PKGS] build shared libraries [default=yes]"
158 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
160 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
162 # Find the correct PATH separator. Usually this is `:', but
163 # DJGPP uses `;' like DOS.
164 if test "X${PATH_SEPARATOR+set}" != Xset; then
165 UNAME=${UNAME-`uname 2>/dev/null`}
167 *-DOS) lt_cv_sys_path_separator=';' ;;
168 *) lt_cv_sys_path_separator=':' ;;
170 PATH_SEPARATOR=$lt_cv_sys_path_separator
174 # Check that we are running under the correct shell.
175 SHELL=${CONFIG_SHELL-/bin/sh}
179 # Remove one level of quotation (which was required for Make).
180 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
185 if test "X$1" = X--no-reexec; then
186 # Discard the --no-reexec flag, and continue.
188 elif test "X$1" = X--fallback-echo; then
189 # Avoid inline document here, it may be left over
191 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
192 # Yippee, $echo works!
195 # Restart under the correct shell.
196 exec $SHELL "$0" --no-reexec ${1+"$@"}
199 if test "X$1" = X--fallback-echo; then
200 # used as fallback echo
208 # The HP-UX ksh and POSIX shell print the target directory to stdout
210 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
212 if test -z "$ECHO"; then
213 if test "X${echo_test_string+set}" != Xset; then
214 # find a string as large as possible, as long as the shell can cope with it
215 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
216 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
217 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
218 echo_test_string="`eval $cmd`" &&
219 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
226 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
227 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
228 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # The Solaris, AIX, and Digital Unix default echo programs unquote
232 # backslashes. This makes it impossible to quote backslashes using
233 # echo "$something" | sed 's/\\/\\\\/g'
235 # So, first we look for a working echo in the user's PATH.
237 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
238 for dir in $PATH /usr/ucb; do
239 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
240 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
241 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
242 test "X$echo_testing_string" = "X$echo_test_string"; then
249 if test "X$echo" = Xecho; then
250 # We didn't find a better echo, so look for alternatives.
251 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
254 # This shell has a builtin print -r that does the trick.
256 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
257 test "X$CONFIG_SHELL" != X/bin/ksh; then
258 # If we have ksh, try running configure again with it.
259 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
260 export ORIGINAL_CONFIG_SHELL
261 CONFIG_SHELL=/bin/ksh
263 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
267 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
268 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
272 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
273 test "X$echo_testing_string" = 'X\t' &&
274 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
275 test "X$echo_testing_string" = "X$echo_test_string"; then
276 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
278 SHELL="$CONFIG_SHELL"
280 echo="$CONFIG_SHELL $0 --fallback-echo"
281 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
282 test "X$echo_testing_string" = 'X\t' &&
283 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
284 test "X$echo_testing_string" = "X$echo_test_string"; then
285 echo="$CONFIG_SHELL $0 --fallback-echo"
287 # maybe with a smaller string...
290 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
291 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
298 if test "$prev" != 'sed 50q "$0"'; then
299 echo_test_string=`eval $prev`
300 export echo_test_string
301 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
303 # Oops. We lost completely, so just stick with echo.
312 # Copy echo and quote the copy suitably for passing to libtool from
313 # the Makefile, instead of quoting the original, which is used later.
315 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
316 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
321 --disable-libtool-lock avoid locking (might break parallel builds)"
323 --with-pic try to use only PIC/non-PIC objects [default=use both]"
326 See INSTALL file for further details."
328 # Initialize some variables set by options.
329 # The variables have the same names as the options, with
330 # dashes changed to underlines.
332 cache_file=./config.cache
341 program_transform_name=s,x,x,
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
362 # Initialize some other variables.
365 SHELL=${CONFIG_SHELL-/bin/sh}
366 # Maximum number of lines to put in a shell here document.
373 # If the previous option needs an argument, assign it.
374 if test -n "$ac_prev"; then
375 eval "$ac_prev=\$ac_option"
381 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
385 # Accept the important Cygnus configure options, so we can diagnose typos.
389 -bindir | --bindir | --bindi | --bind | --bin | --bi)
391 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 bindir="$ac_optarg" ;;
394 -build | --build | --buil | --bui | --bu)
396 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
397 build="$ac_optarg" ;;
399 -cache-file | --cache-file | --cache-fil | --cache-fi \
400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
401 ac_prev=cache_file ;;
402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
404 cache_file="$ac_optarg" ;;
406 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410 datadir="$ac_optarg" ;;
412 -disable-* | --disable-*)
413 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
418 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
419 eval "enable_${ac_feature}=no" ;;
421 -enable-* | --enable-*)
422 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
425 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
427 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
432 eval "enable_${ac_feature}='$ac_optarg'" ;;
434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
436 | --exec | --exe | --ex)
437 ac_prev=exec_prefix ;;
438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
440 | --exec=* | --exe=* | --ex=*)
441 exec_prefix="$ac_optarg" ;;
443 -gas | --gas | --ga | --g)
444 # Obsolete; use --with-gas.
447 -help | --help | --hel | --he)
448 # Omit some internal or obsolete options to make the list less imposing.
449 # This message is too long to be a string in the A/UX 3.1 sh.
451 Usage: configure [options] [host]
452 Options: [defaults in brackets after descriptions]
454 --cache-file=FILE cache test results in FILE
455 --help print this message
456 --no-create do not create output files
457 --quiet, --silent do not print \`checking...' messages
458 --version print the version of autoconf that created configure
459 Directory and file names:
460 --prefix=PREFIX install architecture-independent files in PREFIX
462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
464 --bindir=DIR user executables in DIR [EPREFIX/bin]
465 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
466 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
467 --datadir=DIR read-only architecture-independent data in DIR
469 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
470 --sharedstatedir=DIR modifiable architecture-independent data in DIR
472 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
473 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
474 --includedir=DIR C header files in DIR [PREFIX/include]
475 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
476 --infodir=DIR info documentation in DIR [PREFIX/info]
477 --mandir=DIR man documentation in DIR [PREFIX/man]
478 --srcdir=DIR find the sources in DIR [configure dir or ..]
479 --program-prefix=PREFIX prepend PREFIX to installed program names
480 --program-suffix=SUFFIX append SUFFIX to installed program names
481 --program-transform-name=PROGRAM
482 run sed PROGRAM on installed program names
486 --build=BUILD configure for building on BUILD [BUILD=HOST]
487 --host=HOST configure for HOST [guessed]
488 --target=TARGET configure for TARGET [TARGET=HOST]
489 Features and packages:
490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
494 --x-includes=DIR X include files are in DIR
495 --x-libraries=DIR X library files are in DIR
497 if test -n "$ac_help"; then
498 echo "--enable and --with options recognized:$ac_help"
502 -host | --host | --hos | --ho)
504 -host=* | --host=* | --hos=* | --ho=*)
507 -includedir | --includedir | --includedi | --included | --include \
508 | --includ | --inclu | --incl | --inc)
509 ac_prev=includedir ;;
510 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
511 | --includ=* | --inclu=* | --incl=* | --inc=*)
512 includedir="$ac_optarg" ;;
514 -infodir | --infodir | --infodi | --infod | --info | --inf)
516 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
517 infodir="$ac_optarg" ;;
519 -libdir | --libdir | --libdi | --libd)
521 -libdir=* | --libdir=* | --libdi=* | --libd=*)
522 libdir="$ac_optarg" ;;
524 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
525 | --libexe | --libex | --libe)
526 ac_prev=libexecdir ;;
527 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
528 | --libexe=* | --libex=* | --libe=*)
529 libexecdir="$ac_optarg" ;;
531 -localstatedir | --localstatedir | --localstatedi | --localstated \
532 | --localstate | --localstat | --localsta | --localst \
533 | --locals | --local | --loca | --loc | --lo)
534 ac_prev=localstatedir ;;
535 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
536 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
537 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
538 localstatedir="$ac_optarg" ;;
540 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
542 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
543 mandir="$ac_optarg" ;;
546 # Obsolete; use --without-fp.
549 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
554 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
557 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
558 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
559 | --oldin | --oldi | --old | --ol | --o)
560 ac_prev=oldincludedir ;;
561 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
562 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
563 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
564 oldincludedir="$ac_optarg" ;;
566 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
568 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
569 prefix="$ac_optarg" ;;
571 -program-prefix | --program-prefix | --program-prefi | --program-pref \
572 | --program-pre | --program-pr | --program-p)
573 ac_prev=program_prefix ;;
574 -program-prefix=* | --program-prefix=* | --program-prefi=* \
575 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
576 program_prefix="$ac_optarg" ;;
578 -program-suffix | --program-suffix | --program-suffi | --program-suff \
579 | --program-suf | --program-su | --program-s)
580 ac_prev=program_suffix ;;
581 -program-suffix=* | --program-suffix=* | --program-suffi=* \
582 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
583 program_suffix="$ac_optarg" ;;
585 -program-transform-name | --program-transform-name \
586 | --program-transform-nam | --program-transform-na \
587 | --program-transform-n | --program-transform- \
588 | --program-transform | --program-transfor \
589 | --program-transfo | --program-transf \
590 | --program-trans | --program-tran \
591 | --progr-tra | --program-tr | --program-t)
592 ac_prev=program_transform_name ;;
593 -program-transform-name=* | --program-transform-name=* \
594 | --program-transform-nam=* | --program-transform-na=* \
595 | --program-transform-n=* | --program-transform-=* \
596 | --program-transform=* | --program-transfor=* \
597 | --program-transfo=* | --program-transf=* \
598 | --program-trans=* | --program-tran=* \
599 | --progr-tra=* | --program-tr=* | --program-t=*)
600 program_transform_name="$ac_optarg" ;;
602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
603 | -silent | --silent | --silen | --sile | --sil)
606 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
608 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
610 sbindir="$ac_optarg" ;;
612 -sharedstatedir | --sharedstatedir | --sharedstatedi \
613 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
614 | --sharedst | --shareds | --shared | --share | --shar \
616 ac_prev=sharedstatedir ;;
617 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
618 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
619 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
621 sharedstatedir="$ac_optarg" ;;
623 -site | --site | --sit)
625 -site=* | --site=* | --sit=*)
628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
631 srcdir="$ac_optarg" ;;
633 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
634 | --syscon | --sysco | --sysc | --sys | --sy)
635 ac_prev=sysconfdir ;;
636 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
637 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
638 sysconfdir="$ac_optarg" ;;
640 -target | --target | --targe | --targ | --tar | --ta | --t)
642 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
643 target="$ac_optarg" ;;
645 -v | -verbose | --verbose | --verbos | --verbo | --verb)
648 -version | --version | --versio | --versi | --vers)
649 echo "configure generated by autoconf version 2.13.1"
653 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
654 # Reject names that are not valid shell variable names.
655 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
656 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
658 ac_package=`echo $ac_package| sed 's/-/_/g'`
663 eval "with_${ac_package}='$ac_optarg'" ;;
665 -without-* | --without-*)
666 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
667 # Reject names that are not valid shell variable names.
668 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
669 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
671 ac_package=`echo $ac_package| sed 's/-/_/g'`
672 eval "with_${ac_package}=no" ;;
675 # Obsolete; use --with-x.
678 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
679 | --x-incl | --x-inc | --x-in | --x-i)
680 ac_prev=x_includes ;;
681 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
682 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
683 x_includes="$ac_optarg" ;;
685 -x-libraries | --x-libraries | --x-librarie | --x-librari \
686 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
687 ac_prev=x_libraries ;;
688 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
689 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
690 x_libraries="$ac_optarg" ;;
692 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
696 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
697 echo "configure: warning: $ac_option: invalid host type" 1>&2
699 if test "x$nonopt" != xNONE; then
700 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
708 if test -n "$ac_prev"; then
709 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
714 # File descriptor usage:
717 # 2 errors and warnings
718 # 3 some systems may open it to /dev/tty
719 # 4 used on the Kubota Titan
720 # 6 checking for... messages and results
721 # 5 compiler messages saved in config.log
722 if test "$silent" = yes; then
730 This file contains any messages produced by compilers while
731 running configure, to aid debugging if configure makes a mistake.
734 # Strip out --no-create and --no-recursion so they do not pile up.
735 # Also quote any args containing shell metacharacters.
740 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
741 | --no-cr | --no-c) ;;
742 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
743 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
744 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
745 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
746 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
751 # Only set these to C if already set. These must not be set unconditionally
752 # because not all systems understand e.g. LANG=C (notably SCO).
753 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
754 # Non-C LC_CTYPE values break the ctype check.
755 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
756 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
757 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
758 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
761 rm -rf conftest* confdefs.h
762 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
765 # A filename unique to this package, relative to the directory that
766 # configure is in, which we can look for to find out if srcdir is correct.
767 ac_unique_file=build/version.sh
769 # Find the source files, if location was not specified.
770 if test -z "$srcdir"; then
771 ac_srcdir_defaulted=yes
772 # Try the directory containing this script, then its parent.
774 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
775 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
777 if test ! -r $srcdir/$ac_unique_file; then
781 ac_srcdir_defaulted=no
783 if test ! -r $srcdir/$ac_unique_file; then
784 if test "$ac_srcdir_defaulted" = yes; then
785 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
787 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
790 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
792 # Prefer explicitly selected file to automatically selected ones.
793 if test -z "$CONFIG_SITE"; then
794 if test "x$prefix" != xNONE; then
795 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
797 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
800 for ac_site_file in $CONFIG_SITE; do
801 if test -r "$ac_site_file"; then
802 echo "loading site script $ac_site_file"
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
817 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
818 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
819 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
826 ac_n= ac_c='\c' ac_t=
830 # set unset (borrowed from autoconf 2.49c)
831 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
837 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
840 for ac_dir in build $srcdir/build; do
841 if test -f $ac_dir/install-sh; then
843 ac_install_sh="$ac_aux_dir/install-sh -c"
845 elif test -f $ac_dir/install.sh; then
847 ac_install_sh="$ac_aux_dir/install.sh -c"
849 elif test -f $ac_dir/shtool; then
851 ac_install_sh="$ac_aux_dir/shtool install -c"
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
860 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
862 eval `$ac_aux_dir/version.sh`
863 if test -z "$OL_STRING"; then
864 { echo "configure: error: could not determine version" 1>&2; exit 1; }
867 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
868 ac_cv_shtool="$ac_aux_dir/shtool"
870 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
873 SHTOOL="$ac_cv_shtool"
875 TB=`$SHTOOL echo -e %B`
876 TN=`$SHTOOL echo -e %b`
878 echo "Configuring $TB$OL_STRING$TN ..."
881 echo $ac_n "checking host system type""... $ac_c" 1>&6
882 echo "configure:883: checking host system type" >&5
883 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
885 # Make sure we can run config.sub.
886 if $ac_config_sub sun4 >/dev/null 2>&1; then :
887 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
890 ac_cv_host_alias=$host
891 case "$ac_cv_host_alias" in
895 if ac_cv_host_alias=`$ac_config_guess`; then :
896 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
898 *) ac_cv_host_alias=$nonopt ;;
902 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
903 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
904 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
905 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
907 echo $ac_n "(cached) $ac_c" 1>&6
910 echo "$ac_t""$ac_cv_host" 1>&6
913 host_alias=$ac_cv_host_alias
914 host_cpu=$ac_cv_host_cpu
915 host_vendor=$ac_cv_host_vendor
916 host_os=$ac_cv_host_os
922 echo $ac_n "checking target system type""... $ac_c" 1>&6
923 echo "configure:924: checking target system type" >&5
924 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
926 # Make sure we can run config.sub.
927 if $ac_config_sub sun4 >/dev/null 2>&1; then :
928 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
931 ac_cv_target_alias=$target
932 case "$ac_cv_target_alias" in
936 ac_cv_target_alias=$host_alias ;;
938 *) ac_cv_target_alias=$nonopt ;;
942 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
943 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
947 echo $ac_n "(cached) $ac_c" 1>&6
950 echo "$ac_t""$ac_cv_target" 1>&6
953 target_alias=$ac_cv_target_alias
954 target_cpu=$ac_cv_target_cpu
955 target_vendor=$ac_cv_target_vendor
956 target_os=$ac_cv_target_os
962 echo $ac_n "checking build system type""... $ac_c" 1>&6
963 echo "configure:964: checking build system type" >&5
964 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
966 # Make sure we can run config.sub.
967 if $ac_config_sub sun4 >/dev/null 2>&1; then :
968 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
971 ac_cv_build_alias=$build
972 case "$ac_cv_build_alias" in
976 ac_cv_build_alias=$host_alias ;;
978 *) ac_cv_build_alias=$nonopt ;;
982 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
983 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
987 echo $ac_n "(cached) $ac_c" 1>&6
990 echo "$ac_t""$ac_cv_build" 1>&6
993 build_alias=$ac_cv_build_alias
994 build_cpu=$ac_cv_build_cpu
995 build_vendor=$ac_cv_build_vendor
996 build_os=$ac_cv_build_os
1002 # Do some error checking and defaulting for the host and target type.
1004 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1007 # 1. You are not allowed to specify --host, --target, and nonopt at the
1009 # 2. Host defaults to nonopt.
1010 # 3. If nonopt is not specified, then host defaults to the current host,
1011 # as determined by config.guess.
1012 # 4. Target and build default to nonopt.
1013 # 5. If nonopt is not specified, then target and build default to host.
1015 # The aliases save the names the user supplied, while $host etc.
1016 # will get canonicalized.
1017 case $host---$target---$nonopt in
1018 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1019 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1022 test "$host_alias" != "$target_alias" &&
1023 test "$program_prefix$program_suffix$program_transform_name" = \
1025 program_prefix=${target_alias}-
1028 # Find a good install program. We prefer a C program (faster),
1029 # so one script is as good as another. But avoid the broken or
1030 # incompatible versions:
1031 # SysV /etc/install, /usr/sbin/install
1032 # SunOS /usr/etc/install
1033 # IRIX /sbin/install
1035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1038 # ./install, which can be erroneously created by make from ./install.sh.
1039 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1040 echo "configure:1041: checking for a BSD compatible install" >&5
1041 if test -z "$INSTALL"; then
1042 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1046 for ac_dir in $PATH; do
1047 # Account for people who put trailing slashes in PATH elements.
1049 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1051 # OSF1 and SCO ODT 3.0 have their own names for install.
1052 # Don't use installbsd from OSF since it installs stuff as root
1054 for ac_prog in ginstall scoinst install; do
1055 if test -f $ac_dir/$ac_prog; then
1056 if test $ac_prog = install &&
1057 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1058 # AIX install. It has an incompatible calling convention.
1060 elif test $ac_prog = install &&
1061 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1062 # program-specific install script used by HP pwplus--don't use.
1065 ac_cv_path_install="$ac_dir/$ac_prog -c"
1076 if test "${ac_cv_path_install+set}" = set; then
1077 INSTALL="$ac_cv_path_install"
1079 # As a last resort, use the slow shell script. We don't cache a
1080 # path for INSTALL within a source directory, because that will
1081 # break other packages using the cache if that directory is
1082 # removed, or if the path is relative.
1083 INSTALL="$ac_install_sh"
1086 echo "$ac_t""$INSTALL" 1>&6
1088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1089 # It thinks the first close brace ends the variable substitution.
1090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1096 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether build environment is sane" >&5
1100 echo timestamp > conftestfile
1101 # Do `set' in a subshell so we don't clobber the current shell's
1102 # arguments. Must try -L first in case configure is actually a
1103 # symlink; some systems play weird games with the mod time of symlinks
1104 # (eg FreeBSD returns the mod time of the symlink's containing
1107 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1108 if test "$*" = "X"; then
1110 set X `ls -t $srcdir/configure conftestfile`
1112 if test "$*" != "X $srcdir/configure conftestfile" \
1113 && test "$*" != "X conftestfile $srcdir/configure"; then
1115 # If neither matched, then we have a broken ls. This can happen
1116 # if, for instance, CONFIG_SHELL is bash and it inherits a
1117 # broken ls alias from the environment. This has actually
1118 # happened. Such a system could not be considered "sane".
1119 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1120 alias in your environment" 1>&2; exit 1; }
1123 test "$2" = conftestfile
1129 { echo "configure: error: newly created file is older than distributed files!
1130 Check your system clock" 1>&2; exit 1; }
1133 echo "$ac_t""yes" 1>&6
1134 if test "$program_transform_name" = s,x,x,; then
1135 program_transform_name=
1137 # Double any \ or $. echo might interpret backslashes.
1138 cat <<\EOF_SED > conftestsed
1139 s,\\,\\\\,g; s,\$,$$,g
1141 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1144 test "$program_prefix" != NONE &&
1145 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1146 # Use a double $ so make ignores it.
1147 test "$program_suffix" != NONE &&
1148 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1150 # sed with no file args requires a program.
1151 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1153 for ac_prog in mawk gawk nawk awk
1155 # Extract the first word of "$ac_prog", so it can be a program name with args.
1156 set dummy $ac_prog; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$AWK"; then
1163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_AWK="$ac_prog"
1177 AWK="$ac_cv_prog_AWK"
1178 if test -n "$AWK"; then
1179 echo "$ac_t""$AWK" 1>&6
1181 echo "$ac_t""no" 1>&6
1184 test -n "$AWK" && break
1187 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1188 echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
1189 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1190 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftestmake <<\EOF
1195 @echo 'ac_maketemp="${MAKE}"'
1197 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1198 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1199 if test -n "$ac_maketemp"; then
1200 eval ac_cv_prog_make_${ac_make}_set=yes
1202 eval ac_cv_prog_make_${ac_make}_set=no
1206 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1207 echo "$ac_t""yes" 1>&6
1210 echo "$ac_t""no" 1>&6
1211 SET_MAKE="MAKE=${MAKE-make}"
1220 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1221 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1226 missing_dir=`cd $ac_aux_dir && pwd`
1227 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1228 echo "configure:1229: checking for working aclocal" >&5
1229 # Run test in a subshell; some versions of sh will print an error if
1230 # an executable is not found, even if stderr is redirected.
1231 # Redirect stdin to placate older versions of autoconf. Sigh.
1232 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1234 echo "$ac_t""found" 1>&6
1236 ACLOCAL="$missing_dir/missing aclocal"
1237 echo "$ac_t""missing" 1>&6
1240 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1241 echo "configure:1242: checking for working autoconf" >&5
1242 # Run test in a subshell; some versions of sh will print an error if
1243 # an executable is not found, even if stderr is redirected.
1244 # Redirect stdin to placate older versions of autoconf. Sigh.
1245 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1247 echo "$ac_t""found" 1>&6
1249 AUTOCONF="$missing_dir/missing autoconf"
1250 echo "$ac_t""missing" 1>&6
1253 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1254 echo "configure:1255: checking for working automake" >&5
1255 # Run test in a subshell; some versions of sh will print an error if
1256 # an executable is not found, even if stderr is redirected.
1257 # Redirect stdin to placate older versions of autoconf. Sigh.
1258 if (automake --version) < /dev/null > /dev/null 2>&1; then
1260 echo "$ac_t""found" 1>&6
1262 AUTOMAKE="$missing_dir/missing automake"
1263 echo "$ac_t""missing" 1>&6
1266 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1267 echo "configure:1268: checking for working autoheader" >&5
1268 # Run test in a subshell; some versions of sh will print an error if
1269 # an executable is not found, even if stderr is redirected.
1270 # Redirect stdin to placate older versions of autoconf. Sigh.
1271 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1272 AUTOHEADER=autoheader
1273 echo "$ac_t""found" 1>&6
1275 AUTOHEADER="$missing_dir/missing autoheader"
1276 echo "$ac_t""missing" 1>&6
1279 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1280 echo "configure:1281: checking for working makeinfo" >&5
1281 # Run test in a subshell; some versions of sh will print an error if
1282 # an executable is not found, even if stderr is redirected.
1283 # Redirect stdin to placate older versions of autoconf. Sigh.
1284 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1286 echo "$ac_t""found" 1>&6
1288 MAKEINFO="$missing_dir/missing makeinfo"
1289 echo "$ac_t""missing" 1>&6
1292 install_sh="$missing_dir/install-sh"
1293 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1295 for ac_prog in gnutar gtar tar
1297 # Extract the first word of "$ac_prog", so it can be a program name with args.
1298 set dummy $ac_prog; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_word" >&5
1301 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if test -n "$AMTAR"; then
1305 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_prog_AMTAR="$ac_prog"
1319 AMTAR="$ac_cv_prog_AMTAR"
1320 if test -n "$AMTAR"; then
1321 echo "$ac_t""$AMTAR" 1>&6
1323 echo "$ac_t""no" 1>&6
1326 test -n "$AMTAR" && break
1331 if test -n "$AMTAR"; then
1332 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1337 cat >> confdefs.h <<EOF
1338 #define OPENLDAP_PACKAGE "$PACKAGE"
1341 cat >> confdefs.h <<EOF
1342 #define OPENLDAP_VERSION "$VERSION"
1346 cat >> confdefs.h <<EOF
1347 #define LDAP_VENDOR_VERSION $OL_API_INC
1350 cat >> confdefs.h <<EOF
1351 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1354 cat >> confdefs.h <<EOF
1355 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1358 cat >> confdefs.h <<EOF
1359 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1363 OPENLDAP_LIBVERSION=$OL_API_LIB
1367 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1368 echo "configure:1369: checking configure arguments" >&5
1373 ldap_subdir="/openldap"
1375 # Check whether --with-subdir or --without-subdir was given.
1376 if test "${with_subdir+set}" = set; then
1377 withval="$with_subdir"
1384 ldap_subdir="$withval"
1387 ldap_subdir="/$withval"
1394 # OpenLDAP --enable-debug
1395 # Check whether --enable-debug or --disable-debug was given.
1396 if test "${enable_debug+set}" = set; then
1397 enableval="$enable_debug"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1408 ol_enable_debug="$ol_arg"
1411 ol_enable_debug="yes"
1413 # end --enable-debug
1414 # OpenLDAP --enable-syslog
1415 # Check whether --enable-syslog or --disable-syslog was given.
1416 if test "${enable_syslog+set}" = set; then
1417 enableval="$enable_syslog"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1428 ol_enable_syslog="$ol_arg"
1431 ol_enable_syslog="auto"
1433 # end --enable-syslog
1434 # OpenLDAP --enable-proctitle
1435 # Check whether --enable-proctitle or --disable-proctitle was given.
1436 if test "${enable_proctitle+set}" = set; then
1437 enableval="$enable_proctitle"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1448 ol_enable_proctitle="$ol_arg"
1451 ol_enable_proctitle="yes"
1453 # end --enable-proctitle
1454 # OpenLDAP --enable-cache
1455 # Check whether --enable-cache or --disable-cache was given.
1456 if test "${enable_cache+set}" = set; then
1457 enableval="$enable_cache"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1468 ol_enable_cache="$ol_arg"
1471 ol_enable_cache="no"
1473 # end --enable-cache
1474 # OpenLDAP --enable-referrals
1475 # Check whether --enable-referrals or --disable-referrals was given.
1476 if test "${enable_referrals+set}" = set; then
1477 enableval="$enable_referrals"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1488 ol_enable_referrals="$ol_arg"
1491 ol_enable_referrals="no"
1493 # end --enable-referrals
1494 # OpenLDAP --enable-kbind
1495 # Check whether --enable-kbind or --disable-kbind was given.
1496 if test "${enable_kbind+set}" = set; then
1497 enableval="$enable_kbind"
1500 for ol_val in auto yes no ; do
1501 if test "$enableval" = "$ol_val" ; then
1505 if test "$ol_arg" = "invalid" ; then
1506 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1508 ol_enable_kbind="$ol_arg"
1511 ol_enable_kbind="no"
1513 # end --enable-kbind
1514 # OpenLDAP --enable-ipv6
1515 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1516 if test "${enable_ipv6+set}" = set; then
1517 enableval="$enable_ipv6"
1520 for ol_val in auto yes no ; do
1521 if test "$enableval" = "$ol_val" ; then
1525 if test "$ol_arg" = "invalid" ; then
1526 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1528 ol_enable_ipv6="$ol_arg"
1531 ol_enable_ipv6="auto"
1534 # OpenLDAP --enable-local
1535 # Check whether --enable-local or --disable-local was given.
1536 if test "${enable_local+set}" = set; then
1537 enableval="$enable_local"
1540 for ol_val in auto yes no ; do
1541 if test "$enableval" = "$ol_val" ; then
1545 if test "$ol_arg" = "invalid" ; then
1546 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1548 ol_enable_local="$ol_arg"
1551 ol_enable_local="auto"
1553 # end --enable-local
1554 # OpenLDAP --enable-x_compile
1555 # Check whether --enable-x_compile or --disable-x_compile was given.
1556 if test "${enable_x_compile+set}" = set; then
1557 enableval="$enable_x_compile"
1560 for ol_val in yes no ; do
1561 if test "$enableval" = "$ol_val" ; then
1565 if test "$ol_arg" = "invalid" ; then
1566 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1568 ol_enable_x_compile="$ol_arg"
1571 ol_enable_x_compile="no"
1573 # end --enable-x_compile
1576 # OpenLDAP --with-cyrus_sasl
1577 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1578 if test "${with_cyrus_sasl+set}" = set; then
1579 withval="$with_cyrus_sasl"
1582 for ol_val in auto yes no ; do
1583 if test "$withval" = "$ol_val" ; then
1587 if test "$ol_arg" = "invalid" ; then
1588 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1590 ol_with_cyrus_sasl="$ol_arg"
1593 ol_with_cyrus_sasl="auto"
1595 # end --with-cyrus_sasl
1597 # OpenLDAP --with-fetch
1598 # Check whether --with-fetch or --without-fetch was given.
1599 if test "${with_fetch+set}" = set; then
1600 withval="$with_fetch"
1603 for ol_val in auto yes no ; do
1604 if test "$withval" = "$ol_val" ; then
1608 if test "$ol_arg" = "invalid" ; then
1609 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1611 ol_with_fetch="$ol_arg"
1614 ol_with_fetch="auto"
1618 # OpenLDAP --with-kerberos
1619 # Check whether --with-kerberos or --without-kerberos was given.
1620 if test "${with_kerberos+set}" = set; then
1621 withval="$with_kerberos"
1624 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1625 if test "$withval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1632 ol_with_kerberos="$ol_arg"
1635 ol_with_kerberos="auto"
1637 # end --with-kerberos
1639 # OpenLDAP --with-readline
1640 # Check whether --with-readline or --without-readline was given.
1641 if test "${with_readline+set}" = set; then
1642 withval="$with_readline"
1645 for ol_val in auto yes no ; do
1646 if test "$withval" = "$ol_val" ; then
1650 if test "$ol_arg" = "invalid" ; then
1651 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1653 ol_with_readline="$ol_arg"
1656 ol_with_readline="auto"
1658 # end --with-readline
1660 # OpenLDAP --with-threads
1661 # Check whether --with-threads or --without-threads was given.
1662 if test "${with_threads+set}" = set; then
1663 withval="$with_threads"
1666 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1667 if test "$withval" = "$ol_val" ; then
1671 if test "$ol_arg" = "invalid" ; then
1672 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1674 ol_with_threads="$ol_arg"
1677 ol_with_threads="auto"
1679 # end --with-threads
1681 # OpenLDAP --with-tls
1682 # Check whether --with-tls or --without-tls was given.
1683 if test "${with_tls+set}" = set; then
1687 for ol_val in auto ssleay openssl yes no ; do
1688 if test "$withval" = "$ol_val" ; then
1692 if test "$ol_arg" = "invalid" ; then
1693 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1695 ol_with_tls="$ol_arg"
1702 # OpenLDAP --with-yielding_select
1703 # Check whether --with-yielding_select or --without-yielding_select was given.
1704 if test "${with_yielding_select+set}" = set; then
1705 withval="$with_yielding_select"
1708 for ol_val in auto yes no manual ; do
1709 if test "$withval" = "$ol_val" ; then
1713 if test "$ol_arg" = "invalid" ; then
1714 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1716 ol_with_yielding_select="$ol_arg"
1719 ol_with_yielding_select="auto"
1721 # end --with-yielding_select
1725 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1726 if test "${with_xxslapdoptions+set}" = set; then
1727 withval="$with_xxslapdoptions"
1731 # OpenLDAP --enable-slapd
1732 # Check whether --enable-slapd or --disable-slapd was given.
1733 if test "${enable_slapd+set}" = set; then
1734 enableval="$enable_slapd"
1737 for ol_val in auto yes no ; do
1738 if test "$enableval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1745 ol_enable_slapd="$ol_arg"
1748 ol_enable_slapd="yes"
1750 # end --enable-slapd
1751 # OpenLDAP --enable-aci
1752 # Check whether --enable-aci or --disable-aci was given.
1753 if test "${enable_aci+set}" = set; then
1754 enableval="$enable_aci"
1757 for ol_val in auto yes no ; do
1758 if test "$enableval" = "$ol_val" ; then
1762 if test "$ol_arg" = "invalid" ; then
1763 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1765 ol_enable_aci="$ol_arg"
1771 # OpenLDAP --enable-cleartext
1772 # Check whether --enable-cleartext or --disable-cleartext was given.
1773 if test "${enable_cleartext+set}" = set; then
1774 enableval="$enable_cleartext"
1777 for ol_val in auto yes no ; do
1778 if test "$enableval" = "$ol_val" ; then
1782 if test "$ol_arg" = "invalid" ; then
1783 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1785 ol_enable_cleartext="$ol_arg"
1788 ol_enable_cleartext="yes"
1790 # end --enable-cleartext
1791 # OpenLDAP --enable-crypt
1792 # Check whether --enable-crypt or --disable-crypt was given.
1793 if test "${enable_crypt+set}" = set; then
1794 enableval="$enable_crypt"
1797 for ol_val in auto yes no ; do
1798 if test "$enableval" = "$ol_val" ; then
1802 if test "$ol_arg" = "invalid" ; then
1803 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1805 ol_enable_crypt="$ol_arg"
1808 ol_enable_crypt="no"
1810 # end --enable-crypt
1811 # OpenLDAP --enable-dynamic
1812 # Check whether --enable-dynamic or --disable-dynamic was given.
1813 if test "${enable_dynamic+set}" = set; then
1814 enableval="$enable_dynamic"
1817 for ol_val in auto yes no ; do
1818 if test "$enableval" = "$ol_val" ; then
1822 if test "$ol_arg" = "invalid" ; then
1823 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1825 ol_enable_dynamic="$ol_arg"
1828 ol_enable_dynamic="no"
1830 # end --enable-dynamic
1831 # OpenLDAP --enable-kpasswd
1832 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1833 if test "${enable_kpasswd+set}" = set; then
1834 enableval="$enable_kpasswd"
1837 for ol_val in auto yes no ; do
1838 if test "$enableval" = "$ol_val" ; then
1842 if test "$ol_arg" = "invalid" ; then
1843 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1845 ol_enable_kpasswd="$ol_arg"
1848 ol_enable_kpasswd="no"
1850 # end --enable-kpasswd
1851 # OpenLDAP --enable-lmpasswd
1852 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1853 if test "${enable_lmpasswd+set}" = set; then
1854 enableval="$enable_lmpasswd"
1857 for ol_val in auto yes no ; do
1858 if test "$enableval" = "$ol_val" ; then
1862 if test "$ol_arg" = "invalid" ; then
1863 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1865 ol_enable_lmpasswd="$ol_arg"
1868 ol_enable_lmpasswd="no"
1870 # end --enable-lmpasswd
1871 # OpenLDAP --enable-spasswd
1872 # Check whether --enable-spasswd or --disable-spasswd was given.
1873 if test "${enable_spasswd+set}" = set; then
1874 enableval="$enable_spasswd"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1885 ol_enable_spasswd="$ol_arg"
1888 ol_enable_spasswd="no"
1890 # end --enable-spasswd
1891 # OpenLDAP --enable-modules
1892 # Check whether --enable-modules or --disable-modules was given.
1893 if test "${enable_modules+set}" = set; then
1894 enableval="$enable_modules"
1897 for ol_val in auto yes no ; do
1898 if test "$enableval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1905 ol_enable_modules="$ol_arg"
1908 ol_enable_modules="no"
1910 # end --enable-modules
1911 # OpenLDAP --enable-phonetic
1912 # Check whether --enable-phonetic or --disable-phonetic was given.
1913 if test "${enable_phonetic+set}" = set; then
1914 enableval="$enable_phonetic"
1917 for ol_val in auto yes no ; do
1918 if test "$enableval" = "$ol_val" ; then
1922 if test "$ol_arg" = "invalid" ; then
1923 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1925 ol_enable_phonetic="$ol_arg"
1928 ol_enable_phonetic="no"
1930 # end --enable-phonetic
1931 # OpenLDAP --enable-rewrite
1932 # Check whether --enable-rewrite or --disable-rewrite was given.
1933 if test "${enable_rewrite+set}" = set; then
1934 enableval="$enable_rewrite"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1945 ol_enable_rewrite="$ol_arg"
1948 ol_enable_rewrite="no"
1950 # end --enable-rewrite
1951 # OpenLDAP --enable-rlookups
1952 # Check whether --enable-rlookups or --disable-rlookups was given.
1953 if test "${enable_rlookups+set}" = set; then
1954 enableval="$enable_rlookups"
1957 for ol_val in auto yes no ; do
1958 if test "$enableval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1965 ol_enable_rlookups="$ol_arg"
1968 ol_enable_rlookups="no"
1970 # end --enable-rlookups
1971 # OpenLDAP --enable-slp
1972 # Check whether --enable-slp or --disable-slp was given.
1973 if test "${enable_slp+set}" = set; then
1974 enableval="$enable_slp"
1977 for ol_val in auto yes no ; do
1978 if test "$enableval" = "$ol_val" ; then
1982 if test "$ol_arg" = "invalid" ; then
1983 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1985 ol_enable_slp="$ol_arg"
1991 # OpenLDAP --enable-wrappers
1992 # Check whether --enable-wrappers or --disable-wrappers was given.
1993 if test "${enable_wrappers+set}" = set; then
1994 enableval="$enable_wrappers"
1997 for ol_val in auto yes no ; do
1998 if test "$enableval" = "$ol_val" ; then
2002 if test "$ol_arg" = "invalid" ; then
2003 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
2005 ol_enable_wrappers="$ol_arg"
2008 ol_enable_wrappers="no"
2010 # end --enable-wrappers
2012 # OpenLDAP --enable-bdb
2013 # Check whether --enable-bdb or --disable-bdb was given.
2014 if test "${enable_bdb+set}" = set; then
2015 enableval="$enable_bdb"
2018 for ol_val in auto yes no ; do
2019 if test "$enableval" = "$ol_val" ; then
2023 if test "$ol_arg" = "invalid" ; then
2024 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2026 ol_enable_bdb="$ol_arg"
2032 # OpenLDAP --with-bdb_module
2033 # Check whether --with-bdb_module or --without-bdb_module was given.
2034 if test "${with_bdb_module+set}" = set; then
2035 withval="$with_bdb_module"
2038 for ol_val in static dynamic ; do
2039 if test "$withval" = "$ol_val" ; then
2043 if test "$ol_arg" = "invalid" ; then
2044 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2046 ol_with_bdb_module="$ol_arg"
2049 ol_with_bdb_module="static"
2051 # end --with-bdb_module
2053 # OpenLDAP --enable-dnssrv
2054 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2055 if test "${enable_dnssrv+set}" = set; then
2056 enableval="$enable_dnssrv"
2059 for ol_val in auto yes no ; do
2060 if test "$enableval" = "$ol_val" ; then
2064 if test "$ol_arg" = "invalid" ; then
2065 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2067 ol_enable_dnssrv="$ol_arg"
2070 ol_enable_dnssrv="no"
2072 # end --enable-dnssrv
2073 # OpenLDAP --with-dnssrv_module
2074 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2075 if test "${with_dnssrv_module+set}" = set; then
2076 withval="$with_dnssrv_module"
2079 for ol_val in static dynamic ; do
2080 if test "$withval" = "$ol_val" ; then
2084 if test "$ol_arg" = "invalid" ; then
2085 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2087 ol_with_dnssrv_module="$ol_arg"
2090 ol_with_dnssrv_module="static"
2092 # end --with-dnssrv_module
2094 # OpenLDAP --enable-ldap
2095 # Check whether --enable-ldap or --disable-ldap was given.
2096 if test "${enable_ldap+set}" = set; then
2097 enableval="$enable_ldap"
2100 for ol_val in auto yes no ; do
2101 if test "$enableval" = "$ol_val" ; then
2105 if test "$ol_arg" = "invalid" ; then
2106 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2108 ol_enable_ldap="$ol_arg"
2114 # OpenLDAP --with-ldap_module
2115 # Check whether --with-ldap_module or --without-ldap_module was given.
2116 if test "${with_ldap_module+set}" = set; then
2117 withval="$with_ldap_module"
2120 for ol_val in static dynamic ; do
2121 if test "$withval" = "$ol_val" ; then
2125 if test "$ol_arg" = "invalid" ; then
2126 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2128 ol_with_ldap_module="$ol_arg"
2131 ol_with_ldap_module="static"
2133 # end --with-ldap_module
2135 # OpenLDAP --enable-ldbm
2136 # Check whether --enable-ldbm or --disable-ldbm was given.
2137 if test "${enable_ldbm+set}" = set; then
2138 enableval="$enable_ldbm"
2141 for ol_val in auto yes no ; do
2142 if test "$enableval" = "$ol_val" ; then
2146 if test "$ol_arg" = "invalid" ; then
2147 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2149 ol_enable_ldbm="$ol_arg"
2155 # OpenLDAP --with-ldbm_api
2156 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2157 if test "${with_ldbm_api+set}" = set; then
2158 withval="$with_ldbm_api"
2161 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2162 if test "$withval" = "$ol_val" ; then
2166 if test "$ol_arg" = "invalid" ; then
2167 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2169 ol_with_ldbm_api="$ol_arg"
2172 ol_with_ldbm_api="auto"
2174 # end --with-ldbm_api
2176 # OpenLDAP --with-ldbm_module
2177 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2178 if test "${with_ldbm_module+set}" = set; then
2179 withval="$with_ldbm_module"
2182 for ol_val in static dynamic ; do
2183 if test "$withval" = "$ol_val" ; then
2187 if test "$ol_arg" = "invalid" ; then
2188 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2190 ol_with_ldbm_module="$ol_arg"
2193 ol_with_ldbm_module="static"
2195 # end --with-ldbm_module
2197 # OpenLDAP --with-ldbm_type
2198 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2199 if test "${with_ldbm_type+set}" = set; then
2200 withval="$with_ldbm_type"
2203 for ol_val in auto btree hash ; do
2204 if test "$withval" = "$ol_val" ; then
2208 if test "$ol_arg" = "invalid" ; then
2209 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2211 ol_with_ldbm_type="$ol_arg"
2214 ol_with_ldbm_type="auto"
2216 # end --with-ldbm_type
2218 # OpenLDAP --enable-meta
2219 # Check whether --enable-meta or --disable-meta was given.
2220 if test "${enable_meta+set}" = set; then
2221 enableval="$enable_meta"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2232 ol_enable_meta="$ol_arg"
2238 # OpenLDAP --with-meta_module
2239 # Check whether --with-meta_module or --without-meta_module was given.
2240 if test "${with_meta_module+set}" = set; then
2241 withval="$with_meta_module"
2244 for ol_val in static dynamic ; do
2245 if test "$withval" = "$ol_val" ; then
2249 if test "$ol_arg" = "invalid" ; then
2250 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2252 ol_with_meta_module="$ol_arg"
2255 ol_with_meta_module="static"
2257 # end --with-meta_module
2259 # OpenLDAP --enable-monitor
2260 # Check whether --enable-monitor or --disable-monitor was given.
2261 if test "${enable_monitor+set}" = set; then
2262 enableval="$enable_monitor"
2265 for ol_val in auto yes no ; do
2266 if test "$enableval" = "$ol_val" ; then
2270 if test "$ol_arg" = "invalid" ; then
2271 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2273 ol_enable_monitor="$ol_arg"
2276 ol_enable_monitor="no"
2278 # end --enable-monitor
2279 # OpenLDAP --with-monitor_module
2280 # Check whether --with-monitor_module or --without-monitor_module was given.
2281 if test "${with_monitor_module+set}" = set; then
2282 withval="$with_monitor_module"
2285 for ol_val in static dynamic ; do
2286 if test "$withval" = "$ol_val" ; then
2290 if test "$ol_arg" = "invalid" ; then
2291 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2293 ol_with_monitor_module="$ol_arg"
2296 ol_with_monitor_module="static"
2298 # end --with-monitor_module
2300 # OpenLDAP --enable-null
2301 # Check whether --enable-null or --disable-null was given.
2302 if test "${enable_null+set}" = set; then
2303 enableval="$enable_null"
2306 for ol_val in auto yes no ; do
2307 if test "$enableval" = "$ol_val" ; then
2311 if test "$ol_arg" = "invalid" ; then
2312 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2314 ol_enable_null="$ol_arg"
2320 # OpenLDAP --with-null_module
2321 # Check whether --with-null_module or --without-null_module was given.
2322 if test "${with_null_module+set}" = set; then
2323 withval="$with_null_module"
2326 for ol_val in static dynamic ; do
2327 if test "$withval" = "$ol_val" ; then
2331 if test "$ol_arg" = "invalid" ; then
2332 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2334 ol_with_null_module="$ol_arg"
2337 ol_with_null_module="static"
2339 # end --with-null_module
2341 # OpenLDAP --enable-passwd
2342 # Check whether --enable-passwd or --disable-passwd was given.
2343 if test "${enable_passwd+set}" = set; then
2344 enableval="$enable_passwd"
2347 for ol_val in auto yes no ; do
2348 if test "$enableval" = "$ol_val" ; then
2352 if test "$ol_arg" = "invalid" ; then
2353 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2355 ol_enable_passwd="$ol_arg"
2358 ol_enable_passwd="no"
2360 # end --enable-passwd
2361 # OpenLDAP --with-passwd_module
2362 # Check whether --with-passwd_module or --without-passwd_module was given.
2363 if test "${with_passwd_module+set}" = set; then
2364 withval="$with_passwd_module"
2367 for ol_val in static dynamic ; do
2368 if test "$withval" = "$ol_val" ; then
2372 if test "$ol_arg" = "invalid" ; then
2373 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2375 ol_with_passwd_module="$ol_arg"
2378 ol_with_passwd_module="static"
2380 # end --with-passwd_module
2382 # OpenLDAP --enable-perl
2383 # Check whether --enable-perl or --disable-perl was given.
2384 if test "${enable_perl+set}" = set; then
2385 enableval="$enable_perl"
2388 for ol_val in auto yes no ; do
2389 if test "$enableval" = "$ol_val" ; then
2393 if test "$ol_arg" = "invalid" ; then
2394 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2396 ol_enable_perl="$ol_arg"
2402 # OpenLDAP --with-perl_module
2403 # Check whether --with-perl_module or --without-perl_module was given.
2404 if test "${with_perl_module+set}" = set; then
2405 withval="$with_perl_module"
2408 for ol_val in static dynamic ; do
2409 if test "$withval" = "$ol_val" ; then
2413 if test "$ol_arg" = "invalid" ; then
2414 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2416 ol_with_perl_module="$ol_arg"
2419 ol_with_perl_module="static"
2421 # end --with-perl_module
2423 # OpenLDAP --enable-shell
2424 # Check whether --enable-shell or --disable-shell was given.
2425 if test "${enable_shell+set}" = set; then
2426 enableval="$enable_shell"
2429 for ol_val in auto yes no ; do
2430 if test "$enableval" = "$ol_val" ; then
2434 if test "$ol_arg" = "invalid" ; then
2435 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2437 ol_enable_shell="$ol_arg"
2440 ol_enable_shell="no"
2442 # end --enable-shell
2443 # OpenLDAP --with-shell_module
2444 # Check whether --with-shell_module or --without-shell_module was given.
2445 if test "${with_shell_module+set}" = set; then
2446 withval="$with_shell_module"
2449 for ol_val in static dynamic ; do
2450 if test "$withval" = "$ol_val" ; then
2454 if test "$ol_arg" = "invalid" ; then
2455 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2457 ol_with_shell_module="$ol_arg"
2460 ol_with_shell_module="static"
2462 # end --with-shell_module
2464 # OpenLDAP --enable-sql
2465 # Check whether --enable-sql or --disable-sql was given.
2466 if test "${enable_sql+set}" = set; then
2467 enableval="$enable_sql"
2470 for ol_val in auto yes no ; do
2471 if test "$enableval" = "$ol_val" ; then
2475 if test "$ol_arg" = "invalid" ; then
2476 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2478 ol_enable_sql="$ol_arg"
2484 # OpenLDAP --with-sql_module
2485 # Check whether --with-sql_module or --without-sql_module was given.
2486 if test "${with_sql_module+set}" = set; then
2487 withval="$with_sql_module"
2490 for ol_val in static dynamic ; do
2491 if test "$withval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2498 ol_with_sql_module="$ol_arg"
2501 ol_with_sql_module="static"
2503 # end --with-sql_module
2505 # OpenLDAP --enable-tcl
2506 # Check whether --enable-tcl or --disable-tcl was given.
2507 if test "${enable_tcl+set}" = set; then
2508 enableval="$enable_tcl"
2511 for ol_val in auto yes no ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2519 ol_enable_tcl="$ol_arg"
2525 # OpenLDAP --with-tcl_module
2526 # Check whether --with-tcl_module or --without-tcl_module was given.
2527 if test "${with_tcl_module+set}" = set; then
2528 withval="$with_tcl_module"
2531 for ol_val in static dynamic ; do
2532 if test "$withval" = "$ol_val" ; then
2536 if test "$ol_arg" = "invalid" ; then
2537 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2539 ol_with_tcl_module="$ol_arg"
2542 ol_with_tcl_module="static"
2544 # end --with-tcl_module
2547 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2548 if test "${with_xxslurpdoptions+set}" = set; then
2549 withval="$with_xxslurpdoptions"
2553 # OpenLDAP --enable-slurpd
2554 # Check whether --enable-slurpd or --disable-slurpd was given.
2555 if test "${enable_slurpd+set}" = set; then
2556 enableval="$enable_slurpd"
2559 for ol_val in auto yes no ; do
2560 if test "$enableval" = "$ol_val" ; then
2564 if test "$ol_arg" = "invalid" ; then
2565 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2567 ol_enable_slurpd="$ol_arg"
2570 ol_enable_slurpd="auto"
2572 # end --enable-slurpd
2574 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2575 if test "${with_xxliboptions+set}" = set; then
2576 withval="$with_xxliboptions"
2580 # Check whether --enable-static or --disable-static was given.
2581 if test "${enable_static+set}" = set; then
2582 enableval="$enable_static"
2583 p=${PACKAGE-default}
2585 yes) enable_static=yes ;;
2586 no) enable_static=no ;;
2589 # Look at the argument we got. We use all the common list separators.
2590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2591 for pkg in $enableval; do
2592 if test "X$pkg" = "X$p"; then
2603 # Check whether --enable-shared or --disable-shared was given.
2604 if test "${enable_shared+set}" = set; then
2605 enableval="$enable_shared"
2606 p=${PACKAGE-default}
2608 yes) enable_shared=yes ;;
2609 no) enable_shared=no ;;
2612 # Look at the argument we got. We use all the common list separators.
2613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2614 for pkg in $enableval; do
2615 if test "X$pkg" = "X$p"; then
2629 if test $ol_enable_slapd = no ; then
2630 if test $ol_enable_bdb = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2633 if test $ol_enable_dnssrv = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2636 if test $ol_enable_ldap = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2639 if test $ol_enable_ldbm = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2642 if test $ol_enable_meta = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2645 if test $ol_enable_monitor = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2648 if test $ol_enable_null = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2651 if test $ol_enable_passwd = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2654 if test $ol_enable_perl = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2657 if test $ol_enable_shell = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2660 if test $ol_enable_tcl = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2663 if test $ol_enable_sql = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2666 if test $ol_enable_modules = yes ; then
2667 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2669 if test $ol_enable_wrappers = yes ; then
2670 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2672 if test $ol_enable_phonetic = yes ; then
2673 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2675 if test $ol_enable_rlookups = yes ; then
2676 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2678 if test $ol_enable_aci = yes ; then
2679 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2681 if test $ol_with_ldbm_api != auto ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2684 if test $ol_with_ldbm_type != auto ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2687 if test $ol_with_bdb_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2690 if test $ol_with_dnssrv_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2693 if test $ol_with_ldap_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2696 if test $ol_with_ldbm_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2699 if test $ol_with_meta_module != static ; then
2700 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2702 if test $ol_with_monitor_module != static ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2705 if test $ol_with_null_module != static ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2708 if test $ol_with_passwd_module != static ; then
2709 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2711 if test $ol_with_perl_module != static ; then
2712 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2714 if test $ol_with_shell_module != static ; then
2715 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2717 if test $ol_with_tcl_module != static ; then
2718 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2720 if test $ol_with_sql_module != static ; then
2721 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2723 if test $ol_enable_slurpd = yes ; then
2724 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2726 if test $ol_enable_rewrite = yes ; then
2727 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2730 # force settings to no
2736 ol_enable_monitor=no
2744 ol_enable_modules=no
2745 ol_enable_phonetic=no
2746 ol_enable_rlookups=no
2748 ol_enable_wrappers=no
2749 ol_enable_dynamic=no
2752 ol_with_ldbm_type=no
2754 ol_with_bdb_module=static
2755 ol_with_dnssrv_module=static
2756 ol_with_ldap_module=static
2757 ol_with_ldbm_module=static
2758 ol_with_meta_module=static
2759 ol_with_monitor_module=static
2760 ol_with_null_module=static
2761 ol_with_passwd_module=static
2762 ol_with_perl_module=static
2763 ol_with_shell_module=static
2764 ol_with_tcl_module=static
2765 ol_with_sql_module=static
2769 ol_enable_rewrite=no
2771 elif test $ol_enable_ldbm = no ; then
2773 if test $ol_with_ldbm_api != auto ; then
2774 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2777 if test $ol_with_ldbm_type != auto ; then
2778 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2781 if test $ol_with_ldbm_module != static ; then
2782 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2785 if test $ol_enable_modules != yes -a \
2786 $ol_enable_bdb = no -a \
2787 $ol_enable_dnssrv = no -a \
2788 $ol_enable_ldap = no -a \
2789 $ol_enable_meta = no -a \
2790 $ol_enable_monitor = no -a \
2791 $ol_enable_null = no -a \
2792 $ol_enable_passwd = no -a \
2793 $ol_enable_perl = no -a \
2794 $ol_enable_shell = no -a \
2795 $ol_enable_sql = no -a \
2796 $ol_enable_tcl = no ; then
2798 if test $ol_enable_slapd = yes ; then
2799 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2801 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2807 ol_with_ldbm_type=no
2808 ol_with_ldbm_module=static
2810 if test $ol_enable_bdb != no ; then
2811 ol_with_ldbm_api=berkeley
2815 if test $ol_with_ldbm_api = gdbm -a \
2816 $ol_with_ldbm_type = btree ; then
2817 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2819 if test $ol_with_ldbm_api = mdbm -a \
2820 $ol_with_ldbm_type = btree ; then
2821 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2823 if test $ol_with_ldbm_api = ndbm -a \
2824 $ol_with_ldbm_type = btree ; then
2825 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2828 if test $ol_enable_bdb = yes ; then
2829 if test $ol_with_ldbm_api = auto ; then
2830 ol_with_ldbm_api=berkeley
2831 elif test $ol_with_ldbm_api != berkeley ; then
2832 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2835 elif test $ol_enable_bdb = auto ; then
2836 if test $ol_with_ldbm_api != berkeley \
2837 -o $ol_with_ldbm_api != auto ; then
2838 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2844 if test $ol_enable_slurpd = yes ; then
2845 if test $ol_with_threads = no ; then
2846 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2850 if test $ol_enable_lmpasswd = yes ; then
2851 if test $ol_with_tls = no ; then
2852 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2856 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2857 if test $ol_with_kerberos = no ; then
2858 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2859 elif test $ol_with_kerberos = auto ; then
2860 ol_with_kerberos=yes
2863 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2864 if test $ol_with_kerberos = auto ; then
2866 elif test $ol_with_kerberos != no ; then
2867 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2872 if test $ol_enable_spasswd = yes ; then
2873 if test $ol_with_cyrus_sasl = no ; then
2874 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2876 ol_with_cyrus_sasl=yes
2879 echo "$ac_t""done" 1>&6
2909 BUILD_BDB_DYNAMIC=static
2910 BUILD_DNSSRV_DYNAMIC=static
2911 BUILD_LDAP_DYNAMIC=static
2912 BUILD_LDBM_DYNAMIC=static
2913 BUILD_META_DYNAMIC=static
2914 BUILD_MONITOR_DYNAMIC=static
2915 BUILD_NULL_DYNAMIC=static
2916 BUILD_PASSWD_DYNAMIC=static
2917 BUILD_PERL_DYNAMIC=static
2918 BUILD_SHELL_DYNAMIC=static
2919 BUILD_TCL_DYNAMIC=static
2920 BUILD_SQL_DYNAMIC=static
2922 SLAPD_MODULES_LDFLAGS=
2923 SLAPD_MODULES_CPPFLAGS=
2926 SLAPD_STATIC_BACKENDS=
2927 SLAPD_DYNAMIC_BACKENDS=
2950 # Find a good install program. We prefer a C program (faster),
2951 # so one script is as good as another. But avoid the broken or
2952 # incompatible versions:
2953 # SysV /etc/install, /usr/sbin/install
2954 # SunOS /usr/etc/install
2955 # IRIX /sbin/install
2957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2960 # ./install, which can be erroneously created by make from ./install.sh.
2961 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2962 echo "configure:2963: checking for a BSD compatible install" >&5
2963 if test -z "$INSTALL"; then
2964 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2968 for ac_dir in $PATH; do
2969 # Account for people who put trailing slashes in PATH elements.
2971 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root
2976 for ac_prog in ginstall scoinst install; do
2977 if test -f $ac_dir/$ac_prog; then
2978 if test $ac_prog = install &&
2979 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2980 # AIX install. It has an incompatible calling convention.
2982 elif test $ac_prog = install &&
2983 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2984 # program-specific install script used by HP pwplus--don't use.
2987 ac_cv_path_install="$ac_dir/$ac_prog -c"
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL="$ac_cv_path_install"
3001 # As a last resort, use the slow shell script. We don't cache a
3002 # path for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the path is relative.
3005 INSTALL="$ac_install_sh"
3008 echo "$ac_t""$INSTALL" 1>&6
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3019 cat >> confdefs.h <<\EOF
3020 #define HAVE_MKVERSION 1
3028 *-*-aix*) if test -z "$CC" ; then
3029 case "$ol_with_threads" in
3030 auto | yes | posix) ol_aix_threads=yes ;;
3036 if test $ol_aix_threads = yes ; then
3037 if test -z "${CC}" ; then
3038 for ac_prog in cc_r xlc_r cc
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_word" >&5
3044 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3052 for ac_dir in $ac_dummy; do
3053 test -z "$ac_dir" && ac_dir=.
3054 if test -f $ac_dir/$ac_word; then
3055 ac_cv_prog_CC="$ac_prog"
3063 if test -n "$CC"; then
3064 echo "$ac_t""$CC" 1>&6
3066 echo "$ac_t""no" 1>&6
3069 test -n "$CC" && break
3073 if test "$CC" = cc ; then
3074 if test $ol_with_threads != auto ; then
3075 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3077 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3083 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3084 ol_with_threads=posix
3085 ol_cv_pthread_create=yes
3089 if test -z "${CC}"; then
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3095 echo "configure:3096: checking for $ac_word" >&5
3096 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 if test -n "$CC"; then
3100 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3104 for ac_dir in $ac_dummy; do
3105 test -z "$ac_dir" && ac_dir=.
3106 if test -f $ac_dir/$ac_word; then
3107 ac_cv_prog_CC="$ac_prog"
3115 if test -n "$CC"; then
3116 echo "$ac_t""$CC" 1>&6
3118 echo "$ac_t""no" 1>&6
3121 test -n "$CC" && break
3127 if test -z "${AR}"; then
3128 for ac_prog in ar gar
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_word" >&5
3134 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 if test -n "$AR"; then
3138 ac_cv_prog_AR="$AR" # Let the user override the test.
3140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3142 for ac_dir in $ac_dummy; do
3143 test -z "$ac_dir" && ac_dir=.
3144 if test -f $ac_dir/$ac_word; then
3145 ac_cv_prog_AR="$ac_prog"
3153 if test -n "$AR"; then
3154 echo "$ac_t""$AR" 1>&6
3156 echo "$ac_t""no" 1>&6
3159 test -n "$AR" && break
3161 test -n "$AR" || AR="missing"
3164 if test "${AR}" = "missing" ; then
3165 { echo "configure: error: Unable to locate ar(1). Check PATH or set AR." 1>&2; exit 1; }
3171 # Find the correct PATH separator. Usually this is `:', but
3172 # DJGPP uses `;' like DOS.
3173 if test "X${PATH_SEPARATOR+set}" != Xset; then
3174 UNAME=${UNAME-`uname 2>/dev/null`}
3176 *-DOS) lt_cv_sys_path_separator=';' ;;
3177 *) lt_cv_sys_path_separator=':' ;;
3179 PATH_SEPARATOR=$lt_cv_sys_path_separator
3182 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3183 echo "configure:3184: checking for Cygwin environment" >&5
3184 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3194 #define __CYGWIN__ __CYGWIN32__
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3211 echo "$ac_t""$ac_cv_cygwin" 1>&6
3213 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3214 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3215 echo "configure:3216: checking for mingw32 environment" >&5
3216 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3239 echo "$ac_t""$ac_cv_mingw32" 1>&6
3241 test "$ac_cv_mingw32" = yes && MINGW32=yes
3242 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3243 echo "configure:3244: checking for EMX OS/2 environment" >&5
3244 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3267 echo "$ac_t""$ac_cv_emxos2" 1>&6
3269 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3270 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3271 echo "configure:3272: checking how to run the C preprocessor" >&5
3272 # On Suns, sometimes $CPP names a directory.
3273 if test -n "$CPP" && test -d "$CPP"; then
3276 if test -z "$CPP"; then
3277 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 # This must be in double quotes, not single quotes, because CPP may get
3281 # substituted into the Makefile and "${CC-cc}" will confuse make.
3283 # On the NeXT, cc -E runs the code through the compiler's parser,
3284 # not just through cpp.
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3292 { (eval echo configure:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3294 if test -z "$ac_err"; then
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 CPP="${CC-cc} -E -traditional-cpp"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3309 { (eval echo configure:3310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3311 if test -z "$ac_err"; then
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 CPP="${CC-cc} -nologo -E"
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3326 { (eval echo configure:3327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3328 if test -z "$ac_err"; then
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3342 ac_cv_prog_CPP="$CPP"
3344 CPP="$ac_cv_prog_CPP"
3346 ac_cv_prog_CPP="$CPP"
3348 echo "$ac_t""$CPP" 1>&6
3350 # Check whether --enable-fast-install or --disable-fast-install was given.
3351 if test "${enable_fast_install+set}" = set; then
3352 enableval="$enable_fast_install"
3353 p=${PACKAGE-default}
3355 yes) enable_fast_install=yes ;;
3356 no) enable_fast_install=no ;;
3358 enable_fast_install=no
3359 # Look at the argument we got. We use all the common list separators.
3360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3361 for pkg in $enableval; do
3362 if test "X$pkg" = "X$p"; then
3363 enable_fast_install=yes
3370 enable_fast_install=yes
3373 # Extract the first word of "gcc", so it can be a program name with args.
3374 set dummy gcc; ac_word=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3396 if test -n "$CC"; then
3397 echo "$ac_t""$CC" 1>&6
3399 echo "$ac_t""no" 1>&6
3402 if test -z "$CC"; then
3403 # Extract the first word of "cc", so it can be a program name with args.
3404 set dummy cc; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3407 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3416 for ac_dir in $ac_dummy; do
3417 test -z "$ac_dir" && ac_dir=.
3418 if test -f $ac_dir/$ac_word; then
3419 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3420 ac_prog_rejected=yes
3428 if test $ac_prog_rejected = yes; then
3429 # We found a bogon in the path, so make sure we never use it.
3430 set dummy $ac_cv_prog_CC
3432 if test $# -gt 0; then
3433 # We chose a different compiler from the bogus one.
3434 # However, it has the same basename, so the bogon will be chosen
3435 # first if we set CC to just the basename; use the full file name.
3437 set dummy "$ac_dir/$ac_word" "$@"
3445 if test -n "$CC"; then
3446 echo "$ac_t""$CC" 1>&6
3448 echo "$ac_t""no" 1>&6
3451 if test -z "$CC"; then
3452 case "`uname -s`" in
3453 *win32* | *WIN32* | *CYGWIN*)
3454 # Extract the first word of "cl", so it can be a program name with args.
3455 set dummy cl; ac_word=$2
3456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3457 echo "configure:3458: checking for $ac_word" >&5
3458 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3466 for ac_dir in $ac_dummy; do
3467 test -z "$ac_dir" && ac_dir=.
3468 if test -f $ac_dir/$ac_word; then
3477 if test -n "$CC"; then
3478 echo "$ac_t""$CC" 1>&6
3480 echo "$ac_t""no" 1>&6
3485 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3488 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3489 echo "configure:3490: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3496 cross_compiling=$ac_cv_prog_cc_cross
3498 cat > conftest.$ac_ext << EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3506 ac_cv_prog_cc_works=yes
3507 # If we can't run a trivial program, we are probably using a cross compiler.
3508 if (./conftest; exit) 2>/dev/null; then
3509 ac_cv_prog_cc_cross=no
3511 ac_cv_prog_cc_cross=yes
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 ac_cv_prog_cc_works=no
3520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3524 cross_compiling=$ac_cv_prog_cc_cross
3526 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3527 if test $ac_cv_prog_cc_works = no; then
3528 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3530 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3531 echo "configure:3532: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3532 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3533 cross_compiling=$ac_cv_prog_cc_cross
3535 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3536 echo "configure:3537: checking whether we are using GNU C" >&5
3537 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.c <<EOF
3545 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3552 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3554 if test $ac_cv_prog_gcc = yes; then
3560 ac_test_CFLAGS="${CFLAGS+set}"
3561 ac_save_CFLAGS="$CFLAGS"
3563 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3564 echo "configure:3565: checking whether ${CC-cc} accepts -g" >&5
3565 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 echo 'void f(){}' > conftest.c
3569 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3578 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3579 if test "$ac_test_CFLAGS" = set; then
3580 CFLAGS="$ac_save_CFLAGS"
3581 elif test $ac_cv_prog_cc_g = yes; then
3582 if test "$GCC" = yes; then
3588 if test "$GCC" = yes; then
3595 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3596 if test "${with_gnu_ld+set}" = set; then
3597 withval="$with_gnu_ld"
3598 test "$withval" = no || with_gnu_ld=yes
3604 if test "$GCC" = yes; then
3605 # Check if gcc -print-prog-name=ld gives a path.
3606 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3607 echo "configure:3608: checking for ld used by GCC" >&5
3610 # gcc leaves a trailing carriage return which upsets mingw
3611 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3613 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3616 # Accept absolute paths.
3617 [\\/]* | [A-Za-z]:[\\/]*)
3618 re_direlt='/[^/][^/]*/\.\./'
3619 # Canonicalize the path of ld
3620 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3621 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3622 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3624 test -z "$LD" && LD="$ac_prog"
3627 # If it fails, then pretend we aren't using GCC.
3631 # If it is relative, then search for the first ld in PATH.
3635 elif test "$with_gnu_ld" = yes; then
3636 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3637 echo "configure:3638: checking for GNU ld" >&5
3639 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3640 echo "configure:3641: checking for non-GNU ld" >&5
3642 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 if test -z "$LD"; then
3646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3647 for ac_dir in $PATH; do
3648 test -z "$ac_dir" && ac_dir=.
3649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3650 lt_cv_path_LD="$ac_dir/$ac_prog"
3651 # Check to see if the program is GNU ld. I'd rather use --version,
3652 # but apparently some GNU ld's only accept -v.
3653 # Break only if it was the GNU/non-GNU ld that we prefer.
3654 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3655 test "$with_gnu_ld" != no && break
3657 test "$with_gnu_ld" != yes && break
3663 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3668 if test -n "$LD"; then
3669 echo "$ac_t""$LD" 1>&6
3671 echo "$ac_t""no" 1>&6
3673 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3674 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3675 echo "configure:3676: checking if the linker ($LD) is GNU ld" >&5
3676 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3680 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3681 lt_cv_prog_gnu_ld=yes
3683 lt_cv_prog_gnu_ld=no
3687 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3688 with_gnu_ld=$lt_cv_prog_gnu_ld
3691 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $LD option to reload object files" >&5
3693 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 lt_cv_ld_reload_flag='-r'
3699 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3700 reload_flag=$lt_cv_ld_reload_flag
3701 test -n "$reload_flag" && reload_flag=" $reload_flag"
3703 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3704 echo "configure:3705: checking for BSD-compatible nm" >&5
3705 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 if test -n "$NM"; then
3709 # Let the user override the test.
3712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3713 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3714 test -z "$ac_dir" && ac_dir=.
3715 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3716 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3717 # Check to see if the nm accepts a BSD-compat flag.
3718 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3719 # nm: unknown option "B" ignored
3720 # Tru64's nm complains that /dev/null is an invalid object file
3721 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3722 lt_cv_path_NM="$tmp_nm -B"
3724 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3725 lt_cv_path_NM="$tmp_nm -p"
3728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3729 continue # so that we can try to find one that supports BSD flags
3734 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3739 echo "$ac_t""$NM" 1>&6
3741 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3742 echo "configure:3743: checking whether ln -s works" >&5
3743 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3747 if ln -s X conftestdata 2>/dev/null
3750 ac_cv_prog_LN_S="ln -s"
3755 LN_S="$ac_cv_prog_LN_S"
3756 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3757 echo "$ac_t""yes" 1>&6
3759 echo "$ac_t""no" 1>&6
3762 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3763 echo "configure:3764: checking how to recognise dependant libraries" >&5
3764 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 lt_cv_file_magic_cmd='$MAGIC_CMD'
3768 lt_cv_file_magic_test_file=
3769 lt_cv_deplibs_check_method='unknown'
3770 # Need to set the preceding variable on all platforms that support
3771 # interlibrary dependencies.
3772 # 'none' -- dependencies not supported.
3773 # `unknown' -- same as none, but documents that we really don't know.
3774 # 'pass_all' -- all dependencies passed with no checks.
3775 # 'test_compile' -- check by making test program.
3776 # 'file_magic [[regex]]' -- check by looking for files in library path
3777 # which responds to the $file_magic_cmd with a given egrep regex.
3778 # If you have `file' or equivalent on your system and you're not sure
3779 # whether `pass_all' will *always* work, you probably want this one.
3783 lt_cv_deplibs_check_method=pass_all
3787 lt_cv_deplibs_check_method=pass_all
3791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3792 lt_cv_file_magic_cmd='/usr/bin/file -L'
3793 lt_cv_file_magic_test_file=/shlib/libc.so
3796 cygwin* | mingw* | pw32*)
3797 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3798 lt_cv_file_magic_cmd='$OBJDUMP -f'
3801 darwin* | rhapsody*)
3802 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3803 lt_cv_file_magic_cmd='/usr/bin/file -L'
3805 rhapsody* | darwin1.[012])
3806 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3809 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3815 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3818 # Not sure whether the presence of OpenBSD here was a mistake.
3819 # Let's accept both of them until this is cleared up.
3820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3826 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_deplibs_check_method=pass_all
3835 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3836 lt_cv_file_magic_cmd=/usr/bin/file
3837 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3843 # this will be overridden with pass_all, but let us keep it just in case
3844 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3848 *-32|*"-32 ") libmagic=32-bit;;
3849 *-n32|*"-n32 ") libmagic=N32;;
3850 *-64|*"-64 ") libmagic=64-bit;;
3851 *) libmagic=never-match;;
3853 # this will be overridden with pass_all, but let us keep it just in case
3854 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3857 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3858 lt_cv_deplibs_check_method=pass_all
3861 # This must be Linux ELF.
3864 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3865 lt_cv_deplibs_check_method=pass_all ;;
3867 # glibc up to 2.1.1 does not perform some relocations on ARM
3868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3870 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3874 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3875 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3877 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3883 lt_cv_file_magic_cmd=/usr/bin/file
3884 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3888 lt_cv_file_magic_cmd=/usr/bin/file
3889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3893 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3897 osf3* | osf4* | osf5*)
3898 # this will be overridden with pass_all, but let us keep it just in case
3899 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3900 lt_cv_file_magic_test_file=/shlib/libc.so
3901 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_deplibs_check_method=pass_all
3909 lt_cv_deplibs_check_method=pass_all
3910 lt_cv_file_magic_test_file=/lib/libc.so
3913 sysv5uw[78]* | sysv4*uw2*)
3914 lt_cv_deplibs_check_method=pass_all
3917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3918 case $host_vendor in
3920 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]'
3921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3924 lt_cv_deplibs_check_method=pass_all
3927 lt_cv_file_magic_cmd='/bin/file'
3928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3931 lt_cv_file_magic_cmd='/bin/file'
3932 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3933 lt_cv_file_magic_test_file=/lib/libc.so
3941 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3942 file_magic_cmd=$lt_cv_file_magic_cmd
3943 deplibs_check_method=$lt_cv_deplibs_check_method
3945 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3946 echo "configure:3947: checking for object suffix" >&5
3947 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3951 echo 'int i = 1;' > conftest.$ac_ext
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3953 for ac_file in conftest.*; do
3956 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3960 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3965 echo "$ac_t""$ac_cv_objext" 1>&6
3966 OBJEXT=$ac_cv_objext
3967 ac_objext=$ac_cv_objext
3972 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3973 echo "configure:3974: checking for executable suffix" >&5
3974 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3981 echo 'int main () { return 0; }' > conftest.$ac_ext
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3984 for file in conftest.*; do
3986 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3987 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3991 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3994 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3999 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4000 echo "$ac_t""${ac_cv_exeext}" 1>&6
4003 if test $host != $build; then
4004 ac_tool_prefix=${host_alias}-
4012 # Check for command to grab the raw symbol name followed by C symbol from nm.
4013 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4014 echo "configure:4015: checking command to parse $NM output" >&5
4015 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4019 # These are sane defaults that work on at least a few old systems.
4020 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4022 # Character class describing NM global symbol codes.
4023 symcode='[BCDEGRST]'
4025 # Regexp to match symbols that can be accessed directly from C.
4026 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4028 # Transform the above into a raw symbol and a C symbol.
4029 symxfrm='\1 \2\3 \3'
4031 # Transform an extracted symbol line into a proper C declaration
4032 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4034 # Transform an extracted symbol line into symbol name and symbol address
4035 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'"
4037 # Define system-specific variables.
4042 cygwin* | mingw* | pw32*)
4043 symcode='[ABCDGISTW]'
4045 hpux*) # Its linker distinguishes data from code symbols
4046 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4047 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'"
4050 symcode='[BCDEGRST]'
4060 # Handle CRLF in mingw tool chain
4064 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4068 # If we're using GNU nm, then use its standard symbol codes.
4069 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4070 symcode='[ABCDGISTW]'
4073 # Try without a prefix undercore, then with it.
4074 for ac_symprfx in "" "_"; do
4076 # Write the raw and C identifiers.
4077 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4079 # Check to see that the pipe works correctly.
4082 cat > conftest.$ac_ext <<EOF
4087 void nm_test_func(){}
4091 int main(){nm_test_var='a';nm_test_func();return(0);}
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4095 # Now try to grab the symbols.
4097 if { (eval echo configure:4098: \"$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
4098 # Try sorting and uniquifying the output.
4099 if sort "$nlist" | uniq > "$nlist"T; then
4100 mv -f "$nlist"T "$nlist"
4105 # Make sure that we snagged all the symbols we need.
4106 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4107 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4108 cat <<EOF > conftest.$ac_ext
4114 # Now generate the symbol file.
4115 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4117 cat <<EOF >> conftest.$ac_ext
4118 #if defined (__STDC__) && __STDC__
4119 # define lt_ptr void *
4121 # define lt_ptr char *
4125 /* The mapping between symbol names and symbols. */
4130 lt_preloaded_symbols[] =
4133 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4134 cat <<\EOF >> conftest.$ac_ext
4142 # Now try linking the two files.
4143 mv conftest.$ac_objext conftstm.$ac_objext
4145 save_CFLAGS="$CFLAGS"
4146 LIBS="conftstm.$ac_objext"
4147 CFLAGS="$CFLAGS$no_builtin_flag"
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4152 CFLAGS="$save_CFLAGS"
4154 echo "cannot find nm_test_func in $nlist" >&5
4157 echo "cannot find nm_test_var in $nlist" >&5
4160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4163 echo "$progname: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 rm -f conftest* conftst*
4168 # Do not use the global_symbol_pipe unless it works.
4169 if test "$pipe_works" = yes; then
4172 lt_cv_sys_global_symbol_pipe=
4178 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4179 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4180 global_symbol_to_cdecl=
4181 global_symbol_to_c_name_address=
4183 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4184 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4186 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4188 echo "$ac_t""failed" 1>&6
4190 echo "$ac_t""ok" 1>&6
4193 for ac_hdr in dlfcn.h
4195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4197 echo "configure:4198: checking for $ac_hdr" >&5
4198 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4207 { (eval echo configure:4208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4209 if test -z "$ac_err"; then
4211 eval "ac_cv_header_$ac_safe=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4217 eval "ac_cv_header_$ac_safe=no"
4221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4222 echo "$ac_t""yes" 1>&6
4223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4224 cat >> confdefs.h <<EOF
4225 #define $ac_tr_hdr 1
4229 echo "$ac_t""no" 1>&6
4237 # Only perform the check for file, if the check method requires it
4238 case $deplibs_check_method in
4240 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4241 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4242 echo "configure:4243: checking for ${ac_tool_prefix}file" >&5
4243 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4254 ac_save_MAGIC_CMD="$MAGIC_CMD"
4255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4256 ac_dummy="/usr/bin:$PATH"
4257 for ac_dir in $ac_dummy; do
4258 test -z "$ac_dir" && ac_dir=.
4259 if test -f $ac_dir/${ac_tool_prefix}file; then
4260 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4261 if test -n "$file_magic_test_file"; then
4262 case $deplibs_check_method in
4264 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4267 egrep "$file_magic_regex" > /dev/null; then
4272 *** Warning: the command libtool uses to detect shared libraries,
4273 *** $file_magic_cmd, produces output that libtool cannot recognize.
4274 *** The result is that libtool may fail to recognize shared libraries
4275 *** as such. This will affect the creation of libtool libraries that
4276 *** depend on shared libraries, but programs linked with such libtool
4277 *** libraries will work regardless of this problem. Nevertheless, you
4278 *** may want to report the problem to your system manager and/or to
4279 *** bug-libtool@gnu.org
4289 MAGIC_CMD="$ac_save_MAGIC_CMD"
4294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4295 if test -n "$MAGIC_CMD"; then
4296 echo "$ac_t""$MAGIC_CMD" 1>&6
4298 echo "$ac_t""no" 1>&6
4301 if test -z "$lt_cv_path_MAGIC_CMD"; then
4302 if test -n "$ac_tool_prefix"; then
4303 echo $ac_n "checking for file""... $ac_c" 1>&6
4304 echo "configure:4305: checking for file" >&5
4305 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4316 ac_save_MAGIC_CMD="$MAGIC_CMD"
4317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4318 ac_dummy="/usr/bin:$PATH"
4319 for ac_dir in $ac_dummy; do
4320 test -z "$ac_dir" && ac_dir=.
4321 if test -f $ac_dir/file; then
4322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4323 if test -n "$file_magic_test_file"; then
4324 case $deplibs_check_method in
4326 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4329 egrep "$file_magic_regex" > /dev/null; then
4334 *** Warning: the command libtool uses to detect shared libraries,
4335 *** $file_magic_cmd, produces output that libtool cannot recognize.
4336 *** The result is that libtool may fail to recognize shared libraries
4337 *** as such. This will affect the creation of libtool libraries that
4338 *** depend on shared libraries, but programs linked with such libtool
4339 *** libraries will work regardless of this problem. Nevertheless, you
4340 *** may want to report the problem to your system manager and/or to
4341 *** bug-libtool@gnu.org
4351 MAGIC_CMD="$ac_save_MAGIC_CMD"
4356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4357 if test -n "$MAGIC_CMD"; then
4358 echo "$ac_t""$MAGIC_CMD" 1>&6
4360 echo "$ac_t""no" 1>&6
4372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_word" >&5
4376 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 if test -n "$RANLIB"; then
4380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4384 for ac_dir in $ac_dummy; do
4385 test -z "$ac_dir" && ac_dir=.
4386 if test -f $ac_dir/$ac_word; then
4387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4394 RANLIB="$ac_cv_prog_RANLIB"
4395 if test -n "$RANLIB"; then
4396 echo "$ac_t""$RANLIB" 1>&6
4398 echo "$ac_t""no" 1>&6
4402 if test -z "$ac_cv_prog_RANLIB"; then
4403 if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "ranlib", so it can be a program name with args.
4405 set dummy ranlib; ac_word=$2
4406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_word" >&5
4408 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 if test -n "$RANLIB"; then
4412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4416 for ac_dir in $ac_dummy; do
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f $ac_dir/$ac_word; then
4419 ac_cv_prog_RANLIB="ranlib"
4424 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4427 RANLIB="$ac_cv_prog_RANLIB"
4428 if test -n "$RANLIB"; then
4429 echo "$ac_t""$RANLIB" 1>&6
4431 echo "$ac_t""no" 1>&6
4439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4440 set dummy ${ac_tool_prefix}strip; ac_word=$2
4441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4442 echo "configure:4443: checking for $ac_word" >&5
4443 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4446 if test -n "$STRIP"; then
4447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4451 for ac_dir in $ac_dummy; do
4452 test -z "$ac_dir" && ac_dir=.
4453 if test -f $ac_dir/$ac_word; then
4454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4461 STRIP="$ac_cv_prog_STRIP"
4462 if test -n "$STRIP"; then
4463 echo "$ac_t""$STRIP" 1>&6
4465 echo "$ac_t""no" 1>&6
4469 if test -z "$ac_cv_prog_STRIP"; then
4470 if test -n "$ac_tool_prefix"; then
4471 # Extract the first word of "strip", so it can be a program name with args.
4472 set dummy strip; ac_word=$2
4473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_word" >&5
4475 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 if test -n "$STRIP"; then
4479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4483 for ac_dir in $ac_dummy; do
4484 test -z "$ac_dir" && ac_dir=.
4485 if test -f $ac_dir/$ac_word; then
4486 ac_cv_prog_STRIP="strip"
4491 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4494 STRIP="$ac_cv_prog_STRIP"
4495 if test -n "$STRIP"; then
4496 echo "$ac_t""$STRIP" 1>&6
4498 echo "$ac_t""no" 1>&6
4508 enable_win32_dll=yes
4510 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4511 if test "${enable_libtool_lock+set}" = set; then
4512 enableval="$enable_libtool_lock"
4516 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4518 # Some flags need to be propagated to the compiler or linker for good
4522 # Find out which ABI we are using.
4523 echo '#line 4524 "configure"' > conftest.$ac_ext
4524 if { (eval echo configure:4525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4525 case `/usr/bin/file conftest.$ac_objext` in
4541 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4542 SAVE_CFLAGS="$CFLAGS"
4543 CFLAGS="$CFLAGS -belf"
4544 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4545 echo "configure:4546: checking whether the C compiler needs -belf" >&5
4546 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4555 cross_compiling=$ac_cv_prog_cc_cross
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4565 if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4567 lt_cv_cc_needs_belf=yes
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4572 lt_cv_cc_needs_belf=no
4576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4580 cross_compiling=$ac_cv_prog_cc_cross
4584 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4585 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4587 CFLAGS="$SAVE_CFLAGS"
4591 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4592 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_word" >&5
4596 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 if test -n "$DLLTOOL"; then
4600 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4604 for ac_dir in $ac_dummy; do
4605 test -z "$ac_dir" && ac_dir=.
4606 if test -f $ac_dir/$ac_word; then
4607 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4614 DLLTOOL="$ac_cv_prog_DLLTOOL"
4615 if test -n "$DLLTOOL"; then
4616 echo "$ac_t""$DLLTOOL" 1>&6
4618 echo "$ac_t""no" 1>&6
4622 if test -z "$ac_cv_prog_DLLTOOL"; then
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "dlltool", so it can be a program name with args.
4625 set dummy dlltool; ac_word=$2
4626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_word" >&5
4628 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 if test -n "$DLLTOOL"; then
4632 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4636 for ac_dir in $ac_dummy; do
4637 test -z "$ac_dir" && ac_dir=.
4638 if test -f $ac_dir/$ac_word; then
4639 ac_cv_prog_DLLTOOL="dlltool"
4644 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4647 DLLTOOL="$ac_cv_prog_DLLTOOL"
4648 if test -n "$DLLTOOL"; then
4649 echo "$ac_t""$DLLTOOL" 1>&6
4651 echo "$ac_t""no" 1>&6
4659 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}as; ac_word=$2
4661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4662 echo "configure:4663: checking for $ac_word" >&5
4663 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 if test -n "$AS"; then
4667 ac_cv_prog_AS="$AS" # Let the user override the test.
4669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4671 for ac_dir in $ac_dummy; do
4672 test -z "$ac_dir" && ac_dir=.
4673 if test -f $ac_dir/$ac_word; then
4674 ac_cv_prog_AS="${ac_tool_prefix}as"
4682 if test -n "$AS"; then
4683 echo "$ac_t""$AS" 1>&6
4685 echo "$ac_t""no" 1>&6
4689 if test -z "$ac_cv_prog_AS"; then
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "as", so it can be a program name with args.
4692 set dummy as; ac_word=$2
4693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_word" >&5
4695 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 if test -n "$AS"; then
4699 ac_cv_prog_AS="$AS" # Let the user override the test.
4701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4703 for ac_dir in $ac_dummy; do
4704 test -z "$ac_dir" && ac_dir=.
4705 if test -f $ac_dir/$ac_word; then
4711 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4715 if test -n "$AS"; then
4716 echo "$ac_t""$AS" 1>&6
4718 echo "$ac_t""no" 1>&6
4726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_word" >&5
4730 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 if test -n "$OBJDUMP"; then
4734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4738 for ac_dir in $ac_dummy; do
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f $ac_dir/$ac_word; then
4741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4748 OBJDUMP="$ac_cv_prog_OBJDUMP"
4749 if test -n "$OBJDUMP"; then
4750 echo "$ac_t""$OBJDUMP" 1>&6
4752 echo "$ac_t""no" 1>&6
4756 if test -z "$ac_cv_prog_OBJDUMP"; then
4757 if test -n "$ac_tool_prefix"; then
4758 # Extract the first word of "objdump", so it can be a program name with args.
4759 set dummy objdump; ac_word=$2
4760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4761 echo "configure:4762: checking for $ac_word" >&5
4762 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 if test -n "$OBJDUMP"; then
4766 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4770 for ac_dir in $ac_dummy; do
4771 test -z "$ac_dir" && ac_dir=.
4772 if test -f $ac_dir/$ac_word; then
4773 ac_cv_prog_OBJDUMP="objdump"
4778 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4781 OBJDUMP="$ac_cv_prog_OBJDUMP"
4782 if test -n "$OBJDUMP"; then
4783 echo "$ac_t""$OBJDUMP" 1>&6
4785 echo "$ac_t""no" 1>&6
4794 # recent cygwin and mingw systems supply a stub DllMain which the user
4795 # can override, but on older systems we have to supply one
4796 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4797 echo "configure:4798: checking if libtool should supply DllMain function" >&5
4798 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4806 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812 lt_cv_need_dllmain=no
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 lt_cv_need_dllmain=yes
4822 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4825 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4826 # old mingw systems require "-dll" to link a DLL, while more recent ones
4828 SAVE_CFLAGS="$CFLAGS"
4829 CFLAGS="$CFLAGS -mdll"
4830 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4831 echo "configure:4832: checking how to link DLLs" >&5
4832 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 lt_cv_cc_dll_switch=-mdll
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4850 lt_cv_cc_dll_switch=-dll
4855 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4856 CFLAGS="$SAVE_CFLAGS" ;;
4857 *-*-cygwin* | *-*-pw32*)
4858 # cygwin systems need to pass --dll to the linker, and not link
4859 # crt.o which will require a WinMain@16 definition.
4860 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4866 # Sed substitution that helps us do robust quoting. It backslashifies
4867 # metacharacters that are still active within double-quoted strings.
4868 Xsed='sed -e s/^X//'
4869 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4871 # Same as above, but do not quote variable references.
4872 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4874 # Sed substitution to delay expansion of an escaped shell variable in a
4875 # double_quote_subst'ed string.
4876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4882 default_ofile=libtool
4883 can_build_shared=yes
4885 # All known linkers require a `.a' archive for static linking (except M$VC,
4886 # which needs '.lib').
4888 ltmain="$ac_aux_dir/ltmain.sh"
4889 ofile="$default_ofile"
4890 with_gnu_ld="$lt_cv_prog_gnu_ld"
4891 need_locks="$enable_libtool_lock"
4894 old_CFLAGS="$CFLAGS"
4896 # Set sane defaults for various variables
4897 test -z "$AR" && AR=ar
4898 test -z "$AR_FLAGS" && AR_FLAGS=cru
4899 test -z "$AS" && AS=as
4900 test -z "$CC" && CC=cc
4901 test -z "$DLLTOOL" && DLLTOOL=dlltool
4902 test -z "$LD" && LD=ld
4903 test -z "$LN_S" && LN_S="ln -s"
4904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4905 test -z "$NM" && NM=nm
4906 test -z "$OBJDUMP" && OBJDUMP=objdump
4907 test -z "$RANLIB" && RANLIB=:
4908 test -z "$STRIP" && STRIP=:
4909 test -z "$ac_objext" && ac_objext=o
4911 if test x"$host" != x"$build"; then
4912 ac_tool_prefix=${host_alias}-
4917 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4920 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4925 # AIX sometimes has problems with the GCC collect2 program. For some
4926 # reason, if we set the COLLECT_NAMES environment variable, the problems
4927 # vanish in a puff of smoke.
4928 if test "X${COLLECT_NAMES+set}" != Xset; then
4930 export COLLECT_NAMES
4935 # Determine commands to create old-style static archives.
4936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4937 old_postinstall_cmds='chmod 644 $oldlib'
4938 old_postuninstall_cmds=
4940 if test -n "$RANLIB"; then
4943 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4946 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4952 # Allow CC to be a program name with arguments.
4956 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4957 echo "configure:4958: checking for objdir" >&5
4958 rm -f .libs 2>/dev/null
4959 mkdir .libs 2>/dev/null
4960 if test -d .libs; then
4963 # MS-DOS does not allow filenames that begin with a dot.
4966 rmdir .libs 2>/dev/null
4967 echo "$ac_t""$objdir" 1>&6
4970 # Check whether --with-pic or --without-pic was given.
4971 if test "${with_pic+set}" = set; then
4978 test -z "$pic_mode" && pic_mode=default
4980 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4981 # in isolation, and that seeing it set (from the cache) indicates that
4982 # the associated values are set (in the cache) correctly too.
4983 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4984 echo "configure:4985: checking for $compiler option to produce PIC" >&5
4985 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4989 lt_cv_prog_cc_shlib=
4991 lt_cv_prog_cc_static=
4992 lt_cv_prog_cc_no_builtin=
4993 lt_cv_prog_cc_can_build_shared=$can_build_shared
4995 if test "$GCC" = yes; then
4996 lt_cv_prog_cc_wl='-Wl,'
4997 lt_cv_prog_cc_static='-static'
5001 # Below there is a dirty hack to force normal static linking with -ldl
5002 # The problem is because libdl dynamically linked with both libc and
5003 # libC (AIX C++ library), which obviously doesn't included in libraries
5004 # list by gcc. This cause undefined symbols with -static flags.
5005 # This hack allows C programs to be linked with "-static -ldl", but
5006 # not sure about C++ programs.
5007 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5010 # FIXME: we need at least 68020 code to build shared libraries, but
5011 # adding the `-m68020' flag to GCC prevents building anything better,
5013 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5015 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5016 # PIC is the default for these OSes.
5018 darwin* | rhapsody*)
5019 # PIC is the default on this platform
5020 # Common symbols not allowed in MH_DYLIB files
5021 lt_cv_prog_cc_pic='-fno-common'
5023 cygwin* | mingw* | pw32* | os2*)
5024 # This hack is so that the source file can tell whether it is being
5025 # built for inclusion in a dll (and should export symbols for example).
5026 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5029 if test -d /usr/nec; then
5030 lt_cv_prog_cc_pic=-Kconform_pic
5034 lt_cv_prog_cc_pic='-fPIC'
5038 # PORTME Check for PIC flags for the system compiler.
5040 aix3* | aix4* | aix5*)
5041 lt_cv_prog_cc_wl='-Wl,'
5042 # All AIX code is PIC.
5043 if test "$host_cpu" = ia64; then
5044 # AIX 5 now supports IA64 processor
5045 lt_cv_prog_cc_static='-Bstatic'
5047 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5051 hpux9* | hpux10* | hpux11*)
5052 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5053 lt_cv_prog_cc_wl='-Wl,'
5054 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5055 lt_cv_prog_cc_pic='+Z'
5059 lt_cv_prog_cc_wl='-Wl,'
5060 lt_cv_prog_cc_static='-non_shared'
5061 # PIC (with -KPIC) is the default.
5064 cygwin* | mingw* | pw32* | os2*)
5065 # This hack is so that the source file can tell whether it is being
5066 # built for inclusion in a dll (and should export symbols for example).
5067 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5071 lt_cv_prog_cc_pic='-KPIC'
5072 lt_cv_prog_cc_static='-Bstatic'
5075 osf3* | osf4* | osf5*)
5076 # All OSF/1 code is PIC.
5077 lt_cv_prog_cc_wl='-Wl,'
5078 lt_cv_prog_cc_static='-non_shared'
5082 lt_cv_prog_cc_pic='-Kpic'
5083 lt_cv_prog_cc_static='-dn'
5084 lt_cv_prog_cc_shlib='-belf'
5088 lt_cv_prog_cc_pic='-KPIC'
5089 lt_cv_prog_cc_static='-Bstatic'
5090 lt_cv_prog_cc_wl='-Wl,'
5094 lt_cv_prog_cc_pic='-PIC'
5095 lt_cv_prog_cc_static='-Bstatic'
5096 lt_cv_prog_cc_wl='-Qoption ld '
5099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5100 lt_cv_prog_cc_pic='-KPIC'
5101 lt_cv_prog_cc_static='-Bstatic'
5102 if test "x$host_vendor" = xsni; then
5103 lt_cv_prog_cc_wl='-LD'
5105 lt_cv_prog_cc_wl='-Wl,'
5110 lt_cv_prog_cc_pic='-pic'
5111 lt_cv_prog_cc_static='-Bstatic'
5115 if test -d /usr/nec ;then
5116 lt_cv_prog_cc_pic='-Kconform_pic'
5117 lt_cv_prog_cc_static='-Bstatic'
5122 lt_cv_prog_cc_can_build_shared=no
5129 if test -z "$lt_cv_prog_cc_pic"; then
5130 echo "$ac_t""none" 1>&6
5132 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5134 # Check to make sure the pic_flag actually works.
5135 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5136 echo "configure:5137: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5137 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 save_CFLAGS="$CFLAGS"
5141 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5150 if { (eval echo configure:5151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5153 hpux9* | hpux10* | hpux11*)
5154 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5155 # they create non-PIC objects. So, if there were any warnings, we
5156 # assume that PIC is not supported.
5157 if test -s conftest.err; then
5158 lt_cv_prog_cc_pic_works=no
5160 lt_cv_prog_cc_pic_works=yes
5164 lt_cv_prog_cc_pic_works=yes
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5172 lt_cv_prog_cc_pic_works=no
5176 CFLAGS="$save_CFLAGS"
5181 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5183 lt_cv_prog_cc_can_build_shared=no
5185 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5188 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5191 # Check for any special shared library compilation flags.
5192 if test -n "$lt_cv_prog_cc_shlib"; then
5193 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5194 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5196 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5197 lt_cv_prog_cc_can_build_shared=no
5201 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5202 echo "configure:5203: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5203 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 lt_cv_prog_cc_static_works=no
5207 save_LDFLAGS="$LDFLAGS"
5208 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 lt_cv_prog_cc_static_works=yes
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5225 LDFLAGS="$save_LDFLAGS"
5230 # Belt *and* braces to stop my trousers falling down:
5231 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5232 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5234 pic_flag="$lt_cv_prog_cc_pic"
5235 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5236 wl="$lt_cv_prog_cc_wl"
5237 link_static_flag="$lt_cv_prog_cc_static"
5238 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5239 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5242 # Check to see if options -o and -c are simultaneously supported by compiler
5243 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5244 echo "configure:5245: checking if $compiler supports -c -o file.$ac_objext" >&5
5245 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5249 $rm -r conftest 2>/dev/null
5252 echo "int some_variable = 0;" > conftest.$ac_ext
5254 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5255 # that will create temporary files in the current directory regardless of
5256 # the output directory. Thus, making CWD read-only will cause this test
5257 # to fail, enabling locking or at least warning the user not to do parallel
5260 save_CFLAGS="$CFLAGS"
5261 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5263 if { (eval echo configure:5264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5264 # The compiler can only warn and ignore the option if not recognized
5265 # So say no if there are warnings
5266 if test -s out/conftest.err; then
5267 lt_cv_compiler_c_o=no
5269 lt_cv_compiler_c_o=yes
5272 # Append any errors to the config.log.
5273 cat out/conftest.err 1>&5
5274 lt_cv_compiler_c_o=no
5276 CFLAGS="$save_CFLAGS"
5282 $rm -r conftest 2>/dev/null
5286 compiler_c_o=$lt_cv_compiler_c_o
5287 echo "$ac_t""$compiler_c_o" 1>&6
5289 if test x"$compiler_c_o" = x"yes"; then
5290 # Check to see if we can write to a .lo
5291 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5292 echo "configure:5293: checking if $compiler supports -c -o file.lo" >&5
5293 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5297 lt_cv_compiler_o_lo=no
5298 save_CFLAGS="$CFLAGS"
5299 CFLAGS="$CFLAGS -c -o conftest.lo"
5300 save_objext="$ac_objext"
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5307 int some_variable = 0;
5310 if { (eval echo configure:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 # The compiler can only warn and ignore the option if not recognized
5313 # So say no if there are warnings
5314 if test -s conftest.err; then
5315 lt_cv_compiler_o_lo=no
5317 lt_cv_compiler_o_lo=yes
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5325 ac_objext="$save_objext"
5326 CFLAGS="$save_CFLAGS"
5330 compiler_o_lo=$lt_cv_compiler_o_lo
5331 echo "$ac_t""$compiler_o_lo" 1>&6
5336 # Check to see if we can do hard links to lock some files if needed
5337 hard_links="nottested"
5338 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5339 # do not overwrite the value of need_locks provided by the user
5340 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5341 echo "configure:5342: checking if we can lock with hard links" >&5
5344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5346 ln conftest.a conftest.b 2>&5 || hard_links=no
5347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5348 echo "$ac_t""$hard_links" 1>&6
5349 if test "$hard_links" = no; then
5350 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5357 if test "$GCC" = yes; then
5358 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5359 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5360 echo "configure:5361: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5361 echo "int some_variable = 0;" > conftest.$ac_ext
5362 save_CFLAGS="$CFLAGS"
5363 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5364 compiler_rtti_exceptions=no
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5370 int some_variable = 0;
5373 if { (eval echo configure:5374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 # The compiler can only warn and ignore the option if not recognized
5376 # So say no if there are warnings
5377 if test -s conftest.err; then
5378 compiler_rtti_exceptions=no
5380 compiler_rtti_exceptions=yes
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5388 CFLAGS="$save_CFLAGS"
5389 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5391 if test "$compiler_rtti_exceptions" = "yes"; then
5392 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5394 no_builtin_flag=' -fno-builtin'
5398 # See if the linker supports building shared libraries.
5399 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5400 echo "configure:5401: checking whether the linker ($LD) supports shared libraries" >&5
5402 allow_undefined_flag=
5404 need_lib_prefix=unknown
5405 need_version=unknown
5406 # when you set need_version to no, make sure it does not cause -set_version
5407 # flags to be left without arguments
5409 archive_expsym_cmds=
5410 old_archive_from_new_cmds=
5411 old_archive_from_expsyms_cmds=
5412 export_dynamic_flag_spec=
5413 whole_archive_flag_spec=
5414 thread_safe_flag_spec=
5415 hardcode_into_libs=no
5416 hardcode_libdir_flag_spec=
5417 hardcode_libdir_separator=
5420 hardcode_shlibpath_var=unsupported
5422 link_all_deplibs=unknown
5423 always_export_symbols=no
5424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5425 # include_expsyms should be a list of space-separated symbols to be *always*
5426 # included in the symbol list
5428 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5429 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5430 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5431 # as well as any symbol that contains `d'.
5432 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5433 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5434 # platforms (ab)use it in PIC code, but their linkers get confused if
5435 # the symbol is explicitly referenced. Since portable code cannot
5436 # rely on this symbol name, it's probably fine to never include it in
5437 # preloaded symbol tables.
5438 extract_expsyms_cmds=
5441 cygwin* | mingw* | pw32*)
5442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5443 # When not using gcc, we currently assume that we are using
5444 # Microsoft Visual C++.
5445 if test "$GCC" != yes; then
5455 if test "$with_gnu_ld" = yes; then
5456 # If archive_cmds runs LD, not CC, wlarc should be empty
5459 # See if GNU ld supports shared libraries.
5461 aix3* | aix4* | aix5*)
5462 # On AIX, the GNU linker is very broken
5463 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5468 *** to be unable to reliably create shared libraries on AIX.
5469 *** Therefore, libtool is disabling shared libraries support. If you
5470 *** really care for shared libraries, you may want to modify your PATH
5471 *** so that a non-GNU linker is found, and then restart.
5477 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)'
5478 hardcode_libdir_flag_spec='-L$libdir'
5479 hardcode_minus_L=yes
5481 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5482 # that the semantics of dynamic libraries on AmigaOS, at least up
5483 # to version 4, is to share data among multiple programs linked
5484 # with the same dynamic library. Since this doesn't match the
5485 # behavior of shared libraries on other platforms, we can use
5491 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5492 allow_undefined_flag=unsupported
5493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5494 # support --undefined. This deserves some investigation. FIXME
5495 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5501 cygwin* | mingw* | pw32*)
5502 # hardcode_libdir_flag_spec is actually meaningless, as there is
5503 # no search path for DLLs.
5504 hardcode_libdir_flag_spec='-L$libdir'
5505 allow_undefined_flag=unsupported
5506 always_export_symbols=yes
5508 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5509 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5510 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5511 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5512 else $CC -o impgen impgen.c ; fi)~
5513 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5515 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5517 # cygwin and mingw dlls have different entry points and sets of symbols
5519 # FIXME: what about values for MSVC?
5520 dll_entry=__cygwin_dll_entry@12
5521 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5525 dll_entry=_DllMainCRTStartup@12
5526 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5530 # mingw and cygwin differ, and it's simplest to just exclude the union
5531 # of the two symbol sets.
5532 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5534 # recent cygwin and mingw systems supply a stub DllMain which the user
5535 # can override, but on older systems we have to supply one (in ltdll.c)
5536 if test "x$lt_cv_need_dllmain" = "xyes"; then
5537 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5538 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~
5539 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5545 # Extract the symbol export list from an `--export-all' def file,
5546 # then regenerate the def file from the symbol export list, so that
5547 # the compiled dll only exports the symbol export list.
5548 # Be careful not to strip the DATA tag left be newer dlltools.
5549 export_symbols_cmds="$ltdll_cmds"'
5550 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5551 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5553 # If the export-symbols file already is a .def file (1st line
5554 # is EXPORTS), use it as is.
5555 # If DATA tags from a recent dlltool are present, honour them!
5556 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5557 cp $export_symbols $output_objdir/$soname-def;
5559 echo EXPORTS > $output_objdir/$soname-def;
5561 cat $export_symbols | while read symbol; do
5564 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5565 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5567 _lt_hint=`expr 1 + \$_lt_hint`;
5571 $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~
5572 $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~
5573 $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~
5574 $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~
5575 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5579 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5580 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5583 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5584 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5589 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5594 *** create shared libraries on Solaris systems. Therefore, libtool
5595 *** is disabling shared libraries support. We urge you to upgrade GNU
5596 *** binutils to release 2.9.1 or newer. Another option is to modify
5597 *** your PATH or compiler configuration so that the native linker is
5598 *** used, and then restart.
5601 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5610 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5613 hardcode_shlibpath_var=no
5617 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5626 if test "$ld_shlibs" = yes; then
5627 runpath_var=LD_RUN_PATH
5628 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5629 export_dynamic_flag_spec='${wl}--export-dynamic'
5631 cygwin* | mingw* | pw32*)
5632 # dlltool doesn't understand --whole-archive et. al.
5633 whole_archive_flag_spec=
5636 # ancient GNU ld didn't support --whole-archive et. al.
5637 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5640 whole_archive_flag_spec=
5646 # PORTME fill in a description of your system's linker (not GNU ld)
5649 allow_undefined_flag=unsupported
5650 always_export_symbols=yes
5651 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'
5652 # Note: this linker hardcodes the directories in LIBPATH if there
5653 # are no directories specified by -L.
5654 hardcode_minus_L=yes
5655 if test "$GCC" = yes && test -z "$link_static_flag"; then
5656 # Neither direct hardcoding nor static linking is supported with a
5658 hardcode_direct=unsupported
5663 if test "$host_cpu" = ia64; then
5664 # On IA64, the linker does run time linking by default, so we don't
5665 # have to do anything special.
5666 aix_use_runtimelinking=no
5667 exp_sym_flag='-Bexport'
5670 aix_use_runtimelinking=no
5672 # Test if we are trying to use run time linking or normal
5673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5674 # need to do runtime linking.
5675 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5676 for ld_flag in $LDFLAGS; do
5677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5678 aix_use_runtimelinking=yes
5684 exp_sym_flag='-bexport'
5685 no_entry_flag='-bnoentry'
5688 # When large executables or shared objects are built, AIX ld can
5689 # have problems creating the table of contents. If linking a library
5690 # or program results in "error TOC overflow" add -mminimal-toc to
5691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5696 hardcode_libdir_separator=':'
5697 if test "$GCC" = yes; then
5698 case $host_os in aix4.[012]|aix4.[012].*)
5699 collect2name=`${CC} -print-prog-name=collect2`
5700 if test -f "$collect2name" && \
5701 strings "$collect2name" | grep resolve_lib_name >/dev/null
5703 # We have reworked collect2
5706 # We have old collect2
5707 hardcode_direct=unsupported
5708 # It fails to find uninstalled libraries when the uninstalled
5709 # path is not listed in the libpath. Setting hardcode_minus_L
5710 # to unsupported forces relinking
5711 hardcode_minus_L=yes
5712 hardcode_libdir_flag_spec='-L$libdir'
5713 hardcode_libdir_separator=
5717 shared_flag='-shared'
5720 if test "$host_cpu" = ia64; then
5721 shared_flag='${wl}-G'
5723 if test "$aix_use_runtimelinking" = yes; then
5724 shared_flag='${wl}-G'
5726 shared_flag='${wl}-bM:SRE'
5731 # It seems that -bexpall can do strange things, so it is better to
5732 # generate a list of symbols to export.
5733 always_export_symbols=yes
5734 if test "$aix_use_runtimelinking" = yes; then
5735 # Warning - without using the other runtime loading flags (-brtl),
5736 # -berok will link without error, but may produce a broken library.
5737 allow_undefined_flag='-berok'
5738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5739 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"
5741 if test "$host_cpu" = ia64; then
5742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5743 allow_undefined_flag="-z nodefs"
5744 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"
5746 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5747 # Warning - without using the other run time loading flags,
5748 # -berok will link without error, but may produce a broken library.
5749 allow_undefined_flag='${wl}-berok'
5750 # This is a bit strange, but is similar to how AIX traditionally builds
5751 # it's shared libraries.
5752 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'
5758 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)'
5759 hardcode_libdir_flag_spec='-L$libdir'
5760 hardcode_minus_L=yes
5761 # see comment about different semantics on the GNU ld section
5765 cygwin* | mingw* | pw32*)
5766 # When not using gcc, we currently assume that we are using
5767 # Microsoft Visual C++.
5768 # hardcode_libdir_flag_spec is actually meaningless, as there is
5769 # no search path for DLLs.
5770 hardcode_libdir_flag_spec=' '
5771 allow_undefined_flag=unsupported
5772 # Tell ltmain to make .lib files, not .a files.
5774 # FIXME: Setting linknames here is a bad hack.
5775 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5776 # The linker will automatically build a .lib file if we build a DLL.
5777 old_archive_from_new_cmds='true'
5778 # FIXME: Should let the user specify the lib program.
5779 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5780 fix_srcfile_path='`cygpath -w "$srcfile"`'
5783 darwin* | rhapsody*)
5785 rhapsody* | darwin1.[012])
5786 allow_undefined_flag='-undefined suppress'
5789 allow_undefined_flag='-flat_namespace -undefined suppress'
5792 # FIXME: Relying on posixy $() will cause problems for
5793 # cross-compilation, but unfortunately the echo tests do not
5794 # yet detect zsh echo's removal of \ escapes.
5795 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'
5796 # We need to add '_' to the symbols in $export_symbols first
5797 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5799 hardcode_shlibpath_var=no
5800 whole_archive_flag_spec='-all_load $convenience'
5807 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5808 # support. Future versions do this automatically, but an explicit c++rt0.o
5809 # does not break anything, and helps significantly (at the cost of a little
5812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5813 hardcode_libdir_flag_spec='-R$libdir'
5815 hardcode_shlibpath_var=no
5818 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5822 hardcode_minus_L=yes
5823 hardcode_shlibpath_var=no
5826 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5828 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5829 hardcode_libdir_flag_spec='-R$libdir'
5831 hardcode_shlibpath_var=no
5834 hpux9* | hpux10* | hpux11*)
5836 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' ;;
5837 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5840 hardcode_libdir_separator=:
5842 hardcode_minus_L=yes # Not in the search PATH, but as the default
5843 # location of the library.
5844 export_dynamic_flag_spec='${wl}-E'
5848 if test "$GCC" = yes; then
5849 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'
5851 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'
5853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5854 hardcode_libdir_separator=:
5855 link_all_deplibs=yes
5859 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5864 hardcode_libdir_flag_spec='-R$libdir'
5866 hardcode_shlibpath_var=no
5870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5873 hardcode_libdir_separator=:
5874 hardcode_shlibpath_var=no
5879 hardcode_shlibpath_var=no
5880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5883 export_dynamic_flag_spec='${wl}-E'
5886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5888 hardcode_libdir_flag_spec='-R$libdir'
5891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5899 hardcode_libdir_flag_spec='-L$libdir'
5900 hardcode_minus_L=yes
5901 allow_undefined_flag=unsupported
5902 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'
5903 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5907 if test "$GCC" = yes; then
5908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5909 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'
5911 allow_undefined_flag=' -expect_unresolved \*'
5912 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'
5914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5915 hardcode_libdir_separator=:
5918 osf4* | osf5*) # as osf3* with the addition of -msym flag
5919 if test "$GCC" = yes; then
5920 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5921 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'
5922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5924 allow_undefined_flag=' -expect_unresolved \*'
5925 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'
5926 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5927 $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'
5929 #Both c and cxx compiler support -rpath directly
5930 hardcode_libdir_flag_spec='-rpath $libdir'
5932 hardcode_libdir_separator=:
5936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5937 hardcode_shlibpath_var=no
5938 runpath_var=LD_RUN_PATH
5939 hardcode_runpath_var=yes
5940 export_dynamic_flag_spec='${wl}-Bexport'
5944 # gcc --version < 3.0 without binutils cannot create self contained
5945 # shared libraries reliably, requiring libgcc.a to resolve some of
5946 # the object symbols generated in some cases. Libraries that use
5947 # assert need libgcc.a to resolve __eprintf, for example. Linking
5948 # a copy of libgcc.a into every shared library to guarantee resolving
5949 # such symbols causes other problems: According to Tim Van Holder
5950 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5951 # (to the application) exception stack for one thing.
5952 no_undefined_flag=' -z defs'
5953 if test "$GCC" = yes; then
5954 case `$CC --version 2>/dev/null` in
5958 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5959 *** create self contained shared libraries on Solaris systems, without
5960 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5961 *** -no-undefined support, which will at least allow you to build shared
5962 *** libraries. However, you may find that when you link such libraries
5963 *** into an application without using GCC, you have to manually add
5964 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5965 *** upgrade to a newer version of GCC. Another option is to rebuild your
5966 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5973 # $CC -shared without GNU ld will not create a library from C++
5974 # object files and a static libstdc++, better avoid it by now
5975 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5976 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5977 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5978 hardcode_libdir_flag_spec='-R$libdir'
5979 hardcode_shlibpath_var=no
5981 solaris2.[0-5] | solaris2.[0-5].*) ;;
5982 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5983 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5985 link_all_deplibs=yes
5989 if test "x$host_vendor" = xsequent; then
5990 # Use $CC to link under sequent, because it throws in some extra .o
5991 # files that make .init and .fini sections work.
5992 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5994 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5996 hardcode_libdir_flag_spec='-L$libdir'
5998 hardcode_minus_L=yes
5999 hardcode_shlibpath_var=no
6003 if test "x$host_vendor" = xsno; then
6004 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6005 hardcode_direct=yes # is this really true???
6007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6010 runpath_var='LD_RUN_PATH'
6011 hardcode_shlibpath_var=no
6015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6016 hardcode_shlibpath_var=no
6017 export_dynamic_flag_spec='-Bexport'
6021 no_undefined_flag=' -z text'
6022 # $CC -shared without GNU ld will not create a library from C++
6023 # object files and a static libstdc++, better avoid it by now
6024 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6027 hardcode_libdir_flag_spec=
6028 hardcode_shlibpath_var=no
6029 runpath_var='LD_RUN_PATH'
6033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6034 hardcode_libdir_flag_spec='-L$libdir'
6035 hardcode_shlibpath_var=no
6039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6040 hardcode_libdir_flag_spec='-L$libdir'
6041 hardcode_shlibpath_var=no
6045 if test -d /usr/nec; then
6046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6047 hardcode_shlibpath_var=no
6048 runpath_var=LD_RUN_PATH
6049 hardcode_runpath_var=yes
6055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6058 hardcode_shlibpath_var=no
6059 hardcode_runpath_var=yes
6060 runpath_var=LD_RUN_PATH
6063 sysv5uw7* | unixware7*)
6064 no_undefined_flag='${wl}-z ${wl}text'
6065 if test "$GCC" = yes; then
6066 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6068 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6070 runpath_var='LD_RUN_PATH'
6071 hardcode_shlibpath_var=no
6079 echo "$ac_t""$ld_shlibs" 1>&6
6080 test "$ld_shlibs" = no && can_build_shared=no
6082 # Check hardcoding attributes.
6083 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6084 echo "configure:6085: checking how to hardcode library paths into programs" >&5
6086 if test -n "$hardcode_libdir_flag_spec" || \
6087 test -n "$runpath_var"; then
6089 # We can hardcode non-existant directories.
6090 if test "$hardcode_direct" != no &&
6091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6092 # have to relink, otherwise we might link with an installed library
6093 # when we should be linking with a yet-to-be-installed one
6094 ## test "$hardcode_shlibpath_var" != no &&
6095 test "$hardcode_minus_L" != no; then
6096 # Linking always hardcodes the temporary library directory.
6097 hardcode_action=relink
6099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6100 hardcode_action=immediate
6103 # We cannot hardcode anything, or else we can only hardcode existing
6105 hardcode_action=unsupported
6107 echo "$ac_t""$hardcode_action" 1>&6
6111 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6112 echo "configure:6113: checking whether stripping libraries is possible" >&5
6113 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6114 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6115 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6116 echo "$ac_t""yes" 1>&6
6118 echo "$ac_t""no" 1>&6
6121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6122 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6124 # PORTME Fill in your ld.so characteristics
6125 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6126 echo "configure:6127: checking dynamic linker characteristics" >&5
6128 libname_spec='lib$name'
6135 shlibpath_overrides_runpath=unknown
6137 dynamic_linker="$host_os ld.so"
6138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6139 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6144 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6145 shlibpath_var=LIBPATH
6147 # AIX has no versioning support, so we append a major version to the name.
6148 soname_spec='${libname}${release}.so$major'
6153 if test "$host_cpu" = ia64; then
6154 # AIX 5 supports IA64
6155 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6156 shlibpath_var=LD_LIBRARY_PATH
6158 # With GCC up to 2.95.x, collect2 would create an import file
6159 # for dependence libraries. The import file would start with
6160 # the line `#! .'. This would cause the generated library to
6161 # depend on `.', always an invalid library. This was fixed in
6162 # development snapshots of GCC prior to 3.0.
6164 aix4 | aix4.[01] | aix4.[01].*)
6165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6174 # AIX (on Power*) has no versioning support, so currently we can
6175 # not hardcode correct soname into executable. Probably we can
6176 # add versioning support to collect2, so additional links can
6177 # be useful in future.
6178 if test "$aix_use_runtimelinking" = yes; then
6179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6180 # instead of lib<name>.a to let people know that these are not
6181 # typical AIX shared libraries.
6182 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6184 # We preserve .a as extension for shared libraries through AIX4.2
6185 # and later when we are not doing run time linking.
6186 library_names_spec='${libname}${release}.a $libname.a'
6187 soname_spec='${libname}${release}.so$major'
6189 shlibpath_var=LIBPATH
6194 library_names_spec='$libname.ixlibrary $libname.a'
6195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6196 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'
6200 library_names_spec='${libname}.so'
6201 dynamic_linker="$host_os ld.so"
6202 shlibpath_var=LIBRARY_PATH
6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6209 soname_spec='${libname}${release}.so$major'
6210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6211 shlibpath_var=LD_LIBRARY_PATH
6212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6214 export_dynamic_flag_spec=-rdynamic
6215 # the default ld.so.conf also contains /usr/contrib/lib and
6216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6217 # libtool to hard-code these into programs
6220 cygwin* | mingw* | pw32*)
6221 version_type=windows
6224 case $GCC,$host_os in
6226 library_names_spec='$libname.dll.a'
6227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6228 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6229 dldir=$destdir/`dirname \$dlpath`~
6230 test -d \$dldir || mkdir -p \$dldir~
6231 $install_prog .libs/$dlname \$dldir/$dlname'
6232 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6233 dlpath=$dir/\$dldll~
6237 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6244 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6247 dynamic_linker='Win32 ld.exe'
6248 # FIXME: first we should search . and the directory the executable is in
6252 darwin* | rhapsody*)
6253 dynamic_linker="$host_os dyld"
6257 # FIXME: Relying on posixy $() will cause problems for
6258 # cross-compilation, but unfortunately the echo tests do not
6259 # yet detect zsh echo's removal of \ escapes.
6260 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)'
6261 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6262 shlibpath_overrides_runpath=yes
6263 shlibpath_var=DYLD_LIBRARY_PATH
6271 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6272 version_type=freebsd-$objformat
6273 case $version_type in
6275 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6280 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6284 shlibpath_var=LD_LIBRARY_PATH
6287 shlibpath_overrides_runpath=yes
6290 shlibpath_overrides_runpath=no
6291 hardcode_into_libs=yes
6300 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6301 soname_spec='${libname}${release}.so$major'
6302 shlibpath_var=LD_LIBRARY_PATH
6303 hardcode_into_libs=yes
6306 hpux9* | hpux10* | hpux11*)
6307 # Give a soname corresponding to the major version so that dld.sl refuses to
6308 # link against other versions.
6309 dynamic_linker="$host_os dld.sl"
6313 shlibpath_var=SHLIB_PATH
6314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6315 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6316 soname_spec='${libname}${release}.sl$major'
6317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6318 postinstall_cmds='chmod 555 $lib'
6325 soname_spec='${libname}${release}.so$major'
6326 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6332 case $LD in # libtool.m4 will add one of these switches to LD
6333 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6334 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6335 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6336 *) libsuff= shlibsuff= libmagic=never-match;;
6340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6341 shlibpath_overrides_runpath=no
6342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6346 # No shared lib support for Linux oldld, aout, or coff.
6347 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6351 # This must be Linux ELF.
6356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6357 soname_spec='${libname}${release}.so$major'
6358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6359 shlibpath_var=LD_LIBRARY_PATH
6360 shlibpath_overrides_runpath=no
6361 # This implies no fast_install, which is unacceptable.
6362 # Some rework will be needed to allow for fast_install
6363 # before this can be enabled.
6364 hardcode_into_libs=yes
6366 # We used to test for /lib/ld.so.1 and disable shared libraries on
6367 # powerpc, because MkLinux only supported shared libraries with the
6368 # GNU dynamic linker. Since this was broken with cross compilers,
6369 # most powerpc-linux boxes support dynamic linking these days and
6370 # people can always --disable-shared, the test was removed, and we
6371 # assume the GNU/Linux dynamic linker is in use.
6372 dynamic_linker='GNU/Linux ld.so'
6379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6382 dynamic_linker='NetBSD (a.out) ld.so'
6384 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6385 soname_spec='${libname}${release}.so$major'
6386 dynamic_linker='NetBSD ld.elf_so'
6388 shlibpath_var=LD_LIBRARY_PATH
6389 shlibpath_overrides_runpath=yes
6390 hardcode_into_libs=yes
6395 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6396 shlibpath_var=LD_LIBRARY_PATH
6397 shlibpath_overrides_runpath=yes
6404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6406 openbsd2.[89] | openbsd2.[89].*)
6407 shlibpath_overrides_runpath=no
6410 shlibpath_overrides_runpath=yes
6414 shlibpath_overrides_runpath=yes
6416 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6418 shlibpath_var=LD_LIBRARY_PATH
6422 libname_spec='$name'
6424 library_names_spec='$libname.dll $libname.a'
6425 dynamic_linker='OS/2 ld.exe'
6426 shlibpath_var=LIBPATH
6429 osf3* | osf4* | osf5*)
6432 soname_spec='${libname}${release}.so'
6433 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6434 shlibpath_var=LD_LIBRARY_PATH
6435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6441 soname_spec='${libname}${release}.so$major'
6442 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6443 shlibpath_var=LD_LIBRARY_PATH
6450 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6451 soname_spec='${libname}${release}.so$major'
6452 shlibpath_var=LD_LIBRARY_PATH
6453 shlibpath_overrides_runpath=yes
6454 hardcode_into_libs=yes
6455 # ldd complains unless libraries are executable
6456 postinstall_cmds='chmod +x $lib'
6461 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6463 shlibpath_var=LD_LIBRARY_PATH
6464 shlibpath_overrides_runpath=yes
6465 if test "$with_gnu_ld" = yes; then
6471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6474 soname_spec='${libname}${release}.so$major'
6475 shlibpath_var=LD_LIBRARY_PATH
6476 case $host_vendor in
6478 shlibpath_overrides_runpath=no
6483 shlibpath_overrides_runpath=no
6484 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6491 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6492 soname_spec='${libname}${release}.so$major'
6493 shlibpath_var=LD_LIBRARY_PATH
6500 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6501 soname_spec='${libname}${release}.so$major'
6502 shlibpath_var=LD_LIBRARY_PATH
6506 if test -d /usr/nec ;then
6508 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6509 soname_spec='$libname.so.$major'
6510 shlibpath_var=LD_LIBRARY_PATH
6518 echo "$ac_t""$dynamic_linker" 1>&6
6519 test "$dynamic_linker" = no && can_build_shared=no
6521 # Report the final consequences.
6522 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6523 echo "configure:6524: checking if libtool supports shared libraries" >&5
6524 echo "$ac_t""$can_build_shared" 1>&6
6526 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6527 echo "configure:6528: checking whether to build shared libraries" >&5
6528 test "$can_build_shared" = "no" && enable_shared=no
6530 # On AIX, shared libraries and static libraries use the same namespace, and
6531 # are all built from PIC.
6534 test "$enable_shared" = yes && enable_static=no
6535 if test -n "$RANLIB"; then
6536 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6537 postinstall_cmds='$RANLIB $lib'
6542 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6543 test "$enable_shared" = yes && enable_static=no
6547 echo "$ac_t""$enable_shared" 1>&6
6549 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6550 echo "configure:6551: checking whether to build static libraries" >&5
6551 # Make sure either enable_shared or enable_static is yes.
6552 test "$enable_shared" = yes || enable_static=yes
6553 echo "$ac_t""$enable_static" 1>&6
6555 if test "$hardcode_action" = relink; then
6556 # Fast installation is not supported
6557 enable_fast_install=no
6558 elif test "$shlibpath_overrides_runpath" = yes ||
6559 test "$enable_shared" = no; then
6560 # Fast installation is not necessary
6561 enable_fast_install=needless
6564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6565 if test "$GCC" = yes; then
6566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6569 if test "x$enable_dlopen" != xyes; then
6570 enable_dlopen=unknown
6571 enable_dlopen_self=unknown
6572 enable_dlopen_self_static=unknown
6579 lt_cv_dlopen="load_add_on"
6581 lt_cv_dlopen_self=yes
6584 cygwin* | mingw* | pw32*)
6585 lt_cv_dlopen="LoadLibrary"
6590 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6591 echo "configure:6592: checking for shl_load" >&5
6592 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* System header to define __stub macros and hopefully few prototypes,
6599 which can conflict with char shl_load(); below. */
6601 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6609 /* The GNU C library defines this for functions which it implements
6610 to always fail with ENOSYS. Some functions are actually named
6611 something starting with __ and the normal name is an alias. */
6612 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6620 if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6622 eval "ac_cv_func_shl_load=yes"
6624 echo "configure: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6627 eval "ac_cv_func_shl_load=no"
6632 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6633 echo "$ac_t""yes" 1>&6
6634 lt_cv_dlopen="shl_load"
6636 echo "$ac_t""no" 1>&6
6637 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6638 echo "configure:6639: checking for shl_load in -ldld" >&5
6639 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6643 ac_save_LIBS="$LIBS"
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 eval "ac_cv_lib_$ac_lib_var=yes"
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 eval "ac_cv_lib_$ac_lib_var=no"
6667 LIBS="$ac_save_LIBS"
6670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6672 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6674 echo "$ac_t""no" 1>&6
6675 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6676 echo "configure:6677: checking for dlopen" >&5
6677 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 cat > conftest.$ac_ext <<EOF
6681 #line 6682 "configure"
6682 #include "confdefs.h"
6683 /* System header to define __stub macros and hopefully few prototypes,
6684 which can conflict with char dlopen(); below. */
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6694 /* The GNU C library defines this for functions which it implements
6695 to always fail with ENOSYS. Some functions are actually named
6696 something starting with __ and the normal name is an alias. */
6697 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 eval "ac_cv_func_dlopen=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_func_dlopen=no"
6717 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6718 echo "$ac_t""yes" 1>&6
6719 lt_cv_dlopen="dlopen"
6721 echo "$ac_t""no" 1>&6
6722 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6723 echo "configure:6724: checking for dlopen in -ldl" >&5
6724 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6725 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6728 ac_save_LIBS="$LIBS"
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 /* We use char because int might match the return type of a gcc2
6735 builtin and then its argument prototype would still apply. */
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6744 eval "ac_cv_lib_$ac_lib_var=yes"
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 eval "ac_cv_lib_$ac_lib_var=no"
6752 LIBS="$ac_save_LIBS"
6755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6759 echo "$ac_t""no" 1>&6
6760 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6761 echo "configure:6762: checking for dlopen in -lsvld" >&5
6762 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 ac_save_LIBS="$LIBS"
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 /* Override any gcc2 internal prototype to avoid an error. */
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6782 eval "ac_cv_lib_$ac_lib_var=yes"
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 eval "ac_cv_lib_$ac_lib_var=no"
6790 LIBS="$ac_save_LIBS"
6793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6794 echo "$ac_t""yes" 1>&6
6795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6797 echo "$ac_t""no" 1>&6
6798 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6799 echo "configure:6800: checking for dld_link in -ldld" >&5
6800 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6801 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 ac_save_LIBS="$LIBS"
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6818 if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6820 eval "ac_cv_lib_$ac_lib_var=yes"
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6825 eval "ac_cv_lib_$ac_lib_var=no"
6828 LIBS="$ac_save_LIBS"
6831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6832 echo "$ac_t""yes" 1>&6
6833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6835 echo "$ac_t""no" 1>&6
6856 if test "x$lt_cv_dlopen" != xno; then
6862 case $lt_cv_dlopen in
6864 save_CPPFLAGS="$CPPFLAGS"
6865 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6867 save_LDFLAGS="$LDFLAGS"
6868 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6871 LIBS="$lt_cv_dlopen_libs $LIBS"
6873 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6874 echo "configure:6875: checking whether a program can dlopen itself" >&5
6875 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 if test "$cross_compiling" = yes; then :
6879 lt_cv_dlopen_self=cross
6881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6882 lt_status=$lt_dlunknown
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6894 # define LT_DLGLOBAL RTLD_GLOBAL
6897 # define LT_DLGLOBAL DL_GLOBAL
6899 # define LT_DLGLOBAL 0
6903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6904 find out it does not work in some platform. */
6905 #ifndef LT_DLLAZY_OR_NOW
6907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6910 # define LT_DLLAZY_OR_NOW DL_LAZY
6913 # define LT_DLLAZY_OR_NOW RTLD_NOW
6916 # define LT_DLLAZY_OR_NOW DL_NOW
6918 # define LT_DLLAZY_OR_NOW 0
6926 extern "C" void exit (int);
6929 void fnord() { int i=42;}
6932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6933 int status = $lt_dlunknown;
6937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6939 /* dlclose (self); */
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6946 (./conftest; exit; ) 2>/dev/null
6949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6951 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6954 # compilation failed
6955 lt_cv_dlopen_self=no
6963 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6965 if test "x$lt_cv_dlopen_self" = xyes; then
6966 LDFLAGS="$LDFLAGS $link_static_flag"
6967 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6968 echo "configure:6969: checking whether a statically linked program can dlopen itself" >&5
6969 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 if test "$cross_compiling" = yes; then :
6973 lt_cv_dlopen_self_static=cross
6975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6976 lt_status=$lt_dlunknown
6977 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6988 # define LT_DLGLOBAL RTLD_GLOBAL
6991 # define LT_DLGLOBAL DL_GLOBAL
6993 # define LT_DLGLOBAL 0
6997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6998 find out it does not work in some platform. */
6999 #ifndef LT_DLLAZY_OR_NOW
7001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7004 # define LT_DLLAZY_OR_NOW DL_LAZY
7007 # define LT_DLLAZY_OR_NOW RTLD_NOW
7010 # define LT_DLLAZY_OR_NOW DL_NOW
7012 # define LT_DLLAZY_OR_NOW 0
7020 extern "C" void exit (int);
7023 void fnord() { int i=42;}
7026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7027 int status = $lt_dlunknown;
7031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7033 /* dlclose (self); */
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7040 (./conftest; exit; ) 2>/dev/null
7043 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7044 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7045 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7048 # compilation failed
7049 lt_cv_dlopen_self_static=no
7057 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7060 CPPFLAGS="$save_CPPFLAGS"
7061 LDFLAGS="$save_LDFLAGS"
7066 case $lt_cv_dlopen_self in
7067 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7068 *) enable_dlopen_self=unknown ;;
7071 case $lt_cv_dlopen_self_static in
7072 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7073 *) enable_dlopen_self_static=unknown ;;
7078 if test "$enable_shared" = yes && test "$GCC" = yes; then
7079 case $archive_cmds in
7081 # FIXME: we may have to deal with multi-command sequences.
7084 # Test whether the compiler implicitly links with -lc since on some
7085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7086 # to ld, don't add -lc before -lgcc.
7087 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7088 echo "configure:7089: checking whether -lc should be explicitly linked in" >&5
7089 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7093 echo 'static int dummy;' > conftest.$ac_ext
7095 if { (eval echo configure:7096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7098 libobjs=conftest.$ac_objext
7100 wl=$lt_cv_prog_cc_wl
7106 save_allow_undefined_flag=$allow_undefined_flag
7107 allow_undefined_flag=
7108 if { (eval echo configure:7109: \"$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; }
7110 lt_cv_archive_cmds_need_lc=no
7112 lt_cv_archive_cmds_need_lc=yes
7114 allow_undefined_flag=$save_allow_undefined_flag
7116 cat conftest.err 1>&5
7120 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7124 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7126 # The second clause should only fire when bootstrapping the
7127 # libtool distribution, otherwise you forgot to ship ltmain.sh
7128 # with your package, and you will get complaints that there are
7129 # no rules to generate ltmain.sh.
7130 if test -f "$ltmain"; then
7133 # If there is no Makefile yet, we rely on a make rule to execute
7134 # `config.status --recheck' to rerun these tests and create the
7135 # libtool script then.
7136 test -f Makefile && make "$ltmain"
7139 if test -f "$ltmain"; then
7140 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7143 echo creating $ofile
7145 # Now quote all the things that may contain metacharacters while being
7146 # careful not to overquote the AC_SUBSTed values. We take copies of the
7147 # variables and quote the copies for generation of the libtool script.
7148 for var in echo old_CC old_CFLAGS \
7149 AR AR_FLAGS CC LD LN_S NM SHELL \
7150 reload_flag reload_cmds wl \
7151 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7152 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7153 library_names_spec soname_spec \
7154 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7155 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7156 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7157 old_striplib striplib file_magic_cmd export_symbols_cmds \
7158 deplibs_check_method allow_undefined_flag no_undefined_flag \
7159 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7160 global_symbol_to_c_name_address \
7161 hardcode_libdir_flag_spec hardcode_libdir_separator \
7162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7163 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7166 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7167 old_postinstall_cmds | old_postuninstall_cmds | \
7168 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7169 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7170 postinstall_cmds | postuninstall_cmds | \
7171 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7172 # Double-quote double-evaled strings.
7173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7181 cat <<__EOF__ > "${ofile}T"
7184 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7185 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7188 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7189 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7191 # This program is free software; you can redistribute it and/or modify
7192 # it under the terms of the GNU General Public License as published by
7193 # the Free Software Foundation; either version 2 of the License, or
7194 # (at your option) any later version.
7196 # This program is distributed in the hope that it will be useful, but
7197 # WITHOUT ANY WARRANTY; without even the implied warranty of
7198 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7199 # General Public License for more details.
7201 # You should have received a copy of the GNU General Public License
7202 # along with this program; if not, write to the Free Software
7203 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7205 # As a special exception to the GNU General Public License, if you
7206 # distribute this file as part of a program that contains a
7207 # configuration script generated by Autoconf, you may include it under
7208 # the same distribution terms that you use for the rest of that program.
7210 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7211 Xsed="sed -e s/^X//"
7213 # The HP-UX ksh and POSIX shell print the target directory to stdout
7215 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7217 # ### BEGIN LIBTOOL CONFIG
7219 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7221 # Shell to use when invoking shell scripts.
7224 # Whether or not to build shared libraries.
7225 build_libtool_libs=$enable_shared
7227 # Whether or not to build static libraries.
7228 build_old_libs=$enable_static
7230 # Whether or not to add -lc for building shared libraries.
7231 build_libtool_need_lc=$need_lc
7233 # Whether or not to optimize for fast installation.
7234 fast_install=$enable_fast_install
7237 host_alias=$host_alias
7240 # An echo program that does not interpret backslashes.
7245 AR_FLAGS=$lt_AR_FLAGS
7247 # The default C compiler.
7250 # Is the compiler the GNU C compiler?
7253 # The linker used to build libraries.
7256 # Whether we need hard or soft links.
7259 # A BSD-compatible nm program.
7262 # A symbol stripping program
7265 # Used to examine libraries when file_magic_cmd begins "file"
7266 MAGIC_CMD=$MAGIC_CMD
7268 # Used on cygwin: DLL creation program.
7271 # Used on cygwin: object dumper.
7274 # Used on cygwin: assembler.
7277 # The name of the directory that contains temporary libtool files.
7280 # How to create reloadable object files.
7281 reload_flag=$lt_reload_flag
7282 reload_cmds=$lt_reload_cmds
7284 # How to pass a linker flag through the compiler.
7287 # Object file suffix (normally "o").
7290 # Old archive suffix (normally "a").
7293 # Executable file suffix (normally "").
7296 # Additional compiler flags for building library objects.
7297 pic_flag=$lt_pic_flag
7300 # Does compiler simultaneously support -c and -o options?
7301 compiler_c_o=$lt_compiler_c_o
7303 # Can we write directly to a .lo ?
7304 compiler_o_lo=$lt_compiler_o_lo
7306 # Must we lock files when doing compilation ?
7307 need_locks=$lt_need_locks
7309 # Do we need the lib prefix for modules?
7310 need_lib_prefix=$need_lib_prefix
7312 # Do we need a version for libraries?
7313 need_version=$need_version
7315 # Whether dlopen is supported.
7316 dlopen_support=$enable_dlopen
7318 # Whether dlopen of programs is supported.
7319 dlopen_self=$enable_dlopen_self
7321 # Whether dlopen of statically linked programs is supported.
7322 dlopen_self_static=$enable_dlopen_self_static
7324 # Compiler flag to prevent dynamic linking.
7325 link_static_flag=$lt_link_static_flag
7327 # Compiler flag to turn off builtin functions.
7328 no_builtin_flag=$lt_no_builtin_flag
7330 # Compiler flag to allow reflexive dlopens.
7331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7333 # Compiler flag to generate shared objects directly from archives.
7334 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7336 # Compiler flag to generate thread-safe objects.
7337 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7339 # Library versioning type.
7340 version_type=$version_type
7342 # Format of library name prefix.
7343 libname_spec=$lt_libname_spec
7345 # List of archive names. First name is the real one, the rest are links.
7346 # The last name is the one that the linker finds with -lNAME.
7347 library_names_spec=$lt_library_names_spec
7349 # The coded name of the library, if different from the real name.
7350 soname_spec=$lt_soname_spec
7352 # Commands used to build and install an old-style archive.
7354 old_archive_cmds=$lt_old_archive_cmds
7355 old_postinstall_cmds=$lt_old_postinstall_cmds
7356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7358 # Create an old-style archive from a shared archive.
7359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7361 # Create a temporary old-style archive to link instead of a shared archive.
7362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7364 # Commands used to build and install a shared archive.
7365 archive_cmds=$lt_archive_cmds
7366 archive_expsym_cmds=$lt_archive_expsym_cmds
7367 postinstall_cmds=$lt_postinstall_cmds
7368 postuninstall_cmds=$lt_postuninstall_cmds
7370 # Commands to strip libraries.
7371 old_striplib=$lt_old_striplib
7372 striplib=$lt_striplib
7374 # Method to check whether dependent libraries are shared objects.
7375 deplibs_check_method=$lt_deplibs_check_method
7377 # Command to use when deplibs_check_method == file_magic.
7378 file_magic_cmd=$lt_file_magic_cmd
7380 # Flag that allows shared libraries with undefined symbols to be built.
7381 allow_undefined_flag=$lt_allow_undefined_flag
7383 # Flag that forces no undefined symbols.
7384 no_undefined_flag=$lt_no_undefined_flag
7386 # Commands used to finish a libtool library installation in a directory.
7387 finish_cmds=$lt_finish_cmds
7389 # Same as above, but a single script fragment to be evaled but not shown.
7390 finish_eval=$lt_finish_eval
7392 # Take the output of nm and produce a listing of raw symbols and C names.
7393 global_symbol_pipe=$lt_global_symbol_pipe
7395 # Transform the output of nm in a proper C declaration
7396 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7398 # Transform the output of nm in a C name address pair
7399 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7401 # This is the shared library runtime path variable.
7402 runpath_var=$runpath_var
7404 # This is the shared library path variable.
7405 shlibpath_var=$shlibpath_var
7407 # Is shlibpath searched before the hard-coded library search path?
7408 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7410 # How to hardcode a shared library path into an executable.
7411 hardcode_action=$hardcode_action
7413 # Whether we should hardcode library paths into libraries.
7414 hardcode_into_libs=$hardcode_into_libs
7416 # Flag to hardcode \$libdir into a binary during linking.
7417 # This must work even if \$libdir does not exist.
7418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7420 # Whether we need a single -rpath flag with a separated argument.
7421 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7423 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7425 hardcode_direct=$hardcode_direct
7427 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7429 hardcode_minus_L=$hardcode_minus_L
7431 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7432 # the resulting binary.
7433 hardcode_shlibpath_var=$hardcode_shlibpath_var
7435 # Variables whose values should be saved in libtool wrapper scripts and
7436 # restored at relink time.
7437 variables_saved_for_relink="$variables_saved_for_relink"
7439 # Whether libtool must link a program against all its dependency libraries.
7440 link_all_deplibs=$link_all_deplibs
7442 # Compile-time system search path for libraries
7443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7445 # Run-time system search path for libraries
7446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7448 # Fix the shell variable \$srcfile for the compiler.
7449 fix_srcfile_path="$fix_srcfile_path"
7451 # Set to yes if exported symbols are required.
7452 always_export_symbols=$always_export_symbols
7454 # The commands to list exported symbols.
7455 export_symbols_cmds=$lt_export_symbols_cmds
7457 # The commands to extract the exported symbol list from a shared archive.
7458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7460 # Symbols that should not be listed in the preloaded symbols.
7461 exclude_expsyms=$lt_exclude_expsyms
7463 # Symbols that must always be exported.
7464 include_expsyms=$lt_include_expsyms
7466 # ### END LIBTOOL CONFIG
7472 cat <<\EOF >> "${ofile}T"
7474 # AIX sometimes has problems with the GCC collect2 program. For some
7475 # reason, if we set the COLLECT_NAMES environment variable, the problems
7476 # vanish in a puff of smoke.
7477 if test "X${COLLECT_NAMES+set}" != Xset; then
7479 export COLLECT_NAMES
7486 cygwin* | mingw* | pw32* | os2*)
7487 cat <<'EOF' >> "${ofile}T"
7488 # This is a source program that is used to create dlls on Windows
7489 # Don't remove nor modify the starting and closing comments
7490 # /* ltdll.c starts here */
7491 # #define WIN32_LEAN_AND_MEAN
7492 # #include <windows.h>
7493 # #undef WIN32_LEAN_AND_MEAN
7494 # #include <stdio.h>
7496 # #ifndef __CYGWIN__
7497 # # ifdef __CYGWIN32__
7498 # # define __CYGWIN__ __CYGWIN32__
7502 # #ifdef __cplusplus
7505 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7506 # #ifdef __cplusplus
7511 # #include <cygwin/cygwin_dll.h>
7512 # DECLARE_CYGWIN_DLL( DllMain );
7514 # HINSTANCE __hDllInstance_base;
7517 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7519 # __hDllInstance_base = hInst;
7522 # /* ltdll.c ends here */
7523 # This is a source program that is used to create import libraries
7524 # on Windows for dlls which lack them. Don't remove nor modify the
7525 # starting and closing comments
7526 # /* impgen.c starts here */
7527 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7529 # This file is part of GNU libtool.
7531 # This program is free software; you can redistribute it and/or modify
7532 # it under the terms of the GNU General Public License as published by
7533 # the Free Software Foundation; either version 2 of the License, or
7534 # (at your option) any later version.
7536 # This program is distributed in the hope that it will be useful,
7537 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7538 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7539 # GNU General Public License for more details.
7541 # You should have received a copy of the GNU General Public License
7542 # along with this program; if not, write to the Free Software
7543 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7546 # #include <stdio.h> /* for printf() */
7547 # #include <unistd.h> /* for open(), lseek(), read() */
7548 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7549 # #include <string.h> /* for strdup() */
7551 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7553 # #define O_BINARY 0
7556 # static unsigned int
7557 # pe_get16 (fd, offset)
7561 # unsigned char b[2];
7562 # lseek (fd, offset, SEEK_SET);
7564 # return b[0] + (b[1]<<8);
7567 # static unsigned int
7568 # pe_get32 (fd, offset)
7572 # unsigned char b[4];
7573 # lseek (fd, offset, SEEK_SET);
7575 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7578 # static unsigned int
7582 # unsigned char *b = ptr;
7583 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7592 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7593 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7594 # unsigned long name_rvas, nexp;
7595 # unsigned char *expdata, *erva;
7596 # char *filename, *dll_name;
7598 # filename = argv[1];
7600 # dll = open(filename, O_RDONLY|O_BINARY);
7604 # dll_name = filename;
7606 # for (i=0; filename[i]; i++)
7607 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7608 # dll_name = filename + i +1;
7610 # pe_header_offset = pe_get32 (dll, 0x3c);
7611 # opthdr_ofs = pe_header_offset + 4 + 20;
7612 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7614 # if (num_entries < 1) /* no exports */
7617 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7618 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7619 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7620 # secptr = (pe_header_offset + 4 + 20 +
7621 # pe_get16 (dll, pe_header_offset + 4 + 16));
7624 # for (i = 0; i < nsections; i++)
7627 # unsigned long secptr1 = secptr + 40 * i;
7628 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7629 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7630 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7631 # lseek(dll, secptr1, SEEK_SET);
7632 # read(dll, sname, 8);
7633 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7635 # expptr = fptr + (export_rva - vaddr);
7636 # if (export_rva + export_size > vaddr + vsize)
7637 # export_size = vsize - (export_rva - vaddr);
7642 # expdata = (unsigned char*)malloc(export_size);
7643 # lseek (dll, expptr, SEEK_SET);
7644 # read (dll, expdata, export_size);
7645 # erva = expdata - export_rva;
7647 # nexp = pe_as32 (expdata+24);
7648 # name_rvas = pe_as32 (expdata+32);
7650 # printf ("EXPORTS\n");
7651 # for (i = 0; i<nexp; i++)
7653 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7654 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7659 # /* impgen.c ends here */
7665 # We use sed instead of cat because bash on DJGPP gets confused if
7666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7667 # text mode, it properly converts lines to CR/LF. This bash problem
7668 # is reportedly fixed, but why not run on old versions too?
7669 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7671 mv -f "${ofile}T" "$ofile" || \
7672 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7680 # This can be used to rebuild libtool when needed
7681 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7683 # Always use our own libtool.
7684 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7686 # Prevent multiple expansion
7690 for ac_prog in mawk gawk nawk awk
7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7695 echo "configure:7696: checking for $ac_word" >&5
7696 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7699 if test -n "$AWK"; then
7700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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_prog_AWK="$ac_prog"
7714 AWK="$ac_cv_prog_AWK"
7715 if test -n "$AWK"; then
7716 echo "$ac_t""$AWK" 1>&6
7718 echo "$ac_t""no" 1>&6
7721 test -n "$AWK" && break
7724 # test for ln hardlink support
7725 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7726 echo "configure:7727: checking whether ln works" >&5
7727 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 rm -f conftest.src conftest.dst
7731 echo "conftest" > conftest.src
7732 if ln conftest.src conftest.dst 2>/dev/null
7734 ol_cv_prog_LN_H="ln"
7736 ol_cv_prog_LN_H="cp"
7738 rm -f conftest.src conftest.dst
7741 LN_H="$ol_cv_prog_LN_H"
7742 if test "$ol_cv_prog_LN_H" = "ln"; then
7743 echo "$ac_t""yes" 1>&6
7745 echo "$ac_t""no" 1>&6
7748 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7749 echo "configure:7750: checking whether ln -s works" >&5
7750 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7754 if ln -s X conftestdata 2>/dev/null
7757 ac_cv_prog_LN_S="ln -s"
7762 LN_S="$ac_cv_prog_LN_S"
7763 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7764 echo "$ac_t""yes" 1>&6
7766 echo "$ac_t""no" 1>&6
7770 # Extract the first word of "sendmail", so it can be a program name with args.
7771 set dummy sendmail; ac_word=$2
7772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_word" >&5
7774 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7779 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7782 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7786 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7787 for ac_dir in $ac_dummy; do
7788 test -z "$ac_dir" && ac_dir=.
7789 if test -f $ac_dir/$ac_word; then
7790 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7795 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7799 SENDMAIL="$ac_cv_path_SENDMAIL"
7800 if test -n "$SENDMAIL"; then
7801 echo "$ac_t""$SENDMAIL" 1>&6
7803 echo "$ac_t""no" 1>&6
7806 # Extract the first word of "vi", so it can be a program name with args.
7807 set dummy vi; ac_word=$2
7808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7809 echo "configure:7810: checking for $ac_word" >&5
7810 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7815 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7818 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7822 ac_dummy="$PATH:/usr/ucb"
7823 for ac_dir in $ac_dummy; do
7824 test -z "$ac_dir" && ac_dir=.
7825 if test -f $ac_dir/$ac_word; then
7826 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7831 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7835 EDITOR="$ac_cv_path_EDITOR"
7836 if test -n "$EDITOR"; then
7837 echo "$ac_t""$EDITOR" 1>&6
7839 echo "$ac_t""no" 1>&6
7844 if test $ol_enable_perl != no ; then
7845 # Extract the first word of "perl", so it can be a program name with args.
7846 set dummy perl; ac_word=$2
7847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_word" >&5
7849 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7854 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7857 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7862 for ac_dir in $ac_dummy; do
7863 test -z "$ac_dir" && ac_dir=.
7864 if test -f $ac_dir/$ac_word; then
7865 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7870 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7874 PERLBIN="$ac_cv_path_PERLBIN"
7875 if test -n "$PERLBIN"; then
7876 echo "$ac_t""$PERLBIN" 1>&6
7878 echo "$ac_t""no" 1>&6
7882 if test "no$PERLBIN" = "no" ; then
7883 if test $ol_enable_perl = yes ; then
7884 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7888 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7889 if test x"$ol_with_perl_module" = "xstatic" ; then
7890 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7892 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7898 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7899 echo "configure:7900: checking how to run the C preprocessor" >&5
7900 # On Suns, sometimes $CPP names a directory.
7901 if test -n "$CPP" && test -d "$CPP"; then
7904 if test -z "$CPP"; then
7905 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 # This must be in double quotes, not single quotes, because CPP may get
7909 # substituted into the Makefile and "${CC-cc}" will confuse make.
7911 # On the NeXT, cc -E runs the code through the compiler's parser,
7912 # not just through cpp.
7913 cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure"
7915 #include "confdefs.h"
7919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7920 { (eval echo configure:7921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7922 if test -z "$ac_err"; then
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7929 CPP="${CC-cc} -E -traditional-cpp"
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7937 { (eval echo configure:7938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7939 if test -z "$ac_err"; then
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7946 CPP="${CC-cc} -nologo -E"
7947 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure"
7949 #include "confdefs.h"
7953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7954 { (eval echo configure:7955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7956 if test -z "$ac_err"; then
7960 echo "configure: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7970 ac_cv_prog_CPP="$CPP"
7972 CPP="$ac_cv_prog_CPP"
7974 ac_cv_prog_CPP="$CPP"
7976 echo "$ac_t""$CPP" 1>&6
7979 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7980 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7982 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7983 echo "configure: warning: programs compiled here do run here..." 1>&2
7984 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7986 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7987 echo "configure: warning: programs compiled here do not run here..." 1>&2
7988 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7992 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7993 echo "configure:7994: checking for Cygwin environment" >&5
7994 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7997 cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8004 #define __CYGWIN__ __CYGWIN32__
8009 if { (eval echo configure:8010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8013 echo "configure: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8021 echo "$ac_t""$ac_cv_cygwin" 1>&6
8023 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8024 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8025 echo "configure:8026: checking for mingw32 environment" >&5
8026 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8027 echo $ac_n "(cached) $ac_c" 1>&6
8029 cat > conftest.$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8037 if { (eval echo configure:8038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8049 echo "$ac_t""$ac_cv_mingw32" 1>&6
8051 test "$ac_cv_mingw32" = yes && MINGW32=yes
8055 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8056 echo "configure:8057: checking for executable suffix" >&5
8057 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8060 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8064 echo 'int main () { return 0; }' > conftest.$ac_ext
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8067 for file in conftest.*; do
8069 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8070 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8074 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8077 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8082 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8083 echo "$ac_t""${ac_cv_exeext}" 1>&6
8086 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8087 echo "configure:8088: checking for object suffix" >&5
8088 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8092 echo 'int i = 1;' > conftest.$ac_ext
8093 if { (eval echo configure:8094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8094 for ac_file in conftest.*; do
8097 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8101 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8106 echo "$ac_t""$ac_cv_objext" 1>&6
8107 OBJEXT=$ac_cv_objext
8108 ac_objext=$ac_cv_objext
8111 cat >> confdefs.h <<EOF
8112 #define EXEEXT "${EXEEXT}"
8116 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8117 echo "configure:8118: checking for be_app in -lbe" >&5
8118 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8122 ac_save_LIBS="$LIBS"
8123 LIBS="-lbe -lroot -lnet $LIBS"
8124 cat > conftest.$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8127 /* Override any gcc2 internal prototype to avoid an error. */
8128 /* We use char because int might match the return type of a gcc2
8129 builtin and then its argument prototype would still apply. */
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 eval "ac_cv_lib_$ac_lib_var=yes"
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 eval "ac_cv_lib_$ac_lib_var=no"
8146 LIBS="$ac_save_LIBS"
8149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8150 echo "$ac_t""yes" 1>&6
8151 LIBS="$LIBS -lbe -lroot -lnet"
8153 echo "$ac_t""no" 1>&6
8161 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8162 echo "configure:8163: checking for ${CC-cc} option to accept ANSI C" >&5
8163 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 am_cv_prog_cc_stdc=no
8168 # Don't try gcc -ansi; that turns off useful extensions and
8169 # breaks some systems' header files.
8170 # AIX -qlanglvl=ansi
8171 # Ultrix and OSF/1 -std1
8172 # HP-UX 10.20 and later -Ae
8173 # HP-UX older versions -Aa -D_HPUX_SOURCE
8174 # SVR4 -Xc -D__EXTENSIONS__
8175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8177 CC="$ac_save_CC $ac_arg"
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8183 #include <sys/types.h>
8184 #include <sys/stat.h>
8185 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8186 struct buf { int x; };
8187 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8188 static char *e (p, i)
8194 static char *f (char * (*g) (char **, int), char **p, ...)
8199 s = g (p, va_arg (v,int));
8203 int test (int i, double x);
8204 struct s1 {int (*f) (int a);};
8205 struct s2 {int (*f) (double a);};
8206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8216 if { (eval echo configure:8217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8218 am_cv_prog_cc_stdc="$ac_arg"; break
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8229 if test -z "$am_cv_prog_cc_stdc"; then
8230 echo "$ac_t""none needed" 1>&6
8232 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8234 case "x$am_cv_prog_cc_stdc" in
8236 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8239 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8240 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8243 # test for make depend flag
8246 if test -z "${MKDEP}"; then
8248 if test -z "${MKDEP_FLAGS}"; then
8249 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8250 echo "configure:8251: checking for ${OL_MKDEP} depend flag" >&5
8251 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8252 echo $ac_n "(cached) $ac_c" 1>&6
8256 for flag in "-M" "-xM"; do
8257 cat > conftest.c <<EOF
8260 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8261 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8263 if test ! -f conftest."${ac_object}" ; then
8265 OL_MKDEP_FLAGS="$flag"
8274 echo "$ac_t""$ol_cv_mkdep" 1>&6
8277 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8282 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8287 if test "${ol_cv_mkdep}" = no ; then
8288 # this will soon become an error
8289 echo "configure: warning: do not know how to generate dependencies" 1>&2
8292 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8293 echo "configure:8294: checking for afopen in -ls" >&5
8294 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8295 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8298 ac_save_LIBS="$LIBS"
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303 /* Override any gcc2 internal prototype to avoid an error. */
8304 /* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8314 eval "ac_cv_lib_$ac_lib_var=yes"
8316 echo "configure: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8319 eval "ac_cv_lib_$ac_lib_var=no"
8322 LIBS="$ac_save_LIBS"
8325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8326 echo "$ac_t""yes" 1>&6
8329 cat >> confdefs.h <<\EOF
8330 #define HAVE_AIX_SECURITY 1
8335 echo "$ac_t""no" 1>&6
8341 if test $ol_enable_modules != no ; then
8342 for ac_hdr in ltdl.h
8344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8346 echo "configure:8347: checking for $ac_hdr" >&5
8347 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8348 echo $ac_n "(cached) $ac_c" 1>&6
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8356 { (eval echo configure:8357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8358 if test -z "$ac_err"; then
8360 eval "ac_cv_header_$ac_safe=yes"
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8366 eval "ac_cv_header_$ac_safe=no"
8370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8371 echo "$ac_t""yes" 1>&6
8372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8373 cat >> confdefs.h <<EOF
8374 #define $ac_tr_hdr 1
8378 echo "$ac_t""no" 1>&6
8383 if test $ac_cv_header_ltdl_h = no ; then
8384 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8387 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8388 echo "configure:8389: checking for lt_dlinit in -lltdl" >&5
8389 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8393 ac_save_LIBS="$LIBS"
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8409 eval "ac_cv_lib_$ac_lib_var=yes"
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 eval "ac_cv_lib_$ac_lib_var=no"
8417 LIBS="$ac_save_LIBS"
8420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8424 cat >> confdefs.h <<\EOF
8425 #define HAVE_LIBLTDL 1
8430 echo "$ac_t""no" 1>&6
8434 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8435 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8439 ol_with_bdb_module=static
8440 ol_with_dnssrv_module=static
8441 ol_with_ldap_module=static
8442 ol_with_ldbm_module=static
8443 ol_with_meta_module=static
8444 ol_with_monitor_module=static
8445 ol_with_null_module=static
8446 ol_with_passwd_module=static
8447 ol_with_perl_module=static
8448 ol_with_shell_module=static
8449 ol_with_tcl_module=static
8450 ol_with_sql_module=static
8454 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8455 echo "configure:8456: checking for EBCDIC" >&5
8456 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8465 #include <__ASCII__/generate_error.h>
8469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8470 { (eval echo configure:8471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8472 if test -z "$ac_err"; then
8474 ol_cv_cpp_ebcdic=yes
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8485 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8486 if test $ol_cv_cpp_ebcdic = yes ; then
8487 cat >> confdefs.h <<\EOF
8488 #define HAVE_EBCDIC 1
8493 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8494 echo "configure:8495: checking for ANSI C header files" >&5
8495 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8507 { (eval echo configure:8508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8509 if test -z "$ac_err"; then
8511 ol_cv_header_stdc=yes
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 ol_cv_header_stdc=no
8521 if test $ol_cv_header_stdc = yes; then
8522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8529 egrep "memchr" >/dev/null 2>&1; then
8533 ol_cv_header_stdc=no
8539 if test $ol_cv_header_stdc = yes; then
8540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8547 egrep "free" >/dev/null 2>&1; then
8551 ol_cv_header_stdc=no
8557 if test $ol_cv_header_stdc = yes; then
8558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8559 if test "$cross_compiling" = yes; then
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8570 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8571 || ('j' <= (c) && (c) <= 'r') \
8572 || ('s' <= (c) && (c) <= 'z'))
8573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8576 int main () { int i; for (i = 0; i < 256; i++)
8577 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 ol_cv_header_stdc=no
8596 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8597 if test $ol_cv_header_stdc = yes; then
8598 cat >> confdefs.h <<\EOF
8599 #define STDC_HEADERS 1
8603 ac_cv_header_stdc=disable
8606 if test $ol_cv_header_stdc != yes; then
8607 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8614 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8615 echo "configure:8616: checking for $ac_hdr that defines DIR" >&5
8616 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8617 echo $ac_n "(cached) $ac_c" 1>&6
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 #include <sys/types.h>
8628 if { (eval echo configure:8629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8630 eval "ac_cv_header_dirent_$ac_safe=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 eval "ac_cv_header_dirent_$ac_safe=no"
8639 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8640 echo "$ac_t""yes" 1>&6
8641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8642 cat >> confdefs.h <<EOF
8643 #define $ac_tr_hdr 1
8645 ac_header_dirent=$ac_hdr; break
8647 echo "$ac_t""no" 1>&6
8650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8651 if test $ac_header_dirent = dirent.h; then
8652 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8653 echo "configure:8654: checking for opendir in -ldir" >&5
8654 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8655 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8658 ac_save_LIBS="$LIBS"
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8663 /* Override any gcc2 internal prototype to avoid an error. */
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8672 if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8674 eval "ac_cv_lib_$ac_lib_var=yes"
8676 echo "configure: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8679 eval "ac_cv_lib_$ac_lib_var=no"
8682 LIBS="$ac_save_LIBS"
8685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8689 echo "$ac_t""no" 1>&6
8693 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8694 echo "configure:8695: checking for opendir in -lx" >&5
8695 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8699 ac_save_LIBS="$LIBS"
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 /* Override any gcc2 internal prototype to avoid an error. */
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715 eval "ac_cv_lib_$ac_lib_var=yes"
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 eval "ac_cv_lib_$ac_lib_var=no"
8723 LIBS="$ac_save_LIBS"
8726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8727 echo "$ac_t""yes" 1>&6
8730 echo "$ac_t""no" 1>&6
8735 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8736 echo "configure:8737: checking for sys/wait.h that is POSIX.1 compatible" >&5
8737 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 #include <sys/types.h>
8744 #include <sys/wait.h>
8746 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8749 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8754 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8757 if { (eval echo configure:8758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8759 ac_cv_header_sys_wait_h=yes
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8764 ac_cv_header_sys_wait_h=no
8769 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8770 if test $ac_cv_header_sys_wait_h = yes; then
8771 cat >> confdefs.h <<\EOF
8772 #define HAVE_SYS_WAIT_H 1
8777 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8778 echo "configure:8779: checking POSIX termios" >&5
8779 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8782 cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure"
8784 #include "confdefs.h"
8785 #include <sys/types.h>
8787 #include <termios.h>
8789 /* SunOS 4.0.3 has termios.h but not the library calls. */
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795 am_cv_sys_posix_termios=yes
8797 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8800 am_cv_sys_posix_termios=no
8805 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8808 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8809 echo "configure:8810: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8810 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8813 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8815 gwinsz_in_termios_h=no
8816 if test $am_cv_sys_posix_termios = yes; then
8817 cat > conftest.$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8820 #include <sys/types.h>
8821 # include <termios.h>
8827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828 egrep "yes" >/dev/null 2>&1; then
8830 gwinsz_in_termios_h=yes
8836 if test $gwinsz_in_termios_h = no; then
8837 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8840 #include <sys/types.h>
8841 # include <sys/ioctl.h>
8847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8848 egrep "yes" >/dev/null 2>&1; then
8850 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8858 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8859 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8860 cat >> confdefs.h <<\EOF
8861 #define GWINSZ_IN_SYS_IOCTL 1
8866 if test $am_cv_sys_posix_termios = yes ; then
8867 cat >> confdefs.h <<\EOF
8868 #define HAVE_POSIX_TERMIOS 1
8920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8922 echo "configure:8923: checking for $ac_hdr" >&5
8923 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8932 { (eval echo configure:8933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8934 if test -z "$ac_err"; then
8936 eval "ac_cv_header_$ac_safe=yes"
8939 echo "configure: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8942 eval "ac_cv_header_$ac_safe=no"
8946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8947 echo "$ac_t""yes" 1>&6
8948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8949 cat >> confdefs.h <<EOF
8950 #define $ac_tr_hdr 1
8954 echo "$ac_t""no" 1>&6
8961 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8962 echo "configure:8963: checking for dlopen" >&5
8963 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8966 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 /* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char dlopen(); below. */
8972 /* Override any gcc2 internal prototype to avoid an error. */
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8980 /* The GNU C library defines this for functions which it implements
8981 to always fail with ENOSYS. Some functions are actually named
8982 something starting with __ and the normal name is an alias. */
8983 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8993 eval "ac_cv_func_dlopen=yes"
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8998 eval "ac_cv_func_dlopen=no"
9003 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
9007 echo "$ac_t""no" 1>&6
9008 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9009 echo "configure:9010: checking for dlopen in -ldl" >&5
9010 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9014 ac_save_LIBS="$LIBS"
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 /* Override any gcc2 internal prototype to avoid an error. */
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9030 eval "ac_cv_lib_$ac_lib_var=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_lib_$ac_lib_var=no"
9038 LIBS="$ac_save_LIBS"
9041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9042 echo "$ac_t""yes" 1>&6
9043 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9045 cat >> confdefs.h <<EOF
9046 #define $ac_tr_lib 1
9052 echo "$ac_t""no" 1>&6
9058 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9059 echo "configure:9060: checking for sigset in -lV3" >&5
9060 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9061 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9064 ac_save_LIBS="$LIBS"
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* Override any gcc2 internal prototype to avoid an error. */
9070 /* We use char because int might match the return type of a gcc2
9071 builtin and then its argument prototype would still apply. */
9078 if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9080 eval "ac_cv_lib_$ac_lib_var=yes"
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 eval "ac_cv_lib_$ac_lib_var=no"
9088 LIBS="$ac_save_LIBS"
9091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9093 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9095 cat >> confdefs.h <<EOF
9096 #define $ac_tr_lib 1
9102 echo "$ac_t""no" 1>&6
9106 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9107 echo "configure:9108: checking for winsock" >&5
9109 for curlib in ws2_32 wsock32; do
9110 LIBS="$LIBS -l$curlib"
9111 cat > conftest.$ac_ext <<EOF
9112 #line 9113 "configure"
9113 #include "confdefs.h"
9117 char closesocket@4();
9118 char gethostname@8();
9129 if { (eval echo configure:9130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9140 if test $have_winsock = yes; then
9141 cat >> confdefs.h <<\EOF
9142 #define HAVE_WINSOCK 1
9145 ac_cv_func_socket=yes
9146 ac_cv_func_select=yes
9147 ac_cv_func_closesocket=yes
9148 ac_cv_func_gethostname=yes
9149 if test $curlib = ws2_32; then
9150 have_winsock=winsock2
9151 cat >> confdefs.h <<\EOF
9152 #define HAVE_WINSOCK2 1
9160 echo "$ac_t""$have_winsock" 1>&6
9163 echo $ac_n "checking for socket""... $ac_c" 1>&6
9164 echo "configure:9165: checking for socket" >&5
9165 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 /* System header to define __stub macros and hopefully few prototypes,
9172 which can conflict with char socket(); below. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9182 /* The GNU C library defines this for functions which it implements
9183 to always fail with ENOSYS. Some functions are actually named
9184 something starting with __ and the normal name is an alias. */
9185 #if defined (__stub_socket) || defined (__stub___socket)
9193 if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9195 eval "ac_cv_func_socket=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_func_socket=no"
9205 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9206 echo "$ac_t""yes" 1>&6
9209 echo "$ac_t""no" 1>&6
9211 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9212 echo "configure:9213: checking for main in -lsocket" >&5
9213 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9217 ac_save_LIBS="$LIBS"
9218 LIBS="-lsocket $LIBS"
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9227 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9229 eval "ac_cv_lib_$ac_lib_var=yes"
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9234 eval "ac_cv_lib_$ac_lib_var=no"
9237 LIBS="$ac_save_LIBS"
9240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9241 echo "$ac_t""yes" 1>&6
9242 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9244 cat >> confdefs.h <<EOF
9245 #define $ac_tr_lib 1
9248 LIBS="-lsocket $LIBS"
9251 echo "$ac_t""no" 1>&6
9254 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9255 echo "configure:9256: checking for main in -lnet" >&5
9256 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9257 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9260 ac_save_LIBS="$LIBS"
9262 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9270 if { (eval echo configure:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9272 eval "ac_cv_lib_$ac_lib_var=yes"
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9277 eval "ac_cv_lib_$ac_lib_var=no"
9280 LIBS="$ac_save_LIBS"
9283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9284 echo "$ac_t""yes" 1>&6
9285 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9287 cat >> confdefs.h <<EOF
9288 #define $ac_tr_lib 1
9294 echo "$ac_t""no" 1>&6
9297 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9298 echo "configure:9299: checking for main in -lnsl_s" >&5
9299 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9300 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9303 ac_save_LIBS="$LIBS"
9304 LIBS="-lnsl_s $LIBS"
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9315 eval "ac_cv_lib_$ac_lib_var=yes"
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9320 eval "ac_cv_lib_$ac_lib_var=no"
9323 LIBS="$ac_save_LIBS"
9326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9327 echo "$ac_t""yes" 1>&6
9328 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9330 cat >> confdefs.h <<EOF
9331 #define $ac_tr_lib 1
9334 LIBS="-lnsl_s $LIBS"
9337 echo "$ac_t""no" 1>&6
9340 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9341 echo "configure:9342: checking for main in -lnsl" >&5
9342 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9343 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9346 ac_save_LIBS="$LIBS"
9348 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure"
9350 #include "confdefs.h"
9356 if { (eval echo configure:9357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9358 eval "ac_cv_lib_$ac_lib_var=yes"
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9363 eval "ac_cv_lib_$ac_lib_var=no"
9366 LIBS="$ac_save_LIBS"
9369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9370 echo "$ac_t""yes" 1>&6
9371 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9372 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9373 cat >> confdefs.h <<EOF
9374 #define $ac_tr_lib 1
9380 echo "$ac_t""no" 1>&6
9383 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9384 echo "configure:9385: checking for socket in -linet" >&5
9385 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9389 ac_save_LIBS="$LIBS"
9391 cat > conftest.$ac_ext <<EOF
9392 #line 9393 "configure"
9393 #include "confdefs.h"
9394 /* Override any gcc2 internal prototype to avoid an error. */
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9405 eval "ac_cv_lib_$ac_lib_var=yes"
9407 echo "configure: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9410 eval "ac_cv_lib_$ac_lib_var=no"
9413 LIBS="$ac_save_LIBS"
9416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9417 echo "$ac_t""yes" 1>&6
9418 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9420 cat >> confdefs.h <<EOF
9421 #define $ac_tr_lib 1
9427 echo "$ac_t""no" 1>&6
9430 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9431 echo "configure:9432: checking for main in -lgen" >&5
9432 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9436 ac_save_LIBS="$LIBS"
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9446 if { (eval echo configure:9447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448 eval "ac_cv_lib_$ac_lib_var=yes"
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9453 eval "ac_cv_lib_$ac_lib_var=no"
9456 LIBS="$ac_save_LIBS"
9459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9460 echo "$ac_t""yes" 1>&6
9461 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9463 cat >> confdefs.h <<EOF
9464 #define $ac_tr_lib 1
9470 echo "$ac_t""no" 1>&6
9477 echo $ac_n "checking for select""... $ac_c" 1>&6
9478 echo "configure:9479: checking for select" >&5
9479 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9482 cat > conftest.$ac_ext <<EOF
9483 #line 9484 "configure"
9484 #include "confdefs.h"
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char select(); below. */
9488 /* Override any gcc2 internal prototype to avoid an error. */
9489 /* We use char because int might match the return type of a gcc2
9490 builtin and then its argument prototype would still apply. */
9496 /* The GNU C library defines this for functions which it implements
9497 to always fail with ENOSYS. Some functions are actually named
9498 something starting with __ and the normal name is an alias. */
9499 #if defined (__stub_select) || defined (__stub___select)
9507 if { (eval echo configure:9508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9509 eval "ac_cv_func_select=yes"
9511 echo "configure: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9514 eval "ac_cv_func_select=no"
9519 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9520 echo "$ac_t""yes" 1>&6
9523 echo "$ac_t""no" 1>&6
9524 { echo "configure: error: select() required." 1>&2; exit 1; }
9528 if test "${ac_cv_header_winsock_h}" != yes; then
9529 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9530 echo "configure:9531: checking types of arguments for select()" >&5
9531 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9532 echo $ac_n "(cached) $ac_c" 1>&6
9534 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9537 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9540 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9541 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9542 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 #ifdef HAVE_SYS_TYPES_H
9547 #include <sys/types.h>
9549 #ifdef HAVE_SYS_TIME_H
9550 #include <sys/time.h>
9552 #ifdef HAVE_SYS_SELECT_H
9553 #include <sys/select.h>
9555 #ifdef HAVE_SYS_SOCKET_H
9556 #include <sys/socket.h>
9558 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);
9563 if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9565 ac_not_found=no ; break 3
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9582 if test "$ac_not_found" = yes; then
9583 ac_cv_func_select_arg1=int
9584 ac_cv_func_select_arg234='int *'
9585 ac_cv_func_select_arg5='struct timeval *'
9587 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9588 cat >> confdefs.h <<EOF
9589 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9592 cat >> confdefs.h <<EOF
9593 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9596 cat >> confdefs.h <<EOF
9597 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9604 for ac_hdr in regex.h
9606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9608 echo "configure:9609: checking for $ac_hdr" >&5
9609 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9612 cat > conftest.$ac_ext <<EOF
9613 #line 9614 "configure"
9614 #include "confdefs.h"
9617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9618 { (eval echo configure:9619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9620 if test -z "$ac_err"; then
9622 eval "ac_cv_header_$ac_safe=yes"
9625 echo "configure: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9628 eval "ac_cv_header_$ac_safe=no"
9632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9633 echo "$ac_t""yes" 1>&6
9634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9635 cat >> confdefs.h <<EOF
9636 #define $ac_tr_hdr 1
9640 echo "$ac_t""no" 1>&6
9644 if test "$ac_cv_header_regex_h" != yes ; then
9645 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9648 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9649 echo "configure:9650: checking for library containing regfree" >&5
9650 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9653 ac_func_search_save_LIBS="$LIBS"
9654 ac_cv_search_regfree="no"
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 /* Override any gcc2 internal prototype to avoid an error. */
9659 /* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */
9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9669 ac_cv_search_regfree="none required"
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9675 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9680 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9691 ac_cv_search_regfree="-l$ac_lib"
9694 echo "configure: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9699 LIBS="$ac_func_search_save_LIBS"
9702 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9703 if test "$ac_cv_search_regfree" != "no"; then
9704 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9707 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9711 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9712 echo "configure:9713: checking for compatible POSIX regex" >&5
9713 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9717 if test "$cross_compiling" = yes; then
9718 ol_cv_c_posix_regex=cross
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9724 #include <sys/types.h>
9726 static char *pattern, *string;
9734 if(regcomp(&re, pattern, 0)) {
9738 string = "ALL MATCH";
9740 rc = regexec(&re, string, 0, (void*)0, 0);
9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9749 ol_cv_c_posix_regex=yes
9751 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9754 ol_cv_c_posix_regex=no
9761 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9763 if test "$ol_cv_c_posix_regex" = no ; then
9764 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9769 for ac_hdr in sys/uuid.h
9771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9773 echo "configure:9774: checking for $ac_hdr" >&5
9774 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9777 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9783 { (eval echo configure:9784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9785 if test -z "$ac_err"; then
9787 eval "ac_cv_header_$ac_safe=yes"
9790 echo "configure: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9793 eval "ac_cv_header_$ac_safe=no"
9797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9798 echo "$ac_t""yes" 1>&6
9799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9800 cat >> confdefs.h <<EOF
9801 #define $ac_tr_hdr 1
9805 echo "$ac_t""no" 1>&6
9809 if test $ac_cv_header_sys_uuid_h = yes ; then
9812 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9813 echo "configure:9814: checking for library containing uuid_to_str" >&5
9814 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9815 echo $ac_n "(cached) $ac_c" 1>&6
9817 ac_func_search_save_LIBS="$LIBS"
9818 ac_cv_search_uuid_to_str="no"
9819 cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 /* We use char because int might match the return type of a gcc2
9824 builtin and then its argument prototype would still apply. */
9831 if { (eval echo configure:9832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9833 ac_cv_search_uuid_to_str="none required"
9835 echo "configure: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9839 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 /* Override any gcc2 internal prototype to avoid an error. */
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 ac_cv_search_uuid_to_str="-l$ac_lib"
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9863 LIBS="$ac_func_search_save_LIBS"
9866 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9867 if test "$ac_cv_search_uuid_to_str" != "no"; then
9868 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9875 if test have_uuid = yes ; then
9876 cat >> confdefs.h <<\EOF
9877 #define HAVE_UUID_TO_STR 1
9881 test "$ac_cv_search_uuid_to_str" = "none required" || \
9882 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9886 if test $have_uuid = no ; then
9887 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9888 echo "configure:9889: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9890 LIBS="$LIBS -lrpcrt4"
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9895 char UuidCreate@4();
9896 char UuidToStringA@8();
9905 if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9915 if test $need_rpcrt = yes; then
9916 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9919 echo "$ac_t""$need_rpcrt" 1>&6
9923 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9924 echo "configure:9925: checking for res_query" >&5
9925 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9926 echo $ac_n "(cached) $ac_c" 1>&6
9928 cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931 /* System header to define __stub macros and hopefully few prototypes,
9932 which can conflict with char res_query(); below. */
9934 /* Override any gcc2 internal prototype to avoid an error. */
9935 /* We use char because int might match the return type of a gcc2
9936 builtin and then its argument prototype would still apply. */
9942 /* The GNU C library defines this for functions which it implements
9943 to always fail with ENOSYS. Some functions are actually named
9944 something starting with __ and the normal name is an alias. */
9945 #if defined (__stub_res_query) || defined (__stub___res_query)
9953 if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9955 eval "ac_cv_func_res_query=yes"
9957 echo "configure: failed program was:" >&5
9958 cat conftest.$ac_ext >&5
9960 eval "ac_cv_func_res_query=no"
9965 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9966 echo "$ac_t""yes" 1>&6
9969 echo "$ac_t""no" 1>&6
9972 if test $ac_cv_func_res_query = no ; then
9973 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9974 echo "configure:9975: checking for __res_query" >&5
9975 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9978 cat > conftest.$ac_ext <<EOF
9979 #line 9980 "configure"
9980 #include "confdefs.h"
9981 /* System header to define __stub macros and hopefully few prototypes,
9982 which can conflict with char __res_query(); below. */
9984 /* Override any gcc2 internal prototype to avoid an error. */
9985 /* We use char because int might match the return type of a gcc2
9986 builtin and then its argument prototype would still apply. */
9992 /* The GNU C library defines this for functions which it implements
9993 to always fail with ENOSYS. Some functions are actually named
9994 something starting with __ and the normal name is an alias. */
9995 #if defined (__stub___res_query) || defined (__stub_____res_query)
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10005 eval "ac_cv_func___res_query=yes"
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 eval "ac_cv_func___res_query=no"
10015 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10016 echo "$ac_t""yes" 1>&6
10019 echo "$ac_t""no" 1>&6
10022 ac_cv_func_res_query=$ac_cv_func___res_query
10025 if test $ac_cv_func_res_query = no ; then
10026 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10027 echo "configure:10028: checking for res_query in -lbind" >&5
10028 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10032 ac_save_LIBS="$LIBS"
10033 LIBS="-lbind $LIBS"
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10048 eval "ac_cv_lib_$ac_lib_var=yes"
10050 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5
10053 eval "ac_cv_lib_$ac_lib_var=no"
10056 LIBS="$ac_save_LIBS"
10059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10060 echo "$ac_t""yes" 1>&6
10061 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10063 cat >> confdefs.h <<EOF
10064 #define $ac_tr_lib 1
10067 LIBS="-lbind $LIBS"
10070 echo "$ac_t""no" 1>&6
10073 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10076 if test $ac_cv_func_res_query = no ; then
10077 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10078 echo "configure:10079: checking for __res_query in -lbind" >&5
10079 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10080 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10083 ac_save_LIBS="$LIBS"
10084 LIBS="-lbind $LIBS"
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 /* Override any gcc2 internal prototype to avoid an error. */
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10091 char __res_query();
10097 if { (eval echo configure:10098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10099 eval "ac_cv_lib_$ac_lib_var=yes"
10101 echo "configure: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10104 eval "ac_cv_lib_$ac_lib_var=no"
10107 LIBS="$ac_save_LIBS"
10110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10111 echo "$ac_t""yes" 1>&6
10112 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10114 cat >> confdefs.h <<EOF
10115 #define $ac_tr_lib 1
10118 LIBS="-lbind $LIBS"
10121 echo "$ac_t""no" 1>&6
10124 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10127 if test $ac_cv_func_res_query = no ; then
10128 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10129 echo "configure:10130: checking for res_query in -lresolv" >&5
10130 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10131 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10134 ac_save_LIBS="$LIBS"
10135 LIBS="-lresolv $LIBS"
10136 cat > conftest.$ac_ext <<EOF
10137 #line 10138 "configure"
10138 #include "confdefs.h"
10139 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10148 if { (eval echo configure:10149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10150 eval "ac_cv_lib_$ac_lib_var=yes"
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10155 eval "ac_cv_lib_$ac_lib_var=no"
10158 LIBS="$ac_save_LIBS"
10161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10162 echo "$ac_t""yes" 1>&6
10163 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10165 cat >> confdefs.h <<EOF
10166 #define $ac_tr_lib 1
10169 LIBS="-lresolv $LIBS"
10172 echo "$ac_t""no" 1>&6
10175 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10178 if test $ac_cv_func_res_query = no ; then
10179 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10180 echo "configure:10181: checking for __res_query in -lresolv" >&5
10181 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10185 ac_save_LIBS="$LIBS"
10186 LIBS="-lresolv $LIBS"
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* Override any gcc2 internal prototype to avoid an error. */
10191 /* We use char because int might match the return type of a gcc2
10192 builtin and then its argument prototype would still apply. */
10193 char __res_query();
10199 if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 eval "ac_cv_lib_$ac_lib_var=yes"
10203 echo "configure: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10206 eval "ac_cv_lib_$ac_lib_var=no"
10209 LIBS="$ac_save_LIBS"
10212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10213 echo "$ac_t""yes" 1>&6
10214 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10216 cat >> confdefs.h <<EOF
10217 #define $ac_tr_lib 1
10220 LIBS="-lresolv $LIBS"
10223 echo "$ac_t""no" 1>&6
10226 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10229 if test "$ac_cv_func_res_query" = yes ; then
10230 cat >> confdefs.h <<\EOF
10231 #define HAVE_RES_QUERY 1
10235 if test $ol_enable_dnssrv != no ; then
10240 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10241 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10244 for ac_func in getaddrinfo gai_strerror inet_ntop
10246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10247 echo "configure:10248: checking for $ac_func" >&5
10248 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10249 echo $ac_n "(cached) $ac_c" 1>&6
10251 cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 /* System header to define __stub macros and hopefully few prototypes,
10255 which can conflict with char $ac_func(); below. */
10256 #include <assert.h>
10257 /* Override any gcc2 internal prototype to avoid an error. */
10258 /* We use char because int might match the return type of a gcc2
10259 builtin and then its argument prototype would still apply. */
10265 /* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10276 if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10278 eval "ac_cv_func_$ac_func=yes"
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10283 eval "ac_cv_func_$ac_func=no"
10288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10291 cat >> confdefs.h <<EOF
10292 #define $ac_tr_func 1
10296 echo "$ac_t""no" 1>&6
10302 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10303 if test $ol_enable_ipv6 = yes ; then
10304 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10306 elif test $ol_enable_ipv6 != no ; then
10307 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10308 echo "configure:10309: checking INET6_ADDRSTRLEN" >&5
10309 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10313 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10317 # include <netinet/in.h>
10318 # ifdef INET6_ADDRSTRLEN
10319 __has_inet6_addrstrlen__;
10323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10324 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10326 ol_cv_inet6_addrstrlen=yes
10329 ol_cv_inet6_addrstrlen=no
10335 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10337 if test $ol_cv_inet6_addrstrlen = yes ; then
10339 elif test $ol_enable_ipv6 = yes ; then
10340 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10344 if test $ol_enable_local != no ; then
10345 for ac_hdr in sys/un.h
10347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10349 echo "configure:10350: checking for $ac_hdr" >&5
10350 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10359 { (eval echo configure:10360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10361 if test -z "$ac_err"; then
10363 eval "ac_cv_header_$ac_safe=yes"
10366 echo "configure: failed program was:" >&5
10367 cat conftest.$ac_ext >&5
10369 eval "ac_cv_header_$ac_safe=no"
10373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10374 echo "$ac_t""yes" 1>&6
10375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10376 cat >> confdefs.h <<EOF
10377 #define $ac_tr_hdr 1
10381 echo "$ac_t""no" 1>&6
10386 if test $ol_enable_local = auto ; then
10387 ol_enable_local=$ac_cv_header_sys_un_h
10388 elif test $ac_cv_header_sys_un_h = no ; then
10389 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10398 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10399 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10400 -o $ol_with_kerberos = k425 ; then
10402 for ac_hdr in krb5.h
10404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10406 echo "configure:10407: checking for $ac_hdr" >&5
10407 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10408 echo $ac_n "(cached) $ac_c" 1>&6
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10416 { (eval echo configure:10417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10418 if test -z "$ac_err"; then
10420 eval "ac_cv_header_$ac_safe=yes"
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10426 eval "ac_cv_header_$ac_safe=no"
10430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
10432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10433 cat >> confdefs.h <<EOF
10434 #define $ac_tr_hdr 1
10438 echo "$ac_t""no" 1>&6
10443 if test $ac_cv_header_krb5_h = yes ; then
10444 for ac_hdr in heim_err.h
10446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10448 echo "configure:10449: checking for $ac_hdr" >&5
10449 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10450 echo $ac_n "(cached) $ac_c" 1>&6
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10458 { (eval echo configure:10459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10460 if test -z "$ac_err"; then
10462 eval "ac_cv_header_$ac_safe=yes"
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10468 eval "ac_cv_header_$ac_safe=no"
10472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10473 echo "$ac_t""yes" 1>&6
10474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10475 cat >> confdefs.h <<EOF
10476 #define $ac_tr_hdr 1
10480 echo "$ac_t""no" 1>&6
10484 if test $ac_cv_header_heim_err_h = yes ; then
10490 if test $krb5_impl = mit; then
10491 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10492 echo "configure:10493: checking for main in -lk5crypto" >&5
10493 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10494 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10497 ac_save_LIBS="$LIBS"
10498 LIBS="-lk5crypto $LIBS"
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10509 eval "ac_cv_lib_$ac_lib_var=yes"
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 eval "ac_cv_lib_$ac_lib_var=no"
10517 LIBS="$ac_save_LIBS"
10520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10521 echo "$ac_t""yes" 1>&6
10522 krb5crypto=k5crypto
10524 echo "$ac_t""no" 1>&6
10529 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10530 echo "configure:10531: checking for main in -lkrb5" >&5
10531 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10535 ac_save_LIBS="$LIBS"
10536 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10537 cat > conftest.$ac_ext <<EOF
10538 #line 10539 "configure"
10539 #include "confdefs.h"
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10547 eval "ac_cv_lib_$ac_lib_var=yes"
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10552 eval "ac_cv_lib_$ac_lib_var=no"
10555 LIBS="$ac_save_LIBS"
10558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10559 echo "$ac_t""yes" 1>&6
10561 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10563 echo "$ac_t""no" 1>&6
10568 elif test $krb5_impl = heimdal; then
10569 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10570 echo "configure:10571: checking for main in -ldes" >&5
10571 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10572 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10575 ac_save_LIBS="$LIBS"
10577 cat > conftest.$ac_ext <<EOF
10578 #line 10579 "configure"
10579 #include "confdefs.h"
10585 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10587 eval "ac_cv_lib_$ac_lib_var=yes"
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10592 eval "ac_cv_lib_$ac_lib_var=no"
10595 LIBS="$ac_save_LIBS"
10598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10599 echo "$ac_t""yes" 1>&6
10602 echo "$ac_t""no" 1>&6
10607 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10608 echo "configure:10609: checking for main in -lkrb5" >&5
10609 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10613 ac_save_LIBS="$LIBS"
10614 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10615 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure"
10617 #include "confdefs.h"
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10625 eval "ac_cv_lib_$ac_lib_var=yes"
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10630 eval "ac_cv_lib_$ac_lib_var=no"
10633 LIBS="$ac_save_LIBS"
10636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10637 echo "$ac_t""yes" 1>&6
10639 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10641 echo "$ac_t""no" 1>&6
10646 cat >> confdefs.h <<\EOF
10647 #define HAVE_HEIMDAL_KERBEROS 1
10653 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10656 if test $have_krb5 = yes ; then
10659 cat >> confdefs.h <<\EOF
10660 #define HAVE_KRB5 1
10664 if test $ol_enable_kpasswd != no ; then
10665 ol_link_kpasswd=yes;
10668 if test $ol_with_kerberos = k5only ; then
10669 ol_with_kerberos=found
10672 elif test $ol_with_kerberos != auto ; then
10673 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10679 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10680 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10682 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10686 echo "configure:10687: checking for $ac_hdr" >&5
10687 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10696 { (eval echo configure:10697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10698 if test -z "$ac_err"; then
10700 eval "ac_cv_header_$ac_safe=yes"
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10706 eval "ac_cv_header_$ac_safe=no"
10710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10711 echo "$ac_t""yes" 1>&6
10712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10713 cat >> confdefs.h <<EOF
10714 #define $ac_tr_hdr 1
10718 echo "$ac_t""no" 1>&6
10723 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10724 if test $krb5_impl = mit; then
10725 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10726 echo "configure:10727: checking for main in -lkrb4" >&5
10727 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10729 echo $ac_n "(cached) $ac_c" 1>&6
10731 ac_save_LIBS="$LIBS"
10732 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10733 cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10743 eval "ac_cv_lib_$ac_lib_var=yes"
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10748 eval "ac_cv_lib_$ac_lib_var=no"
10751 LIBS="$ac_save_LIBS"
10754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10755 echo "$ac_t""yes" 1>&6
10757 KRB4_LIBS="-lkrb4 -ldes425"
10759 echo "$ac_t""no" 1>&6
10764 elif test $krb5_impl = heimdal; then
10765 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10766 echo "configure:10767: checking for main in -lkrb4" >&5
10767 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10768 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10769 echo $ac_n "(cached) $ac_c" 1>&6
10771 ac_save_LIBS="$LIBS"
10772 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10773 cat > conftest.$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10783 eval "ac_cv_lib_$ac_lib_var=yes"
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10788 eval "ac_cv_lib_$ac_lib_var=no"
10791 LIBS="$ac_save_LIBS"
10794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10795 echo "$ac_t""yes" 1>&6
10799 echo "$ac_t""no" 1>&6
10806 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10809 if test $have_k425 = yes ; then
10810 ol_with_kerberos=found
10813 cat >> confdefs.h <<\EOF
10814 #define HAVE_KRB425 1
10817 cat >> confdefs.h <<\EOF
10818 #define HAVE_KRB4 1
10822 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10823 echo "configure:10824: checking for des_debug in Kerberos libraries" >&5
10824 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10829 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10830 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure"
10832 #include "confdefs.h"
10834 #include <kerberosIV/krb.h>
10835 #include <kerberosIV/des.h>
10836 extern int des_debug;
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10846 ol_cv_var_des_debug=yes
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 ol_cv_var_des_debug=no
10858 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10860 if test $ol_cv_var_des_debug = yes ; then
10861 cat >> confdefs.h <<\EOF
10862 #define HAVE_DES_DEBUG 1
10872 if test $ol_link_krb5 = yes ; then
10873 ol_with_kerberos=found
10876 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10877 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10879 for ac_hdr in krb.h des.h krb-archaeology.h
10881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10883 echo "configure:10884: checking for $ac_hdr" >&5
10884 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10885 echo $ac_n "(cached) $ac_c" 1>&6
10887 cat > conftest.$ac_ext <<EOF
10888 #line 10889 "configure"
10889 #include "confdefs.h"
10892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10893 { (eval echo configure:10894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10895 if test -z "$ac_err"; then
10897 eval "ac_cv_header_$ac_safe=yes"
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10903 eval "ac_cv_header_$ac_safe=no"
10907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10908 echo "$ac_t""yes" 1>&6
10909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10910 cat >> confdefs.h <<EOF
10911 #define $ac_tr_hdr 1
10915 echo "$ac_t""no" 1>&6
10920 if test $ac_cv_header_krb_h = yes ; then
10921 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10922 echo "configure:10923: checking for main in -lkrb" >&5
10923 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10924 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10925 echo $ac_n "(cached) $ac_c" 1>&6
10927 ac_save_LIBS="$LIBS"
10928 LIBS="-lkrb -ldes $LIBS"
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10937 if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10939 eval "ac_cv_lib_$ac_lib_var=yes"
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10944 eval "ac_cv_lib_$ac_lib_var=no"
10947 LIBS="$ac_save_LIBS"
10950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10951 echo "$ac_t""yes" 1>&6
10954 echo "$ac_t""no" 1>&6
10959 if test $have_k4 = yes ; then
10960 ol_with_kerberos=found
10963 cat >> confdefs.h <<\EOF
10964 #define HAVE_KRB4 1
10968 KRB4_LIBS="-lkrb -ldes"
10970 if test $ac_cv_header_krb_archaeology_h = yes ; then
10971 cat >> confdefs.h <<\EOF
10972 #define HAVE_KTH_KERBEROS 1
10980 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10981 ol_link_kpasswd=yes
10984 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10987 elif test $ol_enable_kbind = yes ; then
10988 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10991 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10992 cat >> confdefs.h <<\EOF
10993 #define HAVE_KERBEROS 1
10997 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10998 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11002 if test $ol_with_tls != no ; then
11003 for ac_hdr in openssl/ssl.h ssl.h
11005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11007 echo "configure:11008: checking for $ac_hdr" >&5
11008 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11019 if test -z "$ac_err"; then
11021 eval "ac_cv_header_$ac_safe=yes"
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11027 eval "ac_cv_header_$ac_safe=no"
11031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11032 echo "$ac_t""yes" 1>&6
11033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11034 cat >> confdefs.h <<EOF
11035 #define $ac_tr_hdr 1
11039 echo "$ac_t""no" 1>&6
11044 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11045 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11046 echo "configure:11047: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11047 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11048 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11049 echo $ac_n "(cached) $ac_c" 1>&6
11051 ac_save_LIBS="$LIBS"
11052 LIBS="-lssl -lcrypto $LIBS"
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char SSLeay_add_ssl_algorithms();
11062 SSLeay_add_ssl_algorithms()
11065 if { (eval echo configure:11066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11067 eval "ac_cv_lib_$ac_lib_var=yes"
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11072 eval "ac_cv_lib_$ac_lib_var=no"
11075 LIBS="$ac_save_LIBS"
11078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11079 echo "$ac_t""yes" 1>&6
11083 echo "$ac_t""no" 1>&6
11088 if test $have_ssleay = no ; then
11089 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11090 echo "configure:11091: checking for SSL_library_init in -lssl" >&5
11091 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11092 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11093 echo $ac_n "(cached) $ac_c" 1>&6
11095 ac_save_LIBS="$LIBS"
11096 LIBS="-lssl -lcrypto $LIBS"
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 /* Override any gcc2 internal prototype to avoid an error. */
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11103 char SSL_library_init();
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11111 eval "ac_cv_lib_$ac_lib_var=yes"
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11116 eval "ac_cv_lib_$ac_lib_var=no"
11119 LIBS="$ac_save_LIBS"
11122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11123 echo "$ac_t""yes" 1>&6
11127 echo "$ac_t""no" 1>&6
11133 if test $have_ssleay = no ; then
11134 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11135 echo "configure:11136: checking for ssl3_accept in -lssl" >&5
11136 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11138 echo $ac_n "(cached) $ac_c" 1>&6
11140 ac_save_LIBS="$LIBS"
11141 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 /* Override any gcc2 internal prototype to avoid an error. */
11146 /* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11148 char ssl3_accept();
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11156 eval "ac_cv_lib_$ac_lib_var=yes"
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11161 eval "ac_cv_lib_$ac_lib_var=no"
11164 LIBS="$ac_save_LIBS"
11167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11168 echo "$ac_t""yes" 1>&6
11172 echo "$ac_t""no" 1>&6
11178 if test $have_ssleay = yes ; then
11182 cat >> confdefs.h <<\EOF
11183 #define HAVE_SSLEAY 1
11187 if test $need_rsaref = yes; then
11188 cat >> confdefs.h <<\EOF
11189 #define HAVE_RSAREF 1
11193 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11195 TLS_LIBS="-lssl -lcrypto"
11201 echo "configure: warning: TLS data protection not supported!" 1>&2
11204 if test $ol_link_tls = yes ; then
11205 cat >> confdefs.h <<\EOF
11210 elif test $ol_with_tls = auto ; then
11211 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11212 echo "configure: warning: TLS data protection not supported!" 1>&2
11214 elif test $ol_with_tls != no ; then
11215 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11218 if test $ol_enable_lmpasswd != no; then
11219 if test $ol_link_tls != yes ; then
11220 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11223 cat >> confdefs.h <<\EOF
11224 #define SLAPD_LMHASH 1
11231 gethostbyname_r gethostbyaddr_r \
11234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11235 echo "configure:11236: checking for $ac_func" >&5
11236 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11237 echo $ac_n "(cached) $ac_c" 1>&6
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11242 /* System header to define __stub macros and hopefully few prototypes,
11243 which can conflict with char $ac_func(); below. */
11244 #include <assert.h>
11245 /* Override any gcc2 internal prototype to avoid an error. */
11246 /* We use char because int might match the return type of a gcc2
11247 builtin and then its argument prototype would still apply. */
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11266 eval "ac_cv_func_$ac_func=yes"
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 eval "ac_cv_func_$ac_func=no"
11276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11277 echo "$ac_t""yes" 1>&6
11278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11279 cat >> confdefs.h <<EOF
11280 #define $ac_tr_func 1
11284 echo "$ac_t""no" 1>&6
11289 if test "$ac_cv_func_ctime_r" = no ; then
11290 ol_cv_func_ctime_r_nargs=0
11292 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11293 echo "configure:11294: checking number of arguments of ctime_r" >&5
11294 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11302 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11305 if { (eval echo configure:11306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11307 ol_cv_func_ctime_r_nargs3=yes
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11312 ol_cv_func_ctime_r_nargs3=no
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11321 time_t ti; char *buffer; ctime_r(&ti,buffer);
11324 if { (eval echo configure:11325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11326 ol_cv_func_ctime_r_nargs2=yes
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11331 ol_cv_func_ctime_r_nargs2=no
11335 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11336 $ol_cv_func_ctime_r_nargs2 = no ; then
11338 ol_cv_func_ctime_r_nargs=3
11340 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11341 $ol_cv_func_ctime_r_nargs2 = yes ; then
11343 ol_cv_func_ctime_r_nargs=2
11346 ol_cv_func_ctime_r_nargs=0
11351 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11353 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11354 cat >> confdefs.h <<EOF
11355 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11362 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11363 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11364 echo "configure:11365: checking number of arguments of gethostbyname_r" >&5
11365 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 #include <sys/types.h>
11372 #include <sys/socket.h>
11373 #include <netinet/in.h>
11375 #define BUFSIZE (sizeof(struct hostent)+10)
11377 struct hostent hent; char buffer[BUFSIZE];
11378 int bufsize=BUFSIZE;int h_errno;
11379 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11380 buffer, bufsize, &h_errno);
11383 if { (eval echo configure:11384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11385 ol_cv_func_gethostbyname_r_nargs5=yes
11387 echo "configure: failed program was:" >&5
11388 cat conftest.$ac_ext >&5
11390 ol_cv_func_gethostbyname_r_nargs5=no
11394 cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11397 #include <sys/types.h>
11398 #include <sys/socket.h>
11399 #include <netinet/in.h>
11401 #define BUFSIZE (sizeof(struct hostent)+10)
11403 struct hostent hent;struct hostent *rhent;
11404 char buffer[BUFSIZE];
11405 int bufsize=BUFSIZE;int h_errno;
11406 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11410 if { (eval echo configure:11411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11412 ol_cv_func_gethostbyname_r_nargs6=yes
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11417 ol_cv_func_gethostbyname_r_nargs6=no
11421 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11422 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11424 ol_cv_func_gethostbyname_r_nargs=5
11426 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11427 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11429 ol_cv_func_gethostbyname_r_nargs=6
11432 ol_cv_func_gethostbyname_r_nargs=0
11437 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11438 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11439 cat >> confdefs.h <<EOF
11440 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11446 ol_cv_func_gethostbyname_r_nargs=0
11449 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11450 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11451 echo "configure:11452: checking number of arguments of gethostbyaddr_r" >&5
11452 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 #include <sys/types.h>
11459 #include <sys/socket.h>
11460 #include <netinet/in.h>
11462 #define BUFSIZE (sizeof(struct hostent)+10)
11464 struct hostent hent; char buffer[BUFSIZE];
11465 struct in_addr add;
11466 size_t alen=sizeof(struct in_addr);
11467 int bufsize=BUFSIZE;int h_errno;
11468 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11469 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11472 if { (eval echo configure:11473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11474 ol_cv_func_gethostbyaddr_r_nargs7=yes
11476 echo "configure: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11479 ol_cv_func_gethostbyaddr_r_nargs7=no
11483 cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure"
11485 #include "confdefs.h"
11486 #include <sys/types.h>
11487 #include <sys/socket.h>
11488 #include <netinet/in.h>
11490 #define BUFSIZE (sizeof(struct hostent)+10)
11492 struct hostent hent;
11493 struct hostent *rhent; char buffer[BUFSIZE];
11494 struct in_addr add;
11495 size_t alen=sizeof(struct in_addr);
11496 int bufsize=BUFSIZE;int h_errno;
11497 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11498 alen, AF_INET, &hent, buffer, bufsize,
11502 if { (eval echo configure:11503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11504 ol_cv_func_gethostbyaddr_r_nargs8=yes
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11509 ol_cv_func_gethostbyaddr_r_nargs8=no
11513 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11514 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11516 ol_cv_func_gethostbyaddr_r_nargs=7
11518 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11519 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11521 ol_cv_func_gethostbyaddr_r_nargs=8
11524 ol_cv_func_gethostbyaddr_r_nargs=0
11529 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11530 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11531 cat >> confdefs.h <<EOF
11532 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11538 ol_cv_func_gethostbyaddr_r_nargs=0
11541 if test "$ac_cv_func_ctime_r" = yes \
11542 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11543 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11544 -a "$ac_cv_func_gethostbyname_r" = yes \
11545 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11546 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11547 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11548 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11549 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11552 cat >> confdefs.h <<\EOF
11553 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11560 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11561 -o $ol_with_threads = nt ; then
11564 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11565 echo "configure:11566: checking for _beginthread" >&5
11566 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11567 echo $ac_n "(cached) $ac_c" 1>&6
11569 cat > conftest.$ac_ext <<EOF
11570 #line 11571 "configure"
11571 #include "confdefs.h"
11572 /* System header to define __stub macros and hopefully few prototypes,
11573 which can conflict with char _beginthread(); below. */
11574 #include <assert.h>
11575 /* Override any gcc2 internal prototype to avoid an error. */
11576 /* We use char because int might match the return type of a gcc2
11577 builtin and then its argument prototype would still apply. */
11578 char _beginthread();
11583 /* The GNU C library defines this for functions which it implements
11584 to always fail with ENOSYS. Some functions are actually named
11585 something starting with __ and the normal name is an alias. */
11586 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11594 if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11596 eval "ac_cv_func__beginthread=yes"
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11601 eval "ac_cv_func__beginthread=no"
11606 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11607 echo "$ac_t""yes" 1>&6
11610 echo "$ac_t""no" 1>&6
11614 if test $ac_cv_func__beginthread = yes ; then
11615 cat >> confdefs.h <<\EOF
11616 #define HAVE_NT_THREADS 1
11619 ol_cv_nt_threads=yes
11623 if test "$ol_cv_nt_threads" = yes ; then
11625 ol_with_threads=found
11626 ol_with_yielding_select=yes
11628 cat >> confdefs.h <<\EOF
11629 #define HAVE_NT_SERVICE_MANAGER 1
11632 cat >> confdefs.h <<\EOF
11633 #define HAVE_NT_EVENT_LOG 1
11638 if test $ol_with_threads = nt ; then
11639 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11643 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11644 -o $ol_with_threads = posix ; then
11646 for ac_hdr in pthread.h
11648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11650 echo "configure:11651: checking for $ac_hdr" >&5
11651 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11652 echo $ac_n "(cached) $ac_c" 1>&6
11654 cat > conftest.$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11660 { (eval echo configure:11661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11662 if test -z "$ac_err"; then
11664 eval "ac_cv_header_$ac_safe=yes"
11667 echo "configure: failed program was:" >&5
11668 cat conftest.$ac_ext >&5
11670 eval "ac_cv_header_$ac_safe=no"
11674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11675 echo "$ac_t""yes" 1>&6
11676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11677 cat >> confdefs.h <<EOF
11678 #define $ac_tr_hdr 1
11682 echo "$ac_t""no" 1>&6
11687 if test $ac_cv_header_pthread_h = yes ; then
11688 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11689 echo "configure:11690: checking POSIX thread version" >&5
11690 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11698 # include <pthread.h>
11699 /* this check could be improved */
11700 # ifdef PTHREAD_ONCE_INIT
11701 pthread_version_final;
11705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11706 egrep "pthread_version_final" >/dev/null 2>&1; then
11708 ol_pthread_final=yes
11711 ol_pthread_final=no
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11720 # include <pthread.h>
11721 /* this check could be improved */
11722 # ifdef pthread_once_init
11723 pthread_version_draft4;
11727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11730 ol_pthread_draft4=yes
11733 ol_pthread_draft4=no
11738 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11739 ol_cv_pthread_version=final
11740 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11741 ol_cv_pthread_version=draft4
11743 ol_cv_pthread_version=unknown
11748 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11751 if test $ol_cv_pthread_version = final ; then
11752 cat >> confdefs.h <<\EOF
11753 #define HAVE_PTHREADS_FINAL 1
11756 elif test $ol_cv_pthread_version = draft4 ; then
11757 cat >> confdefs.h <<\EOF
11758 #define HAVE_PTHREADS_D4 1
11762 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11765 # consider threads found
11766 ol_with_threads=found
11769 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11770 echo "configure:11771: checking for LinuxThreads pthread.h" >&5
11771 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11772 echo $ac_n "(cached) $ac_c" 1>&6
11774 cat > conftest.$ac_ext <<EOF
11775 #line 11776 "configure"
11776 #include "confdefs.h"
11777 #include <pthread.h>
11779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11780 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11782 ol_cv_header_linux_threads=yes
11785 ol_cv_header_linux_threads=no
11792 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11793 if test $ol_cv_header_linux_threads = yes; then
11794 cat >> confdefs.h <<\EOF
11795 #define HAVE_LINUX_THREADS 1
11801 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11802 echo "configure:11803: checking for GNU Pth pthread.h" >&5
11803 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11804 echo $ac_n "(cached) $ac_c" 1>&6
11806 cat > conftest.$ac_ext <<EOF
11807 #line 11808 "configure"
11808 #include "confdefs.h"
11809 #include <pthread.h>
11810 #ifdef _POSIX_THREAD_IS_GNU_PTH
11815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11816 egrep "__gnu_pth__" >/dev/null 2>&1; then
11818 ol_cv_header_gnu_pth_pthread_h=yes
11821 ol_cv_header_gnu_pth_pthread_h=no
11828 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11831 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11832 for ac_hdr in sched.h
11834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11836 echo "configure:11837: checking for $ac_hdr" >&5
11837 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11838 echo $ac_n "(cached) $ac_c" 1>&6
11840 cat > conftest.$ac_ext <<EOF
11841 #line 11842 "configure"
11842 #include "confdefs.h"
11845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11846 { (eval echo configure:11847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11848 if test -z "$ac_err"; then
11850 eval "ac_cv_header_$ac_safe=yes"
11853 echo "configure: failed program was:" >&5
11854 cat conftest.$ac_ext >&5
11856 eval "ac_cv_header_$ac_safe=no"
11860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11861 echo "$ac_t""yes" 1>&6
11862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11863 cat >> confdefs.h <<EOF
11864 #define $ac_tr_hdr 1
11868 echo "$ac_t""no" 1>&6
11875 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11876 echo "configure:11877: checking for pthread_create in default libraries" >&5
11877 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11878 echo $ac_n "(cached) $ac_c" 1>&6
11881 if test "$cross_compiling" = yes; then
11882 cat > conftest.$ac_ext <<EOF
11883 #line 11884 "configure"
11884 #include "confdefs.h"
11885 /* pthread test headers */
11886 #include <pthread.h>
11888 #define NULL (void*)0
11891 static void *task(p)
11894 return (void *) (p == NULL);
11899 /* pthread test function */
11904 #ifdef HAVE_PTHREADS_FINAL
11905 /* Final pthreads */
11906 pthread_attr_t attr;
11908 status = pthread_attr_init(&attr);
11909 if( status ) return status;
11911 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11913 #if defined( PTHREAD_CREATE_JOINABLE )
11914 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11916 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11919 #ifdef PTHREAD_CREATE_DETACHED
11921 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11924 if( status ) return status;
11927 status = pthread_create( &t, &attr, task, NULL );
11928 if( status ) return status;
11930 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11932 /* give thread a chance to complete */
11933 /* it should remain joinable and hence detachable */
11936 status = pthread_detach( t );
11937 if( status ) return status;
11942 /* Draft 4 pthreads */
11943 status = pthread_create( &t, pthread_attr_default, task, NULL );
11944 if( status ) return status;
11947 /* give thread a chance to complete */
11948 /* it should remain joinable and hence detachable */
11951 status = pthread_detach( &t );
11952 if( status ) return status;
11956 #ifdef HAVE_LINUX_THREADS
11957 pthread_kill_other_threads_np();
11964 if { (eval echo configure:11965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11966 ol_cv_pthread_create=yes
11968 echo "configure: failed program was:" >&5
11969 cat conftest.$ac_ext >&5
11971 ol_cv_pthread_create=no
11975 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure"
11977 #include "confdefs.h"
11978 /* pthread test headers */
11979 #include <pthread.h>
11981 #define NULL (void*)0
11984 static void *task(p)
11987 return (void *) (p == NULL);
11991 int main(argc, argv)
11996 /* pthread test function */
12001 #ifdef HAVE_PTHREADS_FINAL
12002 /* Final pthreads */
12003 pthread_attr_t attr;
12005 status = pthread_attr_init(&attr);
12006 if( status ) return status;
12008 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12010 #if defined( PTHREAD_CREATE_JOINABLE )
12011 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12013 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12016 #ifdef PTHREAD_CREATE_DETACHED
12018 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12021 if( status ) return status;
12024 status = pthread_create( &t, &attr, task, NULL );
12025 if( status ) return status;
12027 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12029 /* give thread a chance to complete */
12030 /* it should remain joinable and hence detachable */
12033 status = pthread_detach( t );
12034 if( status ) return status;
12039 /* Draft 4 pthreads */
12040 status = pthread_create( &t, pthread_attr_default, task, NULL );
12041 if( status ) return status;
12044 /* give thread a chance to complete */
12045 /* it should remain joinable and hence detachable */
12048 status = pthread_detach( &t );
12049 if( status ) return status;
12053 #ifdef HAVE_LINUX_THREADS
12054 pthread_kill_other_threads_np();
12062 if { (eval echo configure:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12064 ol_cv_pthread_create=yes
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12069 ol_cv_pthread_create=no
12076 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12078 if test $ol_cv_pthread_create != no ; then
12079 ol_link_threads=posix
12080 ol_link_pthreads=""
12083 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12084 if test "$ol_link_threads" = no ; then
12086 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12087 echo "configure:12088: checking for pthread link with -kthread" >&5
12088 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12094 LIBS="-kthread $LIBS"
12096 if test "$cross_compiling" = yes; then
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 /* pthread test headers */
12101 #include <pthread.h>
12103 #define NULL (void*)0
12106 static void *task(p)
12109 return (void *) (p == NULL);
12114 /* pthread test function */
12119 #ifdef HAVE_PTHREADS_FINAL
12120 /* Final pthreads */
12121 pthread_attr_t attr;
12123 status = pthread_attr_init(&attr);
12124 if( status ) return status;
12126 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12128 #if defined( PTHREAD_CREATE_JOINABLE )
12129 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12131 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12134 #ifdef PTHREAD_CREATE_DETACHED
12136 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12139 if( status ) return status;
12142 status = pthread_create( &t, &attr, task, NULL );
12143 if( status ) return status;
12145 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12147 /* give thread a chance to complete */
12148 /* it should remain joinable and hence detachable */
12151 status = pthread_detach( t );
12152 if( status ) return status;
12157 /* Draft 4 pthreads */
12158 status = pthread_create( &t, pthread_attr_default, task, NULL );
12159 if( status ) return status;
12162 /* give thread a chance to complete */
12163 /* it should remain joinable and hence detachable */
12166 status = pthread_detach( &t );
12167 if( status ) return status;
12171 #ifdef HAVE_LINUX_THREADS
12172 pthread_kill_other_threads_np();
12179 if { (eval echo configure:12180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12181 ol_cv_pthread_kthread=yes
12183 echo "configure: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12186 ol_cv_pthread_kthread=no
12190 cat > conftest.$ac_ext <<EOF
12191 #line 12192 "configure"
12192 #include "confdefs.h"
12193 /* pthread test headers */
12194 #include <pthread.h>
12196 #define NULL (void*)0
12199 static void *task(p)
12202 return (void *) (p == NULL);
12206 int main(argc, argv)
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();
12277 if { (eval echo configure:12278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12279 ol_cv_pthread_kthread=yes
12281 echo "configure: failed program was:" >&5
12282 cat conftest.$ac_ext >&5
12284 ol_cv_pthread_kthread=no
12295 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12297 if test $ol_cv_pthread_kthread = yes ; then
12298 ol_link_pthreads="-kthread"
12299 ol_link_threads=posix
12303 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12304 if test "$ol_link_threads" = no ; then
12306 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12307 echo "configure:12308: checking for pthread link with -pthread" >&5
12308 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12309 echo $ac_n "(cached) $ac_c" 1>&6
12314 LIBS="-pthread $LIBS"
12316 if test "$cross_compiling" = yes; then
12317 cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12320 /* pthread test headers */
12321 #include <pthread.h>
12323 #define NULL (void*)0
12326 static void *task(p)
12329 return (void *) (p == NULL);
12334 /* pthread test function */
12339 #ifdef HAVE_PTHREADS_FINAL
12340 /* Final pthreads */
12341 pthread_attr_t attr;
12343 status = pthread_attr_init(&attr);
12344 if( status ) return status;
12346 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12348 #if defined( PTHREAD_CREATE_JOINABLE )
12349 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12351 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12354 #ifdef PTHREAD_CREATE_DETACHED
12356 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12359 if( status ) return status;
12362 status = pthread_create( &t, &attr, task, NULL );
12363 if( status ) return status;
12365 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12367 /* give thread a chance to complete */
12368 /* it should remain joinable and hence detachable */
12371 status = pthread_detach( t );
12372 if( status ) return status;
12377 /* Draft 4 pthreads */
12378 status = pthread_create( &t, pthread_attr_default, task, NULL );
12379 if( status ) return status;
12382 /* give thread a chance to complete */
12383 /* it should remain joinable and hence detachable */
12386 status = pthread_detach( &t );
12387 if( status ) return status;
12391 #ifdef HAVE_LINUX_THREADS
12392 pthread_kill_other_threads_np();
12399 if { (eval echo configure:12400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12401 ol_cv_pthread_pthread=yes
12403 echo "configure: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12406 ol_cv_pthread_pthread=no
12410 cat > conftest.$ac_ext <<EOF
12411 #line 12412 "configure"
12412 #include "confdefs.h"
12413 /* pthread test headers */
12414 #include <pthread.h>
12416 #define NULL (void*)0
12419 static void *task(p)
12422 return (void *) (p == NULL);
12426 int main(argc, argv)
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();
12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12499 ol_cv_pthread_pthread=yes
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12504 ol_cv_pthread_pthread=no
12515 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12517 if test $ol_cv_pthread_pthread = yes ; then
12518 ol_link_pthreads="-pthread"
12519 ol_link_threads=posix
12523 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12524 if test "$ol_link_threads" = no ; then
12526 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12527 echo "configure:12528: checking for pthread link with -pthreads" >&5
12528 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12534 LIBS="-pthreads $LIBS"
12536 if test "$cross_compiling" = yes; then
12537 cat > conftest.$ac_ext <<EOF
12538 #line 12539 "configure"
12539 #include "confdefs.h"
12540 /* pthread test headers */
12541 #include <pthread.h>
12543 #define NULL (void*)0
12546 static void *task(p)
12549 return (void *) (p == NULL);
12554 /* pthread test function */
12559 #ifdef HAVE_PTHREADS_FINAL
12560 /* Final pthreads */
12561 pthread_attr_t attr;
12563 status = pthread_attr_init(&attr);
12564 if( status ) return status;
12566 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12568 #if defined( PTHREAD_CREATE_JOINABLE )
12569 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12571 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12574 #ifdef PTHREAD_CREATE_DETACHED
12576 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12579 if( status ) return status;
12582 status = pthread_create( &t, &attr, task, NULL );
12583 if( status ) return status;
12585 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12587 /* give thread a chance to complete */
12588 /* it should remain joinable and hence detachable */
12591 status = pthread_detach( t );
12592 if( status ) return status;
12597 /* Draft 4 pthreads */
12598 status = pthread_create( &t, pthread_attr_default, task, NULL );
12599 if( status ) return status;
12602 /* give thread a chance to complete */
12603 /* it should remain joinable and hence detachable */
12606 status = pthread_detach( &t );
12607 if( status ) return status;
12611 #ifdef HAVE_LINUX_THREADS
12612 pthread_kill_other_threads_np();
12619 if { (eval echo configure:12620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12621 ol_cv_pthread_pthreads=yes
12623 echo "configure: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12626 ol_cv_pthread_pthreads=no
12630 cat > conftest.$ac_ext <<EOF
12631 #line 12632 "configure"
12632 #include "confdefs.h"
12633 /* pthread test headers */
12634 #include <pthread.h>
12636 #define NULL (void*)0
12639 static void *task(p)
12642 return (void *) (p == NULL);
12646 int main(argc, argv)
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();
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12719 ol_cv_pthread_pthreads=yes
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12724 ol_cv_pthread_pthreads=no
12735 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12737 if test $ol_cv_pthread_pthreads = yes ; then
12738 ol_link_pthreads="-pthreads"
12739 ol_link_threads=posix
12743 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12744 if test "$ol_link_threads" = no ; then
12746 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12747 echo "configure:12748: checking for pthread link with -mthreads" >&5
12748 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12749 echo $ac_n "(cached) $ac_c" 1>&6
12754 LIBS="-mthreads $LIBS"
12756 if test "$cross_compiling" = yes; then
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12760 /* pthread test headers */
12761 #include <pthread.h>
12763 #define NULL (void*)0
12766 static void *task(p)
12769 return (void *) (p == NULL);
12774 /* pthread test function */
12779 #ifdef HAVE_PTHREADS_FINAL
12780 /* Final pthreads */
12781 pthread_attr_t attr;
12783 status = pthread_attr_init(&attr);
12784 if( status ) return status;
12786 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12788 #if defined( PTHREAD_CREATE_JOINABLE )
12789 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12791 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12794 #ifdef PTHREAD_CREATE_DETACHED
12796 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12799 if( status ) return status;
12802 status = pthread_create( &t, &attr, task, NULL );
12803 if( status ) return status;
12805 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12807 /* give thread a chance to complete */
12808 /* it should remain joinable and hence detachable */
12811 status = pthread_detach( t );
12812 if( status ) return status;
12817 /* Draft 4 pthreads */
12818 status = pthread_create( &t, pthread_attr_default, task, NULL );
12819 if( status ) return status;
12822 /* give thread a chance to complete */
12823 /* it should remain joinable and hence detachable */
12826 status = pthread_detach( &t );
12827 if( status ) return status;
12831 #ifdef HAVE_LINUX_THREADS
12832 pthread_kill_other_threads_np();
12839 if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12841 ol_cv_pthread_mthreads=yes
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12846 ol_cv_pthread_mthreads=no
12850 cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12853 /* pthread test headers */
12854 #include <pthread.h>
12856 #define NULL (void*)0
12859 static void *task(p)
12862 return (void *) (p == NULL);
12866 int main(argc, argv)
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();
12937 if { (eval echo configure:12938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12939 ol_cv_pthread_mthreads=yes
12941 echo "configure: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12944 ol_cv_pthread_mthreads=no
12955 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12957 if test $ol_cv_pthread_mthreads = yes ; then
12958 ol_link_pthreads="-mthreads"
12959 ol_link_threads=posix
12963 # Pthread try link: -thread (ol_cv_pthread_thread)
12964 if test "$ol_link_threads" = no ; then
12966 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12967 echo "configure:12968: checking for pthread link with -thread" >&5
12968 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
12974 LIBS="-thread $LIBS"
12976 if test "$cross_compiling" = yes; then
12977 cat > conftest.$ac_ext <<EOF
12978 #line 12979 "configure"
12979 #include "confdefs.h"
12980 /* pthread test headers */
12981 #include <pthread.h>
12983 #define NULL (void*)0
12986 static void *task(p)
12989 return (void *) (p == NULL);
12994 /* pthread test function */
12999 #ifdef HAVE_PTHREADS_FINAL
13000 /* Final pthreads */
13001 pthread_attr_t attr;
13003 status = pthread_attr_init(&attr);
13004 if( status ) return status;
13006 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13008 #if defined( PTHREAD_CREATE_JOINABLE )
13009 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13011 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13014 #ifdef PTHREAD_CREATE_DETACHED
13016 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13019 if( status ) return status;
13022 status = pthread_create( &t, &attr, task, NULL );
13023 if( status ) return status;
13025 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13027 /* give thread a chance to complete */
13028 /* it should remain joinable and hence detachable */
13031 status = pthread_detach( t );
13032 if( status ) return status;
13037 /* Draft 4 pthreads */
13038 status = pthread_create( &t, pthread_attr_default, task, NULL );
13039 if( status ) return status;
13042 /* give thread a chance to complete */
13043 /* it should remain joinable and hence detachable */
13046 status = pthread_detach( &t );
13047 if( status ) return status;
13051 #ifdef HAVE_LINUX_THREADS
13052 pthread_kill_other_threads_np();
13059 if { (eval echo configure:13060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13061 ol_cv_pthread_thread=yes
13063 echo "configure: failed program was:" >&5
13064 cat conftest.$ac_ext >&5
13066 ol_cv_pthread_thread=no
13070 cat > conftest.$ac_ext <<EOF
13071 #line 13072 "configure"
13072 #include "confdefs.h"
13073 /* pthread test headers */
13074 #include <pthread.h>
13076 #define NULL (void*)0
13079 static void *task(p)
13082 return (void *) (p == NULL);
13086 int main(argc, argv)
13091 /* pthread test function */
13096 #ifdef HAVE_PTHREADS_FINAL
13097 /* Final pthreads */
13098 pthread_attr_t attr;
13100 status = pthread_attr_init(&attr);
13101 if( status ) return status;
13103 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13105 #if defined( PTHREAD_CREATE_JOINABLE )
13106 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13108 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13111 #ifdef PTHREAD_CREATE_DETACHED
13113 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13116 if( status ) return status;
13119 status = pthread_create( &t, &attr, task, NULL );
13120 if( status ) return status;
13122 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13124 /* give thread a chance to complete */
13125 /* it should remain joinable and hence detachable */
13128 status = pthread_detach( t );
13129 if( status ) return status;
13134 /* Draft 4 pthreads */
13135 status = pthread_create( &t, pthread_attr_default, task, NULL );
13136 if( status ) return status;
13139 /* give thread a chance to complete */
13140 /* it should remain joinable and hence detachable */
13143 status = pthread_detach( &t );
13144 if( status ) return status;
13148 #ifdef HAVE_LINUX_THREADS
13149 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} && (./conftest; exit) 2>/dev/null
13159 ol_cv_pthread_thread=yes
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13164 ol_cv_pthread_thread=no
13175 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13177 if test $ol_cv_pthread_thread = yes ; then
13178 ol_link_pthreads="-thread"
13179 ol_link_threads=posix
13184 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13185 if test "$ol_link_threads" = no ; then
13186 # try -lpthread -lmach -lexc -lc_r
13187 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13188 echo "configure:13189: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13189 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13190 echo $ac_n "(cached) $ac_c" 1>&6
13195 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13197 if test "$cross_compiling" = yes; then
13198 cat > conftest.$ac_ext <<EOF
13199 #line 13200 "configure"
13200 #include "confdefs.h"
13201 /* pthread test headers */
13202 #include <pthread.h>
13204 #define NULL (void*)0
13207 static void *task(p)
13210 return (void *) (p == NULL);
13215 /* pthread test function */
13220 #ifdef HAVE_PTHREADS_FINAL
13221 /* Final pthreads */
13222 pthread_attr_t attr;
13224 status = pthread_attr_init(&attr);
13225 if( status ) return status;
13227 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13229 #if defined( PTHREAD_CREATE_JOINABLE )
13230 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13232 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13235 #ifdef PTHREAD_CREATE_DETACHED
13237 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13240 if( status ) return status;
13243 status = pthread_create( &t, &attr, task, NULL );
13244 if( status ) return status;
13246 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13248 /* give thread a chance to complete */
13249 /* it should remain joinable and hence detachable */
13252 status = pthread_detach( t );
13253 if( status ) return status;
13258 /* Draft 4 pthreads */
13259 status = pthread_create( &t, pthread_attr_default, task, NULL );
13260 if( status ) return status;
13263 /* give thread a chance to complete */
13264 /* it should remain joinable and hence detachable */
13267 status = pthread_detach( &t );
13268 if( status ) return status;
13272 #ifdef HAVE_LINUX_THREADS
13273 pthread_kill_other_threads_np();
13280 if { (eval echo configure:13281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13282 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13284 echo "configure: failed program was:" >&5
13285 cat conftest.$ac_ext >&5
13287 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13291 cat > conftest.$ac_ext <<EOF
13292 #line 13293 "configure"
13293 #include "confdefs.h"
13294 /* pthread test headers */
13295 #include <pthread.h>
13297 #define NULL (void*)0
13300 static void *task(p)
13303 return (void *) (p == NULL);
13307 int main(argc, argv)
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();
13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13380 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13385 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13396 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13398 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13399 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13400 ol_link_threads=posix
13404 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13405 if test "$ol_link_threads" = no ; then
13406 # try -lpthread -lmach -lexc
13407 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13408 echo "configure:13409: checking for pthread link with -lpthread -lmach -lexc" >&5
13409 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13410 echo $ac_n "(cached) $ac_c" 1>&6
13415 LIBS="-lpthread -lmach -lexc $LIBS"
13417 if test "$cross_compiling" = yes; then
13418 cat > conftest.$ac_ext <<EOF
13419 #line 13420 "configure"
13420 #include "confdefs.h"
13421 /* pthread test headers */
13422 #include <pthread.h>
13424 #define NULL (void*)0
13427 static void *task(p)
13430 return (void *) (p == NULL);
13435 /* pthread test function */
13440 #ifdef HAVE_PTHREADS_FINAL
13441 /* Final pthreads */
13442 pthread_attr_t attr;
13444 status = pthread_attr_init(&attr);
13445 if( status ) return status;
13447 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13449 #if defined( PTHREAD_CREATE_JOINABLE )
13450 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13452 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13455 #ifdef PTHREAD_CREATE_DETACHED
13457 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13460 if( status ) return status;
13463 status = pthread_create( &t, &attr, task, NULL );
13464 if( status ) return status;
13466 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13468 /* give thread a chance to complete */
13469 /* it should remain joinable and hence detachable */
13472 status = pthread_detach( t );
13473 if( status ) return status;
13478 /* Draft 4 pthreads */
13479 status = pthread_create( &t, pthread_attr_default, task, NULL );
13480 if( status ) return status;
13483 /* give thread a chance to complete */
13484 /* it should remain joinable and hence detachable */
13487 status = pthread_detach( &t );
13488 if( status ) return status;
13492 #ifdef HAVE_LINUX_THREADS
13493 pthread_kill_other_threads_np();
13500 if { (eval echo configure:13501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13502 ol_cv_pthread_lpthread_lmach_lexc=yes
13504 echo "configure: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13507 ol_cv_pthread_lpthread_lmach_lexc=no
13511 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure"
13513 #include "confdefs.h"
13514 /* pthread test headers */
13515 #include <pthread.h>
13517 #define NULL (void*)0
13520 static void *task(p)
13523 return (void *) (p == NULL);
13527 int main(argc, argv)
13532 /* pthread test function */
13537 #ifdef HAVE_PTHREADS_FINAL
13538 /* Final pthreads */
13539 pthread_attr_t attr;
13541 status = pthread_attr_init(&attr);
13542 if( status ) return status;
13544 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13546 #if defined( PTHREAD_CREATE_JOINABLE )
13547 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13549 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13552 #ifdef PTHREAD_CREATE_DETACHED
13554 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13557 if( status ) return status;
13560 status = pthread_create( &t, &attr, task, NULL );
13561 if( status ) return status;
13563 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13565 /* give thread a chance to complete */
13566 /* it should remain joinable and hence detachable */
13569 status = pthread_detach( t );
13570 if( status ) return status;
13575 /* Draft 4 pthreads */
13576 status = pthread_create( &t, pthread_attr_default, task, NULL );
13577 if( status ) return status;
13580 /* give thread a chance to complete */
13581 /* it should remain joinable and hence detachable */
13584 status = pthread_detach( &t );
13585 if( status ) return status;
13589 #ifdef HAVE_LINUX_THREADS
13590 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} && (./conftest; exit) 2>/dev/null
13600 ol_cv_pthread_lpthread_lmach_lexc=yes
13602 echo "configure: failed program was:" >&5
13603 cat conftest.$ac_ext >&5
13605 ol_cv_pthread_lpthread_lmach_lexc=no
13616 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13618 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13619 ol_link_pthreads="-lpthread -lmach -lexc"
13620 ol_link_threads=posix
13625 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13626 if test "$ol_link_threads" = no ; then
13627 # try -lpthread -Wl,-woff,85
13628 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13629 echo "configure:13630: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13630 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13631 echo $ac_n "(cached) $ac_c" 1>&6
13636 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13638 if test "$cross_compiling" = yes; then
13639 cat > conftest.$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13642 /* pthread test headers */
13643 #include <pthread.h>
13645 #define NULL (void*)0
13648 static void *task(p)
13651 return (void *) (p == NULL);
13656 /* pthread test function */
13661 #ifdef HAVE_PTHREADS_FINAL
13662 /* Final pthreads */
13663 pthread_attr_t attr;
13665 status = pthread_attr_init(&attr);
13666 if( status ) return status;
13668 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13670 #if defined( PTHREAD_CREATE_JOINABLE )
13671 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13673 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13676 #ifdef PTHREAD_CREATE_DETACHED
13678 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13681 if( status ) return status;
13684 status = pthread_create( &t, &attr, task, NULL );
13685 if( status ) return status;
13687 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13689 /* give thread a chance to complete */
13690 /* it should remain joinable and hence detachable */
13693 status = pthread_detach( t );
13694 if( status ) return status;
13699 /* Draft 4 pthreads */
13700 status = pthread_create( &t, pthread_attr_default, task, NULL );
13701 if( status ) return status;
13704 /* give thread a chance to complete */
13705 /* it should remain joinable and hence detachable */
13708 status = pthread_detach( &t );
13709 if( status ) return status;
13713 #ifdef HAVE_LINUX_THREADS
13714 pthread_kill_other_threads_np();
13721 if { (eval echo configure:13722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13723 ol_cv_pthread_lib_lpthread_woff=yes
13725 echo "configure: failed program was:" >&5
13726 cat conftest.$ac_ext >&5
13728 ol_cv_pthread_lib_lpthread_woff=no
13732 cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure"
13734 #include "confdefs.h"
13735 /* pthread test headers */
13736 #include <pthread.h>
13738 #define NULL (void*)0
13741 static void *task(p)
13744 return (void *) (p == NULL);
13748 int main(argc, argv)
13753 /* pthread test function */
13758 #ifdef HAVE_PTHREADS_FINAL
13759 /* Final pthreads */
13760 pthread_attr_t attr;
13762 status = pthread_attr_init(&attr);
13763 if( status ) return status;
13765 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13767 #if defined( PTHREAD_CREATE_JOINABLE )
13768 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13770 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13773 #ifdef PTHREAD_CREATE_DETACHED
13775 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13778 if( status ) return status;
13781 status = pthread_create( &t, &attr, task, NULL );
13782 if( status ) return status;
13784 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13786 /* give thread a chance to complete */
13787 /* it should remain joinable and hence detachable */
13790 status = pthread_detach( t );
13791 if( status ) return status;
13796 /* Draft 4 pthreads */
13797 status = pthread_create( &t, pthread_attr_default, task, NULL );
13798 if( status ) return status;
13801 /* give thread a chance to complete */
13802 /* it should remain joinable and hence detachable */
13805 status = pthread_detach( &t );
13806 if( status ) return status;
13810 #ifdef HAVE_LINUX_THREADS
13811 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} && (./conftest; exit) 2>/dev/null
13821 ol_cv_pthread_lib_lpthread_woff=yes
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13826 ol_cv_pthread_lib_lpthread_woff=no
13837 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13839 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13840 ol_link_pthreads="-lpthread -Wl,-woff,85"
13841 ol_link_threads=posix
13846 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13847 if test "$ol_link_threads" = no ; then
13849 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13850 echo "configure:13851: checking for pthread link with -lpthread" >&5
13851 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13852 echo $ac_n "(cached) $ac_c" 1>&6
13857 LIBS="-lpthread $LIBS"
13859 if test "$cross_compiling" = yes; then
13860 cat > conftest.$ac_ext <<EOF
13861 #line 13862 "configure"
13862 #include "confdefs.h"
13863 /* pthread test headers */
13864 #include <pthread.h>
13866 #define NULL (void*)0
13869 static void *task(p)
13872 return (void *) (p == NULL);
13877 /* pthread test function */
13882 #ifdef HAVE_PTHREADS_FINAL
13883 /* Final pthreads */
13884 pthread_attr_t attr;
13886 status = pthread_attr_init(&attr);
13887 if( status ) return status;
13889 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13891 #if defined( PTHREAD_CREATE_JOINABLE )
13892 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13894 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13897 #ifdef PTHREAD_CREATE_DETACHED
13899 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13902 if( status ) return status;
13905 status = pthread_create( &t, &attr, task, NULL );
13906 if( status ) return status;
13908 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13910 /* give thread a chance to complete */
13911 /* it should remain joinable and hence detachable */
13914 status = pthread_detach( t );
13915 if( status ) return status;
13920 /* Draft 4 pthreads */
13921 status = pthread_create( &t, pthread_attr_default, task, NULL );
13922 if( status ) return status;
13925 /* give thread a chance to complete */
13926 /* it should remain joinable and hence detachable */
13929 status = pthread_detach( &t );
13930 if( status ) return status;
13934 #ifdef HAVE_LINUX_THREADS
13935 pthread_kill_other_threads_np();
13942 if { (eval echo configure:13943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13944 ol_cv_pthread_lpthread=yes
13946 echo "configure: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13949 ol_cv_pthread_lpthread=no
13953 cat > conftest.$ac_ext <<EOF
13954 #line 13955 "configure"
13955 #include "confdefs.h"
13956 /* pthread test headers */
13957 #include <pthread.h>
13959 #define NULL (void*)0
13962 static void *task(p)
13965 return (void *) (p == NULL);
13969 int main(argc, argv)
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();
14040 if { (eval echo configure:14041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14042 ol_cv_pthread_lpthread=yes
14044 echo "configure: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14047 ol_cv_pthread_lpthread=no
14058 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
14060 if test $ol_cv_pthread_lpthread = yes ; then
14061 ol_link_pthreads="-lpthread"
14062 ol_link_threads=posix
14066 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
14067 if test "$ol_link_threads" = no ; then
14069 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
14070 echo "configure:14071: checking for pthread link with -lc_r" >&5
14071 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
14072 echo $ac_n "(cached) $ac_c" 1>&6
14079 if test "$cross_compiling" = yes; then
14080 cat > conftest.$ac_ext <<EOF
14081 #line 14082 "configure"
14082 #include "confdefs.h"
14083 /* pthread test headers */
14084 #include <pthread.h>
14086 #define NULL (void*)0
14089 static void *task(p)
14092 return (void *) (p == NULL);
14097 /* pthread test function */
14102 #ifdef HAVE_PTHREADS_FINAL
14103 /* Final pthreads */
14104 pthread_attr_t attr;
14106 status = pthread_attr_init(&attr);
14107 if( status ) return status;
14109 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14111 #if defined( PTHREAD_CREATE_JOINABLE )
14112 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14114 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14117 #ifdef PTHREAD_CREATE_DETACHED
14119 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14122 if( status ) return status;
14125 status = pthread_create( &t, &attr, task, NULL );
14126 if( status ) return status;
14128 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14130 /* give thread a chance to complete */
14131 /* it should remain joinable and hence detachable */
14134 status = pthread_detach( t );
14135 if( status ) return status;
14140 /* Draft 4 pthreads */
14141 status = pthread_create( &t, pthread_attr_default, task, NULL );
14142 if( status ) return status;
14145 /* give thread a chance to complete */
14146 /* it should remain joinable and hence detachable */
14149 status = pthread_detach( &t );
14150 if( status ) return status;
14154 #ifdef HAVE_LINUX_THREADS
14155 pthread_kill_other_threads_np();
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14164 ol_cv_pthread_lc_r=yes
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14169 ol_cv_pthread_lc_r=no
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 /* pthread test headers */
14177 #include <pthread.h>
14179 #define NULL (void*)0
14182 static void *task(p)
14185 return (void *) (p == NULL);
14189 int main(argc, argv)
14194 /* pthread test function */
14199 #ifdef HAVE_PTHREADS_FINAL
14200 /* Final pthreads */
14201 pthread_attr_t attr;
14203 status = pthread_attr_init(&attr);
14204 if( status ) return status;
14206 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14208 #if defined( PTHREAD_CREATE_JOINABLE )
14209 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14211 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14214 #ifdef PTHREAD_CREATE_DETACHED
14216 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14219 if( status ) return status;
14222 status = pthread_create( &t, &attr, task, NULL );
14223 if( status ) return status;
14225 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14227 /* give thread a chance to complete */
14228 /* it should remain joinable and hence detachable */
14231 status = pthread_detach( t );
14232 if( status ) return status;
14237 /* Draft 4 pthreads */
14238 status = pthread_create( &t, pthread_attr_default, task, NULL );
14239 if( status ) return status;
14242 /* give thread a chance to complete */
14243 /* it should remain joinable and hence detachable */
14246 status = pthread_detach( &t );
14247 if( status ) return status;
14251 #ifdef HAVE_LINUX_THREADS
14252 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} && (./conftest; exit) 2>/dev/null
14262 ol_cv_pthread_lc_r=yes
14264 echo "configure: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14267 ol_cv_pthread_lc_r=no
14278 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14280 if test $ol_cv_pthread_lc_r = yes ; then
14281 ol_link_pthreads="-lc_r"
14282 ol_link_threads=posix
14287 # Pthread try link: -threads (ol_cv_pthread_threads)
14288 if test "$ol_link_threads" = no ; then
14290 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14291 echo "configure:14292: checking for pthread link with -threads" >&5
14292 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14293 echo $ac_n "(cached) $ac_c" 1>&6
14298 LIBS="-threads $LIBS"
14300 if test "$cross_compiling" = yes; then
14301 cat > conftest.$ac_ext <<EOF
14302 #line 14303 "configure"
14303 #include "confdefs.h"
14304 /* pthread test headers */
14305 #include <pthread.h>
14307 #define NULL (void*)0
14310 static void *task(p)
14313 return (void *) (p == NULL);
14318 /* pthread test function */
14323 #ifdef HAVE_PTHREADS_FINAL
14324 /* Final pthreads */
14325 pthread_attr_t attr;
14327 status = pthread_attr_init(&attr);
14328 if( status ) return status;
14330 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14332 #if defined( PTHREAD_CREATE_JOINABLE )
14333 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14335 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14338 #ifdef PTHREAD_CREATE_DETACHED
14340 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14343 if( status ) return status;
14346 status = pthread_create( &t, &attr, task, NULL );
14347 if( status ) return status;
14349 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14351 /* give thread a chance to complete */
14352 /* it should remain joinable and hence detachable */
14355 status = pthread_detach( t );
14356 if( status ) return status;
14361 /* Draft 4 pthreads */
14362 status = pthread_create( &t, pthread_attr_default, task, NULL );
14363 if( status ) return status;
14366 /* give thread a chance to complete */
14367 /* it should remain joinable and hence detachable */
14370 status = pthread_detach( &t );
14371 if( status ) return status;
14375 #ifdef HAVE_LINUX_THREADS
14376 pthread_kill_other_threads_np();
14383 if { (eval echo configure:14384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14385 ol_cv_pthread_threads=yes
14387 echo "configure: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14390 ol_cv_pthread_threads=no
14394 cat > conftest.$ac_ext <<EOF
14395 #line 14396 "configure"
14396 #include "confdefs.h"
14397 /* pthread test headers */
14398 #include <pthread.h>
14400 #define NULL (void*)0
14403 static void *task(p)
14406 return (void *) (p == NULL);
14410 int main(argc, argv)
14415 /* pthread test function */
14420 #ifdef HAVE_PTHREADS_FINAL
14421 /* Final pthreads */
14422 pthread_attr_t attr;
14424 status = pthread_attr_init(&attr);
14425 if( status ) return status;
14427 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14429 #if defined( PTHREAD_CREATE_JOINABLE )
14430 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14432 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14435 #ifdef PTHREAD_CREATE_DETACHED
14437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14440 if( status ) return status;
14443 status = pthread_create( &t, &attr, task, NULL );
14444 if( status ) return status;
14446 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14448 /* give thread a chance to complete */
14449 /* it should remain joinable and hence detachable */
14452 status = pthread_detach( t );
14453 if( status ) return status;
14458 /* Draft 4 pthreads */
14459 status = pthread_create( &t, pthread_attr_default, task, NULL );
14460 if( status ) return status;
14463 /* give thread a chance to complete */
14464 /* it should remain joinable and hence detachable */
14467 status = pthread_detach( &t );
14468 if( status ) return status;
14472 #ifdef HAVE_LINUX_THREADS
14473 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} && (./conftest; exit) 2>/dev/null
14483 ol_cv_pthread_threads=yes
14485 echo "configure: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14488 ol_cv_pthread_threads=no
14499 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14501 if test $ol_cv_pthread_threads = yes ; then
14502 ol_link_pthreads="-threads"
14503 ol_link_threads=posix
14508 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14509 if test "$ol_link_threads" = no ; then
14510 # try -lpthreads -lmach -lexc -lc_r
14511 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14512 echo "configure:14513: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14513 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14514 echo $ac_n "(cached) $ac_c" 1>&6
14519 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14521 if test "$cross_compiling" = yes; then
14522 cat > conftest.$ac_ext <<EOF
14523 #line 14524 "configure"
14524 #include "confdefs.h"
14525 /* pthread test headers */
14526 #include <pthread.h>
14528 #define NULL (void*)0
14531 static void *task(p)
14534 return (void *) (p == NULL);
14539 /* pthread test function */
14544 #ifdef HAVE_PTHREADS_FINAL
14545 /* Final pthreads */
14546 pthread_attr_t attr;
14548 status = pthread_attr_init(&attr);
14549 if( status ) return status;
14551 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14553 #if defined( PTHREAD_CREATE_JOINABLE )
14554 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14556 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14559 #ifdef PTHREAD_CREATE_DETACHED
14561 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14564 if( status ) return status;
14567 status = pthread_create( &t, &attr, task, NULL );
14568 if( status ) return status;
14570 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14572 /* give thread a chance to complete */
14573 /* it should remain joinable and hence detachable */
14576 status = pthread_detach( t );
14577 if( status ) return status;
14582 /* Draft 4 pthreads */
14583 status = pthread_create( &t, pthread_attr_default, task, NULL );
14584 if( status ) return status;
14587 /* give thread a chance to complete */
14588 /* it should remain joinable and hence detachable */
14591 status = pthread_detach( &t );
14592 if( status ) return status;
14596 #ifdef HAVE_LINUX_THREADS
14597 pthread_kill_other_threads_np();
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14606 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14611 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14615 cat > conftest.$ac_ext <<EOF
14616 #line 14617 "configure"
14617 #include "confdefs.h"
14618 /* pthread test headers */
14619 #include <pthread.h>
14621 #define NULL (void*)0
14624 static void *task(p)
14627 return (void *) (p == NULL);
14631 int main(argc, argv)
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();
14702 if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14704 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14709 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14720 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14722 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14723 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14724 ol_link_threads=posix
14728 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14729 if test "$ol_link_threads" = no ; then
14730 # try -lpthreads -lmach -lexc
14731 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14732 echo "configure:14733: checking for pthread link with -lpthreads -lmach -lexc" >&5
14733 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14734 echo $ac_n "(cached) $ac_c" 1>&6
14739 LIBS="-lpthreads -lmach -lexc $LIBS"
14741 if test "$cross_compiling" = yes; then
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14745 /* pthread test headers */
14746 #include <pthread.h>
14748 #define NULL (void*)0
14751 static void *task(p)
14754 return (void *) (p == NULL);
14759 /* pthread test function */
14764 #ifdef HAVE_PTHREADS_FINAL
14765 /* Final pthreads */
14766 pthread_attr_t attr;
14768 status = pthread_attr_init(&attr);
14769 if( status ) return status;
14771 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14773 #if defined( PTHREAD_CREATE_JOINABLE )
14774 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14776 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14779 #ifdef PTHREAD_CREATE_DETACHED
14781 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14784 if( status ) return status;
14787 status = pthread_create( &t, &attr, task, NULL );
14788 if( status ) return status;
14790 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14792 /* give thread a chance to complete */
14793 /* it should remain joinable and hence detachable */
14796 status = pthread_detach( t );
14797 if( status ) return status;
14802 /* Draft 4 pthreads */
14803 status = pthread_create( &t, pthread_attr_default, task, NULL );
14804 if( status ) return status;
14807 /* give thread a chance to complete */
14808 /* it should remain joinable and hence detachable */
14811 status = pthread_detach( &t );
14812 if( status ) return status;
14816 #ifdef HAVE_LINUX_THREADS
14817 pthread_kill_other_threads_np();
14824 if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14826 ol_cv_pthread_lpthreads_lmach_lexc=yes
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14831 ol_cv_pthread_lpthreads_lmach_lexc=no
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14838 /* pthread test headers */
14839 #include <pthread.h>
14841 #define NULL (void*)0
14844 static void *task(p)
14847 return (void *) (p == NULL);
14851 int main(argc, argv)
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();
14922 if { (eval echo configure:14923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14924 ol_cv_pthread_lpthreads_lmach_lexc=yes
14926 echo "configure: failed program was:" >&5
14927 cat conftest.$ac_ext >&5
14929 ol_cv_pthread_lpthreads_lmach_lexc=no
14940 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14942 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14943 ol_link_pthreads="-lpthreads -lmach -lexc"
14944 ol_link_threads=posix
14948 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14949 if test "$ol_link_threads" = no ; then
14950 # try -lpthreads -lexc
14951 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14952 echo "configure:14953: checking for pthread link with -lpthreads -lexc" >&5
14953 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
14959 LIBS="-lpthreads -lexc $LIBS"
14961 if test "$cross_compiling" = yes; then
14962 cat > conftest.$ac_ext <<EOF
14963 #line 14964 "configure"
14964 #include "confdefs.h"
14965 /* pthread test headers */
14966 #include <pthread.h>
14968 #define NULL (void*)0
14971 static void *task(p)
14974 return (void *) (p == NULL);
14979 /* pthread test function */
14984 #ifdef HAVE_PTHREADS_FINAL
14985 /* Final pthreads */
14986 pthread_attr_t attr;
14988 status = pthread_attr_init(&attr);
14989 if( status ) return status;
14991 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14993 #if defined( PTHREAD_CREATE_JOINABLE )
14994 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14999 #ifdef PTHREAD_CREATE_DETACHED
15001 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15004 if( status ) return status;
15007 status = pthread_create( &t, &attr, task, NULL );
15008 if( status ) return status;
15010 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15012 /* give thread a chance to complete */
15013 /* it should remain joinable and hence detachable */
15016 status = pthread_detach( t );
15017 if( status ) return status;
15022 /* Draft 4 pthreads */
15023 status = pthread_create( &t, pthread_attr_default, task, NULL );
15024 if( status ) return status;
15027 /* give thread a chance to complete */
15028 /* it should remain joinable and hence detachable */
15031 status = pthread_detach( &t );
15032 if( status ) return status;
15036 #ifdef HAVE_LINUX_THREADS
15037 pthread_kill_other_threads_np();
15044 if { (eval echo configure:15045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15046 ol_cv_pthread_lpthreads_lexc=yes
15048 echo "configure: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15051 ol_cv_pthread_lpthreads_lexc=no
15055 cat > conftest.$ac_ext <<EOF
15056 #line 15057 "configure"
15057 #include "confdefs.h"
15058 /* pthread test headers */
15059 #include <pthread.h>
15061 #define NULL (void*)0
15064 static void *task(p)
15067 return (void *) (p == NULL);
15071 int main(argc, argv)
15076 /* pthread test function */
15081 #ifdef HAVE_PTHREADS_FINAL
15082 /* Final pthreads */
15083 pthread_attr_t attr;
15085 status = pthread_attr_init(&attr);
15086 if( status ) return status;
15088 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15090 #if defined( PTHREAD_CREATE_JOINABLE )
15091 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15093 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15096 #ifdef PTHREAD_CREATE_DETACHED
15098 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15101 if( status ) return status;
15104 status = pthread_create( &t, &attr, task, NULL );
15105 if( status ) return status;
15107 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15109 /* give thread a chance to complete */
15110 /* it should remain joinable and hence detachable */
15113 status = pthread_detach( t );
15114 if( status ) return status;
15119 /* Draft 4 pthreads */
15120 status = pthread_create( &t, pthread_attr_default, task, NULL );
15121 if( status ) return status;
15124 /* give thread a chance to complete */
15125 /* it should remain joinable and hence detachable */
15128 status = pthread_detach( &t );
15129 if( status ) return status;
15133 #ifdef HAVE_LINUX_THREADS
15134 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} && (./conftest; exit) 2>/dev/null
15144 ol_cv_pthread_lpthreads_lexc=yes
15146 echo "configure: failed program was:" >&5
15147 cat conftest.$ac_ext >&5
15149 ol_cv_pthread_lpthreads_lexc=no
15160 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15162 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15163 ol_link_pthreads="-lpthreads -lexc"
15164 ol_link_threads=posix
15169 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15170 if test "$ol_link_threads" = no ; then
15172 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15173 echo "configure:15174: checking for pthread link with -lpthreads" >&5
15174 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
15180 LIBS="-lpthreads $LIBS"
15182 if test "$cross_compiling" = yes; then
15183 cat > conftest.$ac_ext <<EOF
15184 #line 15185 "configure"
15185 #include "confdefs.h"
15186 /* pthread test headers */
15187 #include <pthread.h>
15189 #define NULL (void*)0
15192 static void *task(p)
15195 return (void *) (p == NULL);
15200 /* pthread test function */
15205 #ifdef HAVE_PTHREADS_FINAL
15206 /* Final pthreads */
15207 pthread_attr_t attr;
15209 status = pthread_attr_init(&attr);
15210 if( status ) return status;
15212 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15214 #if defined( PTHREAD_CREATE_JOINABLE )
15215 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15217 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15220 #ifdef PTHREAD_CREATE_DETACHED
15222 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15225 if( status ) return status;
15228 status = pthread_create( &t, &attr, task, NULL );
15229 if( status ) return status;
15231 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15233 /* give thread a chance to complete */
15234 /* it should remain joinable and hence detachable */
15237 status = pthread_detach( t );
15238 if( status ) return status;
15243 /* Draft 4 pthreads */
15244 status = pthread_create( &t, pthread_attr_default, task, NULL );
15245 if( status ) return status;
15248 /* give thread a chance to complete */
15249 /* it should remain joinable and hence detachable */
15252 status = pthread_detach( &t );
15253 if( status ) return status;
15257 #ifdef HAVE_LINUX_THREADS
15258 pthread_kill_other_threads_np();
15265 if { (eval echo configure:15266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15267 ol_cv_pthread_lib_lpthreads=yes
15269 echo "configure: failed program was:" >&5
15270 cat conftest.$ac_ext >&5
15272 ol_cv_pthread_lib_lpthreads=no
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 /* pthread test headers */
15280 #include <pthread.h>
15282 #define NULL (void*)0
15285 static void *task(p)
15288 return (void *) (p == NULL);
15292 int main(argc, argv)
15297 /* pthread test function */
15302 #ifdef HAVE_PTHREADS_FINAL
15303 /* Final pthreads */
15304 pthread_attr_t attr;
15306 status = pthread_attr_init(&attr);
15307 if( status ) return status;
15309 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15311 #if defined( PTHREAD_CREATE_JOINABLE )
15312 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15314 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15317 #ifdef PTHREAD_CREATE_DETACHED
15319 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15322 if( status ) return status;
15325 status = pthread_create( &t, &attr, task, NULL );
15326 if( status ) return status;
15328 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15330 /* give thread a chance to complete */
15331 /* it should remain joinable and hence detachable */
15334 status = pthread_detach( t );
15335 if( status ) return status;
15340 /* Draft 4 pthreads */
15341 status = pthread_create( &t, pthread_attr_default, task, NULL );
15342 if( status ) return status;
15345 /* give thread a chance to complete */
15346 /* it should remain joinable and hence detachable */
15349 status = pthread_detach( &t );
15350 if( status ) return status;
15354 #ifdef HAVE_LINUX_THREADS
15355 pthread_kill_other_threads_np();
15363 if { (eval echo configure:15364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15365 ol_cv_pthread_lib_lpthreads=yes
15367 echo "configure: failed program was:" >&5
15368 cat conftest.$ac_ext >&5
15370 ol_cv_pthread_lib_lpthreads=no
15381 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15383 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15384 ol_link_pthreads="-lpthreads"
15385 ol_link_threads=posix
15390 if test $ol_link_threads != no ; then
15391 cat >> confdefs.h <<\EOF
15392 #define HAVE_PTHREADS 1
15396 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15398 save_CPPFLAGS="$CPPFLAGS"
15400 LIBS="$LTHREAD_LIBS $LIBS"
15402 for ac_func in sched_yield pthread_yield
15404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15405 echo "configure:15406: checking for $ac_func" >&5
15406 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15409 cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 /* System header to define __stub macros and hopefully few prototypes,
15413 which can conflict with char $ac_func(); below. */
15414 #include <assert.h>
15415 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15423 /* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15434 if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15436 eval "ac_cv_func_$ac_func=yes"
15438 echo "configure: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15441 eval "ac_cv_func_$ac_func=no"
15446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15447 echo "$ac_t""yes" 1>&6
15448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15449 cat >> confdefs.h <<EOF
15450 #define $ac_tr_func 1
15454 echo "$ac_t""no" 1>&6
15459 if test $ac_cv_func_sched_yield = no -a \
15460 $ac_cv_func_pthread_yield = no ; then
15461 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15462 echo "configure:15463: checking for sched_yield in -lrt" >&5
15463 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15467 ac_save_LIBS="$LIBS"
15469 cat > conftest.$ac_ext <<EOF
15470 #line 15471 "configure"
15471 #include "confdefs.h"
15472 /* Override any gcc2 internal prototype to avoid an error. */
15473 /* We use char because int might match the return type of a gcc2
15474 builtin and then its argument prototype would still apply. */
15475 char sched_yield();
15481 if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15483 eval "ac_cv_lib_$ac_lib_var=yes"
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15488 eval "ac_cv_lib_$ac_lib_var=no"
15491 LIBS="$ac_save_LIBS"
15494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15495 echo "$ac_t""yes" 1>&6
15496 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15497 cat >> confdefs.h <<\EOF
15498 #define HAVE_SCHED_YIELD 1
15501 ac_cv_func_sched_yield=yes
15503 echo "$ac_t""no" 1>&6
15504 ac_cv_func_sched_yield=no
15508 if test $ac_cv_func_sched_yield = no -a \
15509 $ac_cv_func_pthread_yield = no ; then
15510 for ac_func in thr_yield
15512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15513 echo "configure:15514: checking for $ac_func" >&5
15514 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
15517 cat > conftest.$ac_ext <<EOF
15518 #line 15519 "configure"
15519 #include "confdefs.h"
15520 /* System header to define __stub macros and hopefully few prototypes,
15521 which can conflict with char $ac_func(); below. */
15522 #include <assert.h>
15523 /* Override any gcc2 internal prototype to avoid an error. */
15524 /* We use char because int might match the return type of a gcc2
15525 builtin and then its argument prototype would still apply. */
15531 /* The GNU C library defines this for functions which it implements
15532 to always fail with ENOSYS. Some functions are actually named
15533 something starting with __ and the normal name is an alias. */
15534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15542 if { (eval echo configure:15543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15544 eval "ac_cv_func_$ac_func=yes"
15546 echo "configure: failed program was:" >&5
15547 cat conftest.$ac_ext >&5
15549 eval "ac_cv_func_$ac_func=no"
15554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15555 echo "$ac_t""yes" 1>&6
15556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15557 cat >> confdefs.h <<EOF
15558 #define $ac_tr_func 1
15562 echo "$ac_t""no" 1>&6
15567 if test $ac_cv_func_sched_yield = no -a \
15568 $ac_cv_func_pthread_yield = no -a \
15569 "$ac_cv_func_thr_yield" = no ; then
15570 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15573 for ac_func in pthread_kill pthread_rwlock_destroy
15575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15576 echo "configure:15577: checking for $ac_func" >&5
15577 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15578 echo $ac_n "(cached) $ac_c" 1>&6
15580 cat > conftest.$ac_ext <<EOF
15581 #line 15582 "configure"
15582 #include "confdefs.h"
15583 /* System header to define __stub macros and hopefully few prototypes,
15584 which can conflict with char $ac_func(); below. */
15585 #include <assert.h>
15586 /* Override any gcc2 internal prototype to avoid an error. */
15587 /* We use char because int might match the return type of a gcc2
15588 builtin and then its argument prototype would still apply. */
15594 /* The GNU C library defines this for functions which it implements
15595 to always fail with ENOSYS. Some functions are actually named
15596 something starting with __ and the normal name is an alias. */
15597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15605 if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15607 eval "ac_cv_func_$ac_func=yes"
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15612 eval "ac_cv_func_$ac_func=no"
15617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15618 echo "$ac_t""yes" 1>&6
15619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15620 cat >> confdefs.h <<EOF
15621 #define $ac_tr_func 1
15625 echo "$ac_t""no" 1>&6
15630 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15631 echo "configure:15632: checking for pthread_detach with <pthread.h>" >&5
15632 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15633 echo $ac_n "(cached) $ac_c" 1>&6
15636 cat > conftest.$ac_ext <<EOF
15637 #line 15638 "configure"
15638 #include "confdefs.h"
15640 #include <pthread.h>
15642 #define NULL (void*)0
15646 pthread_detach(NULL);
15649 if { (eval echo configure:15650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15651 ol_cv_func_pthread_detach=yes
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15656 ol_cv_func_pthread_detach=no
15662 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15664 if test $ol_cv_func_pthread_detach = no ; then
15665 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15668 cat >> confdefs.h <<\EOF
15669 #define HAVE_PTHREAD_DETACH 1
15674 pthread_setconcurrency \
15675 pthread_getconcurrency \
15676 thr_setconcurrency \
15677 thr_getconcurrency \
15680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15681 echo "configure:15682: checking for $ac_func" >&5
15682 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15683 echo $ac_n "(cached) $ac_c" 1>&6
15685 cat > conftest.$ac_ext <<EOF
15686 #line 15687 "configure"
15687 #include "confdefs.h"
15688 /* System header to define __stub macros and hopefully few prototypes,
15689 which can conflict with char $ac_func(); below. */
15690 #include <assert.h>
15691 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15699 /* The GNU C library defines this for functions which it implements
15700 to always fail with ENOSYS. Some functions are actually named
15701 something starting with __ and the normal name is an alias. */
15702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15710 if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15712 eval "ac_cv_func_$ac_func=yes"
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15717 eval "ac_cv_func_$ac_func=no"
15722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15723 echo "$ac_t""yes" 1>&6
15724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15725 cat >> confdefs.h <<EOF
15726 #define $ac_tr_func 1
15730 echo "$ac_t""no" 1>&6
15736 for ac_func in pthread_kill_other_threads_np
15738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15739 echo "configure:15740: checking for $ac_func" >&5
15740 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15741 echo $ac_n "(cached) $ac_c" 1>&6
15743 cat > conftest.$ac_ext <<EOF
15744 #line 15745 "configure"
15745 #include "confdefs.h"
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func(); below. */
15748 #include <assert.h>
15749 /* Override any gcc2 internal prototype to avoid an error. */
15750 /* We use char because int might match the return type of a gcc2
15751 builtin and then its argument prototype would still apply. */
15757 /* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
15760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15768 if { (eval echo configure:15769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15770 eval "ac_cv_func_$ac_func=yes"
15772 echo "configure: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15775 eval "ac_cv_func_$ac_func=no"
15780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
15782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15783 cat >> confdefs.h <<EOF
15784 #define $ac_tr_func 1
15788 echo "$ac_t""no" 1>&6
15792 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15793 echo "configure:15794: checking for LinuxThreads implementation" >&5
15794 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15795 echo $ac_n "(cached) $ac_c" 1>&6
15797 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15800 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15805 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15806 echo "configure:15807: checking for LinuxThreads consistency" >&5
15807 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15808 echo $ac_n "(cached) $ac_c" 1>&6
15811 if test $ol_cv_header_linux_threads = yes -a \
15812 $ol_cv_sys_linux_threads = yes; then
15813 ol_cv_linux_threads=yes
15814 elif test $ol_cv_header_linux_threads = no -a \
15815 $ol_cv_sys_linux_threads = no; then
15816 ol_cv_linux_threads=no
15818 ol_cv_linux_threads=error
15823 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15826 if test $ol_cv_linux_threads = error; then
15827 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15830 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15831 echo "configure:15832: checking if pthread_create() works" >&5
15832 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15833 echo $ac_n "(cached) $ac_c" 1>&6
15836 if test "$cross_compiling" = yes; then
15837 ol_cv_pthread_create_works=yes
15839 cat > conftest.$ac_ext <<EOF
15840 #line 15841 "configure"
15841 #include "confdefs.h"
15842 /* pthread test headers */
15843 #include <pthread.h>
15845 #define NULL (void*)0
15848 static void *task(p)
15851 return (void *) (p == NULL);
15855 int main(argc, argv)
15860 /* pthread test function */
15865 #ifdef HAVE_PTHREADS_FINAL
15866 /* Final pthreads */
15867 pthread_attr_t attr;
15869 status = pthread_attr_init(&attr);
15870 if( status ) return status;
15872 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15874 #if defined( PTHREAD_CREATE_JOINABLE )
15875 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15880 #ifdef PTHREAD_CREATE_DETACHED
15882 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15885 if( status ) return status;
15888 status = pthread_create( &t, &attr, task, NULL );
15889 if( status ) return status;
15891 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15893 /* give thread a chance to complete */
15894 /* it should remain joinable and hence detachable */
15897 status = pthread_detach( t );
15898 if( status ) return status;
15903 /* Draft 4 pthreads */
15904 status = pthread_create( &t, pthread_attr_default, task, NULL );
15905 if( status ) return status;
15908 /* give thread a chance to complete */
15909 /* it should remain joinable and hence detachable */
15912 status = pthread_detach( &t );
15913 if( status ) return status;
15917 #ifdef HAVE_LINUX_THREADS
15918 pthread_kill_other_threads_np();
15926 if { (eval echo configure:15927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15928 ol_cv_pthread_create_works=yes
15930 echo "configure: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15933 ol_cv_pthread_create_works=no
15940 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15942 if test $ol_cv_pthread_create_works = no ; then
15943 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15946 if test $ol_with_yielding_select = auto ; then
15947 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15948 echo "configure:15949: checking if select yields when using pthreads" >&5
15949 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15950 echo $ac_n "(cached) $ac_c" 1>&6
15953 if test "$cross_compiling" = yes; then
15954 ol_cv_pthread_select_yields=cross
15956 cat > conftest.$ac_ext <<EOF
15957 #line 15958 "configure"
15958 #include "confdefs.h"
15960 #include <sys/types.h>
15961 #include <sys/time.h>
15962 #include <unistd.h>
15963 #include <pthread.h>
15965 #define NULL (void*) 0
15968 static int fildes[2];
15970 static void *task(p)
15982 FD_SET(fildes[0], &rfds);
15984 /* we're not interested in any fds */
15985 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15992 exit(0); /* if we exit here, the select blocked the whole process */
15995 int main(argc, argv)
16001 /* create a pipe to select */
16002 if(pipe(&fildes[0])) {
16007 #ifdef HAVE_PTHREAD_SETCONCURRENCY
16008 (void) pthread_setconcurrency(2);
16010 #ifdef HAVE_THR_SETCONCURRENCY
16011 /* Set Solaris LWP concurrency to 2 */
16012 thr_setconcurrency(2);
16016 #if HAVE_PTHREADS_D4
16017 pthread_create(&t, pthread_attr_default, task, NULL);
16019 pthread_create(&t, NULL, task, NULL);
16022 #if HAVE_SCHED_YIELD
16023 sched_yield(); /* make sure task runs first */
16025 #ifdef HAVE_PTHREAD_YIELD
16026 pthread_yield(); /* make sure task runs first */
16033 if { (eval echo configure:16034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16035 ol_cv_pthread_select_yields=no
16037 echo "configure: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16040 ol_cv_pthread_select_yields=yes
16047 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
16049 if test $ol_cv_pthread_select_yields = cross ; then
16050 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
16053 if test $ol_cv_pthread_select_yields = yes ; then
16054 ol_with_yielding_select=yes
16058 CPPFLAGS="$save_CPPFLAGS"
16061 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
16065 if test $ol_with_threads = posix ; then
16066 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
16070 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16071 -o $ol_with_threads = mach ; then
16073 for ac_hdr in mach/cthreads.h cthreads.h
16075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16077 echo "configure:16078: checking for $ac_hdr" >&5
16078 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16079 echo $ac_n "(cached) $ac_c" 1>&6
16081 cat > conftest.$ac_ext <<EOF
16082 #line 16083 "configure"
16083 #include "confdefs.h"
16086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16087 { (eval echo configure:16088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16089 if test -z "$ac_err"; then
16091 eval "ac_cv_header_$ac_safe=yes"
16094 echo "configure: failed program was:" >&5
16095 cat conftest.$ac_ext >&5
16097 eval "ac_cv_header_$ac_safe=no"
16101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16102 echo "$ac_t""yes" 1>&6
16103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16104 cat >> confdefs.h <<EOF
16105 #define $ac_tr_hdr 1
16109 echo "$ac_t""no" 1>&6
16113 if test $ac_cv_header_mach_cthreads_h = yes ; then
16114 ol_with_threads=found
16116 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16117 echo "configure:16118: checking for cthread_fork" >&5
16118 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16119 echo $ac_n "(cached) $ac_c" 1>&6
16121 cat > conftest.$ac_ext <<EOF
16122 #line 16123 "configure"
16123 #include "confdefs.h"
16124 /* System header to define __stub macros and hopefully few prototypes,
16125 which can conflict with char cthread_fork(); below. */
16126 #include <assert.h>
16127 /* Override any gcc2 internal prototype to avoid an error. */
16128 /* We use char because int might match the return type of a gcc2
16129 builtin and then its argument prototype would still apply. */
16130 char cthread_fork();
16135 /* The GNU C library defines this for functions which it implements
16136 to always fail with ENOSYS. Some functions are actually named
16137 something starting with __ and the normal name is an alias. */
16138 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16146 if { (eval echo configure:16147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16148 eval "ac_cv_func_cthread_fork=yes"
16150 echo "configure: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16153 eval "ac_cv_func_cthread_fork=no"
16158 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16159 echo "$ac_t""yes" 1>&6
16160 ol_link_threads=yes
16162 echo "$ac_t""no" 1>&6
16166 if test $ol_link_threads = no ; then
16167 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16168 echo "configure:16169: checking for cthread_fork with -all_load" >&5
16169 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16170 echo $ac_n "(cached) $ac_c" 1>&6
16174 LIBS="-all_load $LIBS"
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 #include <mach/cthreads.h>
16181 cthread_fork((void *)0, (void *)0);
16185 if { (eval echo configure:16186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16187 ol_cv_cthread_all_load=yes
16189 echo "configure: failed program was:" >&5
16190 cat conftest.$ac_ext >&5
16192 ol_cv_cthread_all_load=no
16199 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16201 if test $ol_cv_cthread_all_load = yes ; then
16202 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16203 ol_link_threads=mach
16204 ol_with_threads=found
16208 elif test $ac_cv_header_cthreads_h = yes ; then
16210 ol_with_threads=found
16213 LIBS="$LIBS -lthreads"
16214 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16215 echo "configure:16216: checking for cthread_fork" >&5
16216 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16217 echo $ac_n "(cached) $ac_c" 1>&6
16219 cat > conftest.$ac_ext <<EOF
16220 #line 16221 "configure"
16221 #include "confdefs.h"
16222 /* System header to define __stub macros and hopefully few prototypes,
16223 which can conflict with char cthread_fork(); below. */
16224 #include <assert.h>
16225 /* Override any gcc2 internal prototype to avoid an error. */
16226 /* We use char because int might match the return type of a gcc2
16227 builtin and then its argument prototype would still apply. */
16228 char cthread_fork();
16233 /* The GNU C library defines this for functions which it implements
16234 to always fail with ENOSYS. Some functions are actually named
16235 something starting with __ and the normal name is an alias. */
16236 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16244 if { (eval echo configure:16245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16246 eval "ac_cv_func_cthread_fork=yes"
16248 echo "configure: failed program was:" >&5
16249 cat conftest.$ac_ext >&5
16251 eval "ac_cv_func_cthread_fork=no"
16256 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16257 echo "$ac_t""yes" 1>&6
16258 ol_link_threads=yes
16260 echo "$ac_t""no" 1>&6
16265 if test $ol_link_threads = yes ; then
16266 LTHREAD_LIBS="-lthreads"
16267 ol_link_threads=mach
16268 ol_with_threads=found
16270 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16273 elif test $ol_with_threads = mach ; then
16274 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16277 if test $ol_link_threads = mach ; then
16278 cat >> confdefs.h <<\EOF
16279 #define HAVE_MACH_CTHREADS 1
16282 elif test $ol_with_threads = found ; then
16283 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16287 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16288 -o $ol_with_threads = pth ; then
16290 for ac_hdr in pth.h
16292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16294 echo "configure:16295: checking for $ac_hdr" >&5
16295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16296 echo $ac_n "(cached) $ac_c" 1>&6
16298 cat > conftest.$ac_ext <<EOF
16299 #line 16300 "configure"
16300 #include "confdefs.h"
16303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16304 { (eval echo configure:16305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16306 if test -z "$ac_err"; then
16308 eval "ac_cv_header_$ac_safe=yes"
16311 echo "configure: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16314 eval "ac_cv_header_$ac_safe=no"
16318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
16320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16321 cat >> confdefs.h <<EOF
16322 #define $ac_tr_hdr 1
16326 echo "$ac_t""no" 1>&6
16331 if test $ac_cv_header_pth_h = yes ; then
16332 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16333 echo "configure:16334: checking for pth_version in -lpth" >&5
16334 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16335 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16336 echo $ac_n "(cached) $ac_c" 1>&6
16338 ac_save_LIBS="$LIBS"
16340 cat > conftest.$ac_ext <<EOF
16341 #line 16342 "configure"
16342 #include "confdefs.h"
16343 /* Override any gcc2 internal prototype to avoid an error. */
16344 /* We use char because int might match the return type of a gcc2
16345 builtin and then its argument prototype would still apply. */
16346 char pth_version();
16352 if { (eval echo configure:16353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16354 eval "ac_cv_lib_$ac_lib_var=yes"
16356 echo "configure: failed program was:" >&5
16357 cat conftest.$ac_ext >&5
16359 eval "ac_cv_lib_$ac_lib_var=no"
16362 LIBS="$ac_save_LIBS"
16365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16366 echo "$ac_t""yes" 1>&6
16369 echo "$ac_t""no" 1>&6
16374 if test $have_pth = yes ; then
16375 cat >> confdefs.h <<\EOF
16376 #define HAVE_GNU_PTH 1
16379 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16380 ol_link_threads=pth
16381 ol_with_threads=found
16383 if test $ol_with_yielding_select = auto ; then
16384 ol_with_yielding_select=yes
16390 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16391 -o $ol_with_threads = lwp ; then
16393 for ac_hdr in thread.h synch.h
16395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16397 echo "configure:16398: checking for $ac_hdr" >&5
16398 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16399 echo $ac_n "(cached) $ac_c" 1>&6
16401 cat > conftest.$ac_ext <<EOF
16402 #line 16403 "configure"
16403 #include "confdefs.h"
16406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16407 { (eval echo configure:16408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16409 if test -z "$ac_err"; then
16411 eval "ac_cv_header_$ac_safe=yes"
16414 echo "configure: failed program was:" >&5
16415 cat conftest.$ac_ext >&5
16417 eval "ac_cv_header_$ac_safe=no"
16421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16422 echo "$ac_t""yes" 1>&6
16423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16424 cat >> confdefs.h <<EOF
16425 #define $ac_tr_hdr 1
16429 echo "$ac_t""no" 1>&6
16433 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16434 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16435 echo "configure:16436: checking for thr_create in -lthread" >&5
16436 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16437 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16438 echo $ac_n "(cached) $ac_c" 1>&6
16440 ac_save_LIBS="$LIBS"
16441 LIBS="-lthread $LIBS"
16442 cat > conftest.$ac_ext <<EOF
16443 #line 16444 "configure"
16444 #include "confdefs.h"
16445 /* Override any gcc2 internal prototype to avoid an error. */
16446 /* We use char because int might match the return type of a gcc2
16447 builtin and then its argument prototype would still apply. */
16454 if { (eval echo configure:16455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16456 eval "ac_cv_lib_$ac_lib_var=yes"
16458 echo "configure: failed program was:" >&5
16459 cat conftest.$ac_ext >&5
16461 eval "ac_cv_lib_$ac_lib_var=no"
16464 LIBS="$ac_save_LIBS"
16467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16468 echo "$ac_t""yes" 1>&6
16471 echo "$ac_t""no" 1>&6
16476 if test $have_thr = yes ; then
16477 cat >> confdefs.h <<\EOF
16481 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16482 ol_link_threads=thr
16484 if test $ol_with_yielding_select = auto ; then
16485 ol_with_yielding_select=yes
16489 thr_setconcurrency \
16490 thr_getconcurrency \
16493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16494 echo "configure:16495: checking for $ac_func" >&5
16495 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16496 echo $ac_n "(cached) $ac_c" 1>&6
16498 cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 /* System header to define __stub macros and hopefully few prototypes,
16502 which can conflict with char $ac_func(); below. */
16503 #include <assert.h>
16504 /* Override any gcc2 internal prototype to avoid an error. */
16505 /* We use char because int might match the return type of a gcc2
16506 builtin and then its argument prototype would still apply. */
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16523 if { (eval echo configure:16524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16525 eval "ac_cv_func_$ac_func=yes"
16527 echo "configure: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16530 eval "ac_cv_func_$ac_func=no"
16535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16536 echo "$ac_t""yes" 1>&6
16537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16538 cat >> confdefs.h <<EOF
16539 #define $ac_tr_func 1
16543 echo "$ac_t""no" 1>&6
16550 for ac_hdr in lwp/lwp.h
16552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16554 echo "configure:16555: checking for $ac_hdr" >&5
16555 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16556 echo $ac_n "(cached) $ac_c" 1>&6
16558 cat > conftest.$ac_ext <<EOF
16559 #line 16560 "configure"
16560 #include "confdefs.h"
16563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16564 { (eval echo configure:16565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16566 if test -z "$ac_err"; then
16568 eval "ac_cv_header_$ac_safe=yes"
16571 echo "configure: failed program was:" >&5
16572 cat conftest.$ac_ext >&5
16574 eval "ac_cv_header_$ac_safe=no"
16578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16579 echo "$ac_t""yes" 1>&6
16580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16581 cat >> confdefs.h <<EOF
16582 #define $ac_tr_hdr 1
16586 echo "$ac_t""no" 1>&6
16590 if test $ac_cv_header_lwp_lwp_h = yes ; then
16591 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16592 echo "configure:16593: checking for lwp_create in -llwp" >&5
16593 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16595 echo $ac_n "(cached) $ac_c" 1>&6
16597 ac_save_LIBS="$LIBS"
16599 cat > conftest.$ac_ext <<EOF
16600 #line 16601 "configure"
16601 #include "confdefs.h"
16602 /* Override any gcc2 internal prototype to avoid an error. */
16603 /* We use char because int might match the return type of a gcc2
16604 builtin and then its argument prototype would still apply. */
16611 if { (eval echo configure:16612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16613 eval "ac_cv_lib_$ac_lib_var=yes"
16615 echo "configure: failed program was:" >&5
16616 cat conftest.$ac_ext >&5
16618 eval "ac_cv_lib_$ac_lib_var=no"
16621 LIBS="$ac_save_LIBS"
16624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16625 echo "$ac_t""yes" 1>&6
16628 echo "$ac_t""no" 1>&6
16633 if test $have_lwp = yes ; then
16634 cat >> confdefs.h <<\EOF
16638 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16639 ol_link_threads=lwp
16641 if test $ol_with_yielding_select = auto ; then
16642 ol_with_yielding_select=no
16648 if test $ol_with_yielding_select = yes ; then
16649 cat >> confdefs.h <<\EOF
16650 #define HAVE_YIELDING_SELECT 1
16655 if test $ol_with_threads = manual ; then
16656 ol_link_threads=yes
16658 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16660 for ac_hdr in pthread.h sched.h
16662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16664 echo "configure:16665: checking for $ac_hdr" >&5
16665 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16666 echo $ac_n "(cached) $ac_c" 1>&6
16668 cat > conftest.$ac_ext <<EOF
16669 #line 16670 "configure"
16670 #include "confdefs.h"
16673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16674 { (eval echo configure:16675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16676 if test -z "$ac_err"; then
16678 eval "ac_cv_header_$ac_safe=yes"
16681 echo "configure: failed program was:" >&5
16682 cat conftest.$ac_ext >&5
16684 eval "ac_cv_header_$ac_safe=no"
16688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16689 echo "$ac_t""yes" 1>&6
16690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16691 cat >> confdefs.h <<EOF
16692 #define $ac_tr_hdr 1
16696 echo "$ac_t""no" 1>&6
16700 for ac_func in sched_yield pthread_yield
16702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16703 echo "configure:16704: checking for $ac_func" >&5
16704 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16705 echo $ac_n "(cached) $ac_c" 1>&6
16707 cat > conftest.$ac_ext <<EOF
16708 #line 16709 "configure"
16709 #include "confdefs.h"
16710 /* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func(); below. */
16712 #include <assert.h>
16713 /* Override any gcc2 internal prototype to avoid an error. */
16714 /* We use char because int might match the return type of a gcc2
16715 builtin and then its argument prototype would still apply. */
16721 /* The GNU C library defines this for functions which it implements
16722 to always fail with ENOSYS. Some functions are actually named
16723 something starting with __ and the normal name is an alias. */
16724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16732 if { (eval echo configure:16733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16734 eval "ac_cv_func_$ac_func=yes"
16736 echo "configure: failed program was:" >&5
16737 cat conftest.$ac_ext >&5
16739 eval "ac_cv_func_$ac_func=no"
16744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16745 echo "$ac_t""yes" 1>&6
16746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16747 cat >> confdefs.h <<EOF
16748 #define $ac_tr_func 1
16752 echo "$ac_t""no" 1>&6
16757 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16758 echo "configure:16759: checking for LinuxThreads pthread.h" >&5
16759 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16760 echo $ac_n "(cached) $ac_c" 1>&6
16762 cat > conftest.$ac_ext <<EOF
16763 #line 16764 "configure"
16764 #include "confdefs.h"
16765 #include <pthread.h>
16767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16768 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16770 ol_cv_header_linux_threads=yes
16773 ol_cv_header_linux_threads=no
16780 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16781 if test $ol_cv_header_linux_threads = yes; then
16782 cat >> confdefs.h <<\EOF
16783 #define HAVE_LINUX_THREADS 1
16789 for ac_hdr in mach/cthreads.h
16791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16793 echo "configure:16794: checking for $ac_hdr" >&5
16794 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16797 cat > conftest.$ac_ext <<EOF
16798 #line 16799 "configure"
16799 #include "confdefs.h"
16802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16803 { (eval echo configure:16804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16805 if test -z "$ac_err"; then
16807 eval "ac_cv_header_$ac_safe=yes"
16810 echo "configure: failed program was:" >&5
16811 cat conftest.$ac_ext >&5
16813 eval "ac_cv_header_$ac_safe=no"
16817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16818 echo "$ac_t""yes" 1>&6
16819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16820 cat >> confdefs.h <<EOF
16821 #define $ac_tr_hdr 1
16825 echo "$ac_t""no" 1>&6
16829 for ac_hdr in lwp/lwp.h
16831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16833 echo "configure:16834: checking for $ac_hdr" >&5
16834 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16835 echo $ac_n "(cached) $ac_c" 1>&6
16837 cat > conftest.$ac_ext <<EOF
16838 #line 16839 "configure"
16839 #include "confdefs.h"
16842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16843 { (eval echo configure:16844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16845 if test -z "$ac_err"; then
16847 eval "ac_cv_header_$ac_safe=yes"
16850 echo "configure: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16853 eval "ac_cv_header_$ac_safe=no"
16857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16858 echo "$ac_t""yes" 1>&6
16859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16860 cat >> confdefs.h <<EOF
16861 #define $ac_tr_hdr 1
16865 echo "$ac_t""no" 1>&6
16869 for ac_hdr in thread.h synch.h
16871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16873 echo "configure:16874: checking for $ac_hdr" >&5
16874 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16877 cat > conftest.$ac_ext <<EOF
16878 #line 16879 "configure"
16879 #include "confdefs.h"
16882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16883 { (eval echo configure:16884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16885 if test -z "$ac_err"; then
16887 eval "ac_cv_header_$ac_safe=yes"
16890 echo "configure: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16893 eval "ac_cv_header_$ac_safe=no"
16897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16898 echo "$ac_t""yes" 1>&6
16899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16900 cat >> confdefs.h <<EOF
16901 #define $ac_tr_hdr 1
16905 echo "$ac_t""no" 1>&6
16911 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16912 cat >> confdefs.h <<\EOF
16913 #define REENTRANT 1
16916 cat >> confdefs.h <<\EOF
16917 #define _REENTRANT 1
16920 cat >> confdefs.h <<\EOF
16921 #define THREAD_SAFE 1
16924 cat >> confdefs.h <<\EOF
16925 #define _THREAD_SAFE 1
16928 cat >> confdefs.h <<\EOF
16929 #define THREADSAFE 1
16932 cat >> confdefs.h <<\EOF
16933 #define _THREADSAFE 1
16936 cat >> confdefs.h <<\EOF
16937 #define _SGI_MP_SOURCE 1
16941 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16942 echo "configure:16943: checking for thread specific errno" >&5
16943 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16944 echo $ac_n "(cached) $ac_c" 1>&6
16947 cat > conftest.$ac_ext <<EOF
16948 #line 16949 "configure"
16949 #include "confdefs.h"
16955 if { (eval echo configure:16956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16957 ol_cv_errno_thread_specific=yes
16959 echo "configure: failed program was:" >&5
16960 cat conftest.$ac_ext >&5
16962 ol_cv_errno_thread_specific=no
16968 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16970 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16971 echo "configure:16972: checking for thread specific h_errno" >&5
16972 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16973 echo $ac_n "(cached) $ac_c" 1>&6
16976 cat > conftest.$ac_ext <<EOF
16977 #line 16978 "configure"
16978 #include "confdefs.h"
16984 if { (eval echo configure:16985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16986 ol_cv_h_errno_thread_specific=yes
16988 echo "configure: failed program was:" >&5
16989 cat conftest.$ac_ext >&5
16991 ol_cv_h_errno_thread_specific=no
16997 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16999 if test $ol_cv_errno_thread_specific != yes \
17000 -o $ol_cv_h_errno_thread_specific != yes ; then
17001 LIBS="$LTHREAD_LIBS $LIBS"
17007 if test $ol_link_threads = no ; then
17008 if test $ol_with_threads = yes ; then
17009 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
17012 if test $ol_with_threads = auto ; then
17013 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
17017 cat >> confdefs.h <<\EOF
17018 #define NO_THREADS 1
17024 if test $ol_link_threads != no ; then
17025 cat >> confdefs.h <<\EOF
17026 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
17033 if test $ol_with_ldbm_api = auto \
17034 -o $ol_with_ldbm_api = berkeley \
17035 -o $ol_with_ldbm_api = bcompat ; then
17037 if test $ol_with_ldbm_api = bcompat; then \
17038 for ac_hdr in db_185.h db.h
17040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17042 echo "configure:17043: checking for $ac_hdr" >&5
17043 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17044 echo $ac_n "(cached) $ac_c" 1>&6
17046 cat > conftest.$ac_ext <<EOF
17047 #line 17048 "configure"
17048 #include "confdefs.h"
17051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17052 { (eval echo configure:17053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17054 if test -z "$ac_err"; then
17056 eval "ac_cv_header_$ac_safe=yes"
17059 echo "configure: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17062 eval "ac_cv_header_$ac_safe=no"
17066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17067 echo "$ac_t""yes" 1>&6
17068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17069 cat >> confdefs.h <<EOF
17070 #define $ac_tr_hdr 1
17074 echo "$ac_t""no" 1>&6
17078 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17079 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17080 echo "configure:17081: checking if Berkeley DB header compatibility" >&5
17081 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17082 echo $ac_n "(cached) $ac_c" 1>&6
17085 cat > conftest.$ac_ext <<EOF
17086 #line 17087 "configure"
17087 #include "confdefs.h"
17090 # include <db_185.h>
17095 /* this check could be improved */
17096 #ifndef DB_VERSION_MAJOR
17097 # define DB_VERSION_MAJOR 1
17100 #if DB_VERSION_MAJOR == 1
17105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17106 egrep "__db_version_1" >/dev/null 2>&1; then
17108 ol_cv_header_db1=yes
17111 ol_cv_header_db1=no
17117 echo "$ac_t""$ol_cv_header_db1" 1>&6
17119 if test $ol_cv_header_db1 = yes ; then
17121 if test $ol_cv_lib_db = no ; then
17122 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17123 echo "configure:17124: checking for Berkeley DB link (default)" >&5
17124 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17125 echo $ac_n "(cached) $ac_c" 1>&6
17130 LIBS="$ol_DB_LIB $LIBS"
17132 cat > conftest.$ac_ext <<EOF
17133 #line 17134 "configure"
17134 #include "confdefs.h"
17136 #ifdef HAVE_DB_185_H
17137 # include <db_185.h>
17142 #ifndef DB_VERSION_MAJOR
17143 # define DB_VERSION_MAJOR 1
17147 #define NULL ((void*)0)
17152 #if DB_VERSION_MAJOR > 1
17155 int major, minor, patch;
17157 version = db_version( &major, &minor, &patch );
17159 if( major != DB_VERSION_MAJOR ||
17160 minor < DB_VERSION_MINOR )
17162 printf("Berkeley DB version mismatch\n"
17163 "\texpected: %s\n\tgot: %s\n",
17164 DB_VERSION_STRING, version);
17170 #if DB_VERSION_MAJOR > 2
17171 db_env_create( NULL, 0 );
17172 #elif DB_VERSION_MAJOR > 1
17173 db_appexit( NULL );
17175 (void) dbopen( NULL, 0, 0, 0, NULL);
17180 if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17195 echo "$ac_t""$ol_cv_db_none" 1>&6
17197 if test $ol_cv_db_none = yes ; then
17202 if test $ol_cv_lib_db = no ; then
17203 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17204 echo "configure:17205: checking for Berkeley DB link (-ldb4)" >&5
17205 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17211 LIBS="$ol_DB_LIB $LIBS"
17213 cat > conftest.$ac_ext <<EOF
17214 #line 17215 "configure"
17215 #include "confdefs.h"
17217 #ifdef HAVE_DB_185_H
17218 # include <db_185.h>
17223 #ifndef DB_VERSION_MAJOR
17224 # define DB_VERSION_MAJOR 1
17228 #define NULL ((void*)0)
17233 #if DB_VERSION_MAJOR > 1
17236 int major, minor, patch;
17238 version = db_version( &major, &minor, &patch );
17240 if( major != DB_VERSION_MAJOR ||
17241 minor < DB_VERSION_MINOR )
17243 printf("Berkeley DB version mismatch\n"
17244 "\texpected: %s\n\tgot: %s\n",
17245 DB_VERSION_STRING, version);
17251 #if DB_VERSION_MAJOR > 2
17252 db_env_create( NULL, 0 );
17253 #elif DB_VERSION_MAJOR > 1
17254 db_appexit( NULL );
17256 (void) dbopen( NULL, 0, 0, 0, NULL);
17261 if { (eval echo configure:17262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17265 echo "configure: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17276 echo "$ac_t""$ol_cv_db_db4" 1>&6
17278 if test $ol_cv_db_db4 = yes ; then
17283 if test $ol_cv_lib_db = no ; then
17284 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17285 echo "configure:17286: checking for Berkeley DB link (-ldb)" >&5
17286 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17287 echo $ac_n "(cached) $ac_c" 1>&6
17292 LIBS="$ol_DB_LIB $LIBS"
17294 cat > conftest.$ac_ext <<EOF
17295 #line 17296 "configure"
17296 #include "confdefs.h"
17298 #ifdef HAVE_DB_185_H
17299 # include <db_185.h>
17304 #ifndef DB_VERSION_MAJOR
17305 # define DB_VERSION_MAJOR 1
17309 #define NULL ((void*)0)
17314 #if DB_VERSION_MAJOR > 1
17317 int major, minor, patch;
17319 version = db_version( &major, &minor, &patch );
17321 if( major != DB_VERSION_MAJOR ||
17322 minor < DB_VERSION_MINOR )
17324 printf("Berkeley DB version mismatch\n"
17325 "\texpected: %s\n\tgot: %s\n",
17326 DB_VERSION_STRING, version);
17332 #if DB_VERSION_MAJOR > 2
17333 db_env_create( NULL, 0 );
17334 #elif DB_VERSION_MAJOR > 1
17335 db_appexit( NULL );
17337 (void) dbopen( NULL, 0, 0, 0, NULL);
17342 if { (eval echo configure:17343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17346 echo "configure: failed program was:" >&5
17347 cat conftest.$ac_ext >&5
17357 echo "$ac_t""$ol_cv_db_db" 1>&6
17359 if test $ol_cv_db_db = yes ; then
17364 if test $ol_cv_lib_db = no ; then
17365 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17366 echo "configure:17367: checking for Berkeley DB link (-ldb3)" >&5
17367 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17368 echo $ac_n "(cached) $ac_c" 1>&6
17373 LIBS="$ol_DB_LIB $LIBS"
17375 cat > conftest.$ac_ext <<EOF
17376 #line 17377 "configure"
17377 #include "confdefs.h"
17379 #ifdef HAVE_DB_185_H
17380 # include <db_185.h>
17385 #ifndef DB_VERSION_MAJOR
17386 # define DB_VERSION_MAJOR 1
17390 #define NULL ((void*)0)
17395 #if DB_VERSION_MAJOR > 1
17398 int major, minor, patch;
17400 version = db_version( &major, &minor, &patch );
17402 if( major != DB_VERSION_MAJOR ||
17403 minor < DB_VERSION_MINOR )
17405 printf("Berkeley DB version mismatch\n"
17406 "\texpected: %s\n\tgot: %s\n",
17407 DB_VERSION_STRING, version);
17413 #if DB_VERSION_MAJOR > 2
17414 db_env_create( NULL, 0 );
17415 #elif DB_VERSION_MAJOR > 1
17416 db_appexit( NULL );
17418 (void) dbopen( NULL, 0, 0, 0, NULL);
17423 if { (eval echo configure:17424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17427 echo "configure: failed program was:" >&5
17428 cat conftest.$ac_ext >&5
17438 echo "$ac_t""$ol_cv_db_db3" 1>&6
17440 if test $ol_cv_db_db3 = yes ; then
17445 if test $ol_cv_lib_db = no ; then
17446 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17447 echo "configure:17448: checking for Berkeley DB link (-ldb2)" >&5
17448 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17449 echo $ac_n "(cached) $ac_c" 1>&6
17454 LIBS="$ol_DB_LIB $LIBS"
17456 cat > conftest.$ac_ext <<EOF
17457 #line 17458 "configure"
17458 #include "confdefs.h"
17460 #ifdef HAVE_DB_185_H
17461 # include <db_185.h>
17466 #ifndef DB_VERSION_MAJOR
17467 # define DB_VERSION_MAJOR 1
17471 #define NULL ((void*)0)
17476 #if DB_VERSION_MAJOR > 1
17479 int major, minor, patch;
17481 version = db_version( &major, &minor, &patch );
17483 if( major != DB_VERSION_MAJOR ||
17484 minor < DB_VERSION_MINOR )
17486 printf("Berkeley DB version mismatch\n"
17487 "\texpected: %s\n\tgot: %s\n",
17488 DB_VERSION_STRING, version);
17494 #if DB_VERSION_MAJOR > 2
17495 db_env_create( NULL, 0 );
17496 #elif DB_VERSION_MAJOR > 1
17497 db_appexit( NULL );
17499 (void) dbopen( NULL, 0, 0, 0, NULL);
17504 if { (eval echo configure:17505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17508 echo "configure: failed program was:" >&5
17509 cat conftest.$ac_ext >&5
17519 echo "$ac_t""$ol_cv_db_db2" 1>&6
17521 if test $ol_cv_db_db2 = yes ; then
17526 if test $ol_cv_lib_db = no ; then
17527 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17528 echo "configure:17529: checking for Berkeley DB link (-ldb1)" >&5
17529 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17530 echo $ac_n "(cached) $ac_c" 1>&6
17535 LIBS="$ol_DB_LIB $LIBS"
17537 cat > conftest.$ac_ext <<EOF
17538 #line 17539 "configure"
17539 #include "confdefs.h"
17541 #ifdef HAVE_DB_185_H
17542 # include <db_185.h>
17547 #ifndef DB_VERSION_MAJOR
17548 # define DB_VERSION_MAJOR 1
17552 #define NULL ((void*)0)
17557 #if DB_VERSION_MAJOR > 1
17560 int major, minor, patch;
17562 version = db_version( &major, &minor, &patch );
17564 if( major != DB_VERSION_MAJOR ||
17565 minor < DB_VERSION_MINOR )
17567 printf("Berkeley DB version mismatch\n"
17568 "\texpected: %s\n\tgot: %s\n",
17569 DB_VERSION_STRING, version);
17575 #if DB_VERSION_MAJOR > 2
17576 db_env_create( NULL, 0 );
17577 #elif DB_VERSION_MAJOR > 1
17578 db_appexit( NULL );
17580 (void) dbopen( NULL, 0, 0, 0, NULL);
17585 if { (eval echo configure:17586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17589 echo "configure: failed program was:" >&5
17590 cat conftest.$ac_ext >&5
17600 echo "$ac_t""$ol_cv_db_db1" 1>&6
17602 if test $ol_cv_db_db1 = yes ; then
17608 if test "$ol_cv_lib_db" != no ; then
17609 ol_cv_berkeley_db=yes
17615 ol_cv_berkeley_db=no
17618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17620 echo "configure:17621: checking for $ac_hdr" >&5
17621 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17622 echo $ac_n "(cached) $ac_c" 1>&6
17624 cat > conftest.$ac_ext <<EOF
17625 #line 17626 "configure"
17626 #include "confdefs.h"
17629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17630 { (eval echo configure:17631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17632 if test -z "$ac_err"; then
17634 eval "ac_cv_header_$ac_safe=yes"
17637 echo "configure: failed program was:" >&5
17638 cat conftest.$ac_ext >&5
17640 eval "ac_cv_header_$ac_safe=no"
17644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17645 echo "$ac_t""yes" 1>&6
17646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17647 cat >> confdefs.h <<EOF
17648 #define $ac_tr_hdr 1
17652 echo "$ac_t""no" 1>&6
17656 if test $ac_cv_header_db_h = yes; then
17658 if test $ol_cv_lib_db = no ; then
17659 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17660 echo "configure:17661: checking for Berkeley DB link (default)" >&5
17661 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17662 echo $ac_n "(cached) $ac_c" 1>&6
17667 LIBS="$ol_DB_LIB $LIBS"
17669 cat > conftest.$ac_ext <<EOF
17670 #line 17671 "configure"
17671 #include "confdefs.h"
17673 #ifdef HAVE_DB_185_H
17674 # include <db_185.h>
17679 #ifndef DB_VERSION_MAJOR
17680 # define DB_VERSION_MAJOR 1
17684 #define NULL ((void*)0)
17689 #if DB_VERSION_MAJOR > 1
17692 int major, minor, patch;
17694 version = db_version( &major, &minor, &patch );
17696 if( major != DB_VERSION_MAJOR ||
17697 minor < DB_VERSION_MINOR )
17699 printf("Berkeley DB version mismatch\n"
17700 "\texpected: %s\n\tgot: %s\n",
17701 DB_VERSION_STRING, version);
17707 #if DB_VERSION_MAJOR > 2
17708 db_env_create( NULL, 0 );
17709 #elif DB_VERSION_MAJOR > 1
17710 db_appexit( NULL );
17712 (void) dbopen( NULL, 0, 0, 0, NULL);
17717 if { (eval echo configure:17718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17721 echo "configure: failed program was:" >&5
17722 cat conftest.$ac_ext >&5
17732 echo "$ac_t""$ol_cv_db_none" 1>&6
17734 if test $ol_cv_db_none = yes ; then
17739 if test $ol_cv_lib_db = no ; then
17740 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17741 echo "configure:17742: checking for Berkeley DB link (-ldb4)" >&5
17742 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17743 echo $ac_n "(cached) $ac_c" 1>&6
17748 LIBS="$ol_DB_LIB $LIBS"
17750 cat > conftest.$ac_ext <<EOF
17751 #line 17752 "configure"
17752 #include "confdefs.h"
17754 #ifdef HAVE_DB_185_H
17755 # include <db_185.h>
17760 #ifndef DB_VERSION_MAJOR
17761 # define DB_VERSION_MAJOR 1
17765 #define NULL ((void*)0)
17770 #if DB_VERSION_MAJOR > 1
17773 int major, minor, patch;
17775 version = db_version( &major, &minor, &patch );
17777 if( major != DB_VERSION_MAJOR ||
17778 minor < DB_VERSION_MINOR )
17780 printf("Berkeley DB version mismatch\n"
17781 "\texpected: %s\n\tgot: %s\n",
17782 DB_VERSION_STRING, version);
17788 #if DB_VERSION_MAJOR > 2
17789 db_env_create( NULL, 0 );
17790 #elif DB_VERSION_MAJOR > 1
17791 db_appexit( NULL );
17793 (void) dbopen( NULL, 0, 0, 0, NULL);
17798 if { (eval echo configure:17799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17802 echo "configure: failed program was:" >&5
17803 cat conftest.$ac_ext >&5
17813 echo "$ac_t""$ol_cv_db_db4" 1>&6
17815 if test $ol_cv_db_db4 = yes ; then
17820 if test $ol_cv_lib_db = no ; then
17821 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17822 echo "configure:17823: checking for Berkeley DB link (-ldb)" >&5
17823 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17824 echo $ac_n "(cached) $ac_c" 1>&6
17829 LIBS="$ol_DB_LIB $LIBS"
17831 cat > conftest.$ac_ext <<EOF
17832 #line 17833 "configure"
17833 #include "confdefs.h"
17835 #ifdef HAVE_DB_185_H
17836 # include <db_185.h>
17841 #ifndef DB_VERSION_MAJOR
17842 # define DB_VERSION_MAJOR 1
17846 #define NULL ((void*)0)
17851 #if DB_VERSION_MAJOR > 1
17854 int major, minor, patch;
17856 version = db_version( &major, &minor, &patch );
17858 if( major != DB_VERSION_MAJOR ||
17859 minor < DB_VERSION_MINOR )
17861 printf("Berkeley DB version mismatch\n"
17862 "\texpected: %s\n\tgot: %s\n",
17863 DB_VERSION_STRING, version);
17869 #if DB_VERSION_MAJOR > 2
17870 db_env_create( NULL, 0 );
17871 #elif DB_VERSION_MAJOR > 1
17872 db_appexit( NULL );
17874 (void) dbopen( NULL, 0, 0, 0, NULL);
17879 if { (eval echo configure:17880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17883 echo "configure: failed program was:" >&5
17884 cat conftest.$ac_ext >&5
17894 echo "$ac_t""$ol_cv_db_db" 1>&6
17896 if test $ol_cv_db_db = yes ; then
17901 if test $ol_cv_lib_db = no ; then
17902 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17903 echo "configure:17904: checking for Berkeley DB link (-ldb3)" >&5
17904 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17905 echo $ac_n "(cached) $ac_c" 1>&6
17910 LIBS="$ol_DB_LIB $LIBS"
17912 cat > conftest.$ac_ext <<EOF
17913 #line 17914 "configure"
17914 #include "confdefs.h"
17916 #ifdef HAVE_DB_185_H
17917 # include <db_185.h>
17922 #ifndef DB_VERSION_MAJOR
17923 # define DB_VERSION_MAJOR 1
17927 #define NULL ((void*)0)
17932 #if DB_VERSION_MAJOR > 1
17935 int major, minor, patch;
17937 version = db_version( &major, &minor, &patch );
17939 if( major != DB_VERSION_MAJOR ||
17940 minor < DB_VERSION_MINOR )
17942 printf("Berkeley DB version mismatch\n"
17943 "\texpected: %s\n\tgot: %s\n",
17944 DB_VERSION_STRING, version);
17950 #if DB_VERSION_MAJOR > 2
17951 db_env_create( NULL, 0 );
17952 #elif DB_VERSION_MAJOR > 1
17953 db_appexit( NULL );
17955 (void) dbopen( NULL, 0, 0, 0, NULL);
17960 if { (eval echo configure:17961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17964 echo "configure: failed program was:" >&5
17965 cat conftest.$ac_ext >&5
17975 echo "$ac_t""$ol_cv_db_db3" 1>&6
17977 if test $ol_cv_db_db3 = yes ; then
17982 if test $ol_cv_lib_db = no ; then
17983 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17984 echo "configure:17985: checking for Berkeley DB link (-ldb2)" >&5
17985 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17986 echo $ac_n "(cached) $ac_c" 1>&6
17991 LIBS="$ol_DB_LIB $LIBS"
17993 cat > conftest.$ac_ext <<EOF
17994 #line 17995 "configure"
17995 #include "confdefs.h"
17997 #ifdef HAVE_DB_185_H
17998 # include <db_185.h>
18003 #ifndef DB_VERSION_MAJOR
18004 # define DB_VERSION_MAJOR 1
18008 #define NULL ((void*)0)
18013 #if DB_VERSION_MAJOR > 1
18016 int major, minor, patch;
18018 version = db_version( &major, &minor, &patch );
18020 if( major != DB_VERSION_MAJOR ||
18021 minor < DB_VERSION_MINOR )
18023 printf("Berkeley DB version mismatch\n"
18024 "\texpected: %s\n\tgot: %s\n",
18025 DB_VERSION_STRING, version);
18031 #if DB_VERSION_MAJOR > 2
18032 db_env_create( NULL, 0 );
18033 #elif DB_VERSION_MAJOR > 1
18034 db_appexit( NULL );
18036 (void) dbopen( NULL, 0, 0, 0, NULL);
18041 if { (eval echo configure:18042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18045 echo "configure: failed program was:" >&5
18046 cat conftest.$ac_ext >&5
18056 echo "$ac_t""$ol_cv_db_db2" 1>&6
18058 if test $ol_cv_db_db2 = yes ; then
18063 if test $ol_cv_lib_db = no ; then
18064 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18065 echo "configure:18066: checking for Berkeley DB link (-ldb1)" >&5
18066 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18067 echo $ac_n "(cached) $ac_c" 1>&6
18072 LIBS="$ol_DB_LIB $LIBS"
18074 cat > conftest.$ac_ext <<EOF
18075 #line 18076 "configure"
18076 #include "confdefs.h"
18078 #ifdef HAVE_DB_185_H
18079 # include <db_185.h>
18084 #ifndef DB_VERSION_MAJOR
18085 # define DB_VERSION_MAJOR 1
18089 #define NULL ((void*)0)
18094 #if DB_VERSION_MAJOR > 1
18097 int major, minor, patch;
18099 version = db_version( &major, &minor, &patch );
18101 if( major != DB_VERSION_MAJOR ||
18102 minor < DB_VERSION_MINOR )
18104 printf("Berkeley DB version mismatch\n"
18105 "\texpected: %s\n\tgot: %s\n",
18106 DB_VERSION_STRING, version);
18112 #if DB_VERSION_MAJOR > 2
18113 db_env_create( NULL, 0 );
18114 #elif DB_VERSION_MAJOR > 1
18115 db_appexit( NULL );
18117 (void) dbopen( NULL, 0, 0, 0, NULL);
18122 if { (eval echo configure:18123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18126 echo "configure: failed program was:" >&5
18127 cat conftest.$ac_ext >&5
18137 echo "$ac_t""$ol_cv_db_db1" 1>&6
18139 if test $ol_cv_db_db1 = yes ; then
18145 if test "$ol_cv_lib_db" != no ; then
18146 ol_cv_berkeley_db=yes
18147 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18148 echo "configure:18149: checking for Berkeley DB thread support" >&5
18149 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18150 echo $ac_n "(cached) $ac_c" 1>&6
18154 if test $ol_cv_lib_db != yes ; then
18155 LIBS="$ol_cv_lib_db"
18158 if test "$cross_compiling" = yes; then
18159 ol_cv_berkeley_db_thread=cross
18161 cat > conftest.$ac_ext <<EOF
18162 #line 18163 "configure"
18163 #include "confdefs.h"
18165 #ifdef HAVE_DB_185_H
18171 #define NULL ((void *)0)
18176 u_int32_t flags = DB_CREATE |
18182 #if DB_VERSION_MAJOR > 2
18183 DB_ENV *env = NULL;
18185 rc = db_env_create( &env, 0 );
18187 flags |= DB_INIT_MPOOL;
18188 #ifdef DB_MPOOL_PRIVATE
18189 flags |= DB_MPOOL_PRIVATE;
18193 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18197 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18198 rc = env->open( env, NULL, flags, 0 );
18200 rc = env->open( env, NULL, NULL, flags, 0 );
18204 rc = env->close( env, 0 );
18208 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18214 memset( &env, '\0', sizeof(env) );
18216 rc = db_appinit( NULL, NULL, &env, flags );
18219 db_appexit( &env );
18222 unlink("__db_mpool.share");
18223 unlink("__db_lock.share");
18229 if { (eval echo configure:18230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18231 ol_cv_berkeley_db_thread=yes
18233 echo "configure: failed program was:" >&5
18234 cat conftest.$ac_ext >&5
18236 ol_cv_berkeley_db_thread=no
18244 if test $ol_cv_berkeley_db_thread != no ; then
18245 cat >> confdefs.h <<\EOF
18246 #define HAVE_BERKELEY_DB_THREAD 1
18253 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18259 if test $ol_cv_berkeley_db != no ; then
18260 cat >> confdefs.h <<\EOF
18261 #define HAVE_BERKELEY_DB 1
18265 ol_link_ldbm=berkeley
18266 ol_with_ldbm_api=berkeley
18268 if test $ol_with_ldbm_type = hash ; then
18269 cat >> confdefs.h <<\EOF
18270 #define LDBM_USE_DBHASH 1
18274 cat >> confdefs.h <<\EOF
18275 #define LDBM_USE_DBBTREE 1
18280 if test $ol_cv_lib_db != yes ; then
18281 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18286 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18287 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18288 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18289 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18290 echo "configure:18291: checking Berkeley DB version for BDB backend" >&5
18291 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18292 echo $ac_n "(cached) $ac_c" 1>&6
18295 cat > conftest.$ac_ext <<EOF
18296 #line 18297 "configure"
18297 #include "confdefs.h"
18301 /* this check could be improved */
18302 #ifndef DB_VERSION_MAJOR
18303 # define DB_VERSION_MAJOR 1
18306 /* require 4.0 or later */
18307 #if DB_VERSION_MAJOR >= 4
18308 __db_version_compat
18312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18313 egrep "__db_version_compat" >/dev/null 2>&1; then
18315 ol_cv_bdb_compat=yes
18318 ol_cv_bdb_compat=no
18324 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18327 if test $ol_cv_bdb_compat = yes ; then
18329 elif test $ol_enable_bdb = yes ; then
18330 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18336 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18337 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18338 ol_with_ldbm_api=none
18341 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18342 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18343 echo "configure:18344: checking for MDBM library" >&5
18344 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18345 echo $ac_n "(cached) $ac_c" 1>&6
18348 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18349 echo "configure:18350: checking for mdbm_set_chain" >&5
18350 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18351 echo $ac_n "(cached) $ac_c" 1>&6
18353 cat > conftest.$ac_ext <<EOF
18354 #line 18355 "configure"
18355 #include "confdefs.h"
18356 /* System header to define __stub macros and hopefully few prototypes,
18357 which can conflict with char mdbm_set_chain(); below. */
18358 #include <assert.h>
18359 /* Override any gcc2 internal prototype to avoid an error. */
18360 /* We use char because int might match the return type of a gcc2
18361 builtin and then its argument prototype would still apply. */
18362 char mdbm_set_chain();
18367 /* The GNU C library defines this for functions which it implements
18368 to always fail with ENOSYS. Some functions are actually named
18369 something starting with __ and the normal name is an alias. */
18370 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18373 f = mdbm_set_chain;
18378 if { (eval echo configure:18379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18380 eval "ac_cv_func_mdbm_set_chain=yes"
18382 echo "configure: failed program was:" >&5
18383 cat conftest.$ac_ext >&5
18385 eval "ac_cv_func_mdbm_set_chain=no"
18390 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18391 echo "$ac_t""yes" 1>&6
18394 echo "$ac_t""no" 1>&6
18396 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18397 echo "configure:18398: checking for mdbm_set_chain in -lmdbm" >&5
18398 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18399 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
18402 ac_save_LIBS="$LIBS"
18403 LIBS="-lmdbm $LIBS"
18404 cat > conftest.$ac_ext <<EOF
18405 #line 18406 "configure"
18406 #include "confdefs.h"
18407 /* Override any gcc2 internal prototype to avoid an error. */
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char mdbm_set_chain();
18416 if { (eval echo configure:18417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18418 eval "ac_cv_lib_$ac_lib_var=yes"
18420 echo "configure: failed program was:" >&5
18421 cat conftest.$ac_ext >&5
18423 eval "ac_cv_lib_$ac_lib_var=no"
18426 LIBS="$ac_save_LIBS"
18429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18430 echo "$ac_t""yes" 1>&6
18431 ol_cv_lib_mdbm=-lmdbm
18433 echo "$ac_t""no" 1>&6
18444 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18447 for ac_hdr in mdbm.h
18449 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18451 echo "configure:18452: checking for $ac_hdr" >&5
18452 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
18455 cat > conftest.$ac_ext <<EOF
18456 #line 18457 "configure"
18457 #include "confdefs.h"
18460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18461 { (eval echo configure:18462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18463 if test -z "$ac_err"; then
18465 eval "ac_cv_header_$ac_safe=yes"
18468 echo "configure: failed program was:" >&5
18469 cat conftest.$ac_ext >&5
18471 eval "ac_cv_header_$ac_safe=no"
18475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18476 echo "$ac_t""yes" 1>&6
18477 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18478 cat >> confdefs.h <<EOF
18479 #define $ac_tr_hdr 1
18483 echo "$ac_t""no" 1>&6
18487 echo $ac_n "checking for db""... $ac_c" 1>&6
18488 echo "configure:18489: checking for db" >&5
18489 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18490 echo $ac_n "(cached) $ac_c" 1>&6
18493 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18501 echo "$ac_t""$ol_cv_mdbm" 1>&6
18502 if test $ol_cv_mdbm = yes ; then
18503 cat >> confdefs.h <<\EOF
18504 #define HAVE_MDBM 1
18510 if test $ol_cv_mdbm = yes ; then
18512 ol_with_ldbm_api=mdbm
18513 if test $ol_cv_lib_mdbm != yes ; then
18514 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18519 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18520 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18521 echo "configure:18522: checking for GDBM library" >&5
18522 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18523 echo $ac_n "(cached) $ac_c" 1>&6
18526 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18527 echo "configure:18528: checking for gdbm_open" >&5
18528 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18529 echo $ac_n "(cached) $ac_c" 1>&6
18531 cat > conftest.$ac_ext <<EOF
18532 #line 18533 "configure"
18533 #include "confdefs.h"
18534 /* System header to define __stub macros and hopefully few prototypes,
18535 which can conflict with char gdbm_open(); below. */
18536 #include <assert.h>
18537 /* Override any gcc2 internal prototype to avoid an error. */
18538 /* We use char because int might match the return type of a gcc2
18539 builtin and then its argument prototype would still apply. */
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18556 if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18558 eval "ac_cv_func_gdbm_open=yes"
18560 echo "configure: failed program was:" >&5
18561 cat conftest.$ac_ext >&5
18563 eval "ac_cv_func_gdbm_open=no"
18568 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18569 echo "$ac_t""yes" 1>&6
18572 echo "$ac_t""no" 1>&6
18574 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18575 echo "configure:18576: checking for gdbm_open in -lgdbm" >&5
18576 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18577 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18578 echo $ac_n "(cached) $ac_c" 1>&6
18580 ac_save_LIBS="$LIBS"
18581 LIBS="-lgdbm $LIBS"
18582 cat > conftest.$ac_ext <<EOF
18583 #line 18584 "configure"
18584 #include "confdefs.h"
18585 /* Override any gcc2 internal prototype to avoid an error. */
18586 /* We use char because int might match the return type of a gcc2
18587 builtin and then its argument prototype would still apply. */
18594 if { (eval echo configure:18595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18596 eval "ac_cv_lib_$ac_lib_var=yes"
18598 echo "configure: failed program was:" >&5
18599 cat conftest.$ac_ext >&5
18601 eval "ac_cv_lib_$ac_lib_var=no"
18604 LIBS="$ac_save_LIBS"
18607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18608 echo "$ac_t""yes" 1>&6
18609 ol_cv_lib_gdbm=-lgdbm
18611 echo "$ac_t""no" 1>&6
18622 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18625 for ac_hdr in gdbm.h
18627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18629 echo "configure:18630: checking for $ac_hdr" >&5
18630 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18631 echo $ac_n "(cached) $ac_c" 1>&6
18633 cat > conftest.$ac_ext <<EOF
18634 #line 18635 "configure"
18635 #include "confdefs.h"
18638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18639 { (eval echo configure:18640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18641 if test -z "$ac_err"; then
18643 eval "ac_cv_header_$ac_safe=yes"
18646 echo "configure: failed program was:" >&5
18647 cat conftest.$ac_ext >&5
18649 eval "ac_cv_header_$ac_safe=no"
18653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18654 echo "$ac_t""yes" 1>&6
18655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18656 cat >> confdefs.h <<EOF
18657 #define $ac_tr_hdr 1
18661 echo "$ac_t""no" 1>&6
18665 echo $ac_n "checking for db""... $ac_c" 1>&6
18666 echo "configure:18667: checking for db" >&5
18667 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18668 echo $ac_n "(cached) $ac_c" 1>&6
18671 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18679 echo "$ac_t""$ol_cv_gdbm" 1>&6
18680 if test $ol_cv_gdbm = yes ; then
18681 cat >> confdefs.h <<\EOF
18682 #define HAVE_GDBM 1
18688 if test $ol_cv_gdbm = yes ; then
18690 ol_with_ldbm_api=gdbm
18692 if test $ol_cv_lib_gdbm != yes ; then
18693 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18698 if test $ol_with_ldbm_api = ndbm ; then
18699 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18700 echo "configure:18701: checking for NDBM library" >&5
18701 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18702 echo $ac_n "(cached) $ac_c" 1>&6
18705 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18706 echo "configure:18707: checking for dbm_open" >&5
18707 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18708 echo $ac_n "(cached) $ac_c" 1>&6
18710 cat > conftest.$ac_ext <<EOF
18711 #line 18712 "configure"
18712 #include "confdefs.h"
18713 /* System header to define __stub macros and hopefully few prototypes,
18714 which can conflict with char dbm_open(); below. */
18715 #include <assert.h>
18716 /* Override any gcc2 internal prototype to avoid an error. */
18717 /* We use char because int might match the return type of a gcc2
18718 builtin and then its argument prototype would still apply. */
18724 /* The GNU C library defines this for functions which it implements
18725 to always fail with ENOSYS. Some functions are actually named
18726 something starting with __ and the normal name is an alias. */
18727 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18735 if { (eval echo configure:18736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18737 eval "ac_cv_func_dbm_open=yes"
18739 echo "configure: failed program was:" >&5
18740 cat conftest.$ac_ext >&5
18742 eval "ac_cv_func_dbm_open=no"
18747 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18748 echo "$ac_t""yes" 1>&6
18751 echo "$ac_t""no" 1>&6
18753 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18754 echo "configure:18755: checking for dbm_open in -lndbm" >&5
18755 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18756 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18757 echo $ac_n "(cached) $ac_c" 1>&6
18759 ac_save_LIBS="$LIBS"
18760 LIBS="-lndbm $LIBS"
18761 cat > conftest.$ac_ext <<EOF
18762 #line 18763 "configure"
18763 #include "confdefs.h"
18764 /* Override any gcc2 internal prototype to avoid an error. */
18765 /* We use char because int might match the return type of a gcc2
18766 builtin and then its argument prototype would still apply. */
18773 if { (eval echo configure:18774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18775 eval "ac_cv_lib_$ac_lib_var=yes"
18777 echo "configure: failed program was:" >&5
18778 cat conftest.$ac_ext >&5
18780 eval "ac_cv_lib_$ac_lib_var=no"
18783 LIBS="$ac_save_LIBS"
18786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18787 echo "$ac_t""yes" 1>&6
18788 ol_cv_lib_ndbm=-lndbm
18790 echo "$ac_t""no" 1>&6
18792 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18793 echo "configure:18794: checking for dbm_open in -ldbm" >&5
18794 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18796 echo $ac_n "(cached) $ac_c" 1>&6
18798 ac_save_LIBS="$LIBS"
18800 cat > conftest.$ac_ext <<EOF
18801 #line 18802 "configure"
18802 #include "confdefs.h"
18803 /* Override any gcc2 internal prototype to avoid an error. */
18804 /* We use char because int might match the return type of a gcc2
18805 builtin and then its argument prototype would still apply. */
18812 if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18814 eval "ac_cv_lib_$ac_lib_var=yes"
18816 echo "configure: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18819 eval "ac_cv_lib_$ac_lib_var=no"
18822 LIBS="$ac_save_LIBS"
18825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18826 echo "$ac_t""yes" 1>&6
18827 ol_cv_lib_ndbm=-ldbm
18829 echo "$ac_t""no" 1>&6
18842 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18845 for ac_hdr in ndbm.h
18847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18849 echo "configure:18850: checking for $ac_hdr" >&5
18850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18851 echo $ac_n "(cached) $ac_c" 1>&6
18853 cat > conftest.$ac_ext <<EOF
18854 #line 18855 "configure"
18855 #include "confdefs.h"
18858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18859 { (eval echo configure:18860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18861 if test -z "$ac_err"; then
18863 eval "ac_cv_header_$ac_safe=yes"
18866 echo "configure: failed program was:" >&5
18867 cat conftest.$ac_ext >&5
18869 eval "ac_cv_header_$ac_safe=no"
18873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18874 echo "$ac_t""yes" 1>&6
18875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18876 cat >> confdefs.h <<EOF
18877 #define $ac_tr_hdr 1
18881 echo "$ac_t""no" 1>&6
18885 echo $ac_n "checking for db""... $ac_c" 1>&6
18886 echo "configure:18887: checking for db" >&5
18887 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18888 echo $ac_n "(cached) $ac_c" 1>&6
18891 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18899 echo "$ac_t""$ol_cv_ndbm" 1>&6
18900 if test $ol_cv_ndbm = yes ; then
18901 cat >> confdefs.h <<\EOF
18902 #define HAVE_NDBM 1
18908 if test $ol_cv_ndbm = yes ; then
18910 ol_with_ldbm_api=ndbm
18912 if test $ol_cv_lib_ndbm != yes ; then
18913 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18918 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18919 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18920 if test $ol_enable_ldbm = yes ; then
18921 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18924 echo "configure: warning: disabling LDBM" 1>&2
18928 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18929 BUILD_LIBS_DYNAMIC=shared
18930 cat >> confdefs.h <<\EOF
18931 #define LDAP_LIBS_DYNAMIC 1
18935 BUILD_LIBS_DYNAMIC=static
18938 if test $ol_enable_wrappers != no ; then
18939 for ac_hdr in tcpd.h
18941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18943 echo "configure:18944: checking for $ac_hdr" >&5
18944 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18945 echo $ac_n "(cached) $ac_c" 1>&6
18947 cat > conftest.$ac_ext <<EOF
18948 #line 18949 "configure"
18949 #include "confdefs.h"
18952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18953 { (eval echo configure:18954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18955 if test -z "$ac_err"; then
18957 eval "ac_cv_header_$ac_safe=yes"
18960 echo "configure: failed program was:" >&5
18961 cat conftest.$ac_ext >&5
18963 eval "ac_cv_header_$ac_safe=no"
18967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18968 echo "$ac_t""yes" 1>&6
18969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18970 cat >> confdefs.h <<EOF
18971 #define $ac_tr_hdr 1
18974 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18975 echo "configure:18976: checking for TCP wrappers library" >&5
18977 LIBS="$LIBS -lwrap"
18978 cat > conftest.$ac_ext <<EOF
18979 #line 18980 "configure"
18980 #include "confdefs.h"
18983 int allow_severity = 0;
18984 int deny_severity = 0;
18986 struct request_info *req;
18994 if { (eval echo configure:18995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18996 echo "$ac_t""-lwrap" 1>&6
19000 echo "configure: failed program was:" >&5
19001 cat conftest.$ac_ext >&5
19005 cat > conftest.$ac_ext <<EOF
19006 #line 19007 "configure"
19007 #include "confdefs.h"
19010 int allow_severity = 0;
19011 int deny_severity = 0;
19013 struct request_info *req;
19021 if { (eval echo configure:19022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19023 echo "$ac_t""-lwrap -lnsl" 1>&6
19025 LIBS="$save_LIBS -lnsl"
19027 echo "configure: failed program was:" >&5
19028 cat conftest.$ac_ext >&5
19031 echo "$ac_t""no" 1>&6
19039 echo "$ac_t""no" 1>&6
19045 if test $have_wrappers = yes ; then
19046 cat >> confdefs.h <<\EOF
19047 #define HAVE_TCPD 1
19051 elif test $ol_enable_wrappers = yes ; then
19052 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19054 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19059 if test $ol_enable_syslog != no ; then
19060 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19061 echo "configure:19062: checking for openlog" >&5
19062 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19063 echo $ac_n "(cached) $ac_c" 1>&6
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19068 /* System header to define __stub macros and hopefully few prototypes,
19069 which can conflict with char openlog(); below. */
19070 #include <assert.h>
19071 /* Override any gcc2 internal prototype to avoid an error. */
19072 /* We use char because int might match the return type of a gcc2
19073 builtin and then its argument prototype would still apply. */
19079 /* The GNU C library defines this for functions which it implements
19080 to always fail with ENOSYS. Some functions are actually named
19081 something starting with __ and the normal name is an alias. */
19082 #if defined (__stub_openlog) || defined (__stub___openlog)
19090 if { (eval echo configure:19091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19092 eval "ac_cv_func_openlog=yes"
19094 echo "configure: failed program was:" >&5
19095 cat conftest.$ac_ext >&5
19097 eval "ac_cv_func_openlog=no"
19102 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19103 echo "$ac_t""yes" 1>&6
19106 echo "$ac_t""no" 1>&6
19109 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19110 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19112 ol_enable_syslog=$ac_cv_func_openlog
19117 if test $ol_enable_sql != no ; then
19118 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19119 echo "configure:19120: checking for SQLDriverConnect in -liodbc" >&5
19120 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19121 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19122 echo $ac_n "(cached) $ac_c" 1>&6
19124 ac_save_LIBS="$LIBS"
19125 LIBS="-liodbc $LIBS"
19126 cat > conftest.$ac_ext <<EOF
19127 #line 19128 "configure"
19128 #include "confdefs.h"
19129 /* Override any gcc2 internal prototype to avoid an error. */
19130 /* We use char because int might match the return type of a gcc2
19131 builtin and then its argument prototype would still apply. */
19132 char SQLDriverConnect();
19138 if { (eval echo configure:19139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19140 eval "ac_cv_lib_$ac_lib_var=yes"
19142 echo "configure: failed program was:" >&5
19143 cat conftest.$ac_ext >&5
19145 eval "ac_cv_lib_$ac_lib_var=no"
19148 LIBS="$ac_save_LIBS"
19151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19152 echo "$ac_t""yes" 1>&6
19155 echo "$ac_t""no" 1>&6
19159 if test $have_iodbc = yes ; then
19160 ol_link_sql="-liodbc"
19162 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19163 echo "configure:19164: checking for SQLDriverConnect in -lodbc" >&5
19164 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19165 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19166 echo $ac_n "(cached) $ac_c" 1>&6
19168 ac_save_LIBS="$LIBS"
19169 LIBS="-lodbc $LIBS"
19170 cat > conftest.$ac_ext <<EOF
19171 #line 19172 "configure"
19172 #include "confdefs.h"
19173 /* Override any gcc2 internal prototype to avoid an error. */
19174 /* We use char because int might match the return type of a gcc2
19175 builtin and then its argument prototype would still apply. */
19176 char SQLDriverConnect();
19182 if { (eval echo configure:19183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19184 eval "ac_cv_lib_$ac_lib_var=yes"
19186 echo "configure: failed program was:" >&5
19187 cat conftest.$ac_ext >&5
19189 eval "ac_cv_lib_$ac_lib_var=no"
19192 LIBS="$ac_save_LIBS"
19195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19196 echo "$ac_t""yes" 1>&6
19199 echo "$ac_t""no" 1>&6
19203 if test $have_odbc = yes ; then
19204 ol_link_sql="-lodbc"
19208 if test $ol_link_sql != no ; then
19209 SLAPD_SQL_LIBS="$ol_link_sql"
19211 elif test $ol_enable_sql != auto ; then
19212 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19216 if test $ol_enable_tcl != no ; then
19217 for ac_hdr in tcl.h
19219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19221 echo "configure:19222: checking for $ac_hdr" >&5
19222 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19223 echo $ac_n "(cached) $ac_c" 1>&6
19225 cat > conftest.$ac_ext <<EOF
19226 #line 19227 "configure"
19227 #include "confdefs.h"
19230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19231 { (eval echo configure:19232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19233 if test -z "$ac_err"; then
19235 eval "ac_cv_header_$ac_safe=yes"
19238 echo "configure: failed program was:" >&5
19239 cat conftest.$ac_ext >&5
19241 eval "ac_cv_header_$ac_safe=no"
19245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19246 echo "$ac_t""yes" 1>&6
19247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19248 cat >> confdefs.h <<EOF
19249 #define $ac_tr_hdr 1
19253 echo "$ac_t""no" 1>&6
19258 if test $ac_cv_header_tcl_h != yes ; then
19261 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19262 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19263 echo "configure:19264: checking for main in -l$lib" >&5
19264 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19265 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19266 echo $ac_n "(cached) $ac_c" 1>&6
19268 ac_save_LIBS="$LIBS"
19269 LIBS="-l$lib $LIBS"
19270 cat > conftest.$ac_ext <<EOF
19271 #line 19272 "configure"
19272 #include "confdefs.h"
19278 if { (eval echo configure:19279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19280 eval "ac_cv_lib_$ac_lib_var=yes"
19282 echo "configure: failed program was:" >&5
19283 cat conftest.$ac_ext >&5
19285 eval "ac_cv_lib_$ac_lib_var=no"
19288 LIBS="$ac_save_LIBS"
19291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19292 echo "$ac_t""yes" 1>&6
19294 if test x"$ol_with_tcl_module" = "xstatic" ; then
19295 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19297 MOD_TCL_LIB="-l${lib}"
19300 echo "$ac_t""no" 1>&6
19307 if test $have_tcl != yes ; then
19308 echo "configure: warning: could not find -ltcl" 1>&2
19309 if test $ol_enable_tcl = yes ; then
19310 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19318 for ac_hdr in termcap.h ncurses.h
19320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19322 echo "configure:19323: checking for $ac_hdr" >&5
19323 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19324 echo $ac_n "(cached) $ac_c" 1>&6
19326 cat > conftest.$ac_ext <<EOF
19327 #line 19328 "configure"
19328 #include "confdefs.h"
19331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19332 { (eval echo configure:19333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19334 if test -z "$ac_err"; then
19336 eval "ac_cv_header_$ac_safe=yes"
19339 echo "configure: failed program was:" >&5
19340 cat conftest.$ac_ext >&5
19342 eval "ac_cv_header_$ac_safe=no"
19346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19347 echo "$ac_t""yes" 1>&6
19348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19349 cat >> confdefs.h <<EOF
19350 #define $ac_tr_hdr 1
19354 echo "$ac_t""no" 1>&6
19359 if test $ol_link_termcap = no ; then
19360 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19361 echo "configure:19362: checking for tputs in -ltermcap" >&5
19362 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19364 echo $ac_n "(cached) $ac_c" 1>&6
19366 ac_save_LIBS="$LIBS"
19367 LIBS="-ltermcap $LIBS"
19368 cat > conftest.$ac_ext <<EOF
19369 #line 19370 "configure"
19370 #include "confdefs.h"
19371 /* Override any gcc2 internal prototype to avoid an error. */
19372 /* We use char because int might match the return type of a gcc2
19373 builtin and then its argument prototype would still apply. */
19380 if { (eval echo configure:19381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19382 eval "ac_cv_lib_$ac_lib_var=yes"
19384 echo "configure: failed program was:" >&5
19385 cat conftest.$ac_ext >&5
19387 eval "ac_cv_lib_$ac_lib_var=no"
19390 LIBS="$ac_save_LIBS"
19393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19394 echo "$ac_t""yes" 1>&6
19397 echo "$ac_t""no" 1>&6
19401 if test $have_termcap = yes ; then
19402 cat >> confdefs.h <<\EOF
19403 #define HAVE_TERMCAP 1
19406 ol_link_termcap=yes
19407 TERMCAP_LIBS=-ltermcap
19411 if test $ol_link_termcap = no ; then
19412 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19413 echo "configure:19414: checking for initscr in -lncurses" >&5
19414 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19415 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19416 echo $ac_n "(cached) $ac_c" 1>&6
19418 ac_save_LIBS="$LIBS"
19419 LIBS="-lncurses $LIBS"
19420 cat > conftest.$ac_ext <<EOF
19421 #line 19422 "configure"
19422 #include "confdefs.h"
19423 /* Override any gcc2 internal prototype to avoid an error. */
19424 /* We use char because int might match the return type of a gcc2
19425 builtin and then its argument prototype would still apply. */
19432 if { (eval echo configure:19433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19434 eval "ac_cv_lib_$ac_lib_var=yes"
19436 echo "configure: failed program was:" >&5
19437 cat conftest.$ac_ext >&5
19439 eval "ac_cv_lib_$ac_lib_var=no"
19442 LIBS="$ac_save_LIBS"
19445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19446 echo "$ac_t""yes" 1>&6
19449 echo "$ac_t""no" 1>&6
19453 if test $have_ncurses = yes ; then
19454 cat >> confdefs.h <<\EOF
19455 #define HAVE_NCURSES 1
19458 ol_link_termcap=yes
19459 TERMCAP_LIBS=-lncurses
19463 if test $ol_link_termcap = no ; then
19464 cat >> confdefs.h <<\EOF
19465 #define NO_TERMCAP 1
19473 if test $ol_with_cyrus_sasl != no ; then
19474 for ac_hdr in sasl/sasl.h sasl.h
19476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19478 echo "configure:19479: checking for $ac_hdr" >&5
19479 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19480 echo $ac_n "(cached) $ac_c" 1>&6
19482 cat > conftest.$ac_ext <<EOF
19483 #line 19484 "configure"
19484 #include "confdefs.h"
19487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19488 { (eval echo configure:19489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19490 if test -z "$ac_err"; then
19492 eval "ac_cv_header_$ac_safe=yes"
19495 echo "configure: failed program was:" >&5
19496 cat conftest.$ac_ext >&5
19498 eval "ac_cv_header_$ac_safe=no"
19502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19503 echo "$ac_t""yes" 1>&6
19504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19505 cat >> confdefs.h <<EOF
19506 #define $ac_tr_hdr 1
19510 echo "$ac_t""no" 1>&6
19515 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19516 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19517 echo "configure:19518: checking for sasl_client_init in -lsasl2" >&5
19518 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19519 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19520 echo $ac_n "(cached) $ac_c" 1>&6
19522 ac_save_LIBS="$LIBS"
19523 LIBS="-lsasl2 $LIBS"
19524 cat > conftest.$ac_ext <<EOF
19525 #line 19526 "configure"
19526 #include "confdefs.h"
19527 /* Override any gcc2 internal prototype to avoid an error. */
19528 /* We use char because int might match the return type of a gcc2
19529 builtin and then its argument prototype would still apply. */
19530 char sasl_client_init();
19536 if { (eval echo configure:19537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19538 eval "ac_cv_lib_$ac_lib_var=yes"
19540 echo "configure: failed program was:" >&5
19541 cat conftest.$ac_ext >&5
19543 eval "ac_cv_lib_$ac_lib_var=no"
19546 LIBS="$ac_save_LIBS"
19549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19550 echo "$ac_t""yes" 1>&6
19551 ol_link_sasl="-lsasl2"
19553 echo "$ac_t""no" 1>&6
19554 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19555 echo "configure:19556: checking for sasl_client_init in -lsasl" >&5
19556 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19558 echo $ac_n "(cached) $ac_c" 1>&6
19560 ac_save_LIBS="$LIBS"
19561 LIBS="-lsasl $LIBS"
19562 cat > conftest.$ac_ext <<EOF
19563 #line 19564 "configure"
19564 #include "confdefs.h"
19565 /* Override any gcc2 internal prototype to avoid an error. */
19566 /* We use char because int might match the return type of a gcc2
19567 builtin and then its argument prototype would still apply. */
19568 char sasl_client_init();
19574 if { (eval echo configure:19575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19576 eval "ac_cv_lib_$ac_lib_var=yes"
19578 echo "configure: failed program was:" >&5
19579 cat conftest.$ac_ext >&5
19581 eval "ac_cv_lib_$ac_lib_var=no"
19584 LIBS="$ac_save_LIBS"
19587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19588 echo "$ac_t""yes" 1>&6
19589 ol_link_sasl="-lsasl"
19591 echo "$ac_t""no" 1>&6
19598 if test $ol_link_sasl = no ; then
19599 if test $ol_with_cyrus_sasl != auto ; then
19600 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19602 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19603 echo "configure: warning: SASL authentication not supported!" 1>&2
19604 if test $ol_link_tls = no ; then
19605 echo "configure: warning: Strong authentication not supported!" 1>&2
19609 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19610 echo "configure:19611: checking Cyrus SASL library version" >&5
19611 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19612 echo $ac_n "(cached) $ac_c" 1>&6
19615 cat > conftest.$ac_ext <<EOF
19616 #line 19617 "configure"
19617 #include "confdefs.h"
19619 #include <sasl/sasl.h>
19621 /* require 2.1.3 or later */
19622 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19623 char *__sasl_compat = "1.5.x okay";
19624 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19625 __sasl_compat "2.2+ or better okay";
19626 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19627 && SASL_VERSION_STEP >=3
19628 __sasl_compat = "2.1.3+ or better okay";
19632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19633 egrep "__sasl_compat" >/dev/null 2>&1; then
19635 ol_cv_sasl_compat=yes
19638 ol_cv_sasl_compat=no
19644 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19646 if test $ol_cv_sasl_compat = no ; then
19648 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19651 cat >> confdefs.h <<\EOF
19652 #define HAVE_CYRUS_SASL 1
19655 SASL_LIBS="$ol_link_sasl"
19656 if test $ol_enable_spasswd != no ; then
19657 ol_link_spasswd=yes
19662 echo "configure: warning: SASL authentication not supported!" 1>&2
19663 if test $ol_link_tls = no ; then
19664 echo "configure: warning: Strong authentication not supported!" 1>&2
19668 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19670 if test -r /dev/urandom ; then
19671 dev="/dev/urandom";
19672 elif test -r /idev/urandom ; then
19673 dev="/idev/urandom";
19674 elif test -r /dev/srandom ; then
19675 dev="/dev/srandom";
19676 elif test -r /dev/random ; then
19678 elif test -r /idev/random ; then
19679 dev="/idev/random";
19682 if test $dev != no ; then
19683 cat >> confdefs.h <<EOF
19684 #define URANDOM_DEVICE "$dev"
19691 if test $ol_with_fetch != no ; then
19693 LIBS="-lfetch -lcom_err $LIBS"
19694 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19695 echo "configure:19696: checking fetch(3) library" >&5
19696 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19697 echo $ac_n "(cached) $ac_c" 1>&6
19700 cat > conftest.$ac_ext <<EOF
19701 #line 19702 "configure"
19702 #include "confdefs.h"
19704 #include <sys/param.h>
19708 struct url *u = fetchParseURL("file:///");
19711 if { (eval echo configure:19712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19713 ol_cv_lib_fetch=yes
19715 echo "configure: failed program was:" >&5
19716 cat conftest.$ac_ext >&5
19723 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19725 if test $ol_cv_lib_fetch != no ; then
19726 ol_link_fetch="-lfetch -lcom_err"
19727 cat >> confdefs.h <<\EOF
19728 #define HAVE_FETCH 1
19734 if test $ol_cv_lib_fetch != no ; then
19735 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19736 ol_link_fetch=freebsd
19738 elif test $ol_with_fetch != auto ; then
19739 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19743 ol_link_readline=no
19744 if test $ol_with_readline != no ; then
19745 for ac_hdr in readline/readline.h readline/history.h
19747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19749 echo "configure:19750: checking for $ac_hdr" >&5
19750 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19751 echo $ac_n "(cached) $ac_c" 1>&6
19753 cat > conftest.$ac_ext <<EOF
19754 #line 19755 "configure"
19755 #include "confdefs.h"
19758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19759 { (eval echo configure:19760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19761 if test -z "$ac_err"; then
19763 eval "ac_cv_header_$ac_safe=yes"
19766 echo "configure: failed program was:" >&5
19767 cat conftest.$ac_ext >&5
19769 eval "ac_cv_header_$ac_safe=no"
19773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19774 echo "$ac_t""yes" 1>&6
19775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19776 cat >> confdefs.h <<EOF
19777 #define $ac_tr_hdr 1
19781 echo "$ac_t""no" 1>&6
19786 if test $ac_cv_header_readline_readline_h = yes ; then
19788 LIBS="$TERMCAP_LIBS $LIBS"
19789 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19790 echo "configure:19791: checking for readline in -lreadline" >&5
19791 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19793 echo $ac_n "(cached) $ac_c" 1>&6
19795 ac_save_LIBS="$LIBS"
19796 LIBS="-lreadline $LIBS"
19797 cat > conftest.$ac_ext <<EOF
19798 #line 19799 "configure"
19799 #include "confdefs.h"
19800 /* Override any gcc2 internal prototype to avoid an error. */
19801 /* We use char because int might match the return type of a gcc2
19802 builtin and then its argument prototype would still apply. */
19809 if { (eval echo configure:19810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19811 eval "ac_cv_lib_$ac_lib_var=yes"
19813 echo "configure: failed program was:" >&5
19814 cat conftest.$ac_ext >&5
19816 eval "ac_cv_lib_$ac_lib_var=no"
19819 LIBS="$ac_save_LIBS"
19822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19823 echo "$ac_t""yes" 1>&6
19826 echo "$ac_t""no" 1>&6
19832 if test $have_readline = yes ; then
19833 ol_with_readline=found
19834 ol_link_readline=yes
19836 READLINE_LIBS="-lreadline"
19841 if test $ol_link_readline = yes ; then
19842 cat >> confdefs.h <<\EOF
19843 #define HAVE_READLINE 1
19849 if test $ol_enable_crypt != no ; then
19850 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19851 echo "configure:19852: checking for crypt" >&5
19852 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19853 echo $ac_n "(cached) $ac_c" 1>&6
19855 cat > conftest.$ac_ext <<EOF
19856 #line 19857 "configure"
19857 #include "confdefs.h"
19858 /* System header to define __stub macros and hopefully few prototypes,
19859 which can conflict with char crypt(); below. */
19860 #include <assert.h>
19861 /* Override any gcc2 internal prototype to avoid an error. */
19862 /* We use char because int might match the return type of a gcc2
19863 builtin and then its argument prototype would still apply. */
19869 /* The GNU C library defines this for functions which it implements
19870 to always fail with ENOSYS. Some functions are actually named
19871 something starting with __ and the normal name is an alias. */
19872 #if defined (__stub_crypt) || defined (__stub___crypt)
19880 if { (eval echo configure:19881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19882 eval "ac_cv_func_crypt=yes"
19884 echo "configure: failed program was:" >&5
19885 cat conftest.$ac_ext >&5
19887 eval "ac_cv_func_crypt=no"
19892 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19893 echo "$ac_t""yes" 1>&6
19896 echo "$ac_t""no" 1>&6
19898 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19899 echo "configure:19900: checking for crypt in -lcrypt" >&5
19900 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19901 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19902 echo $ac_n "(cached) $ac_c" 1>&6
19904 ac_save_LIBS="$LIBS"
19905 LIBS="-lcrypt $LIBS"
19906 cat > conftest.$ac_ext <<EOF
19907 #line 19908 "configure"
19908 #include "confdefs.h"
19909 /* Override any gcc2 internal prototype to avoid an error. */
19910 /* We use char because int might match the return type of a gcc2
19911 builtin and then its argument prototype would still apply. */
19918 if { (eval echo configure:19919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19920 eval "ac_cv_lib_$ac_lib_var=yes"
19922 echo "configure: failed program was:" >&5
19923 cat conftest.$ac_ext >&5
19925 eval "ac_cv_lib_$ac_lib_var=no"
19928 LIBS="$ac_save_LIBS"
19931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19932 echo "$ac_t""yes" 1>&6
19933 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19936 echo "$ac_t""no" 1>&6
19943 if test $have_crypt = yes ; then
19944 cat >> confdefs.h <<\EOF
19945 #define HAVE_CRYPT 1
19949 echo "configure: warning: could not find crypt" 1>&2
19950 if test $ol_enable_crypt = yes ; then
19951 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19954 echo "configure: warning: disabling crypt support" 1>&2
19959 if test $ol_enable_proctitle != no ; then
19960 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19961 echo "configure:19962: checking for setproctitle" >&5
19962 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19963 echo $ac_n "(cached) $ac_c" 1>&6
19965 cat > conftest.$ac_ext <<EOF
19966 #line 19967 "configure"
19967 #include "confdefs.h"
19968 /* System header to define __stub macros and hopefully few prototypes,
19969 which can conflict with char setproctitle(); below. */
19970 #include <assert.h>
19971 /* Override any gcc2 internal prototype to avoid an error. */
19972 /* We use char because int might match the return type of a gcc2
19973 builtin and then its argument prototype would still apply. */
19974 char setproctitle();
19979 /* The GNU C library defines this for functions which it implements
19980 to always fail with ENOSYS. Some functions are actually named
19981 something starting with __ and the normal name is an alias. */
19982 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19990 if { (eval echo configure:19991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19992 eval "ac_cv_func_setproctitle=yes"
19994 echo "configure: failed program was:" >&5
19995 cat conftest.$ac_ext >&5
19997 eval "ac_cv_func_setproctitle=no"
20002 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20003 echo "$ac_t""yes" 1>&6
20004 have_setproctitle=yes
20006 echo "$ac_t""no" 1>&6
20008 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20009 echo "configure:20010: checking for setproctitle in -lutil" >&5
20010 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20012 echo $ac_n "(cached) $ac_c" 1>&6
20014 ac_save_LIBS="$LIBS"
20015 LIBS="-lutil $LIBS"
20016 cat > conftest.$ac_ext <<EOF
20017 #line 20018 "configure"
20018 #include "confdefs.h"
20019 /* Override any gcc2 internal prototype to avoid an error. */
20020 /* We use char because int might match the return type of a gcc2
20021 builtin and then its argument prototype would still apply. */
20022 char setproctitle();
20028 if { (eval echo configure:20029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20030 eval "ac_cv_lib_$ac_lib_var=yes"
20032 echo "configure: failed program was:" >&5
20033 cat conftest.$ac_ext >&5
20035 eval "ac_cv_lib_$ac_lib_var=no"
20038 LIBS="$ac_save_LIBS"
20041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20042 echo "$ac_t""yes" 1>&6
20043 have_setproctitle=yes
20044 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20046 echo "$ac_t""no" 1>&6
20047 have_setproctitle=no
20048 LIBOBJS="$LIBOBJS setproctitle.o"
20049 LIBSRCS="$LIBSRCS setproctitle.c"
20055 if test $have_setproctitle = yes ; then
20056 cat >> confdefs.h <<\EOF
20057 #define HAVE_SETPROCTITLE 1
20063 if test $ol_enable_slp != no ; then
20064 for ac_hdr in slp.h
20066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20068 echo "configure:20069: checking for $ac_hdr" >&5
20069 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20070 echo $ac_n "(cached) $ac_c" 1>&6
20072 cat > conftest.$ac_ext <<EOF
20073 #line 20074 "configure"
20074 #include "confdefs.h"
20077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20078 { (eval echo configure:20079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20080 if test -z "$ac_err"; then
20082 eval "ac_cv_header_$ac_safe=yes"
20085 echo "configure: failed program was:" >&5
20086 cat conftest.$ac_ext >&5
20088 eval "ac_cv_header_$ac_safe=no"
20092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20093 echo "$ac_t""yes" 1>&6
20094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20095 cat >> confdefs.h <<EOF
20096 #define $ac_tr_hdr 1
20100 echo "$ac_t""no" 1>&6
20105 if test $ac_cv_header_slp_h = yes ; then
20106 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20107 echo "configure:20108: checking for SLPOpen in -lslp" >&5
20108 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20112 ac_save_LIBS="$LIBS"
20114 cat > conftest.$ac_ext <<EOF
20115 #line 20116 "configure"
20116 #include "confdefs.h"
20117 /* Override any gcc2 internal prototype to avoid an error. */
20118 /* We use char because int might match the return type of a gcc2
20119 builtin and then its argument prototype would still apply. */
20126 if { (eval echo configure:20127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20128 eval "ac_cv_lib_$ac_lib_var=yes"
20130 echo "configure: failed program was:" >&5
20131 cat conftest.$ac_ext >&5
20133 eval "ac_cv_lib_$ac_lib_var=no"
20136 LIBS="$ac_save_LIBS"
20139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20140 echo "$ac_t""yes" 1>&6
20143 echo "$ac_t""no" 1>&6
20147 if test $have_slp = yes ; then
20148 cat >> confdefs.h <<\EOF
20152 SLAPD_SLP_LIBS=-lslp
20155 elif test $ol_enable_slp = yes ; then
20156 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20160 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20161 echo "configure:20162: checking for ANSI C header files" >&5
20162 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20163 echo $ac_n "(cached) $ac_c" 1>&6
20165 cat > conftest.$ac_ext <<EOF
20166 #line 20167 "configure"
20167 #include "confdefs.h"
20168 #include <stdlib.h>
20169 #include <stdarg.h>
20170 #include <string.h>
20173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20174 { (eval echo configure:20175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20176 if test -z "$ac_err"; then
20178 ac_cv_header_stdc=yes
20181 echo "configure: failed program was:" >&5
20182 cat conftest.$ac_ext >&5
20184 ac_cv_header_stdc=no
20188 if test $ac_cv_header_stdc = yes; then
20189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20190 cat > conftest.$ac_ext <<EOF
20191 #line 20192 "configure"
20192 #include "confdefs.h"
20193 #include <string.h>
20195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20196 egrep "memchr" >/dev/null 2>&1; then
20200 ac_cv_header_stdc=no
20206 if test $ac_cv_header_stdc = yes; then
20207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20208 cat > conftest.$ac_ext <<EOF
20209 #line 20210 "configure"
20210 #include "confdefs.h"
20211 #include <stdlib.h>
20213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20214 egrep "free" >/dev/null 2>&1; then
20218 ac_cv_header_stdc=no
20224 if test $ac_cv_header_stdc = yes; then
20225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20226 if test "$cross_compiling" = yes; then
20229 cat > conftest.$ac_ext <<EOF
20230 #line 20231 "configure"
20231 #include "confdefs.h"
20233 #if ((' ' & 0x0FF) == 0x020)
20234 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20235 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20237 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20238 || ('j' <= (c) && (c) <= 'r') \
20239 || ('s' <= (c) && (c) <= 'z'))
20240 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20243 int main () { int i; for (i = 0; i < 256; i++)
20244 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20248 if { (eval echo configure:20249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20252 echo "configure: failed program was:" >&5
20253 cat conftest.$ac_ext >&5
20255 ac_cv_header_stdc=no
20263 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20264 if test $ac_cv_header_stdc = yes; then
20265 cat >> confdefs.h <<\EOF
20266 #define STDC_HEADERS 1
20271 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20272 echo "configure:20273: checking for mode_t" >&5
20273 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20274 echo $ac_n "(cached) $ac_c" 1>&6
20276 cat > conftest.$ac_ext <<EOF
20277 #line 20278 "configure"
20278 #include "confdefs.h"
20279 #include <sys/types.h>
20281 #include <stdlib.h>
20282 #include <stddef.h>
20286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20287 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20289 eval "ac_cv_type_mode_t=yes"
20292 eval "ac_cv_type_mode_t=no"
20297 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20298 echo "$ac_t""yes" 1>&6
20300 echo "$ac_t""no" 1>&6
20301 cat >> confdefs.h <<EOF
20307 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20308 echo "configure:20309: checking for off_t" >&5
20309 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20310 echo $ac_n "(cached) $ac_c" 1>&6
20312 cat > conftest.$ac_ext <<EOF
20313 #line 20314 "configure"
20314 #include "confdefs.h"
20315 #include <sys/types.h>
20317 #include <stdlib.h>
20318 #include <stddef.h>
20322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20323 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20325 eval "ac_cv_type_off_t=yes"
20328 eval "ac_cv_type_off_t=no"
20333 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20334 echo "$ac_t""yes" 1>&6
20336 echo "$ac_t""no" 1>&6
20337 cat >> confdefs.h <<EOF
20343 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20344 echo "configure:20345: checking for pid_t" >&5
20345 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20346 echo $ac_n "(cached) $ac_c" 1>&6
20348 cat > conftest.$ac_ext <<EOF
20349 #line 20350 "configure"
20350 #include "confdefs.h"
20351 #include <sys/types.h>
20353 #include <stdlib.h>
20354 #include <stddef.h>
20358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20359 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20361 eval "ac_cv_type_pid_t=yes"
20364 eval "ac_cv_type_pid_t=no"
20369 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20370 echo "$ac_t""yes" 1>&6
20372 echo "$ac_t""no" 1>&6
20373 cat >> confdefs.h <<EOF
20379 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20380 echo "configure:20381: checking for ptrdiff_t" >&5
20381 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20382 echo $ac_n "(cached) $ac_c" 1>&6
20384 cat > conftest.$ac_ext <<EOF
20385 #line 20386 "configure"
20386 #include "confdefs.h"
20387 #include <stddef.h>
20392 if { (eval echo configure:20393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20394 am_cv_type_ptrdiff_t=yes
20396 echo "configure: failed program was:" >&5
20397 cat conftest.$ac_ext >&5
20399 am_cv_type_ptrdiff_t=no
20404 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20405 if test $am_cv_type_ptrdiff_t = yes; then
20406 cat >> confdefs.h <<\EOF
20407 #define HAVE_PTRDIFF_T 1
20412 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20413 echo "configure:20414: checking return type of signal handlers" >&5
20414 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20415 echo $ac_n "(cached) $ac_c" 1>&6
20417 cat > conftest.$ac_ext <<EOF
20418 #line 20419 "configure"
20419 #include "confdefs.h"
20420 #include <sys/types.h>
20421 #include <signal.h>
20426 extern "C" void (*signal (int, void (*)(int)))(int);
20428 void (*signal ()) ();
20435 if { (eval echo configure:20436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20437 ac_cv_type_signal=void
20439 echo "configure: failed program was:" >&5
20440 cat conftest.$ac_ext >&5
20442 ac_cv_type_signal=int
20447 echo "$ac_t""$ac_cv_type_signal" 1>&6
20448 cat >> confdefs.h <<EOF
20449 #define RETSIGTYPE $ac_cv_type_signal
20453 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20454 echo "configure:20455: checking for size_t" >&5
20455 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20456 echo $ac_n "(cached) $ac_c" 1>&6
20458 cat > conftest.$ac_ext <<EOF
20459 #line 20460 "configure"
20460 #include "confdefs.h"
20461 #include <sys/types.h>
20463 #include <stdlib.h>
20464 #include <stddef.h>
20468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20469 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20471 eval "ac_cv_type_size_t=yes"
20474 eval "ac_cv_type_size_t=no"
20479 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20480 echo "$ac_t""yes" 1>&6
20482 echo "$ac_t""no" 1>&6
20483 cat >> confdefs.h <<EOF
20484 #define size_t unsigned
20490 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20491 echo "configure:20492: checking for ssize_t" >&5
20492 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20493 echo $ac_n "(cached) $ac_c" 1>&6
20495 cat > conftest.$ac_ext <<EOF
20496 #line 20497 "configure"
20497 #include "confdefs.h"
20498 #include <sys/types.h>
20500 #include <stdlib.h>
20501 #include <stddef.h>
20505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20506 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20508 eval "ac_cv_type_ssize_t=yes"
20511 eval "ac_cv_type_ssize_t=no"
20516 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20517 echo "$ac_t""yes" 1>&6
20519 echo "$ac_t""no" 1>&6
20520 cat >> confdefs.h <<EOF
20521 #define ssize_t signed int
20526 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20527 echo "configure:20528: checking for caddr_t" >&5
20528 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20529 echo $ac_n "(cached) $ac_c" 1>&6
20531 cat > conftest.$ac_ext <<EOF
20532 #line 20533 "configure"
20533 #include "confdefs.h"
20534 #include <sys/types.h>
20536 #include <stdlib.h>
20537 #include <stddef.h>
20541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20542 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20544 eval "ac_cv_type_caddr_t=yes"
20547 eval "ac_cv_type_caddr_t=no"
20552 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20553 echo "$ac_t""yes" 1>&6
20555 echo "$ac_t""no" 1>&6
20556 cat >> confdefs.h <<EOF
20557 #define caddr_t char *
20563 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20564 echo "configure:20565: checking for socklen_t" >&5
20565 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20566 echo $ac_n "(cached) $ac_c" 1>&6
20568 cat > conftest.$ac_ext <<EOF
20569 #line 20570 "configure"
20570 #include "confdefs.h"
20572 #ifdef HAVE_SYS_TYPES_H
20573 #include <sys/types.h>
20575 #ifdef HAVE_SYS_SOCKET_H
20576 #include <sys/socket.h>
20583 if { (eval echo configure:20584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20585 ol_cv_type_socklen_t=yes
20587 echo "configure: failed program was:" >&5
20588 cat conftest.$ac_ext >&5
20590 ol_cv_type_socklen_t=no
20595 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20596 if test $ol_cv_type_socklen_t = no; then
20597 cat >> confdefs.h <<\EOF
20598 #define socklen_t int
20603 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20604 echo "configure:20605: checking for member st_blksize in aggregate type struct stat" >&5
20605 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20606 echo $ac_n "(cached) $ac_c" 1>&6
20608 cat > conftest.$ac_ext <<EOF
20609 #line 20610 "configure"
20610 #include "confdefs.h"
20611 #include <sys/types.h>
20612 #include <sys/stat.h>
20614 struct stat foo; foo.st_blksize;
20617 if { (eval echo configure:20618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20619 ac_cv_c_struct_member_st_blksize=yes
20621 echo "configure: failed program was:" >&5
20622 cat conftest.$ac_ext >&5
20624 ac_cv_c_struct_member_st_blksize=no
20629 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20630 st_blksize="$ac_cv_c_struct_member_st_blksize"
20631 if test $ac_cv_c_struct_member_st_blksize = yes; then
20632 cat >> confdefs.h <<\EOF
20633 #define HAVE_ST_BLKSIZE 1
20638 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20639 echo "configure:20640: checking whether time.h and sys/time.h may both be included" >&5
20640 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20641 echo $ac_n "(cached) $ac_c" 1>&6
20643 cat > conftest.$ac_ext <<EOF
20644 #line 20645 "configure"
20645 #include "confdefs.h"
20646 #include <sys/types.h>
20647 #include <sys/time.h>
20653 if { (eval echo configure:20654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20655 ac_cv_header_time=yes
20657 echo "configure: failed program was:" >&5
20658 cat conftest.$ac_ext >&5
20660 ac_cv_header_time=no
20665 echo "$ac_t""$ac_cv_header_time" 1>&6
20666 if test $ac_cv_header_time = yes; then
20667 cat >> confdefs.h <<\EOF
20668 #define TIME_WITH_SYS_TIME 1
20673 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20674 echo "configure:20675: checking whether struct tm is in sys/time.h or time.h" >&5
20675 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20676 echo $ac_n "(cached) $ac_c" 1>&6
20678 cat > conftest.$ac_ext <<EOF
20679 #line 20680 "configure"
20680 #include "confdefs.h"
20681 #include <sys/types.h>
20684 struct tm *tp; tp->tm_sec;
20687 if { (eval echo configure:20688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20689 ac_cv_struct_tm=time.h
20691 echo "configure: failed program was:" >&5
20692 cat conftest.$ac_ext >&5
20694 ac_cv_struct_tm=sys/time.h
20699 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20700 if test $ac_cv_struct_tm = sys/time.h; then
20701 cat >> confdefs.h <<\EOF
20702 #define TM_IN_SYS_TIME 1
20707 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20708 echo "configure:20709: checking for uid_t in sys/types.h" >&5
20709 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20710 echo $ac_n "(cached) $ac_c" 1>&6
20712 cat > conftest.$ac_ext <<EOF
20713 #line 20714 "configure"
20714 #include "confdefs.h"
20715 #include <sys/types.h>
20717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20718 egrep "uid_t" >/dev/null 2>&1; then
20720 ac_cv_type_uid_t=yes
20723 ac_cv_type_uid_t=no
20729 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20730 if test $ac_cv_type_uid_t = no; then
20731 cat >> confdefs.h <<\EOF
20735 cat >> confdefs.h <<\EOF
20741 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20742 echo "configure:20743: checking for sig_atomic_t" >&5
20743 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20744 echo $ac_n "(cached) $ac_c" 1>&6
20746 cat > conftest.$ac_ext <<EOF
20747 #line 20748 "configure"
20748 #include "confdefs.h"
20749 #include <signal.h>
20751 sig_atomic_t atomic;
20754 if { (eval echo configure:20755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20756 ol_cv_type_sig_atomic_t=yes
20758 echo "configure: failed program was:" >&5
20759 cat conftest.$ac_ext >&5
20761 ol_cv_type_sig_atomic_t=no
20766 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20767 if test $ol_cv_type_sig_atomic_t = no; then
20768 cat >> confdefs.h <<\EOF
20769 #define sig_atomic_t int
20776 # test for pw_gecos in struct passwd
20777 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20778 echo "configure:20779: checking struct passwd for pw_gecos" >&5
20779 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20780 echo $ac_n "(cached) $ac_c" 1>&6
20783 cat > conftest.$ac_ext <<EOF
20784 #line 20785 "configure"
20785 #include "confdefs.h"
20790 pwd.pw_gecos = pwd.pw_name;
20794 if { (eval echo configure:20795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20796 ol_cv_struct_passwd_pw_gecos=yes
20798 echo "configure: failed program was:" >&5
20799 cat conftest.$ac_ext >&5
20801 ol_cv_struct_passwd_pw_gecos=no
20806 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20807 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20808 cat >> confdefs.h <<\EOF
20809 #define HAVE_PW_GECOS 1
20814 # test for pw_passwd in struct passwd
20815 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20816 echo "configure:20817: checking struct passwd for pw_passwd" >&5
20817 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20818 echo $ac_n "(cached) $ac_c" 1>&6
20821 cat > conftest.$ac_ext <<EOF
20822 #line 20823 "configure"
20823 #include "confdefs.h"
20828 pwd.pw_passwd = pwd.pw_name;
20832 if { (eval echo configure:20833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20834 ol_cv_struct_passwd_pw_passwd=yes
20836 echo "configure: failed program was:" >&5
20837 cat conftest.$ac_ext >&5
20839 ol_cv_struct_passwd_pw_passwd=no
20844 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20845 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20846 cat >> confdefs.h <<\EOF
20847 #define HAVE_PW_PASSWD 1
20853 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20854 echo "configure:20855: checking if toupper() requires islower()" >&5
20855 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20856 echo $ac_n "(cached) $ac_c" 1>&6
20859 if test "$cross_compiling" = yes; then
20860 ol_cv_c_upper_lower=safe
20862 cat > conftest.$ac_ext <<EOF
20863 #line 20864 "configure"
20864 #include "confdefs.h"
20869 if ('C' == toupper('C'))
20875 if { (eval echo configure:20876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20877 ol_cv_c_upper_lower=no
20879 echo "configure: failed program was:" >&5
20880 cat conftest.$ac_ext >&5
20882 ol_cv_c_upper_lower=yes
20889 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20890 if test $ol_cv_c_upper_lower != no ; then
20891 cat >> confdefs.h <<\EOF
20892 #define C_UPPER_LOWER 1
20897 echo $ac_n "checking for working const""... $ac_c" 1>&6
20898 echo "configure:20899: checking for working const" >&5
20899 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20900 echo $ac_n "(cached) $ac_c" 1>&6
20902 cat > conftest.$ac_ext <<EOF
20903 #line 20904 "configure"
20904 #include "confdefs.h"
20908 /* Ultrix mips cc rejects this. */
20909 typedef int charset[2]; const charset x;
20910 /* SunOS 4.1.1 cc rejects this. */
20911 char const *const *ccp;
20913 /* NEC SVR4.0.2 mips cc rejects this. */
20914 struct point {int x, y;};
20915 static struct point const zero = {0,0};
20916 /* AIX XL C 1.02.0.0 rejects this.
20917 It does not let you subtract one const X* pointer from another in an arm
20918 of an if-expression whose if-part is not a constant expression */
20919 const char *g = "string";
20920 ccp = &g + (g ? g-g : 0);
20921 /* HPUX 7.0 cc rejects these. */
20924 ccp = (char const *const *) p;
20925 { /* SCO 3.2v4 cc rejects this. */
20927 char const *s = 0 ? (char *) 0 : (char const *) 0;
20931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20932 int x[] = {25, 17};
20933 const int *foo = &x[0];
20936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20937 typedef const int *iptr;
20941 { /* AIX XL C 1.02.0.0 rejects this saying
20942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20943 struct s { int j; const int *ap[3]; };
20944 struct s *b; b->j = 5;
20946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20947 const int foo = 10;
20952 if { (eval echo configure:20953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20956 echo "configure: failed program was:" >&5
20957 cat conftest.$ac_ext >&5
20964 echo "$ac_t""$ac_cv_c_const" 1>&6
20965 if test $ac_cv_c_const = no; then
20966 cat >> confdefs.h <<\EOF
20972 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20973 echo "configure:20974: checking if compiler understands volatile" >&5
20974 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20975 echo $ac_n "(cached) $ac_c" 1>&6
20977 cat > conftest.$ac_ext <<EOF
20978 #line 20979 "configure"
20979 #include "confdefs.h"
20982 volatile int a; int * volatile b = x ? &y : &z;
20983 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20987 if { (eval echo configure:20988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20989 ol_cv_c_volatile=yes
20991 echo "configure: failed program was:" >&5
20992 cat conftest.$ac_ext >&5
20994 ol_cv_c_volatile=no
20999 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21000 if test $ol_cv_c_volatile = yes; then
21003 cat >> confdefs.h <<\EOF
21010 if test $cross_compiling = yes ; then
21011 cat >> confdefs.h <<\EOF
21012 #define CROSS_COMPILING 1
21016 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21017 echo "configure:21018: checking whether byte ordering is bigendian" >&5
21018 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21019 echo $ac_n "(cached) $ac_c" 1>&6
21021 ac_cv_c_bigendian=unknown
21022 # See if sys/param.h defines the BYTE_ORDER macro.
21023 cat > conftest.$ac_ext <<EOF
21024 #line 21025 "configure"
21025 #include "confdefs.h"
21026 #include <sys/types.h>
21027 #include <sys/param.h>
21030 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21031 bogus endian macros
21035 if { (eval echo configure:21036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21037 # It does; now see whether it defined to BIG_ENDIAN or not.
21038 cat > conftest.$ac_ext <<EOF
21039 #line 21040 "configure"
21040 #include "confdefs.h"
21041 #include <sys/types.h>
21042 #include <sys/param.h>
21045 #if BYTE_ORDER != BIG_ENDIAN
21050 if { (eval echo configure:21051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21052 ac_cv_c_bigendian=yes
21054 echo "configure: failed program was:" >&5
21055 cat conftest.$ac_ext >&5
21057 ac_cv_c_bigendian=no
21061 echo "configure: failed program was:" >&5
21062 cat conftest.$ac_ext >&5
21065 if test $ac_cv_c_bigendian = unknown; then
21066 if test "$cross_compiling" = yes; then
21067 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21069 cat > conftest.$ac_ext <<EOF
21070 #line 21071 "configure"
21071 #include "confdefs.h"
21073 /* Are we little or big endian? From Harbison&Steele. */
21077 char c[sizeof (long)];
21080 exit (u.c[sizeof (long) - 1] == 1);
21083 if { (eval echo configure:21084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21085 ac_cv_c_bigendian=no
21087 echo "configure: failed program was:" >&5
21088 cat conftest.$ac_ext >&5
21090 ac_cv_c_bigendian=yes
21098 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21099 if test $ac_cv_c_bigendian = yes; then
21100 cat >> confdefs.h <<\EOF
21101 #define WORDS_BIGENDIAN 1
21108 echo $ac_n "checking size of short""... $ac_c" 1>&6
21109 echo "configure:21110: checking size of short" >&5
21110 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21111 echo $ac_n "(cached) $ac_c" 1>&6
21113 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21114 cat > conftest.$ac_ext <<EOF
21115 #line 21116 "configure"
21116 #include "confdefs.h"
21117 #include "confdefs.h"
21118 #include <sys/types.h>
21122 switch (0) case 0: case (sizeof (short) == $ac_size):;
21125 if { (eval echo configure:21126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21127 ac_cv_sizeof_short=$ac_size
21129 echo "configure: failed program was:" >&5
21130 cat conftest.$ac_ext >&5
21133 if test x$ac_cv_sizeof_short != x ; then break; fi
21138 if test x$ac_cv_sizeof_short = x ; then
21139 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21141 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21142 cat >> confdefs.h <<EOF
21143 #define SIZEOF_SHORT $ac_cv_sizeof_short
21147 echo $ac_n "checking size of int""... $ac_c" 1>&6
21148 echo "configure:21149: checking size of int" >&5
21149 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21150 echo $ac_n "(cached) $ac_c" 1>&6
21152 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21153 cat > conftest.$ac_ext <<EOF
21154 #line 21155 "configure"
21155 #include "confdefs.h"
21156 #include "confdefs.h"
21157 #include <sys/types.h>
21161 switch (0) case 0: case (sizeof (int) == $ac_size):;
21164 if { (eval echo configure:21165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21166 ac_cv_sizeof_int=$ac_size
21168 echo "configure: failed program was:" >&5
21169 cat conftest.$ac_ext >&5
21172 if test x$ac_cv_sizeof_int != x ; then break; fi
21177 if test x$ac_cv_sizeof_int = x ; then
21178 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21180 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21181 cat >> confdefs.h <<EOF
21182 #define SIZEOF_INT $ac_cv_sizeof_int
21186 echo $ac_n "checking size of long""... $ac_c" 1>&6
21187 echo "configure:21188: checking size of long" >&5
21188 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21189 echo $ac_n "(cached) $ac_c" 1>&6
21191 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21192 cat > conftest.$ac_ext <<EOF
21193 #line 21194 "configure"
21194 #include "confdefs.h"
21195 #include "confdefs.h"
21196 #include <sys/types.h>
21200 switch (0) case 0: case (sizeof (long) == $ac_size):;
21203 if { (eval echo configure:21204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21205 ac_cv_sizeof_long=$ac_size
21207 echo "configure: failed program was:" >&5
21208 cat conftest.$ac_ext >&5
21211 if test x$ac_cv_sizeof_long != x ; then break; fi
21216 if test x$ac_cv_sizeof_long = x ; then
21217 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21219 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21220 cat >> confdefs.h <<EOF
21221 #define SIZEOF_LONG $ac_cv_sizeof_long
21226 if test "$ac_cv_sizeof_int" -lt 4 ; then
21227 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21229 cat >> confdefs.h <<\EOF
21230 #define LBER_INT_T long
21234 cat >> confdefs.h <<\EOF
21235 #define LBER_INT_T int
21240 cat >> confdefs.h <<\EOF
21241 #define LBER_LEN_T long
21244 cat >> confdefs.h <<\EOF
21245 #define LBER_SOCKET_T int
21248 cat >> confdefs.h <<\EOF
21249 #define LBER_TAG_T long
21253 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21254 echo "configure:21255: checking for 8-bit clean memcmp" >&5
21255 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21256 echo $ac_n "(cached) $ac_c" 1>&6
21258 if test "$cross_compiling" = yes; then
21259 ac_cv_func_memcmp_clean=no
21261 cat > conftest.$ac_ext <<EOF
21262 #line 21263 "configure"
21263 #include "confdefs.h"
21267 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21268 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21272 if { (eval echo configure:21273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21274 ac_cv_func_memcmp_clean=yes
21276 echo "configure: failed program was:" >&5
21277 cat conftest.$ac_ext >&5
21279 ac_cv_func_memcmp_clean=no
21286 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21287 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21289 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21290 echo "configure:21291: checking for strftime" >&5
21291 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21292 echo $ac_n "(cached) $ac_c" 1>&6
21294 cat > conftest.$ac_ext <<EOF
21295 #line 21296 "configure"
21296 #include "confdefs.h"
21297 /* System header to define __stub macros and hopefully few prototypes,
21298 which can conflict with char strftime(); below. */
21299 #include <assert.h>
21300 /* Override any gcc2 internal prototype to avoid an error. */
21301 /* We use char because int might match the return type of a gcc2
21302 builtin and then its argument prototype would still apply. */
21308 /* The GNU C library defines this for functions which it implements
21309 to always fail with ENOSYS. Some functions are actually named
21310 something starting with __ and the normal name is an alias. */
21311 #if defined (__stub_strftime) || defined (__stub___strftime)
21319 if { (eval echo configure:21320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21321 eval "ac_cv_func_strftime=yes"
21323 echo "configure: failed program was:" >&5
21324 cat conftest.$ac_ext >&5
21326 eval "ac_cv_func_strftime=no"
21331 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21332 echo "$ac_t""yes" 1>&6
21333 cat >> confdefs.h <<\EOF
21334 #define HAVE_STRFTIME 1
21338 echo "$ac_t""no" 1>&6
21339 # strftime is in -lintl on SCO UNIX.
21340 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21341 echo "configure:21342: checking for strftime in -lintl" >&5
21342 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21343 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21344 echo $ac_n "(cached) $ac_c" 1>&6
21346 ac_save_LIBS="$LIBS"
21347 LIBS="-lintl $LIBS"
21348 cat > conftest.$ac_ext <<EOF
21349 #line 21350 "configure"
21350 #include "confdefs.h"
21351 /* Override any gcc2 internal prototype to avoid an error. */
21352 /* We use char because int might match the return type of a gcc2
21353 builtin and then its argument prototype would still apply. */
21360 if { (eval echo configure:21361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21362 eval "ac_cv_lib_$ac_lib_var=yes"
21364 echo "configure: failed program was:" >&5
21365 cat conftest.$ac_ext >&5
21367 eval "ac_cv_lib_$ac_lib_var=no"
21370 LIBS="$ac_save_LIBS"
21373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21374 echo "$ac_t""yes" 1>&6
21375 cat >> confdefs.h <<\EOF
21376 #define HAVE_STRFTIME 1
21379 LIBS="-lintl $LIBS"
21381 echo "$ac_t""no" 1>&6
21387 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21388 echo "configure:21389: checking for inet_aton()" >&5
21389 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21390 echo $ac_n "(cached) $ac_c" 1>&6
21392 cat > conftest.$ac_ext <<EOF
21393 #line 21394 "configure"
21394 #include "confdefs.h"
21396 #ifdef HAVE_SYS_TYPES_H
21397 # include <sys/types.h>
21399 #ifdef HAVE_SYS_SOCKET_H
21400 # include <sys/socket.h>
21401 # ifdef HAVE_SYS_SELECT_H
21402 # include <sys/select.h>
21404 # include <netinet/in.h>
21405 # ifdef HAVE_ARPA_INET_H
21406 # include <arpa/inet.h>
21412 int rc = inet_aton( "255.255.255.255", &in );
21415 if { (eval echo configure:21416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21417 ol_cv_func_inet_aton=yes
21419 echo "configure: failed program was:" >&5
21420 cat conftest.$ac_ext >&5
21422 ol_cv_func_inet_aton=no
21427 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21428 if test $ol_cv_func_inet_aton != no; then
21429 cat >> confdefs.h <<\EOF
21430 #define HAVE_INET_ATON 1
21436 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21437 echo "configure:21438: checking for _spawnlp" >&5
21438 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21439 echo $ac_n "(cached) $ac_c" 1>&6
21441 cat > conftest.$ac_ext <<EOF
21442 #line 21443 "configure"
21443 #include "confdefs.h"
21444 /* System header to define __stub macros and hopefully few prototypes,
21445 which can conflict with char _spawnlp(); below. */
21446 #include <assert.h>
21447 /* Override any gcc2 internal prototype to avoid an error. */
21448 /* We use char because int might match the return type of a gcc2
21449 builtin and then its argument prototype would still apply. */
21455 /* The GNU C library defines this for functions which it implements
21456 to always fail with ENOSYS. Some functions are actually named
21457 something starting with __ and the normal name is an alias. */
21458 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21466 if { (eval echo configure:21467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21468 eval "ac_cv_func__spawnlp=yes"
21470 echo "configure: failed program was:" >&5
21471 cat conftest.$ac_ext >&5
21473 eval "ac_cv_func__spawnlp=no"
21478 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21479 echo "$ac_t""yes" 1>&6
21480 cat >> confdefs.h <<\EOF
21481 #define HAVE_SPAWNLP 1
21485 echo "$ac_t""no" 1>&6
21489 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21490 echo "configure:21491: checking for _snprintf" >&5
21491 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21492 echo $ac_n "(cached) $ac_c" 1>&6
21494 cat > conftest.$ac_ext <<EOF
21495 #line 21496 "configure"
21496 #include "confdefs.h"
21497 /* System header to define __stub macros and hopefully few prototypes,
21498 which can conflict with char _snprintf(); below. */
21499 #include <assert.h>
21500 /* Override any gcc2 internal prototype to avoid an error. */
21501 /* We use char because int might match the return type of a gcc2
21502 builtin and then its argument prototype would still apply. */
21508 /* The GNU C library defines this for functions which it implements
21509 to always fail with ENOSYS. Some functions are actually named
21510 something starting with __ and the normal name is an alias. */
21511 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21519 if { (eval echo configure:21520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21521 eval "ac_cv_func__snprintf=yes"
21523 echo "configure: failed program was:" >&5
21524 cat conftest.$ac_ext >&5
21526 eval "ac_cv_func__snprintf=no"
21531 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21532 echo "$ac_t""yes" 1>&6
21533 ac_cv_func_snprintf=yes
21534 cat >> confdefs.h <<\EOF
21535 #define snprintf _snprintf
21540 echo "$ac_t""no" 1>&6
21544 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21545 echo "configure:21546: checking for _vsnprintf" >&5
21546 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21547 echo $ac_n "(cached) $ac_c" 1>&6
21549 cat > conftest.$ac_ext <<EOF
21550 #line 21551 "configure"
21551 #include "confdefs.h"
21552 /* System header to define __stub macros and hopefully few prototypes,
21553 which can conflict with char _vsnprintf(); below. */
21554 #include <assert.h>
21555 /* Override any gcc2 internal prototype to avoid an error. */
21556 /* We use char because int might match the return type of a gcc2
21557 builtin and then its argument prototype would still apply. */
21563 /* The GNU C library defines this for functions which it implements
21564 to always fail with ENOSYS. Some functions are actually named
21565 something starting with __ and the normal name is an alias. */
21566 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21574 if { (eval echo configure:21575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21576 eval "ac_cv_func__vsnprintf=yes"
21578 echo "configure: failed program was:" >&5
21579 cat conftest.$ac_ext >&5
21581 eval "ac_cv_func__vsnprintf=no"
21586 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21587 echo "$ac_t""yes" 1>&6
21588 ac_cv_func_vsnprintf=yes
21589 cat >> confdefs.h <<\EOF
21590 #define vsnprintf _vsnprintf
21595 echo "$ac_t""no" 1>&6
21599 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21600 echo "configure:21601: checking for vprintf" >&5
21601 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21602 echo $ac_n "(cached) $ac_c" 1>&6
21604 cat > conftest.$ac_ext <<EOF
21605 #line 21606 "configure"
21606 #include "confdefs.h"
21607 /* System header to define __stub macros and hopefully few prototypes,
21608 which can conflict with char vprintf(); below. */
21609 #include <assert.h>
21610 /* Override any gcc2 internal prototype to avoid an error. */
21611 /* We use char because int might match the return type of a gcc2
21612 builtin and then its argument prototype would still apply. */
21618 /* The GNU C library defines this for functions which it implements
21619 to always fail with ENOSYS. Some functions are actually named
21620 something starting with __ and the normal name is an alias. */
21621 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21629 if { (eval echo configure:21630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21631 eval "ac_cv_func_vprintf=yes"
21633 echo "configure: failed program was:" >&5
21634 cat conftest.$ac_ext >&5
21636 eval "ac_cv_func_vprintf=no"
21641 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21642 echo "$ac_t""yes" 1>&6
21643 cat >> confdefs.h <<\EOF
21644 #define HAVE_VPRINTF 1
21648 echo "$ac_t""no" 1>&6
21651 if test "$ac_cv_func_vprintf" != yes; then
21652 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21653 echo "configure:21654: checking for _doprnt" >&5
21654 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21655 echo $ac_n "(cached) $ac_c" 1>&6
21657 cat > conftest.$ac_ext <<EOF
21658 #line 21659 "configure"
21659 #include "confdefs.h"
21660 /* System header to define __stub macros and hopefully few prototypes,
21661 which can conflict with char _doprnt(); below. */
21662 #include <assert.h>
21663 /* Override any gcc2 internal prototype to avoid an error. */
21664 /* We use char because int might match the return type of a gcc2
21665 builtin and then its argument prototype would still apply. */
21671 /* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21682 if { (eval echo configure:21683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21684 eval "ac_cv_func__doprnt=yes"
21686 echo "configure: failed program was:" >&5
21687 cat conftest.$ac_ext >&5
21689 eval "ac_cv_func__doprnt=no"
21694 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21695 echo "$ac_t""yes" 1>&6
21696 cat >> confdefs.h <<\EOF
21697 #define HAVE_DOPRNT 1
21701 echo "$ac_t""no" 1>&6
21707 if test $ac_cv_func_vprintf = yes ; then
21708 for ac_func in vsnprintf vsprintf
21710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21711 echo "configure:21712: checking for $ac_func" >&5
21712 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21713 echo $ac_n "(cached) $ac_c" 1>&6
21715 cat > conftest.$ac_ext <<EOF
21716 #line 21717 "configure"
21717 #include "confdefs.h"
21718 /* System header to define __stub macros and hopefully few prototypes,
21719 which can conflict with char $ac_func(); below. */
21720 #include <assert.h>
21721 /* Override any gcc2 internal prototype to avoid an error. */
21722 /* We use char because int might match the return type of a gcc2
21723 builtin and then its argument prototype would still apply. */
21729 /* The GNU C library defines this for functions which it implements
21730 to always fail with ENOSYS. Some functions are actually named
21731 something starting with __ and the normal name is an alias. */
21732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21740 if { (eval echo configure:21741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21742 eval "ac_cv_func_$ac_func=yes"
21744 echo "configure: failed program was:" >&5
21745 cat conftest.$ac_ext >&5
21747 eval "ac_cv_func_$ac_func=no"
21752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21753 echo "$ac_t""yes" 1>&6
21754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21755 cat >> confdefs.h <<EOF
21756 #define $ac_tr_func 1
21760 echo "$ac_t""no" 1>&6
21820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21821 echo "configure:21822: checking for $ac_func" >&5
21822 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21823 echo $ac_n "(cached) $ac_c" 1>&6
21825 cat > conftest.$ac_ext <<EOF
21826 #line 21827 "configure"
21827 #include "confdefs.h"
21828 /* System header to define __stub macros and hopefully few prototypes,
21829 which can conflict with char $ac_func(); below. */
21830 #include <assert.h>
21831 /* Override any gcc2 internal prototype to avoid an error. */
21832 /* We use char because int might match the return type of a gcc2
21833 builtin and then its argument prototype would still apply. */
21839 /* The GNU C library defines this for functions which it implements
21840 to always fail with ENOSYS. Some functions are actually named
21841 something starting with __ and the normal name is an alias. */
21842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21850 if { (eval echo configure:21851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21852 eval "ac_cv_func_$ac_func=yes"
21854 echo "configure: failed program was:" >&5
21855 cat conftest.$ac_ext >&5
21857 eval "ac_cv_func_$ac_func=no"
21862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21863 echo "$ac_t""yes" 1>&6
21864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21865 cat >> confdefs.h <<EOF
21866 #define $ac_tr_func 1
21870 echo "$ac_t""no" 1>&6
21875 for ac_func in getopt
21877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21878 echo "configure:21879: checking for $ac_func" >&5
21879 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21880 echo $ac_n "(cached) $ac_c" 1>&6
21882 cat > conftest.$ac_ext <<EOF
21883 #line 21884 "configure"
21884 #include "confdefs.h"
21885 /* System header to define __stub macros and hopefully few prototypes,
21886 which can conflict with char $ac_func(); below. */
21887 #include <assert.h>
21888 /* Override any gcc2 internal prototype to avoid an error. */
21889 /* We use char because int might match the return type of a gcc2
21890 builtin and then its argument prototype would still apply. */
21896 /* The GNU C library defines this for functions which it implements
21897 to always fail with ENOSYS. Some functions are actually named
21898 something starting with __ and the normal name is an alias. */
21899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21907 if { (eval echo configure:21908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21909 eval "ac_cv_func_$ac_func=yes"
21911 echo "configure: failed program was:" >&5
21912 cat conftest.$ac_ext >&5
21914 eval "ac_cv_func_$ac_func=no"
21919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21920 echo "$ac_t""yes" 1>&6
21921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21922 cat >> confdefs.h <<EOF
21923 #define $ac_tr_func 1
21927 echo "$ac_t""no" 1>&6
21928 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21934 if test "$ac_cv_func_getopt" != yes; then
21935 LIBSRCS="$LIBSRCS getopt.c"
21938 # Check Configuration
21939 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21940 echo "configure:21941: checking declaration of sys_errlist" >&5
21941 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21942 echo $ac_n "(cached) $ac_c" 1>&6
21945 cat > conftest.$ac_ext <<EOF
21946 #line 21947 "configure"
21947 #include "confdefs.h"
21950 #include <sys/types.h>
21953 #include <stdlib.h>
21956 char *c = (char *) *sys_errlist
21959 if { (eval echo configure:21960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21961 ol_cv_dcl_sys_errlist=yes
21962 ol_cv_have_sys_errlist=yes
21964 echo "configure: failed program was:" >&5
21965 cat conftest.$ac_ext >&5
21967 ol_cv_dcl_sys_errlist=no
21972 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21974 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21975 if test $ol_cv_dcl_sys_errlist = no ; then
21976 cat >> confdefs.h <<\EOF
21977 #define DECL_SYS_ERRLIST 1
21981 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21982 echo "configure:21983: checking existence of sys_errlist" >&5
21983 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21984 echo $ac_n "(cached) $ac_c" 1>&6
21987 cat > conftest.$ac_ext <<EOF
21988 #line 21989 "configure"
21989 #include "confdefs.h"
21992 char *c = (char *) *sys_errlist
21995 if { (eval echo configure:21996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21997 ol_cv_have_sys_errlist=yes
21999 echo "configure: failed program was:" >&5
22000 cat conftest.$ac_ext >&5
22002 ol_cv_have_sys_errlist=no
22007 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22009 if test $ol_cv_have_sys_errlist = yes ; then
22010 cat >> confdefs.h <<\EOF
22011 #define HAVE_SYS_ERRLIST 1
22018 if test "$ol_enable_debug" != no ; then
22019 cat >> confdefs.h <<\EOF
22020 #define LDAP_DEBUG 1
22024 if test "$ol_enable_syslog" = yes ; then
22025 cat >> confdefs.h <<\EOF
22026 #define LDAP_SYSLOG 1
22030 if test "$ol_enable_cache" = no ; then
22031 cat >> confdefs.h <<\EOF
22032 #define LDAP_NOCACHE 1
22036 if test "$ol_link_kbind" != no ; then
22037 cat >> confdefs.h <<\EOF
22038 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22042 if test "$ol_enable_proctitle" != no ; then
22043 cat >> confdefs.h <<\EOF
22044 #define LDAP_PROCTITLE 1
22048 if test "$ol_enable_referrals" != no ; then
22049 cat >> confdefs.h <<\EOF
22050 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22054 if test "$ol_enable_local" != no; then
22055 cat >> confdefs.h <<\EOF
22056 #define LDAP_PF_LOCAL 1
22060 if test "$ol_link_ipv6" != no; then
22061 cat >> confdefs.h <<\EOF
22062 #define LDAP_PF_INET6 1
22066 if test "$ol_enable_cleartext" != no ; then
22067 cat >> confdefs.h <<\EOF
22068 #define SLAPD_CLEARTEXT 1
22072 if test "$ol_enable_crypt" != no ; then
22073 cat >> confdefs.h <<\EOF
22074 #define SLAPD_CRYPT 1
22078 if test "$ol_link_kpasswd" != no ; then
22079 cat >> confdefs.h <<\EOF
22080 #define SLAPD_KPASSWD 1
22084 if test "$ol_link_spasswd" != no ; then
22085 cat >> confdefs.h <<\EOF
22086 #define SLAPD_SPASSWD 1
22090 if test "$ol_enable_phonetic" != no ; then
22091 cat >> confdefs.h <<\EOF
22092 #define SLAPD_PHONETIC 1
22096 if test "$ol_enable_rlookups" != no ; then
22097 cat >> confdefs.h <<\EOF
22098 #define SLAPD_RLOOKUPS 1
22102 if test "$ol_enable_aci" != no ; then
22103 cat >> confdefs.h <<\EOF
22104 #define SLAPD_ACI_ENABLED 1
22109 if test "$ol_link_modules" != no ; then
22110 cat >> confdefs.h <<\EOF
22111 #define SLAPD_MODULES 1
22115 SLAPD_MODULES_LDFLAGS="-dlopen self"
22118 if test "$ol_enable_bdb" != no ; then
22119 cat >> confdefs.h <<\EOF
22120 #define SLAPD_BDB 1
22125 if test "$ol_with_bdb_module" != static ; then
22126 cat >> confdefs.h <<\EOF
22127 #define SLAPD_BDB_DYNAMIC 1
22131 BUILD_BDB_DYNAMIC=shared
22132 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
22133 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22135 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22139 if test "$ol_link_dnssrv" != no ; then
22140 cat >> confdefs.h <<\EOF
22141 #define SLAPD_DNSSRV 1
22146 if test "$ol_with_dnssrv_module" != static ; then
22147 cat >> confdefs.h <<\EOF
22148 #define SLAPD_DNSSRV_DYNAMIC 1
22152 BUILD_DNSSRV_DYNAMIC=shared
22153 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
22154 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22156 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22160 if test "$ol_enable_ldap" != no ; then
22161 cat >> confdefs.h <<\EOF
22162 #define SLAPD_LDAP 1
22167 if test "$ol_with_ldap_module" != static ; then
22168 cat >> confdefs.h <<\EOF
22169 #define SLAPD_LDAP_DYNAMIC 1
22173 BUILD_LDAP_DYNAMIC=shared
22174 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
22175 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22177 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22181 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22182 cat >> confdefs.h <<\EOF
22183 #define SLAPD_LDBM 1
22189 if test "$ol_with_ldbm_module" != static ; then
22190 cat >> confdefs.h <<\EOF
22191 #define SLAPD_LDBM_DYNAMIC 1
22195 BUILD_LDBM_DYNAMIC=shared
22196 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
22197 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22199 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22203 if test "$ol_enable_meta" != no ; then
22204 if test "$ol_enable_ldap" = no ; then
22205 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22207 if test "$ol_enable_rewrite" = no ; then
22208 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22210 cat >> confdefs.h <<\EOF
22211 #define SLAPD_META 1
22218 if test "$ol_with_meta_module" != static ; then
22219 cat >> confdefs.h <<\EOF
22220 #define SLAPD_META_DYNAMIC 1
22224 BUILD_META_DYNAMIC=shared
22225 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
22226 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22228 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22232 if test "$ol_enable_monitor" != no ; then
22233 cat >> confdefs.h <<\EOF
22234 #define SLAPD_MONITOR 1
22239 if test "$ol_with_monitor_module" != static ; then
22240 cat >> confdefs.h <<\EOF
22241 #define SLAPD_MONITOR_DYNAMIC 1
22245 BUILD_MONITOR_DYNAMIC=shared
22246 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
22247 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22249 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22253 if test "$ol_enable_null" != no ; then
22254 cat >> confdefs.h <<\EOF
22255 #define SLAPD_NULL 1
22260 if test "$ol_with_null_module" != static ; then
22261 cat >> confdefs.h <<\EOF
22262 #define SLAPD_NULL_DYNAMIC 1
22266 BUILD_NULL_DYNAMIC=shared
22267 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-null/back_null.la"
22268 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22270 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22274 if test "$ol_enable_passwd" != no ; then
22275 cat >> confdefs.h <<\EOF
22276 #define SLAPD_PASSWD 1
22281 if test "$ol_with_passwd_module" != static ; then
22282 cat >> confdefs.h <<\EOF
22283 #define SLAPD_PASSWD_DYNAMIC 1
22287 BUILD_PASSWD_DYNAMIC=shared
22288 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
22289 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22291 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22295 if test "$ol_link_perl" != no ; then
22296 cat >> confdefs.h <<\EOF
22297 #define SLAPD_PERL 1
22302 if test "$ol_with_perl_module" != static ; then
22303 cat >> confdefs.h <<\EOF
22304 #define SLAPD_PERL_DYNAMIC 1
22308 BUILD_PERL_DYNAMIC=shared
22309 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22310 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22312 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22316 if test "$ol_enable_shell" != no ; then
22317 cat >> confdefs.h <<\EOF
22318 #define SLAPD_SHELL 1
22323 if test "$ol_with_shell_module" != static ; then
22324 cat >> confdefs.h <<\EOF
22325 #define SLAPD_SHELL_DYNAMIC 1
22329 BUILD_SHELL_DYNAMIC=shared
22330 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22331 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22333 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22337 if test "$ol_enable_tcl" != no ; then
22338 cat >> confdefs.h <<\EOF
22339 #define SLAPD_TCL 1
22344 if test "$ol_with_tcl_module" != static; then
22345 cat >> confdefs.h <<\EOF
22346 #define SLAPD_TCL_DYNAMIC 1
22350 BUILD_TCL_DYNAMIC=shared
22351 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
22352 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22354 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22358 if test "$ol_link_sql" != no ; then
22359 cat >> confdefs.h <<\EOF
22360 #define SLAPD_SQL 1
22365 if test "$ol_with_sql_module" != static; then
22366 cat >> confdefs.h <<\EOF
22367 #define SLAPD_SQL_DYNAMIC 1
22371 BUILD_SQL_DYNAMIC=shared
22372 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22373 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22375 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22379 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22380 $BUILD_SLAPD = yes ; then
22384 if test "$ol_enable_rewrite" != no ; then
22385 cat >> confdefs.h <<\EOF
22386 #define ENABLE_REWRITE 1
22394 if test "$ac_cv_mingw32" = yes ; then
22396 SLAPD_MODULES_LDFLAGS=
22397 SLAPD_MODULES_LIST=
22471 # Check whether --with-xxinstall or --without-xxinstall was given.
22472 if test "${with_xxinstall+set}" = set; then
22473 withval="$with_xxinstall"
22481 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22484 # Let make expand exec_prefix.
22485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22487 # Any assignment to VPATH causes Sun make to only execute
22488 # the first set of double-colon rules, so remove it if not needed.
22489 # If there is a colon in the path, we need to keep it.
22490 if test "x$srcdir" = x.; then
22491 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22494 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22496 DEFS=-DHAVE_CONFIG_H
22498 # Without the "./", some shells look in PATH for config.status.
22499 : ${CONFIG_STATUS=./config.status}
22501 echo creating $CONFIG_STATUS
22502 rm -f $CONFIG_STATUS
22503 cat > $CONFIG_STATUS <<EOF
22505 # Generated automatically by configure.
22506 # Run this file to recreate the current configuration.
22507 # This directory was configured as follows,
22508 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22510 # $0 $ac_configure_args
22512 # Compiler output produced by configure, useful for debugging
22513 # configure, is in ./config.log if it exists.
22515 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22518 case "\$ac_option" in
22519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22520 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22521 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22522 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22523 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22525 -help | --help | --hel | --he | --h)
22526 echo "\$ac_cs_usage"; exit 0 ;;
22527 *) echo "\$ac_cs_usage"; exit 1 ;;
22531 ac_given_srcdir=$srcdir
22532 ac_given_INSTALL="$INSTALL"
22534 trap 'rm -fr `echo "\
22535 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22536 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22537 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22538 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22539 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22540 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22541 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22542 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22543 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22544 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22545 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22546 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22547 include/Makefile:build/top.mk:include/Makefile.in \
22548 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22549 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22550 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22551 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22552 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22553 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22554 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22555 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22556 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22557 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22558 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22559 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22560 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22561 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22562 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22563 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22564 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22565 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22566 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22567 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22568 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22569 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22570 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22571 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22572 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22573 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22574 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22575 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22576 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22577 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22579 cat >> $CONFIG_STATUS <<EOF
22581 # Protect against being on the right side of a sed subst in config.status.
22582 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22583 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22587 s%@CFLAGS@%$CFLAGS%g
22588 s%@CPPFLAGS@%$CPPFLAGS%g
22589 s%@CXXFLAGS@%$CXXFLAGS%g
22590 s%@FFLAGS@%$FFLAGS%g
22592 s%@LDFLAGS@%$LDFLAGS%g
22594 s%@exec_prefix@%$exec_prefix%g
22595 s%@prefix@%$prefix%g
22596 s%@program_transform_name@%$program_transform_name%g
22597 s%@bindir@%$bindir%g
22598 s%@sbindir@%$sbindir%g
22599 s%@libexecdir@%$libexecdir%g
22600 s%@datadir@%$datadir%g
22601 s%@sysconfdir@%$sysconfdir%g
22602 s%@sharedstatedir@%$sharedstatedir%g
22603 s%@localstatedir@%$localstatedir%g
22604 s%@libdir@%$libdir%g
22605 s%@includedir@%$includedir%g
22606 s%@oldincludedir@%$oldincludedir%g
22607 s%@infodir@%$infodir%g
22608 s%@mandir@%$mandir%g
22610 s%@host_alias@%$host_alias%g
22611 s%@host_cpu@%$host_cpu%g
22612 s%@host_vendor@%$host_vendor%g
22613 s%@host_os@%$host_os%g
22614 s%@target@%$target%g
22615 s%@target_alias@%$target_alias%g
22616 s%@target_cpu@%$target_cpu%g
22617 s%@target_vendor@%$target_vendor%g
22618 s%@target_os@%$target_os%g
22620 s%@build_alias@%$build_alias%g
22621 s%@build_cpu@%$build_cpu%g
22622 s%@build_vendor@%$build_vendor%g
22623 s%@build_os@%$build_os%g
22624 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22625 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22626 s%@INSTALL_DATA@%$INSTALL_DATA%g
22627 s%@PACKAGE@%$PACKAGE%g
22628 s%@VERSION@%$VERSION%g
22629 s%@ACLOCAL@%$ACLOCAL%g
22630 s%@AUTOCONF@%$AUTOCONF%g
22631 s%@AUTOMAKE@%$AUTOMAKE%g
22632 s%@AUTOHEADER@%$AUTOHEADER%g
22633 s%@MAKEINFO@%$MAKEINFO%g
22634 s%@install_sh@%$install_sh%g
22637 s%@AMTARFLAGS@%$AMTARFLAGS%g
22638 s%@SET_MAKE@%$SET_MAKE%g
22639 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22640 s%@top_builddir@%$top_builddir%g
22641 s%@ldap_subdir@%$ldap_subdir%g
22645 s%@OBJEXT@%$OBJEXT%g
22646 s%@EXEEXT@%$EXEEXT%g
22648 s%@RANLIB@%$RANLIB%g
22650 s%@DLLTOOL@%$DLLTOOL%g
22652 s%@OBJDUMP@%$OBJDUMP%g
22654 s%@LIBTOOL@%$LIBTOOL%g
22656 s%@SENDMAIL@%$SENDMAIL%g
22657 s%@EDITOR@%$EDITOR%g
22658 s%@PERLBIN@%$PERLBIN%g
22659 s%@OL_MKDEP@%$OL_MKDEP%g
22660 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22661 s%@LIBOBJS@%$LIBOBJS%g
22662 s%@LIBSRCS@%$LIBSRCS%g
22664 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22665 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22666 s%@BUILD_BDB@%$BUILD_BDB%g
22667 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22668 s%@BUILD_LDAP@%$BUILD_LDAP%g
22669 s%@BUILD_LDBM@%$BUILD_LDBM%g
22670 s%@BUILD_META@%$BUILD_META%g
22671 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22672 s%@BUILD_NULL@%$BUILD_NULL%g
22673 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22674 s%@BUILD_PERL@%$BUILD_PERL%g
22675 s%@BUILD_SHELL@%$BUILD_SHELL%g
22676 s%@BUILD_SQL@%$BUILD_SQL%g
22677 s%@BUILD_TCL@%$BUILD_TCL%g
22678 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22679 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22680 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22681 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22682 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22683 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22684 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22685 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22686 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22687 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22688 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22689 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22690 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22691 s%@LDBM_LIB@%$LDBM_LIB%g
22692 s%@LDAP_LIBS@%$LDAP_LIBS%g
22693 s%@LDIF_LIBS@%$LDIF_LIBS%g
22694 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22695 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22696 s%@LDBM_LIBS@%$LDBM_LIBS%g
22697 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22698 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22699 s%@WRAP_LIBS@%$WRAP_LIBS%g
22700 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22701 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22702 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22703 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22704 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22705 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22706 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22707 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22708 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22709 s%@KRB4_LIBS@%$KRB4_LIBS%g
22710 s%@KRB5_LIBS@%$KRB5_LIBS%g
22711 s%@READLINE_LIBS@%$READLINE_LIBS%g
22712 s%@SASL_LIBS@%$SASL_LIBS%g
22713 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22714 s%@TLS_LIBS@%$TLS_LIBS%g
22715 s%@MODULES_LIBS@%$MODULES_LIBS%g
22716 s%@AUTH_LIBS@%$AUTH_LIBS%g
22717 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22718 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22719 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22720 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22725 cat >> $CONFIG_STATUS <<\EOF
22727 # Split the substitutions into bite-sized pieces for seds with
22728 # small command number limits, like on Digital OSF/1 and HP-UX.
22729 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22730 ac_file=1 # Number of current file.
22731 ac_beg=1 # First line for current file.
22732 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22735 while $ac_more_lines; do
22736 if test $ac_beg -gt 1; then
22737 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22739 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22741 if test ! -s conftest.s$ac_file; then
22742 ac_more_lines=false
22743 rm -f conftest.s$ac_file
22745 if test -z "$ac_sed_cmds"; then
22746 ac_sed_cmds="sed -f conftest.s$ac_file"
22748 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22750 ac_file=`expr $ac_file + 1`
22752 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22755 if test -z "$ac_sed_cmds"; then
22760 cat >> $CONFIG_STATUS <<EOF
22762 CONFIG_FILES=\${CONFIG_FILES-"\
22763 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22764 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22765 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22766 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22767 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22768 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22769 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22770 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22771 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22772 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22773 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22774 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22775 include/Makefile:build/top.mk:include/Makefile.in \
22776 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22777 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22778 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22779 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22780 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22781 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22782 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22783 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22784 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22785 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22786 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22787 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22788 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22789 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22790 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22791 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22792 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22793 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22794 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22795 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22796 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22797 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22798 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22799 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22800 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22801 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22802 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22803 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22804 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22807 cat >> $CONFIG_STATUS <<\EOF
22808 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22811 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22812 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22813 *) ac_file_in="${ac_file}.in" ;;
22816 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22818 # Remove last slash and all that follows it. Not all systems have dirname.
22819 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22820 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22821 # The file is in a subdirectory.
22822 test ! -d "$ac_dir" && mkdir "$ac_dir"
22823 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22824 # A "../" for each directory in $ac_dir_suffix.
22825 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22827 ac_dir_suffix= ac_dots=
22830 case "$ac_given_srcdir" in
22832 if test -z "$ac_dots"; then top_srcdir=.
22833 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22834 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22835 *) # Relative path.
22836 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22837 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22840 case "$ac_given_INSTALL" in
22841 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22842 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22845 echo creating "$ac_file"
22847 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22849 *[Mm]akefile*) ac_comsub="1i\\
22850 # $configure_input" ;;
22854 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22856 s%@configure_input@%$configure_input%g
22857 s%@srcdir@%$srcdir%g
22858 s%@top_srcdir@%$top_srcdir%g
22859 s%@INSTALL@%$INSTALL%g
22860 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22864 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22865 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22867 # ac_d sets the value in "#define NAME VALUE" lines.
22868 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22869 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22872 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22873 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22874 ac_uB='\([ ]\)%\1#\2define\3'
22877 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22878 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22879 ac_eB='$%\1#\2define\3'
22883 if test "${CONFIG_HEADERS+set}" != set; then
22885 cat >> $CONFIG_STATUS <<EOF
22886 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22888 cat >> $CONFIG_STATUS <<\EOF
22890 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22891 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22893 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22894 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22895 *) ac_file_in="${ac_file}.in" ;;
22898 echo creating $ac_file
22900 rm -f conftest.frag conftest.in conftest.out
22901 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22902 cat $ac_file_inputs > conftest.in
22906 # Transform confdefs.h into a sed script conftest.vals that substitutes
22907 # the proper values into config.h.in to produce config.h. And first:
22908 # Protect against being on the right side of a sed subst in config.status.
22909 # Protect against being in an unquoted here document in config.status.
22910 rm -f conftest.vals
22911 cat > conftest.hdr <<\EOF
22914 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22918 sed -n -f conftest.hdr confdefs.h > conftest.vals
22921 # This sed command replaces #undef with comments. This is necessary, for
22922 # example, in the case of _POSIX_SOURCE, which is predefined and required
22923 # on some systems where configure will not decide to define it.
22924 cat >> conftest.vals <<\EOF
22925 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22928 # Break up conftest.vals because some shells have a limit on
22929 # the size of here documents, and old seds have small limits too.
22931 rm -f conftest.tail
22934 ac_lines=`grep -c . conftest.vals`
22935 # grep -c gives empty output for an empty file on some AIX systems.
22936 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22937 # Write a limited-size here document to conftest.frag.
22938 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22939 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22941 sed -f conftest.frag conftest.in > conftest.out
22943 mv conftest.out conftest.in
22944 ' >> $CONFIG_STATUS
22945 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22946 rm -f conftest.vals
22947 mv conftest.tail conftest.vals
22949 rm -f conftest.vals
22951 cat >> $CONFIG_STATUS <<\EOF
22952 rm -f conftest.frag conftest.h
22953 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22954 cat conftest.in >> conftest.h
22956 if cmp -s $ac_file conftest.h 2>/dev/null; then
22957 echo "$ac_file is unchanged"
22960 # Remove last slash and all that follows it. Not all systems have dirname.
22961 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22962 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22963 # The file is in a subdirectory.
22964 test ! -d "$ac_dir" && mkdir "$ac_dir"
22967 mv conftest.h $ac_file
22972 cat >> $CONFIG_STATUS <<EOF
22975 cat >> $CONFIG_STATUS <<\EOF
22978 echo Please run \"make depend\" to build dependencies
22982 chmod +x $CONFIG_STATUS
22983 rm -fr confdefs* $ac_clean_files
22984 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1