3 # from OpenLDAP: pkg/ldap/configure.in,v 1.423 2002/06/25 00:18:50 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
136 --enable-sql enable sql backend [no]"
138 --with-sql-module module type static|dynamic [static]"
140 --enable-tcl enable tcl backend [no]"
142 --with-tcl-module module type static|dynamic [static]"
145 SLURPD (Replication Daemon) Options:"
147 --enable-slurpd enable building slurpd [auto]"
150 Library Generation & Linking Options"
152 --enable-static[=PKGS] build static libraries [default=yes]"
154 --enable-shared[=PKGS] build shared libraries [default=yes]"
156 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
158 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
160 # Find the correct PATH separator. Usually this is `:', but
161 # DJGPP uses `;' like DOS.
162 if test "X${PATH_SEPARATOR+set}" != Xset; then
163 UNAME=${UNAME-`uname 2>/dev/null`}
165 *-DOS) lt_cv_sys_path_separator=';' ;;
166 *) lt_cv_sys_path_separator=':' ;;
168 PATH_SEPARATOR=$lt_cv_sys_path_separator
172 # Check that we are running under the correct shell.
173 SHELL=${CONFIG_SHELL-/bin/sh}
177 # Remove one level of quotation (which was required for Make).
178 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
183 if test "X$1" = X--no-reexec; then
184 # Discard the --no-reexec flag, and continue.
186 elif test "X$1" = X--fallback-echo; then
187 # Avoid inline document here, it may be left over
189 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
190 # Yippee, $echo works!
193 # Restart under the correct shell.
194 exec $SHELL "$0" --no-reexec ${1+"$@"}
197 if test "X$1" = X--fallback-echo; then
198 # used as fallback echo
206 # The HP-UX ksh and POSIX shell print the target directory to stdout
208 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
210 if test -z "$ECHO"; then
211 if test "X${echo_test_string+set}" != Xset; then
212 # find a string as large as possible, as long as the shell can cope with it
213 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
214 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
215 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
216 echo_test_string="`eval $cmd`" &&
217 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
224 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
225 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
226 test "X$echo_testing_string" = "X$echo_test_string"; then
229 # The Solaris, AIX, and Digital Unix default echo programs unquote
230 # backslashes. This makes it impossible to quote backslashes using
231 # echo "$something" | sed 's/\\/\\\\/g'
233 # So, first we look for a working echo in the user's PATH.
235 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
236 for dir in $PATH /usr/ucb; do
237 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
238 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
247 if test "X$echo" = Xecho; then
248 # We didn't find a better echo, so look for alternatives.
249 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
250 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
251 test "X$echo_testing_string" = "X$echo_test_string"; then
252 # This shell has a builtin print -r that does the trick.
254 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
255 test "X$CONFIG_SHELL" != X/bin/ksh; then
256 # If we have ksh, try running configure again with it.
257 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
258 export ORIGINAL_CONFIG_SHELL
259 CONFIG_SHELL=/bin/ksh
261 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
265 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
266 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
267 test "X$echo_testing_string" = "X$echo_test_string"; then
270 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
271 test "X$echo_testing_string" = 'X\t' &&
272 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
273 test "X$echo_testing_string" = "X$echo_test_string"; then
274 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
276 SHELL="$CONFIG_SHELL"
278 echo="$CONFIG_SHELL $0 --fallback-echo"
279 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
280 test "X$echo_testing_string" = 'X\t' &&
281 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
282 test "X$echo_testing_string" = "X$echo_test_string"; then
283 echo="$CONFIG_SHELL $0 --fallback-echo"
285 # maybe with a smaller string...
288 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
289 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
296 if test "$prev" != 'sed 50q "$0"'; then
297 echo_test_string=`eval $prev`
298 export echo_test_string
299 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
301 # Oops. We lost completely, so just stick with echo.
310 # Copy echo and quote the copy suitably for passing to libtool from
311 # the Makefile, instead of quoting the original, which is used later.
313 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
314 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
319 --disable-libtool-lock avoid locking (might break parallel builds)"
321 --with-pic try to use only PIC/non-PIC objects [default=use both]"
324 See INSTALL file for further details."
326 # Initialize some variables set by options.
327 # The variables have the same names as the options, with
328 # dashes changed to underlines.
330 cache_file=./config.cache
339 program_transform_name=s,x,x,
347 bindir='${exec_prefix}/bin'
348 sbindir='${exec_prefix}/sbin'
349 libexecdir='${exec_prefix}/libexec'
350 datadir='${prefix}/share'
351 sysconfdir='${prefix}/etc'
352 sharedstatedir='${prefix}/com'
353 localstatedir='${prefix}/var'
354 libdir='${exec_prefix}/lib'
355 includedir='${prefix}/include'
356 oldincludedir='/usr/include'
357 infodir='${prefix}/info'
358 mandir='${prefix}/man'
360 # Initialize some other variables.
363 SHELL=${CONFIG_SHELL-/bin/sh}
364 # Maximum number of lines to put in a shell here document.
371 # If the previous option needs an argument, assign it.
372 if test -n "$ac_prev"; then
373 eval "$ac_prev=\$ac_option"
379 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
383 # Accept the important Cygnus configure options, so we can diagnose typos.
387 -bindir | --bindir | --bindi | --bind | --bin | --bi)
389 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
390 bindir="$ac_optarg" ;;
392 -build | --build | --buil | --bui | --bu)
394 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395 build="$ac_optarg" ;;
397 -cache-file | --cache-file | --cache-fil | --cache-fi \
398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399 ac_prev=cache_file ;;
400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402 cache_file="$ac_optarg" ;;
404 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
406 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
408 datadir="$ac_optarg" ;;
410 -disable-* | --disable-*)
411 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
416 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
417 eval "enable_${ac_feature}=no" ;;
419 -enable-* | --enable-*)
420 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
423 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
425 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
430 eval "enable_${ac_feature}='$ac_optarg'" ;;
432 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
433 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
434 | --exec | --exe | --ex)
435 ac_prev=exec_prefix ;;
436 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
437 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
438 | --exec=* | --exe=* | --ex=*)
439 exec_prefix="$ac_optarg" ;;
441 -gas | --gas | --ga | --g)
442 # Obsolete; use --with-gas.
445 -help | --help | --hel | --he)
446 # Omit some internal or obsolete options to make the list less imposing.
447 # This message is too long to be a string in the A/UX 3.1 sh.
449 Usage: configure [options] [host]
450 Options: [defaults in brackets after descriptions]
452 --cache-file=FILE cache test results in FILE
453 --help print this message
454 --no-create do not create output files
455 --quiet, --silent do not print \`checking...' messages
456 --version print the version of autoconf that created configure
457 Directory and file names:
458 --prefix=PREFIX install architecture-independent files in PREFIX
460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
462 --bindir=DIR user executables in DIR [EPREFIX/bin]
463 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
464 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
465 --datadir=DIR read-only architecture-independent data in DIR
467 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
468 --sharedstatedir=DIR modifiable architecture-independent data in DIR
470 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
471 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
472 --includedir=DIR C header files in DIR [PREFIX/include]
473 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
474 --infodir=DIR info documentation in DIR [PREFIX/info]
475 --mandir=DIR man documentation in DIR [PREFIX/man]
476 --srcdir=DIR find the sources in DIR [configure dir or ..]
477 --program-prefix=PREFIX prepend PREFIX to installed program names
478 --program-suffix=SUFFIX append SUFFIX to installed program names
479 --program-transform-name=PROGRAM
480 run sed PROGRAM on installed program names
484 --build=BUILD configure for building on BUILD [BUILD=HOST]
485 --host=HOST configure for HOST [guessed]
486 --target=TARGET configure for TARGET [TARGET=HOST]
487 Features and packages:
488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
492 --x-includes=DIR X include files are in DIR
493 --x-libraries=DIR X library files are in DIR
495 if test -n "$ac_help"; then
496 echo "--enable and --with options recognized:$ac_help"
500 -host | --host | --hos | --ho)
502 -host=* | --host=* | --hos=* | --ho=*)
505 -includedir | --includedir | --includedi | --included | --include \
506 | --includ | --inclu | --incl | --inc)
507 ac_prev=includedir ;;
508 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
509 | --includ=* | --inclu=* | --incl=* | --inc=*)
510 includedir="$ac_optarg" ;;
512 -infodir | --infodir | --infodi | --infod | --info | --inf)
514 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
515 infodir="$ac_optarg" ;;
517 -libdir | --libdir | --libdi | --libd)
519 -libdir=* | --libdir=* | --libdi=* | --libd=*)
520 libdir="$ac_optarg" ;;
522 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
523 | --libexe | --libex | --libe)
524 ac_prev=libexecdir ;;
525 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
526 | --libexe=* | --libex=* | --libe=*)
527 libexecdir="$ac_optarg" ;;
529 -localstatedir | --localstatedir | --localstatedi | --localstated \
530 | --localstate | --localstat | --localsta | --localst \
531 | --locals | --local | --loca | --loc | --lo)
532 ac_prev=localstatedir ;;
533 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
534 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
535 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
536 localstatedir="$ac_optarg" ;;
538 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
540 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
541 mandir="$ac_optarg" ;;
544 # Obsolete; use --without-fp.
547 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
551 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
552 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
555 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
556 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
557 | --oldin | --oldi | --old | --ol | --o)
558 ac_prev=oldincludedir ;;
559 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
560 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
561 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
562 oldincludedir="$ac_optarg" ;;
564 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
566 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
567 prefix="$ac_optarg" ;;
569 -program-prefix | --program-prefix | --program-prefi | --program-pref \
570 | --program-pre | --program-pr | --program-p)
571 ac_prev=program_prefix ;;
572 -program-prefix=* | --program-prefix=* | --program-prefi=* \
573 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
574 program_prefix="$ac_optarg" ;;
576 -program-suffix | --program-suffix | --program-suffi | --program-suff \
577 | --program-suf | --program-su | --program-s)
578 ac_prev=program_suffix ;;
579 -program-suffix=* | --program-suffix=* | --program-suffi=* \
580 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
581 program_suffix="$ac_optarg" ;;
583 -program-transform-name | --program-transform-name \
584 | --program-transform-nam | --program-transform-na \
585 | --program-transform-n | --program-transform- \
586 | --program-transform | --program-transfor \
587 | --program-transfo | --program-transf \
588 | --program-trans | --program-tran \
589 | --progr-tra | --program-tr | --program-t)
590 ac_prev=program_transform_name ;;
591 -program-transform-name=* | --program-transform-name=* \
592 | --program-transform-nam=* | --program-transform-na=* \
593 | --program-transform-n=* | --program-transform-=* \
594 | --program-transform=* | --program-transfor=* \
595 | --program-transfo=* | --program-transf=* \
596 | --program-trans=* | --program-tran=* \
597 | --progr-tra=* | --program-tr=* | --program-t=*)
598 program_transform_name="$ac_optarg" ;;
600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
601 | -silent | --silent | --silen | --sile | --sil)
604 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
606 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
608 sbindir="$ac_optarg" ;;
610 -sharedstatedir | --sharedstatedir | --sharedstatedi \
611 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
612 | --sharedst | --shareds | --shared | --share | --shar \
614 ac_prev=sharedstatedir ;;
615 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
616 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
617 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
619 sharedstatedir="$ac_optarg" ;;
621 -site | --site | --sit)
623 -site=* | --site=* | --sit=*)
626 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
628 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
629 srcdir="$ac_optarg" ;;
631 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
632 | --syscon | --sysco | --sysc | --sys | --sy)
633 ac_prev=sysconfdir ;;
634 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
635 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
636 sysconfdir="$ac_optarg" ;;
638 -target | --target | --targe | --targ | --tar | --ta | --t)
640 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
641 target="$ac_optarg" ;;
643 -v | -verbose | --verbose | --verbos | --verbo | --verb)
646 -version | --version | --versio | --versi | --vers)
647 echo "configure generated by autoconf version 2.13.1"
651 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
652 # Reject names that are not valid shell variable names.
653 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
654 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
656 ac_package=`echo $ac_package| sed 's/-/_/g'`
661 eval "with_${ac_package}='$ac_optarg'" ;;
663 -without-* | --without-*)
664 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
665 # Reject names that are not valid shell variable names.
666 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
667 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
669 ac_package=`echo $ac_package| sed 's/-/_/g'`
670 eval "with_${ac_package}=no" ;;
673 # Obsolete; use --with-x.
676 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
677 | --x-incl | --x-inc | --x-in | --x-i)
678 ac_prev=x_includes ;;
679 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
680 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
681 x_includes="$ac_optarg" ;;
683 -x-libraries | --x-libraries | --x-librarie | --x-librari \
684 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
685 ac_prev=x_libraries ;;
686 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
687 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
688 x_libraries="$ac_optarg" ;;
690 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
694 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
695 echo "configure: warning: $ac_option: invalid host type" 1>&2
697 if test "x$nonopt" != xNONE; then
698 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
706 if test -n "$ac_prev"; then
707 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
710 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
712 # File descriptor usage:
715 # 2 errors and warnings
716 # 3 some systems may open it to /dev/tty
717 # 4 used on the Kubota Titan
718 # 6 checking for... messages and results
719 # 5 compiler messages saved in config.log
720 if test "$silent" = yes; then
728 This file contains any messages produced by compilers while
729 running configure, to aid debugging if configure makes a mistake.
732 # Strip out --no-create and --no-recursion so they do not pile up.
733 # Also quote any args containing shell metacharacters.
738 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
739 | --no-cr | --no-c) ;;
740 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
741 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
742 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
743 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
744 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
749 # Only set these to C if already set. These must not be set unconditionally
750 # because not all systems understand e.g. LANG=C (notably SCO).
751 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
752 # Non-C LC_CTYPE values break the ctype check.
753 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
754 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
755 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
756 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
759 rm -rf conftest* confdefs.h
760 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
763 # A filename unique to this package, relative to the directory that
764 # configure is in, which we can look for to find out if srcdir is correct.
765 ac_unique_file=build/version.sh
767 # Find the source files, if location was not specified.
768 if test -z "$srcdir"; then
769 ac_srcdir_defaulted=yes
770 # Try the directory containing this script, then its parent.
772 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
773 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
775 if test ! -r $srcdir/$ac_unique_file; then
779 ac_srcdir_defaulted=no
781 if test ! -r $srcdir/$ac_unique_file; then
782 if test "$ac_srcdir_defaulted" = yes; then
783 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
785 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
788 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
790 # Prefer explicitly selected file to automatically selected ones.
791 if test -z "$CONFIG_SITE"; then
792 if test "x$prefix" != xNONE; then
793 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
795 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
798 for ac_site_file in $CONFIG_SITE; do
799 if test -r "$ac_site_file"; then
800 echo "loading site script $ac_site_file"
807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
808 ac_cpp='$CPP $CPPFLAGS'
809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
811 cross_compiling=$ac_cv_prog_cc_cross
815 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
816 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
817 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
824 ac_n= ac_c='\c' ac_t=
828 # set unset (borrowed from autoconf 2.49c)
829 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
835 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
838 for ac_dir in build $srcdir/build; do
839 if test -f $ac_dir/install-sh; then
841 ac_install_sh="$ac_aux_dir/install-sh -c"
843 elif test -f $ac_dir/install.sh; then
845 ac_install_sh="$ac_aux_dir/install.sh -c"
847 elif test -f $ac_dir/shtool; then
849 ac_install_sh="$ac_aux_dir/shtool install -c"
853 if test -z "$ac_aux_dir"; then
854 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
858 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
860 eval `$ac_aux_dir/version.sh`
861 if test -z "$OL_STRING"; then
862 { echo "configure: error: could not determine version" 1>&2; exit 1; }
865 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
866 ac_cv_shtool="$ac_aux_dir/shtool"
868 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
871 SHTOOL="$ac_cv_shtool"
873 TB=`$SHTOOL echo -e %B`
874 TN=`$SHTOOL echo -e %b`
876 echo "Configuring $TB$OL_STRING$TN ..."
879 echo $ac_n "checking host system type""... $ac_c" 1>&6
880 echo "configure:881: checking host system type" >&5
881 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 ac_cv_host_alias=$host
889 case "$ac_cv_host_alias" in
893 if ac_cv_host_alias=`$ac_config_guess`; then :
894 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896 *) ac_cv_host_alias=$nonopt ;;
900 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
901 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
902 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
903 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo $ac_n "(cached) $ac_c" 1>&6
908 echo "$ac_t""$ac_cv_host" 1>&6
911 host_alias=$ac_cv_host_alias
912 host_cpu=$ac_cv_host_cpu
913 host_vendor=$ac_cv_host_vendor
914 host_os=$ac_cv_host_os
920 echo $ac_n "checking target system type""... $ac_c" 1>&6
921 echo "configure:922: checking target system type" >&5
922 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
924 # Make sure we can run config.sub.
925 if $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 ac_cv_target_alias=$target
930 case "$ac_cv_target_alias" in
934 ac_cv_target_alias=$host_alias ;;
936 *) ac_cv_target_alias=$nonopt ;;
940 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
941 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo $ac_n "(cached) $ac_c" 1>&6
948 echo "$ac_t""$ac_cv_target" 1>&6
951 target_alias=$ac_cv_target_alias
952 target_cpu=$ac_cv_target_cpu
953 target_vendor=$ac_cv_target_vendor
954 target_os=$ac_cv_target_os
960 echo $ac_n "checking build system type""... $ac_c" 1>&6
961 echo "configure:962: checking build system type" >&5
962 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
964 # Make sure we can run config.sub.
965 if $ac_config_sub sun4 >/dev/null 2>&1; then :
966 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
969 ac_cv_build_alias=$build
970 case "$ac_cv_build_alias" in
974 ac_cv_build_alias=$host_alias ;;
976 *) ac_cv_build_alias=$nonopt ;;
980 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
981 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo $ac_n "(cached) $ac_c" 1>&6
988 echo "$ac_t""$ac_cv_build" 1>&6
991 build_alias=$ac_cv_build_alias
992 build_cpu=$ac_cv_build_cpu
993 build_vendor=$ac_cv_build_vendor
994 build_os=$ac_cv_build_os
1000 # Do some error checking and defaulting for the host and target type.
1002 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 # 1. You are not allowed to specify --host, --target, and nonopt at the
1007 # 2. Host defaults to nonopt.
1008 # 3. If nonopt is not specified, then host defaults to the current host,
1009 # as determined by config.guess.
1010 # 4. Target and build default to nonopt.
1011 # 5. If nonopt is not specified, then target and build default to host.
1013 # The aliases save the names the user supplied, while $host etc.
1014 # will get canonicalized.
1015 case $host---$target---$nonopt in
1016 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1026 # Find a good install program. We prefer a C program (faster),
1027 # so one script is as good as another. But avoid the broken or
1028 # incompatible versions:
1029 # SysV /etc/install, /usr/sbin/install
1030 # SunOS /usr/etc/install
1031 # IRIX /sbin/install
1033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1036 # ./install, which can be erroneously created by make from ./install.sh.
1037 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1038 echo "configure:1039: checking for a BSD compatible install" >&5
1039 if test -z "$INSTALL"; then
1040 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1044 for ac_dir in $PATH; do
1045 # Account for people who put trailing slashes in PATH elements.
1047 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 # Don't use installbsd from OSF since it installs stuff as root
1052 for ac_prog in ginstall scoinst install; do
1053 if test -f $ac_dir/$ac_prog; then
1054 if test $ac_prog = install &&
1055 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # AIX install. It has an incompatible calling convention.
1058 elif test $ac_prog = install &&
1059 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # program-specific install script used by HP pwplus--don't use.
1063 ac_cv_path_install="$ac_dir/$ac_prog -c"
1074 if test "${ac_cv_path_install+set}" = set; then
1075 INSTALL="$ac_cv_path_install"
1077 # As a last resort, use the slow shell script. We don't cache a
1078 # path for INSTALL within a source directory, because that will
1079 # break other packages using the cache if that directory is
1080 # removed, or if the path is relative.
1081 INSTALL="$ac_install_sh"
1084 echo "$ac_t""$INSTALL" 1>&6
1086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1087 # It thinks the first close brace ends the variable substitution.
1088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1094 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether build environment is sane" >&5
1098 echo timestamp > conftestfile
1099 # Do `set' in a subshell so we don't clobber the current shell's
1100 # arguments. Must try -L first in case configure is actually a
1101 # symlink; some systems play weird games with the mod time of symlinks
1102 # (eg FreeBSD returns the mod time of the symlink's containing
1105 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1106 if test "$*" = "X"; then
1108 set X `ls -t $srcdir/configure conftestfile`
1110 if test "$*" != "X $srcdir/configure conftestfile" \
1111 && test "$*" != "X conftestfile $srcdir/configure"; then
1113 # If neither matched, then we have a broken ls. This can happen
1114 # if, for instance, CONFIG_SHELL is bash and it inherits a
1115 # broken ls alias from the environment. This has actually
1116 # happened. Such a system could not be considered "sane".
1117 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1118 alias in your environment" 1>&2; exit 1; }
1121 test "$2" = conftestfile
1127 { echo "configure: error: newly created file is older than distributed files!
1128 Check your system clock" 1>&2; exit 1; }
1131 echo "$ac_t""yes" 1>&6
1132 if test "$program_transform_name" = s,x,x,; then
1133 program_transform_name=
1135 # Double any \ or $. echo might interpret backslashes.
1136 cat <<\EOF_SED > conftestsed
1137 s,\\,\\\\,g; s,\$,$$,g
1139 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1142 test "$program_prefix" != NONE &&
1143 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1144 # Use a double $ so make ignores it.
1145 test "$program_suffix" != NONE &&
1146 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1148 # sed with no file args requires a program.
1149 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1151 for ac_prog in mawk gawk nawk awk
1153 # Extract the first word of "$ac_prog", so it can be a program name with args.
1154 set dummy $ac_prog; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$AWK"; then
1161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_AWK="$ac_prog"
1175 AWK="$ac_cv_prog_AWK"
1176 if test -n "$AWK"; then
1177 echo "$ac_t""$AWK" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 test -n "$AWK" && break
1185 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5
1187 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1188 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftestmake <<\EOF
1193 @echo 'ac_maketemp="${MAKE}"'
1195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1196 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1197 if test -n "$ac_maketemp"; then
1198 eval ac_cv_prog_make_${ac_make}_set=yes
1200 eval ac_cv_prog_make_${ac_make}_set=no
1204 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1208 echo "$ac_t""no" 1>&6
1209 SET_MAKE="MAKE=${MAKE-make}"
1218 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1219 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224 missing_dir=`cd $ac_aux_dir && pwd`
1225 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1226 echo "configure:1227: checking for working aclocal" >&5
1227 # Run test in a subshell; some versions of sh will print an error if
1228 # an executable is not found, even if stderr is redirected.
1229 # Redirect stdin to placate older versions of autoconf. Sigh.
1230 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1232 echo "$ac_t""found" 1>&6
1234 ACLOCAL="$missing_dir/missing aclocal"
1235 echo "$ac_t""missing" 1>&6
1238 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1239 echo "configure:1240: checking for working autoconf" >&5
1240 # Run test in a subshell; some versions of sh will print an error if
1241 # an executable is not found, even if stderr is redirected.
1242 # Redirect stdin to placate older versions of autoconf. Sigh.
1243 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1245 echo "$ac_t""found" 1>&6
1247 AUTOCONF="$missing_dir/missing autoconf"
1248 echo "$ac_t""missing" 1>&6
1251 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1252 echo "configure:1253: checking for working automake" >&5
1253 # Run test in a subshell; some versions of sh will print an error if
1254 # an executable is not found, even if stderr is redirected.
1255 # Redirect stdin to placate older versions of autoconf. Sigh.
1256 if (automake --version) < /dev/null > /dev/null 2>&1; then
1258 echo "$ac_t""found" 1>&6
1260 AUTOMAKE="$missing_dir/missing automake"
1261 echo "$ac_t""missing" 1>&6
1264 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1265 echo "configure:1266: checking for working autoheader" >&5
1266 # Run test in a subshell; some versions of sh will print an error if
1267 # an executable is not found, even if stderr is redirected.
1268 # Redirect stdin to placate older versions of autoconf. Sigh.
1269 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1270 AUTOHEADER=autoheader
1271 echo "$ac_t""found" 1>&6
1273 AUTOHEADER="$missing_dir/missing autoheader"
1274 echo "$ac_t""missing" 1>&6
1277 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1278 echo "configure:1279: checking for working makeinfo" >&5
1279 # Run test in a subshell; some versions of sh will print an error if
1280 # an executable is not found, even if stderr is redirected.
1281 # Redirect stdin to placate older versions of autoconf. Sigh.
1282 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1284 echo "$ac_t""found" 1>&6
1286 MAKEINFO="$missing_dir/missing makeinfo"
1287 echo "$ac_t""missing" 1>&6
1290 install_sh="$missing_dir/install-sh"
1291 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1293 for ac_prog in gnutar gtar tar
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$AMTAR"; then
1303 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AMTAR="$ac_prog"
1317 AMTAR="$ac_cv_prog_AMTAR"
1318 if test -n "$AMTAR"; then
1319 echo "$ac_t""$AMTAR" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 test -n "$AMTAR" && break
1329 if test -n "$AMTAR"; then
1330 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_PACKAGE "$PACKAGE"
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_VERSION "$VERSION"
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION $OL_API_INC
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1361 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
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 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1535 # OpenLDAP --enable-x_compile
1536 # Check whether --enable-x_compile or --disable-x_compile was given.
1537 if test "${enable_x_compile+set}" = set; then
1538 enableval="$enable_x_compile"
1541 for ol_val in yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1549 ol_enable_x_compile="$ol_arg"
1552 ol_enable_x_compile="no"
1554 # end --enable-x_compile
1557 # OpenLDAP --with-cyrus_sasl
1558 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1559 if test "${with_cyrus_sasl+set}" = set; then
1560 withval="$with_cyrus_sasl"
1563 for ol_val in auto yes no ; do
1564 if test "$withval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1571 ol_with_cyrus_sasl="$ol_arg"
1574 ol_with_cyrus_sasl="auto"
1576 # end --with-cyrus_sasl
1578 # OpenLDAP --with-fetch
1579 # Check whether --with-fetch or --without-fetch was given.
1580 if test "${with_fetch+set}" = set; then
1581 withval="$with_fetch"
1584 for ol_val in auto yes no ; do
1585 if test "$withval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1592 ol_with_fetch="$ol_arg"
1595 ol_with_fetch="auto"
1599 # OpenLDAP --with-kerberos
1600 # Check whether --with-kerberos or --without-kerberos was given.
1601 if test "${with_kerberos+set}" = set; then
1602 withval="$with_kerberos"
1605 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1606 if test "$withval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1613 ol_with_kerberos="$ol_arg"
1616 ol_with_kerberos="auto"
1618 # end --with-kerberos
1620 # OpenLDAP --with-readline
1621 # Check whether --with-readline or --without-readline was given.
1622 if test "${with_readline+set}" = set; then
1623 withval="$with_readline"
1626 for ol_val in auto yes no ; do
1627 if test "$withval" = "$ol_val" ; then
1631 if test "$ol_arg" = "invalid" ; then
1632 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1634 ol_with_readline="$ol_arg"
1637 ol_with_readline="auto"
1639 # end --with-readline
1641 # OpenLDAP --with-threads
1642 # Check whether --with-threads or --without-threads was given.
1643 if test "${with_threads+set}" = set; then
1644 withval="$with_threads"
1647 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1655 ol_with_threads="$ol_arg"
1658 ol_with_threads="auto"
1660 # end --with-threads
1662 # OpenLDAP --with-tls
1663 # Check whether --with-tls or --without-tls was given.
1664 if test "${with_tls+set}" = set; then
1668 for ol_val in auto ssleay openssl yes no ; do
1669 if test "$withval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1676 ol_with_tls="$ol_arg"
1683 # OpenLDAP --with-yielding_select
1684 # Check whether --with-yielding_select or --without-yielding_select was given.
1685 if test "${with_yielding_select+set}" = set; then
1686 withval="$with_yielding_select"
1689 for ol_val in auto yes no manual ; do
1690 if test "$withval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1697 ol_with_yielding_select="$ol_arg"
1700 ol_with_yielding_select="auto"
1702 # end --with-yielding_select
1706 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1707 if test "${with_xxslapdoptions+set}" = set; then
1708 withval="$with_xxslapdoptions"
1712 # OpenLDAP --enable-slapd
1713 # Check whether --enable-slapd or --disable-slapd was given.
1714 if test "${enable_slapd+set}" = set; then
1715 enableval="$enable_slapd"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1726 ol_enable_slapd="$ol_arg"
1729 ol_enable_slapd="yes"
1731 # end --enable-slapd
1732 # OpenLDAP --enable-aci
1733 # Check whether --enable-aci or --disable-aci was given.
1734 if test "${enable_aci+set}" = set; then
1735 enableval="$enable_aci"
1738 for ol_val in auto yes no ; do
1739 if test "$enableval" = "$ol_val" ; then
1743 if test "$ol_arg" = "invalid" ; then
1744 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1746 ol_enable_aci="$ol_arg"
1752 # OpenLDAP --enable-cleartext
1753 # Check whether --enable-cleartext or --disable-cleartext was given.
1754 if test "${enable_cleartext+set}" = set; then
1755 enableval="$enable_cleartext"
1758 for ol_val in auto yes no ; do
1759 if test "$enableval" = "$ol_val" ; then
1763 if test "$ol_arg" = "invalid" ; then
1764 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1766 ol_enable_cleartext="$ol_arg"
1769 ol_enable_cleartext="yes"
1771 # end --enable-cleartext
1772 # OpenLDAP --enable-crypt
1773 # Check whether --enable-crypt or --disable-crypt was given.
1774 if test "${enable_crypt+set}" = set; then
1775 enableval="$enable_crypt"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1786 ol_enable_crypt="$ol_arg"
1789 ol_enable_crypt="no"
1791 # end --enable-crypt
1792 # OpenLDAP --enable-dynamic
1793 # Check whether --enable-dynamic or --disable-dynamic was given.
1794 if test "${enable_dynamic+set}" = set; then
1795 enableval="$enable_dynamic"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1806 ol_enable_dynamic="$ol_arg"
1809 ol_enable_dynamic="no"
1811 # end --enable-dynamic
1812 # OpenLDAP --enable-kpasswd
1813 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1814 if test "${enable_kpasswd+set}" = set; then
1815 enableval="$enable_kpasswd"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1826 ol_enable_kpasswd="$ol_arg"
1829 ol_enable_kpasswd="no"
1831 # end --enable-kpasswd
1832 # OpenLDAP --enable-lmpasswd
1833 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1834 if test "${enable_lmpasswd+set}" = set; then
1835 enableval="$enable_lmpasswd"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1846 ol_enable_lmpasswd="$ol_arg"
1849 ol_enable_lmpasswd="no"
1851 # end --enable-lmpasswd
1852 # OpenLDAP --enable-spasswd
1853 # Check whether --enable-spasswd or --disable-spasswd was given.
1854 if test "${enable_spasswd+set}" = set; then
1855 enableval="$enable_spasswd"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1866 ol_enable_spasswd="$ol_arg"
1869 ol_enable_spasswd="no"
1871 # end --enable-spasswd
1872 # OpenLDAP --enable-modules
1873 # Check whether --enable-modules or --disable-modules was given.
1874 if test "${enable_modules+set}" = set; then
1875 enableval="$enable_modules"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1886 ol_enable_modules="$ol_arg"
1889 ol_enable_modules="no"
1891 # end --enable-modules
1892 ol_enable_multimaster=${ol_enable_multimaster-no}
1893 # OpenLDAP --enable-phonetic
1894 # Check whether --enable-phonetic or --disable-phonetic was given.
1895 if test "${enable_phonetic+set}" = set; then
1896 enableval="$enable_phonetic"
1899 for ol_val in auto yes no ; do
1900 if test "$enableval" = "$ol_val" ; then
1904 if test "$ol_arg" = "invalid" ; then
1905 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1907 ol_enable_phonetic="$ol_arg"
1910 ol_enable_phonetic="no"
1912 # end --enable-phonetic
1913 # OpenLDAP --enable-rewrite
1914 # Check whether --enable-rewrite or --disable-rewrite was given.
1915 if test "${enable_rewrite+set}" = set; then
1916 enableval="$enable_rewrite"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1927 ol_enable_rewrite="$ol_arg"
1930 ol_enable_rewrite="no"
1932 # end --enable-rewrite
1933 # OpenLDAP --enable-rlookups
1934 # Check whether --enable-rlookups or --disable-rlookups was given.
1935 if test "${enable_rlookups+set}" = set; then
1936 enableval="$enable_rlookups"
1939 for ol_val in auto yes no ; do
1940 if test "$enableval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1947 ol_enable_rlookups="$ol_arg"
1950 ol_enable_rlookups="no"
1952 # end --enable-rlookups
1953 # OpenLDAP --enable-slp
1954 # Check whether --enable-slp or --disable-slp was given.
1955 if test "${enable_slp+set}" = set; then
1956 enableval="$enable_slp"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1967 ol_enable_slp="$ol_arg"
1973 # OpenLDAP --enable-wrappers
1974 # Check whether --enable-wrappers or --disable-wrappers was given.
1975 if test "${enable_wrappers+set}" = set; then
1976 enableval="$enable_wrappers"
1979 for ol_val in auto yes no ; do
1980 if test "$enableval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1987 ol_enable_wrappers="$ol_arg"
1990 ol_enable_wrappers="no"
1992 # end --enable-wrappers
1994 # OpenLDAP --enable-bdb
1995 # Check whether --enable-bdb or --disable-bdb was given.
1996 if test "${enable_bdb+set}" = set; then
1997 enableval="$enable_bdb"
2000 for ol_val in auto yes no ; do
2001 if test "$enableval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2008 ol_enable_bdb="$ol_arg"
2014 # OpenLDAP --with-bdb_module
2015 # Check whether --with-bdb_module or --without-bdb_module was given.
2016 if test "${with_bdb_module+set}" = set; then
2017 withval="$with_bdb_module"
2020 for ol_val in static dynamic ; do
2021 if test "$withval" = "$ol_val" ; then
2025 if test "$ol_arg" = "invalid" ; then
2026 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2028 ol_with_bdb_module="$ol_arg"
2031 ol_with_bdb_module="static"
2033 # end --with-bdb_module
2035 # OpenLDAP --enable-dnssrv
2036 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2037 if test "${enable_dnssrv+set}" = set; then
2038 enableval="$enable_dnssrv"
2041 for ol_val in auto yes no ; do
2042 if test "$enableval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2049 ol_enable_dnssrv="$ol_arg"
2052 ol_enable_dnssrv="no"
2054 # end --enable-dnssrv
2055 # OpenLDAP --with-dnssrv_module
2056 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2057 if test "${with_dnssrv_module+set}" = set; then
2058 withval="$with_dnssrv_module"
2061 for ol_val in static dynamic ; do
2062 if test "$withval" = "$ol_val" ; then
2066 if test "$ol_arg" = "invalid" ; then
2067 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2069 ol_with_dnssrv_module="$ol_arg"
2072 ol_with_dnssrv_module="static"
2074 # end --with-dnssrv_module
2076 # OpenLDAP --enable-ldap
2077 # Check whether --enable-ldap or --disable-ldap was given.
2078 if test "${enable_ldap+set}" = set; then
2079 enableval="$enable_ldap"
2082 for ol_val in auto yes no ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2090 ol_enable_ldap="$ol_arg"
2096 # OpenLDAP --with-ldap_module
2097 # Check whether --with-ldap_module or --without-ldap_module was given.
2098 if test "${with_ldap_module+set}" = set; then
2099 withval="$with_ldap_module"
2102 for ol_val in static dynamic ; do
2103 if test "$withval" = "$ol_val" ; then
2107 if test "$ol_arg" = "invalid" ; then
2108 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2110 ol_with_ldap_module="$ol_arg"
2113 ol_with_ldap_module="static"
2115 # end --with-ldap_module
2117 # OpenLDAP --enable-ldbm
2118 # Check whether --enable-ldbm or --disable-ldbm was given.
2119 if test "${enable_ldbm+set}" = set; then
2120 enableval="$enable_ldbm"
2123 for ol_val in auto yes no ; do
2124 if test "$enableval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2131 ol_enable_ldbm="$ol_arg"
2137 # OpenLDAP --with-ldbm_api
2138 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2139 if test "${with_ldbm_api+set}" = set; then
2140 withval="$with_ldbm_api"
2143 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2144 if test "$withval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2151 ol_with_ldbm_api="$ol_arg"
2154 ol_with_ldbm_api="auto"
2156 # end --with-ldbm_api
2158 # OpenLDAP --with-ldbm_module
2159 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2160 if test "${with_ldbm_module+set}" = set; then
2161 withval="$with_ldbm_module"
2164 for ol_val in static dynamic ; do
2165 if test "$withval" = "$ol_val" ; then
2169 if test "$ol_arg" = "invalid" ; then
2170 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2172 ol_with_ldbm_module="$ol_arg"
2175 ol_with_ldbm_module="static"
2177 # end --with-ldbm_module
2179 # OpenLDAP --with-ldbm_type
2180 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2181 if test "${with_ldbm_type+set}" = set; then
2182 withval="$with_ldbm_type"
2185 for ol_val in auto btree hash ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2193 ol_with_ldbm_type="$ol_arg"
2196 ol_with_ldbm_type="auto"
2198 # end --with-ldbm_type
2200 # OpenLDAP --enable-meta
2201 # Check whether --enable-meta or --disable-meta was given.
2202 if test "${enable_meta+set}" = set; then
2203 enableval="$enable_meta"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2214 ol_enable_meta="$ol_arg"
2220 # OpenLDAP --with-meta_module
2221 # Check whether --with-meta_module or --without-meta_module was given.
2222 if test "${with_meta_module+set}" = set; then
2223 withval="$with_meta_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2234 ol_with_meta_module="$ol_arg"
2237 ol_with_meta_module="static"
2239 # end --with-meta_module
2241 # OpenLDAP --enable-monitor
2242 # Check whether --enable-monitor or --disable-monitor was given.
2243 if test "${enable_monitor+set}" = set; then
2244 enableval="$enable_monitor"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2255 ol_enable_monitor="$ol_arg"
2258 ol_enable_monitor="no"
2260 # end --enable-monitor
2261 # OpenLDAP --with-monitor_module
2262 # Check whether --with-monitor_module or --without-monitor_module was given.
2263 if test "${with_monitor_module+set}" = set; then
2264 withval="$with_monitor_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2275 ol_with_monitor_module="$ol_arg"
2278 ol_with_monitor_module="static"
2280 # end --with-monitor_module
2282 # OpenLDAP --enable-null
2283 # Check whether --enable-null or --disable-null was given.
2284 if test "${enable_null+set}" = set; then
2285 enableval="$enable_null"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2296 ol_enable_null="$ol_arg"
2302 # OpenLDAP --with-null_module
2303 # Check whether --with-null_module or --without-null_module was given.
2304 if test "${with_null_module+set}" = set; then
2305 withval="$with_null_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2316 ol_with_null_module="$ol_arg"
2319 ol_with_null_module="static"
2321 # end --with-null_module
2323 # OpenLDAP --enable-passwd
2324 # Check whether --enable-passwd or --disable-passwd was given.
2325 if test "${enable_passwd+set}" = set; then
2326 enableval="$enable_passwd"
2329 for ol_val in auto yes no ; do
2330 if test "$enableval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2337 ol_enable_passwd="$ol_arg"
2340 ol_enable_passwd="no"
2342 # end --enable-passwd
2343 # OpenLDAP --with-passwd_module
2344 # Check whether --with-passwd_module or --without-passwd_module was given.
2345 if test "${with_passwd_module+set}" = set; then
2346 withval="$with_passwd_module"
2349 for ol_val in static dynamic ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2357 ol_with_passwd_module="$ol_arg"
2360 ol_with_passwd_module="static"
2362 # end --with-passwd_module
2364 # OpenLDAP --enable-perl
2365 # Check whether --enable-perl or --disable-perl was given.
2366 if test "${enable_perl+set}" = set; then
2367 enableval="$enable_perl"
2370 for ol_val in auto yes no ; do
2371 if test "$enableval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2378 ol_enable_perl="$ol_arg"
2384 # OpenLDAP --with-perl_module
2385 # Check whether --with-perl_module or --without-perl_module was given.
2386 if test "${with_perl_module+set}" = set; then
2387 withval="$with_perl_module"
2390 for ol_val in static dynamic ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2398 ol_with_perl_module="$ol_arg"
2401 ol_with_perl_module="static"
2403 # end --with-perl_module
2405 # OpenLDAP --enable-shell
2406 # Check whether --enable-shell or --disable-shell was given.
2407 if test "${enable_shell+set}" = set; then
2408 enableval="$enable_shell"
2411 for ol_val in auto yes no ; do
2412 if test "$enableval" = "$ol_val" ; then
2416 if test "$ol_arg" = "invalid" ; then
2417 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2419 ol_enable_shell="$ol_arg"
2422 ol_enable_shell="no"
2424 # end --enable-shell
2425 # OpenLDAP --with-shell_module
2426 # Check whether --with-shell_module or --without-shell_module was given.
2427 if test "${with_shell_module+set}" = set; then
2428 withval="$with_shell_module"
2431 for ol_val in static dynamic ; do
2432 if test "$withval" = "$ol_val" ; then
2436 if test "$ol_arg" = "invalid" ; then
2437 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2439 ol_with_shell_module="$ol_arg"
2442 ol_with_shell_module="static"
2444 # end --with-shell_module
2446 # OpenLDAP --enable-sql
2447 # Check whether --enable-sql or --disable-sql was given.
2448 if test "${enable_sql+set}" = set; then
2449 enableval="$enable_sql"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2460 ol_enable_sql="$ol_arg"
2466 # OpenLDAP --with-sql_module
2467 # Check whether --with-sql_module or --without-sql_module was given.
2468 if test "${with_sql_module+set}" = set; then
2469 withval="$with_sql_module"
2472 for ol_val in static dynamic ; do
2473 if test "$withval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2480 ol_with_sql_module="$ol_arg"
2483 ol_with_sql_module="static"
2485 # end --with-sql_module
2487 # OpenLDAP --enable-tcl
2488 # Check whether --enable-tcl or --disable-tcl was given.
2489 if test "${enable_tcl+set}" = set; then
2490 enableval="$enable_tcl"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2501 ol_enable_tcl="$ol_arg"
2507 # OpenLDAP --with-tcl_module
2508 # Check whether --with-tcl_module or --without-tcl_module was given.
2509 if test "${with_tcl_module+set}" = set; then
2510 withval="$with_tcl_module"
2513 for ol_val in static dynamic ; do
2514 if test "$withval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2521 ol_with_tcl_module="$ol_arg"
2524 ol_with_tcl_module="static"
2526 # end --with-tcl_module
2529 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2530 if test "${with_xxslurpdoptions+set}" = set; then
2531 withval="$with_xxslurpdoptions"
2535 # OpenLDAP --enable-slurpd
2536 # Check whether --enable-slurpd or --disable-slurpd was given.
2537 if test "${enable_slurpd+set}" = set; then
2538 enableval="$enable_slurpd"
2541 for ol_val in auto yes no ; do
2542 if test "$enableval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2549 ol_enable_slurpd="$ol_arg"
2552 ol_enable_slurpd="auto"
2554 # end --enable-slurpd
2556 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2557 if test "${with_xxliboptions+set}" = set; then
2558 withval="$with_xxliboptions"
2562 # Check whether --enable-static or --disable-static was given.
2563 if test "${enable_static+set}" = set; then
2564 enableval="$enable_static"
2565 p=${PACKAGE-default}
2567 yes) enable_static=yes ;;
2568 no) enable_static=no ;;
2571 # Look at the argument we got. We use all the common list separators.
2572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2573 for pkg in $enableval; do
2574 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-shared or --disable-shared was given.
2586 if test "${enable_shared+set}" = set; then
2587 enableval="$enable_shared"
2588 p=${PACKAGE-default}
2590 yes) enable_shared=yes ;;
2591 no) enable_shared=no ;;
2594 # Look at the argument we got. We use all the common list separators.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2596 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2611 if test $ol_enable_slapd = no ; then
2612 if test $ol_enable_bdb = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2615 if test $ol_enable_dnssrv = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2618 if test $ol_enable_ldap = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2621 if test $ol_enable_ldbm = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2624 if test $ol_enable_meta = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2627 if test $ol_enable_monitor = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2630 if test $ol_enable_null = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2633 if test $ol_enable_passwd = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2636 if test $ol_enable_perl = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2639 if test $ol_enable_shell = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2642 if test $ol_enable_tcl = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2645 if test $ol_enable_sql = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2648 if test $ol_enable_modules = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2651 if test $ol_enable_multimaster = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2654 if test $ol_enable_wrappers = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2657 if test $ol_enable_phonetic = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2660 if test $ol_enable_rlookups = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2663 if test $ol_enable_aci = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2666 if test $ol_with_ldbm_api != auto ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2669 if test $ol_with_ldbm_type != auto ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2672 if test $ol_with_bdb_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2675 if test $ol_with_dnssrv_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2678 if test $ol_with_ldap_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2681 if test $ol_with_ldbm_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2684 if test $ol_with_meta_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2687 if test $ol_with_monitor_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2690 if test $ol_with_null_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2693 if test $ol_with_passwd_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2696 if test $ol_with_perl_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2699 if test $ol_with_shell_module != static ; then
2700 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2702 if test $ol_with_tcl_module != static ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2705 if test $ol_with_sql_module != static ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2708 if test $ol_enable_slurpd = yes ; then
2709 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2711 if test $ol_enable_rewrite = yes ; then
2712 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2715 # force settings to no
2721 ol_enable_monitor=no
2729 ol_enable_modules=no
2730 ol_enable_multimaster=no
2731 ol_enable_phonetic=no
2732 ol_enable_rlookups=no
2734 ol_enable_wrappers=no
2735 ol_enable_dynamic=no
2738 ol_with_ldbm_type=no
2740 ol_with_bdb_module=static
2741 ol_with_dnssrv_module=static
2742 ol_with_ldap_module=static
2743 ol_with_ldbm_module=static
2744 ol_with_meta_module=static
2745 ol_with_monitor_module=static
2746 ol_with_null_module=static
2747 ol_with_passwd_module=static
2748 ol_with_perl_module=static
2749 ol_with_shell_module=static
2750 ol_with_tcl_module=static
2751 ol_with_sql_module=static
2755 ol_enable_rewrite=no
2757 elif test $ol_enable_ldbm = no ; then
2759 if test $ol_with_ldbm_api != auto ; then
2760 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2763 if test $ol_with_ldbm_type != auto ; then
2764 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2767 if test $ol_with_ldbm_module != static ; then
2768 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2771 if test $ol_enable_modules != yes -a \
2772 $ol_enable_bdb = no -a \
2773 $ol_enable_dnssrv = no -a \
2774 $ol_enable_ldap = no -a \
2775 $ol_enable_meta = no -a \
2776 $ol_enable_monitor = no -a \
2777 $ol_enable_null = no -a \
2778 $ol_enable_passwd = no -a \
2779 $ol_enable_perl = no -a \
2780 $ol_enable_shell = no -a \
2781 $ol_enable_sql = no -a \
2782 $ol_enable_tcl = no ; then
2784 if test $ol_enable_slapd = yes ; then
2785 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2787 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2793 ol_with_ldbm_type=no
2794 ol_with_ldbm_module=static
2796 if test $ol_enable_bdb != no ; then
2797 ol_with_ldbm_api=berkeley
2801 if test $ol_with_ldbm_api = gdbm -a \
2802 $ol_with_ldbm_type = btree ; then
2803 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2805 if test $ol_with_ldbm_api = mdbm -a \
2806 $ol_with_ldbm_type = btree ; then
2807 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2809 if test $ol_with_ldbm_api = ndbm -a \
2810 $ol_with_ldbm_type = btree ; then
2811 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2814 if test $ol_enable_bdb = yes ; then
2815 if test $ol_with_ldbm_api = auto ; then
2816 ol_with_ldbm_api=berkeley
2817 elif test $ol_with_ldbm_api != berkeley ; then
2818 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2821 elif test $ol_enable_bdb = auto ; then
2822 if test $ol_with_ldbm_api != berkeley \
2823 -o $ol_with_ldbm_api != auto ; then
2824 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2830 if test $ol_enable_slurpd = yes ; then
2831 if test $ol_with_threads = no ; then
2832 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2836 if test $ol_enable_lmpasswd = yes ; then
2837 if test $ol_with_tls = no ; then
2838 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2842 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2843 if test $ol_with_kerberos = no ; then
2844 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2845 elif test $ol_with_kerberos = auto ; then
2846 ol_with_kerberos=yes
2849 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2850 if test $ol_with_kerberos = auto ; then
2852 elif test $ol_with_kerberos != no ; then
2853 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2858 if test $ol_enable_spasswd = yes ; then
2859 if test $ol_with_cyrus_sasl = no ; then
2860 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2862 ol_with_cyrus_sasl=yes
2865 echo "$ac_t""done" 1>&6
2895 BUILD_BDB_DYNAMIC=static
2896 BUILD_DNSSRV_DYNAMIC=static
2897 BUILD_LDAP_DYNAMIC=static
2898 BUILD_LDBM_DYNAMIC=static
2899 BUILD_META_DYNAMIC=static
2900 BUILD_MONITOR_DYNAMIC=static
2901 BUILD_NULL_DYNAMIC=static
2902 BUILD_PASSWD_DYNAMIC=static
2903 BUILD_PERL_DYNAMIC=static
2904 BUILD_SHELL_DYNAMIC=static
2905 BUILD_TCL_DYNAMIC=static
2906 BUILD_SQL_DYNAMIC=static
2908 SLAPD_MODULES_LDFLAGS=
2909 SLAPD_MODULES_CPPFLAGS=
2911 SLAPD_STATIC_BACKENDS=
2912 SLAPD_DYNAMIC_BACKENDS=
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2947 echo "configure:2948: checking for a BSD compatible install" >&5
2948 if test -z "$INSTALL"; then
2949 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2953 for ac_dir in $PATH; do
2954 # Account for people who put trailing slashes in PATH elements.
2956 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2961 for ac_prog in ginstall scoinst install; do
2962 if test -f $ac_dir/$ac_prog; then
2963 if test $ac_prog = install &&
2964 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 ac_cv_path_install="$ac_dir/$ac_prog -c"
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL="$ac_cv_path_install"
2986 # As a last resort, use the slow shell script. We don't cache a
2987 # path for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the path is relative.
2990 INSTALL="$ac_install_sh"
2993 echo "$ac_t""$INSTALL" 1>&6
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_MKVERSION 1
3013 *-*-aix*) if test -z "$CC" ; then
3014 case "$ol_with_threads" in
3015 auto | yes | posix) ol_aix_threads=yes ;;
3021 if test $ol_aix_threads = yes ; then
3022 if test -z "${CC}" ; then
3023 for ac_prog in cc_r xlc_r cc
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CC="$ac_prog"
3048 if test -n "$CC"; then
3049 echo "$ac_t""$CC" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CC" && break
3058 if test "$CC" = cc ; then
3059 if test $ol_with_threads != auto ; then
3060 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3062 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3068 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3069 ol_with_threads=posix
3070 ol_cv_pthread_create=yes
3074 if test -z "${CC}"; then
3075 for ac_prog in cc gcc
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_CC="$ac_prog"
3100 if test -n "$CC"; then
3101 echo "$ac_t""$CC" 1>&6
3103 echo "$ac_t""no" 1>&6
3106 test -n "$CC" && break
3108 test -n "$CC" || CC="missing"
3111 if test "${CC}" = "missing" ; then
3112 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3116 if test -z "${AR}"; then
3117 for ac_prog in ar gar
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 if test -n "$AR"; then
3127 ac_cv_prog_AR="$AR" # Let the user override the test.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3131 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_prog_AR="$ac_prog"
3142 if test -n "$AR"; then
3143 echo "$ac_t""$AR" 1>&6
3145 echo "$ac_t""no" 1>&6
3148 test -n "$AR" && break
3150 test -n "$AR" || AR="missing"
3153 if test "${AR}" = "missing" ; then
3154 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3160 # Find the correct PATH separator. Usually this is `:', but
3161 # DJGPP uses `;' like DOS.
3162 if test "X${PATH_SEPARATOR+set}" != Xset; then
3163 UNAME=${UNAME-`uname 2>/dev/null`}
3165 *-DOS) lt_cv_sys_path_separator=';' ;;
3166 *) lt_cv_sys_path_separator=':' ;;
3168 PATH_SEPARATOR=$lt_cv_sys_path_separator
3171 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3172 echo "configure:3173: checking for Cygwin environment" >&5
3173 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3183 #define __CYGWIN__ __CYGWIN32__
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_cygwin" 1>&6
3202 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3203 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3204 echo "configure:3205: checking for mingw32 environment" >&5
3205 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3228 echo "$ac_t""$ac_cv_mingw32" 1>&6
3230 test "$ac_cv_mingw32" = yes && MINGW32=yes
3231 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3232 echo "configure:3233: checking for EMX OS/2 environment" >&5
3233 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3256 echo "$ac_t""$ac_cv_emxos2" 1>&6
3258 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3259 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3260 echo "configure:3261: checking how to run the C preprocessor" >&5
3261 # On Suns, sometimes $CPP names a directory.
3262 if test -n "$CPP" && test -d "$CPP"; then
3265 if test -z "$CPP"; then
3266 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 # This must be in double quotes, not single quotes, because CPP may get
3270 # substituted into the Makefile and "${CC-cc}" will confuse make.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp.
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 CPP="${CC-cc} -E -traditional-cpp"
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3298 { (eval echo configure:3299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3300 if test -z "$ac_err"; then
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 CPP="${CC-cc} -nologo -E"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3331 ac_cv_prog_CPP="$CPP"
3333 CPP="$ac_cv_prog_CPP"
3335 ac_cv_prog_CPP="$CPP"
3337 echo "$ac_t""$CPP" 1>&6
3339 # Check whether --enable-fast-install or --disable-fast-install was given.
3340 if test "${enable_fast_install+set}" = set; then
3341 enableval="$enable_fast_install"
3342 p=${PACKAGE-default}
3344 yes) enable_fast_install=yes ;;
3345 no) enable_fast_install=no ;;
3347 enable_fast_install=no
3348 # Look at the argument we got. We use all the common list separators.
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3350 for pkg in $enableval; do
3351 if test "X$pkg" = "X$p"; then
3352 enable_fast_install=yes
3359 enable_fast_install=yes
3362 # Extract the first word of "gcc", so it can be a program name with args.
3363 set dummy gcc; ac_word=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 for ac_dir in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir=.
3376 if test -f $ac_dir/$ac_word; then
3385 if test -n "$CC"; then
3386 echo "$ac_t""$CC" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_word" >&5
3396 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3405 for ac_dir in $ac_dummy; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word; then
3408 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3421 if test $# -gt 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 set dummy "$ac_dir/$ac_word" "$@"
3434 if test -n "$CC"; then
3435 echo "$ac_t""$CC" 1>&6
3437 echo "$ac_t""no" 1>&6
3440 if test -z "$CC"; then
3441 case "`uname -s`" in
3442 *win32* | *WIN32* | *CYGWIN*)
3443 # Extract the first word of "cl", so it can be a program name with args.
3444 set dummy cl; ac_word=$2
3445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_word" >&5
3447 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3466 if test -n "$CC"; then
3467 echo "$ac_t""$CC" 1>&6
3469 echo "$ac_t""no" 1>&6
3474 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3477 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3478 echo "configure:3479: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3485 cross_compiling=$ac_cv_prog_cc_cross
3487 cat > conftest.$ac_ext << EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 ac_cv_prog_cc_works=yes
3496 # If we can't run a trivial program, we are probably using a cross compiler.
3497 if (./conftest; exit) 2>/dev/null; then
3498 ac_cv_prog_cc_cross=no
3500 ac_cv_prog_cc_cross=yes
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 ac_cv_prog_cc_works=no
3509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3513 cross_compiling=$ac_cv_prog_cc_cross
3515 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3516 if test $ac_cv_prog_cc_works = no; then
3517 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3519 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3520 echo "configure:3521: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3521 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3522 cross_compiling=$ac_cv_prog_cc_cross
3524 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3525 echo "configure:3526: checking whether we are using GNU C" >&5
3526 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.c <<EOF
3534 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3541 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3543 if test $ac_cv_prog_gcc = yes; then
3549 ac_test_CFLAGS="${CFLAGS+set}"
3550 ac_save_CFLAGS="$CFLAGS"
3552 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3553 echo "configure:3554: checking whether ${CC-cc} accepts -g" >&5
3554 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 echo 'void f(){}' > conftest.c
3558 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3567 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3568 if test "$ac_test_CFLAGS" = set; then
3569 CFLAGS="$ac_save_CFLAGS"
3570 elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
3577 if test "$GCC" = yes; then
3584 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3585 if test "${with_gnu_ld+set}" = set; then
3586 withval="$with_gnu_ld"
3587 test "$withval" = no || with_gnu_ld=yes
3593 if test "$GCC" = yes; then
3594 # Check if gcc -print-prog-name=ld gives a path.
3595 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ld used by GCC" >&5
3599 # gcc leaves a trailing carriage return which upsets mingw
3600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3605 # Accept absolute paths.
3606 [\\/]* | [A-Za-z]:[\\/]*)
3607 re_direlt='/[^/][^/]*/\.\./'
3608 # Canonicalize the path of ld
3609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3613 test -z "$LD" && LD="$ac_prog"
3616 # If it fails, then pretend we aren't using GCC.
3620 # If it is relative, then search for the first ld in PATH.
3624 elif test "$with_gnu_ld" = yes; then
3625 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3626 echo "configure:3627: checking for GNU ld" >&5
3628 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3629 echo "configure:3630: checking for non-GNU ld" >&5
3631 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test -z "$LD"; then
3635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3636 for ac_dir in $PATH; do
3637 test -z "$ac_dir" && ac_dir=.
3638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3639 lt_cv_path_LD="$ac_dir/$ac_prog"
3640 # Check to see if the program is GNU ld. I'd rather use --version,
3641 # but apparently some GNU ld's only accept -v.
3642 # Break only if it was the GNU/non-GNU ld that we prefer.
3643 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3644 test "$with_gnu_ld" != no && break
3646 test "$with_gnu_ld" != yes && break
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3657 if test -n "$LD"; then
3658 echo "$ac_t""$LD" 1>&6
3660 echo "$ac_t""no" 1>&6
3662 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3664 echo "configure:3665: checking if the linker ($LD) is GNU ld" >&5
3665 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3670 lt_cv_prog_gnu_ld=yes
3672 lt_cv_prog_gnu_ld=no
3676 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3677 with_gnu_ld=$lt_cv_prog_gnu_ld
3680 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $LD option to reload object files" >&5
3682 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 lt_cv_ld_reload_flag='-r'
3688 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3689 reload_flag=$lt_cv_ld_reload_flag
3690 test -n "$reload_flag" && reload_flag=" $reload_flag"
3692 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3693 echo "configure:3694: checking for BSD-compatible nm" >&5
3694 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 if test -n "$NM"; then
3698 # Let the user override the test.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3702 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3703 test -z "$ac_dir" && ac_dir=.
3704 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3705 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3706 # Check to see if the nm accepts a BSD-compat flag.
3707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3708 # nm: unknown option "B" ignored
3709 # Tru64's nm complains that /dev/null is an invalid object file
3710 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3711 lt_cv_path_NM="$tmp_nm -B"
3713 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3714 lt_cv_path_NM="$tmp_nm -p"
3717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3718 continue # so that we can try to find one that supports BSD flags
3723 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3728 echo "$ac_t""$NM" 1>&6
3730 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3731 echo "configure:3732: checking whether ln -s works" >&5
3732 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3736 if ln -s X conftestdata 2>/dev/null
3739 ac_cv_prog_LN_S="ln -s"
3744 LN_S="$ac_cv_prog_LN_S"
3745 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3746 echo "$ac_t""yes" 1>&6
3748 echo "$ac_t""no" 1>&6
3751 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3752 echo "configure:3753: checking how to recognise dependant libraries" >&5
3753 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 lt_cv_file_magic_cmd='$MAGIC_CMD'
3757 lt_cv_file_magic_test_file=
3758 lt_cv_deplibs_check_method='unknown'
3759 # Need to set the preceding variable on all platforms that support
3760 # interlibrary dependencies.
3761 # 'none' -- dependencies not supported.
3762 # `unknown' -- same as none, but documents that we really don't know.
3763 # 'pass_all' -- all dependencies passed with no checks.
3764 # 'test_compile' -- check by making test program.
3765 # 'file_magic [[regex]]' -- check by looking for files in library path
3766 # which responds to the $file_magic_cmd with a given egrep regex.
3767 # If you have `file' or equivalent on your system and you're not sure
3768 # whether `pass_all' will *always* work, you probably want this one.
3772 lt_cv_deplibs_check_method=pass_all
3776 lt_cv_deplibs_check_method=pass_all
3780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3781 lt_cv_file_magic_cmd='/usr/bin/file -L'
3782 lt_cv_file_magic_test_file=/shlib/libc.so
3785 cygwin* | mingw* | pw32*)
3786 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3787 lt_cv_file_magic_cmd='$OBJDUMP -f'
3790 darwin* | rhapsody*)
3791 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3792 lt_cv_file_magic_cmd='/usr/bin/file -L'
3794 rhapsody* | darwin1.[012])
3795 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3798 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3804 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3807 # Not sure whether the presence of OpenBSD here was a mistake.
3808 # Let's accept both of them until this is cleared up.
3809 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3810 lt_cv_file_magic_cmd=/usr/bin/file
3811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3815 lt_cv_deplibs_check_method=pass_all
3820 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3825 lt_cv_file_magic_cmd=/usr/bin/file
3826 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3832 # this will be overridden with pass_all, but let us keep it just in case
3833 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3837 *-32|*"-32 ") libmagic=32-bit;;
3838 *-n32|*"-n32 ") libmagic=N32;;
3839 *-64|*"-64 ") libmagic=64-bit;;
3840 *) libmagic=never-match;;
3842 # this will be overridden with pass_all, but let us keep it just in case
3843 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3846 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3847 lt_cv_deplibs_check_method=pass_all
3850 # This must be Linux ELF.
3853 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3854 lt_cv_deplibs_check_method=pass_all ;;
3856 # glibc up to 2.1.1 does not perform some relocations on ARM
3857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3859 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3863 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3864 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3866 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3872 lt_cv_file_magic_cmd=/usr/bin/file
3873 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3877 lt_cv_file_magic_cmd=/usr/bin/file
3878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3882 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3886 osf3* | osf4* | osf5*)
3887 # this will be overridden with pass_all, but let us keep it just in case
3888 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3889 lt_cv_file_magic_test_file=/shlib/libc.so
3890 lt_cv_deplibs_check_method=pass_all
3894 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_deplibs_check_method=pass_all
3899 lt_cv_file_magic_test_file=/lib/libc.so
3902 sysv5uw[78]* | sysv4*uw2*)
3903 lt_cv_deplibs_check_method=pass_all
3906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3907 case $host_vendor in
3909 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]'
3910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913 lt_cv_deplibs_check_method=pass_all
3916 lt_cv_file_magic_cmd='/bin/file'
3917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920 lt_cv_file_magic_cmd='/bin/file'
3921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3922 lt_cv_file_magic_test_file=/lib/libc.so
3930 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3931 file_magic_cmd=$lt_cv_file_magic_cmd
3932 deplibs_check_method=$lt_cv_deplibs_check_method
3934 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3935 echo "configure:3936: checking for object suffix" >&5
3936 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3940 echo 'int i = 1;' > conftest.$ac_ext
3941 if { (eval echo configure:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3942 for ac_file in conftest.*; do
3945 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3949 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3954 echo "$ac_t""$ac_cv_objext" 1>&6
3955 OBJEXT=$ac_cv_objext
3956 ac_objext=$ac_cv_objext
3961 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3962 echo "configure:3963: checking for executable suffix" >&5
3963 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3970 echo 'int main () { return 0; }' > conftest.$ac_ext
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3973 for file in conftest.*; do
3975 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3976 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3980 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3983 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3988 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3989 echo "$ac_t""${ac_cv_exeext}" 1>&6
3992 if test $host != $build; then
3993 ac_tool_prefix=${host_alias}-
4001 # Check for command to grab the raw symbol name followed by C symbol from nm.
4002 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4003 echo "configure:4004: checking command to parse $NM output" >&5
4004 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4008 # These are sane defaults that work on at least a few old systems.
4009 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4011 # Character class describing NM global symbol codes.
4012 symcode='[BCDEGRST]'
4014 # Regexp to match symbols that can be accessed directly from C.
4015 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4017 # Transform the above into a raw symbol and a C symbol.
4018 symxfrm='\1 \2\3 \3'
4020 # Transform an extracted symbol line into a proper C declaration
4021 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4023 # Transform an extracted symbol line into symbol name and symbol address
4024 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'"
4026 # Define system-specific variables.
4031 cygwin* | mingw* | pw32*)
4032 symcode='[ABCDGISTW]'
4034 hpux*) # Its linker distinguishes data from code symbols
4035 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4036 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'"
4039 symcode='[BCDEGRST]'
4049 # Handle CRLF in mingw tool chain
4053 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4057 # If we're using GNU nm, then use its standard symbol codes.
4058 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4059 symcode='[ABCDGISTW]'
4062 # Try without a prefix undercore, then with it.
4063 for ac_symprfx in "" "_"; do
4065 # Write the raw and C identifiers.
4066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4068 # Check to see that the pipe works correctly.
4071 cat > conftest.$ac_ext <<EOF
4076 void nm_test_func(){}
4080 int main(){nm_test_var='a';nm_test_func();return(0);}
4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 # Now try to grab the symbols.
4086 if { (eval echo configure:4087: \"$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
4087 # Try sorting and uniquifying the output.
4088 if sort "$nlist" | uniq > "$nlist"T; then
4089 mv -f "$nlist"T "$nlist"
4094 # Make sure that we snagged all the symbols we need.
4095 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4096 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4097 cat <<EOF > conftest.$ac_ext
4103 # Now generate the symbol file.
4104 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4106 cat <<EOF >> conftest.$ac_ext
4107 #if defined (__STDC__) && __STDC__
4108 # define lt_ptr void *
4110 # define lt_ptr char *
4114 /* The mapping between symbol names and symbols. */
4119 lt_preloaded_symbols[] =
4122 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4123 cat <<\EOF >> conftest.$ac_ext
4131 # Now try linking the two files.
4132 mv conftest.$ac_objext conftstm.$ac_objext
4134 save_CFLAGS="$CFLAGS"
4135 LIBS="conftstm.$ac_objext"
4136 CFLAGS="$CFLAGS$no_builtin_flag"
4137 if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4141 CFLAGS="$save_CFLAGS"
4143 echo "cannot find nm_test_func in $nlist" >&5
4146 echo "cannot find nm_test_var in $nlist" >&5
4149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4152 echo "$progname: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 rm -f conftest* conftst*
4157 # Do not use the global_symbol_pipe unless it works.
4158 if test "$pipe_works" = yes; then
4161 lt_cv_sys_global_symbol_pipe=
4167 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4168 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4169 global_symbol_to_cdecl=
4170 global_symbol_to_c_name_address=
4172 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4173 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4175 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4177 echo "$ac_t""failed" 1>&6
4179 echo "$ac_t""ok" 1>&6
4182 for ac_hdr in dlfcn.h
4184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4186 echo "configure:4187: checking for $ac_hdr" >&5
4187 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4196 { (eval echo configure:4197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4198 if test -z "$ac_err"; then
4200 eval "ac_cv_header_$ac_safe=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4206 eval "ac_cv_header_$ac_safe=no"
4210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4213 cat >> confdefs.h <<EOF
4214 #define $ac_tr_hdr 1
4218 echo "$ac_t""no" 1>&6
4226 # Only perform the check for file, if the check method requires it
4227 case $deplibs_check_method in
4229 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4230 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4231 echo "configure:4232: checking for ${ac_tool_prefix}file" >&5
4232 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4243 ac_save_MAGIC_CMD="$MAGIC_CMD"
4244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4245 ac_dummy="/usr/bin:$PATH"
4246 for ac_dir in $ac_dummy; do
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f $ac_dir/${ac_tool_prefix}file; then
4249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4250 if test -n "$file_magic_test_file"; then
4251 case $deplibs_check_method in
4253 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4256 egrep "$file_magic_regex" > /dev/null; then
4261 *** Warning: the command libtool uses to detect shared libraries,
4262 *** $file_magic_cmd, produces output that libtool cannot recognize.
4263 *** The result is that libtool may fail to recognize shared libraries
4264 *** as such. This will affect the creation of libtool libraries that
4265 *** depend on shared libraries, but programs linked with such libtool
4266 *** libraries will work regardless of this problem. Nevertheless, you
4267 *** may want to report the problem to your system manager and/or to
4268 *** bug-libtool@gnu.org
4278 MAGIC_CMD="$ac_save_MAGIC_CMD"
4283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4284 if test -n "$MAGIC_CMD"; then
4285 echo "$ac_t""$MAGIC_CMD" 1>&6
4287 echo "$ac_t""no" 1>&6
4290 if test -z "$lt_cv_path_MAGIC_CMD"; then
4291 if test -n "$ac_tool_prefix"; then
4292 echo $ac_n "checking for file""... $ac_c" 1>&6
4293 echo "configure:4294: checking for file" >&5
4294 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4305 ac_save_MAGIC_CMD="$MAGIC_CMD"
4306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4307 ac_dummy="/usr/bin:$PATH"
4308 for ac_dir in $ac_dummy; do
4309 test -z "$ac_dir" && ac_dir=.
4310 if test -f $ac_dir/file; then
4311 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4312 if test -n "$file_magic_test_file"; then
4313 case $deplibs_check_method in
4315 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4318 egrep "$file_magic_regex" > /dev/null; then
4323 *** Warning: the command libtool uses to detect shared libraries,
4324 *** $file_magic_cmd, produces output that libtool cannot recognize.
4325 *** The result is that libtool may fail to recognize shared libraries
4326 *** as such. This will affect the creation of libtool libraries that
4327 *** depend on shared libraries, but programs linked with such libtool
4328 *** libraries will work regardless of this problem. Nevertheless, you
4329 *** may want to report the problem to your system manager and/or to
4330 *** bug-libtool@gnu.org
4340 MAGIC_CMD="$ac_save_MAGIC_CMD"
4345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4346 if test -n "$MAGIC_CMD"; then
4347 echo "$ac_t""$MAGIC_CMD" 1>&6
4349 echo "$ac_t""no" 1>&6
4361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_word" >&5
4365 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 if test -n "$RANLIB"; then
4369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4373 for ac_dir in $ac_dummy; do
4374 test -z "$ac_dir" && ac_dir=.
4375 if test -f $ac_dir/$ac_word; then
4376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4383 RANLIB="$ac_cv_prog_RANLIB"
4384 if test -n "$RANLIB"; then
4385 echo "$ac_t""$RANLIB" 1>&6
4387 echo "$ac_t""no" 1>&6
4391 if test -z "$ac_cv_prog_RANLIB"; then
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "ranlib", so it can be a program name with args.
4394 set dummy ranlib; ac_word=$2
4395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4396 echo "configure:4397: checking for $ac_word" >&5
4397 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 if test -n "$RANLIB"; then
4401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4405 for ac_dir in $ac_dummy; do
4406 test -z "$ac_dir" && ac_dir=.
4407 if test -f $ac_dir/$ac_word; then
4408 ac_cv_prog_RANLIB="ranlib"
4413 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4416 RANLIB="$ac_cv_prog_RANLIB"
4417 if test -n "$RANLIB"; then
4418 echo "$ac_t""$RANLIB" 1>&6
4420 echo "$ac_t""no" 1>&6
4428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}strip; ac_word=$2
4430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_word" >&5
4432 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 if test -n "$STRIP"; then
4436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4440 for ac_dir in $ac_dummy; do
4441 test -z "$ac_dir" && ac_dir=.
4442 if test -f $ac_dir/$ac_word; then
4443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4450 STRIP="$ac_cv_prog_STRIP"
4451 if test -n "$STRIP"; then
4452 echo "$ac_t""$STRIP" 1>&6
4454 echo "$ac_t""no" 1>&6
4458 if test -z "$ac_cv_prog_STRIP"; then
4459 if test -n "$ac_tool_prefix"; then
4460 # Extract the first word of "strip", so it can be a program name with args.
4461 set dummy strip; ac_word=$2
4462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4463 echo "configure:4464: checking for $ac_word" >&5
4464 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 if test -n "$STRIP"; then
4468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4472 for ac_dir in $ac_dummy; do
4473 test -z "$ac_dir" && ac_dir=.
4474 if test -f $ac_dir/$ac_word; then
4475 ac_cv_prog_STRIP="strip"
4480 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4483 STRIP="$ac_cv_prog_STRIP"
4484 if test -n "$STRIP"; then
4485 echo "$ac_t""$STRIP" 1>&6
4487 echo "$ac_t""no" 1>&6
4497 enable_win32_dll=yes
4499 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4500 if test "${enable_libtool_lock+set}" = set; then
4501 enableval="$enable_libtool_lock"
4505 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4507 # Some flags need to be propagated to the compiler or linker for good
4511 # Find out which ABI we are using.
4512 echo '#line 4513 "configure"' > conftest.$ac_ext
4513 if { (eval echo configure:4514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4514 case `/usr/bin/file conftest.$ac_objext` in
4530 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4531 SAVE_CFLAGS="$CFLAGS"
4532 CFLAGS="$CFLAGS -belf"
4533 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4534 echo "configure:4535: checking whether the C compiler needs -belf" >&5
4535 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4544 cross_compiling=$ac_cv_prog_cc_cross
4546 cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4556 lt_cv_cc_needs_belf=yes
4558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4561 lt_cv_cc_needs_belf=no
4565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4566 ac_cpp='$CPP $CPPFLAGS'
4567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4569 cross_compiling=$ac_cv_prog_cc_cross
4573 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4574 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4575 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4576 CFLAGS="$SAVE_CFLAGS"
4580 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4581 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4582 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4584 echo "configure:4585: checking for $ac_word" >&5
4585 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 if test -n "$DLLTOOL"; then
4589 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4593 for ac_dir in $ac_dummy; do
4594 test -z "$ac_dir" && ac_dir=.
4595 if test -f $ac_dir/$ac_word; then
4596 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4603 DLLTOOL="$ac_cv_prog_DLLTOOL"
4604 if test -n "$DLLTOOL"; then
4605 echo "$ac_t""$DLLTOOL" 1>&6
4607 echo "$ac_t""no" 1>&6
4611 if test -z "$ac_cv_prog_DLLTOOL"; then
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "dlltool", so it can be a program name with args.
4614 set dummy dlltool; ac_word=$2
4615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_word" >&5
4617 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 if test -n "$DLLTOOL"; then
4621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4625 for ac_dir in $ac_dummy; do
4626 test -z "$ac_dir" && ac_dir=.
4627 if test -f $ac_dir/$ac_word; then
4628 ac_cv_prog_DLLTOOL="dlltool"
4633 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4636 DLLTOOL="$ac_cv_prog_DLLTOOL"
4637 if test -n "$DLLTOOL"; then
4638 echo "$ac_t""$DLLTOOL" 1>&6
4640 echo "$ac_t""no" 1>&6
4648 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}as; ac_word=$2
4650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4651 echo "configure:4652: checking for $ac_word" >&5
4652 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 if test -n "$AS"; then
4656 ac_cv_prog_AS="$AS" # Let the user override the test.
4658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4660 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f $ac_dir/$ac_word; then
4663 ac_cv_prog_AS="${ac_tool_prefix}as"
4671 if test -n "$AS"; then
4672 echo "$ac_t""$AS" 1>&6
4674 echo "$ac_t""no" 1>&6
4678 if test -z "$ac_cv_prog_AS"; then
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "as", so it can be a program name with args.
4681 set dummy as; ac_word=$2
4682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_word" >&5
4684 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 if test -n "$AS"; then
4688 ac_cv_prog_AS="$AS" # Let the user override the test.
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/$ac_word; then
4700 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4704 if test -n "$AS"; then
4705 echo "$ac_t""$AS" 1>&6
4707 echo "$ac_t""no" 1>&6
4715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_word" >&5
4719 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 if test -n "$OBJDUMP"; then
4723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4727 for ac_dir in $ac_dummy; do
4728 test -z "$ac_dir" && ac_dir=.
4729 if test -f $ac_dir/$ac_word; then
4730 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4737 OBJDUMP="$ac_cv_prog_OBJDUMP"
4738 if test -n "$OBJDUMP"; then
4739 echo "$ac_t""$OBJDUMP" 1>&6
4741 echo "$ac_t""no" 1>&6
4745 if test -z "$ac_cv_prog_OBJDUMP"; then
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "objdump", so it can be a program name with args.
4748 set dummy objdump; ac_word=$2
4749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_word" >&5
4751 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 if test -n "$OBJDUMP"; then
4755 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4759 for ac_dir in $ac_dummy; do
4760 test -z "$ac_dir" && ac_dir=.
4761 if test -f $ac_dir/$ac_word; then
4762 ac_cv_prog_OBJDUMP="objdump"
4767 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4770 OBJDUMP="$ac_cv_prog_OBJDUMP"
4771 if test -n "$OBJDUMP"; then
4772 echo "$ac_t""$OBJDUMP" 1>&6
4774 echo "$ac_t""no" 1>&6
4783 # recent cygwin and mingw systems supply a stub DllMain which the user
4784 # can override, but on older systems we have to supply one
4785 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4786 echo "configure:4787: checking if libtool should supply DllMain function" >&5
4787 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4795 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4799 if { (eval echo configure:4800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4801 lt_cv_need_dllmain=no
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 lt_cv_need_dllmain=yes
4811 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4814 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4815 # old mingw systems require "-dll" to link a DLL, while more recent ones
4817 SAVE_CFLAGS="$CFLAGS"
4818 CFLAGS="$CFLAGS -mdll"
4819 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4820 echo "configure:4821: checking how to link DLLs" >&5
4821 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 lt_cv_cc_dll_switch=-mdll
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 lt_cv_cc_dll_switch=-dll
4844 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4845 CFLAGS="$SAVE_CFLAGS" ;;
4846 *-*-cygwin* | *-*-pw32*)
4847 # cygwin systems need to pass --dll to the linker, and not link
4848 # crt.o which will require a WinMain@16 definition.
4849 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4855 # Sed substitution that helps us do robust quoting. It backslashifies
4856 # metacharacters that are still active within double-quoted strings.
4857 Xsed='sed -e s/^X//'
4858 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4860 # Same as above, but do not quote variable references.
4861 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4863 # Sed substitution to delay expansion of an escaped shell variable in a
4864 # double_quote_subst'ed string.
4865 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4871 default_ofile=libtool
4872 can_build_shared=yes
4874 # All known linkers require a `.a' archive for static linking (except M$VC,
4875 # which needs '.lib').
4877 ltmain="$ac_aux_dir/ltmain.sh"
4878 ofile="$default_ofile"
4879 with_gnu_ld="$lt_cv_prog_gnu_ld"
4880 need_locks="$enable_libtool_lock"
4883 old_CFLAGS="$CFLAGS"
4885 # Set sane defaults for various variables
4886 test -z "$AR" && AR=ar
4887 test -z "$AR_FLAGS" && AR_FLAGS=cru
4888 test -z "$AS" && AS=as
4889 test -z "$CC" && CC=cc
4890 test -z "$DLLTOOL" && DLLTOOL=dlltool
4891 test -z "$LD" && LD=ld
4892 test -z "$LN_S" && LN_S="ln -s"
4893 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4894 test -z "$NM" && NM=nm
4895 test -z "$OBJDUMP" && OBJDUMP=objdump
4896 test -z "$RANLIB" && RANLIB=:
4897 test -z "$STRIP" && STRIP=:
4898 test -z "$ac_objext" && ac_objext=o
4900 if test x"$host" != x"$build"; then
4901 ac_tool_prefix=${host_alias}-
4906 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4909 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4914 # AIX sometimes has problems with the GCC collect2 program. For some
4915 # reason, if we set the COLLECT_NAMES environment variable, the problems
4916 # vanish in a puff of smoke.
4917 if test "X${COLLECT_NAMES+set}" != Xset; then
4919 export COLLECT_NAMES
4924 # Determine commands to create old-style static archives.
4925 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4926 old_postinstall_cmds='chmod 644 $oldlib'
4927 old_postuninstall_cmds=
4929 if test -n "$RANLIB"; then
4932 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4935 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4938 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4941 # Allow CC to be a program name with arguments.
4945 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4946 echo "configure:4947: checking for objdir" >&5
4947 rm -f .libs 2>/dev/null
4948 mkdir .libs 2>/dev/null
4949 if test -d .libs; then
4952 # MS-DOS does not allow filenames that begin with a dot.
4955 rmdir .libs 2>/dev/null
4956 echo "$ac_t""$objdir" 1>&6
4959 # Check whether --with-pic or --without-pic was given.
4960 if test "${with_pic+set}" = set; then
4967 test -z "$pic_mode" && pic_mode=default
4969 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4970 # in isolation, and that seeing it set (from the cache) indicates that
4971 # the associated values are set (in the cache) correctly too.
4972 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4973 echo "configure:4974: checking for $compiler option to produce PIC" >&5
4974 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4978 lt_cv_prog_cc_shlib=
4980 lt_cv_prog_cc_static=
4981 lt_cv_prog_cc_no_builtin=
4982 lt_cv_prog_cc_can_build_shared=$can_build_shared
4984 if test "$GCC" = yes; then
4985 lt_cv_prog_cc_wl='-Wl,'
4986 lt_cv_prog_cc_static='-static'
4990 # Below there is a dirty hack to force normal static linking with -ldl
4991 # The problem is because libdl dynamically linked with both libc and
4992 # libC (AIX C++ library), which obviously doesn't included in libraries
4993 # list by gcc. This cause undefined symbols with -static flags.
4994 # This hack allows C programs to be linked with "-static -ldl", but
4995 # not sure about C++ programs.
4996 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4999 # FIXME: we need at least 68020 code to build shared libraries, but
5000 # adding the `-m68020' flag to GCC prevents building anything better,
5002 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5004 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5005 # PIC is the default for these OSes.
5007 darwin* | rhapsody*)
5008 # PIC is the default on this platform
5009 # Common symbols not allowed in MH_DYLIB files
5010 lt_cv_prog_cc_pic='-fno-common'
5012 cygwin* | mingw* | pw32* | os2*)
5013 # This hack is so that the source file can tell whether it is being
5014 # built for inclusion in a dll (and should export symbols for example).
5015 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5018 if test -d /usr/nec; then
5019 lt_cv_prog_cc_pic=-Kconform_pic
5023 lt_cv_prog_cc_pic='-fPIC'
5027 # PORTME Check for PIC flags for the system compiler.
5029 aix3* | aix4* | aix5*)
5030 lt_cv_prog_cc_wl='-Wl,'
5031 # All AIX code is PIC.
5032 if test "$host_cpu" = ia64; then
5033 # AIX 5 now supports IA64 processor
5034 lt_cv_prog_cc_static='-Bstatic'
5036 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5040 hpux9* | hpux10* | hpux11*)
5041 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5042 lt_cv_prog_cc_wl='-Wl,'
5043 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5044 lt_cv_prog_cc_pic='+Z'
5048 lt_cv_prog_cc_wl='-Wl,'
5049 lt_cv_prog_cc_static='-non_shared'
5050 # PIC (with -KPIC) is the default.
5053 cygwin* | mingw* | pw32* | os2*)
5054 # This hack is so that the source file can tell whether it is being
5055 # built for inclusion in a dll (and should export symbols for example).
5056 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5060 lt_cv_prog_cc_pic='-KPIC'
5061 lt_cv_prog_cc_static='-Bstatic'
5064 osf3* | osf4* | osf5*)
5065 # All OSF/1 code is PIC.
5066 lt_cv_prog_cc_wl='-Wl,'
5067 lt_cv_prog_cc_static='-non_shared'
5071 lt_cv_prog_cc_pic='-Kpic'
5072 lt_cv_prog_cc_static='-dn'
5073 lt_cv_prog_cc_shlib='-belf'
5077 lt_cv_prog_cc_pic='-KPIC'
5078 lt_cv_prog_cc_static='-Bstatic'
5079 lt_cv_prog_cc_wl='-Wl,'
5083 lt_cv_prog_cc_pic='-PIC'
5084 lt_cv_prog_cc_static='-Bstatic'
5085 lt_cv_prog_cc_wl='-Qoption ld '
5088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5089 lt_cv_prog_cc_pic='-KPIC'
5090 lt_cv_prog_cc_static='-Bstatic'
5091 if test "x$host_vendor" = xsni; then
5092 lt_cv_prog_cc_wl='-LD'
5094 lt_cv_prog_cc_wl='-Wl,'
5099 lt_cv_prog_cc_pic='-pic'
5100 lt_cv_prog_cc_static='-Bstatic'
5104 if test -d /usr/nec ;then
5105 lt_cv_prog_cc_pic='-Kconform_pic'
5106 lt_cv_prog_cc_static='-Bstatic'
5111 lt_cv_prog_cc_can_build_shared=no
5118 if test -z "$lt_cv_prog_cc_pic"; then
5119 echo "$ac_t""none" 1>&6
5121 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5123 # Check to make sure the pic_flag actually works.
5124 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5125 echo "configure:5126: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5126 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5129 save_CFLAGS="$CFLAGS"
5130 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5131 cat > conftest.$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5139 if { (eval echo configure:5140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5142 hpux9* | hpux10* | hpux11*)
5143 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5144 # they create non-PIC objects. So, if there were any warnings, we
5145 # assume that PIC is not supported.
5146 if test -s conftest.err; then
5147 lt_cv_prog_cc_pic_works=no
5149 lt_cv_prog_cc_pic_works=yes
5153 lt_cv_prog_cc_pic_works=yes
5158 echo "configure: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5161 lt_cv_prog_cc_pic_works=no
5165 CFLAGS="$save_CFLAGS"
5170 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5172 lt_cv_prog_cc_can_build_shared=no
5174 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5177 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5180 # Check for any special shared library compilation flags.
5181 if test -n "$lt_cv_prog_cc_shlib"; then
5182 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5183 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5185 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5186 lt_cv_prog_cc_can_build_shared=no
5190 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5191 echo "configure:5192: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5192 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 lt_cv_prog_cc_static_works=no
5196 save_LDFLAGS="$LDFLAGS"
5197 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5198 cat > conftest.$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5208 lt_cv_prog_cc_static_works=yes
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5214 LDFLAGS="$save_LDFLAGS"
5219 # Belt *and* braces to stop my trousers falling down:
5220 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5221 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5223 pic_flag="$lt_cv_prog_cc_pic"
5224 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5225 wl="$lt_cv_prog_cc_wl"
5226 link_static_flag="$lt_cv_prog_cc_static"
5227 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5228 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5231 # Check to see if options -o and -c are simultaneously supported by compiler
5232 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5233 echo "configure:5234: checking if $compiler supports -c -o file.$ac_objext" >&5
5234 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5238 $rm -r conftest 2>/dev/null
5241 echo "int some_variable = 0;" > conftest.$ac_ext
5243 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5244 # that will create temporary files in the current directory regardless of
5245 # the output directory. Thus, making CWD read-only will cause this test
5246 # to fail, enabling locking or at least warning the user not to do parallel
5249 save_CFLAGS="$CFLAGS"
5250 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5252 if { (eval echo configure:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5253 # The compiler can only warn and ignore the option if not recognized
5254 # So say no if there are warnings
5255 if test -s out/conftest.err; then
5256 lt_cv_compiler_c_o=no
5258 lt_cv_compiler_c_o=yes
5261 # Append any errors to the config.log.
5262 cat out/conftest.err 1>&5
5263 lt_cv_compiler_c_o=no
5265 CFLAGS="$save_CFLAGS"
5271 $rm -r conftest 2>/dev/null
5275 compiler_c_o=$lt_cv_compiler_c_o
5276 echo "$ac_t""$compiler_c_o" 1>&6
5278 if test x"$compiler_c_o" = x"yes"; then
5279 # Check to see if we can write to a .lo
5280 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5281 echo "configure:5282: checking if $compiler supports -c -o file.lo" >&5
5282 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5286 lt_cv_compiler_o_lo=no
5287 save_CFLAGS="$CFLAGS"
5288 CFLAGS="$CFLAGS -c -o conftest.lo"
5289 save_objext="$ac_objext"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5296 int some_variable = 0;
5299 if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 # The compiler can only warn and ignore the option if not recognized
5302 # So say no if there are warnings
5303 if test -s conftest.err; then
5304 lt_cv_compiler_o_lo=no
5306 lt_cv_compiler_o_lo=yes
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5314 ac_objext="$save_objext"
5315 CFLAGS="$save_CFLAGS"
5319 compiler_o_lo=$lt_cv_compiler_o_lo
5320 echo "$ac_t""$compiler_o_lo" 1>&6
5325 # Check to see if we can do hard links to lock some files if needed
5326 hard_links="nottested"
5327 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5328 # do not overwrite the value of need_locks provided by the user
5329 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5330 echo "configure:5331: checking if we can lock with hard links" >&5
5333 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5335 ln conftest.a conftest.b 2>&5 || hard_links=no
5336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5337 echo "$ac_t""$hard_links" 1>&6
5338 if test "$hard_links" = no; then
5339 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5346 if test "$GCC" = yes; then
5347 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5348 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5349 echo "configure:5350: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5350 echo "int some_variable = 0;" > conftest.$ac_ext
5351 save_CFLAGS="$CFLAGS"
5352 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5353 compiler_rtti_exceptions=no
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5359 int some_variable = 0;
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5364 # The compiler can only warn and ignore the option if not recognized
5365 # So say no if there are warnings
5366 if test -s conftest.err; then
5367 compiler_rtti_exceptions=no
5369 compiler_rtti_exceptions=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5377 CFLAGS="$save_CFLAGS"
5378 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5380 if test "$compiler_rtti_exceptions" = "yes"; then
5381 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5383 no_builtin_flag=' -fno-builtin'
5387 # See if the linker supports building shared libraries.
5388 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5389 echo "configure:5390: checking whether the linker ($LD) supports shared libraries" >&5
5391 allow_undefined_flag=
5393 need_lib_prefix=unknown
5394 need_version=unknown
5395 # when you set need_version to no, make sure it does not cause -set_version
5396 # flags to be left without arguments
5398 archive_expsym_cmds=
5399 old_archive_from_new_cmds=
5400 old_archive_from_expsyms_cmds=
5401 export_dynamic_flag_spec=
5402 whole_archive_flag_spec=
5403 thread_safe_flag_spec=
5404 hardcode_into_libs=no
5405 hardcode_libdir_flag_spec=
5406 hardcode_libdir_separator=
5409 hardcode_shlibpath_var=unsupported
5411 link_all_deplibs=unknown
5412 always_export_symbols=no
5413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5414 # include_expsyms should be a list of space-separated symbols to be *always*
5415 # included in the symbol list
5417 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5420 # as well as any symbol that contains `d'.
5421 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5423 # platforms (ab)use it in PIC code, but their linkers get confused if
5424 # the symbol is explicitly referenced. Since portable code cannot
5425 # rely on this symbol name, it's probably fine to never include it in
5426 # preloaded symbol tables.
5427 extract_expsyms_cmds=
5430 cygwin* | mingw* | pw32*)
5431 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5432 # When not using gcc, we currently assume that we are using
5433 # Microsoft Visual C++.
5434 if test "$GCC" != yes; then
5444 if test "$with_gnu_ld" = yes; then
5445 # If archive_cmds runs LD, not CC, wlarc should be empty
5448 # See if GNU ld supports shared libraries.
5450 aix3* | aix4* | aix5*)
5451 # On AIX, the GNU linker is very broken
5452 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5457 *** to be unable to reliably create shared libraries on AIX.
5458 *** Therefore, libtool is disabling shared libraries support. If you
5459 *** really care for shared libraries, you may want to modify your PATH
5460 *** so that a non-GNU linker is found, and then restart.
5466 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)'
5467 hardcode_libdir_flag_spec='-L$libdir'
5468 hardcode_minus_L=yes
5470 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5471 # that the semantics of dynamic libraries on AmigaOS, at least up
5472 # to version 4, is to share data among multiple programs linked
5473 # with the same dynamic library. Since this doesn't match the
5474 # behavior of shared libraries on other platforms, we can use
5480 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5481 allow_undefined_flag=unsupported
5482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5483 # support --undefined. This deserves some investigation. FIXME
5484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5490 cygwin* | mingw* | pw32*)
5491 # hardcode_libdir_flag_spec is actually meaningless, as there is
5492 # no search path for DLLs.
5493 hardcode_libdir_flag_spec='-L$libdir'
5494 allow_undefined_flag=unsupported
5495 always_export_symbols=yes
5497 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5498 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5499 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5500 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5501 else $CC -o impgen impgen.c ; fi)~
5502 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5504 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5506 # cygwin and mingw dlls have different entry points and sets of symbols
5508 # FIXME: what about values for MSVC?
5509 dll_entry=__cygwin_dll_entry@12
5510 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5514 dll_entry=_DllMainCRTStartup@12
5515 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5519 # mingw and cygwin differ, and it's simplest to just exclude the union
5520 # of the two symbol sets.
5521 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5523 # recent cygwin and mingw systems supply a stub DllMain which the user
5524 # can override, but on older systems we have to supply one (in ltdll.c)
5525 if test "x$lt_cv_need_dllmain" = "xyes"; then
5526 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5527 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~
5528 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5534 # Extract the symbol export list from an `--export-all' def file,
5535 # then regenerate the def file from the symbol export list, so that
5536 # the compiled dll only exports the symbol export list.
5537 # Be careful not to strip the DATA tag left be newer dlltools.
5538 export_symbols_cmds="$ltdll_cmds"'
5539 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5540 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5542 # If the export-symbols file already is a .def file (1st line
5543 # is EXPORTS), use it as is.
5544 # If DATA tags from a recent dlltool are present, honour them!
5545 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5546 cp $export_symbols $output_objdir/$soname-def;
5548 echo EXPORTS > $output_objdir/$soname-def;
5550 cat $export_symbols | while read symbol; do
5553 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5554 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5556 _lt_hint=`expr 1 + \$_lt_hint`;
5560 $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~
5561 $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~
5562 $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~
5563 $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~
5564 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5569 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5572 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5573 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5578 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5582 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5583 *** create shared libraries on Solaris systems. Therefore, libtool
5584 *** is disabling shared libraries support. We urge you to upgrade GNU
5585 *** binutils to release 2.9.1 or newer. Another option is to modify
5586 *** your PATH or compiler configuration so that the native linker is
5587 *** used, and then restart.
5590 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5592 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5599 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5602 hardcode_shlibpath_var=no
5606 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5615 if test "$ld_shlibs" = yes; then
5616 runpath_var=LD_RUN_PATH
5617 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5618 export_dynamic_flag_spec='${wl}--export-dynamic'
5620 cygwin* | mingw* | pw32*)
5621 # dlltool doesn't understand --whole-archive et. al.
5622 whole_archive_flag_spec=
5625 # ancient GNU ld didn't support --whole-archive et. al.
5626 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5627 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5629 whole_archive_flag_spec=
5635 # PORTME fill in a description of your system's linker (not GNU ld)
5638 allow_undefined_flag=unsupported
5639 always_export_symbols=yes
5640 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'
5641 # Note: this linker hardcodes the directories in LIBPATH if there
5642 # are no directories specified by -L.
5643 hardcode_minus_L=yes
5644 if test "$GCC" = yes && test -z "$link_static_flag"; then
5645 # Neither direct hardcoding nor static linking is supported with a
5647 hardcode_direct=unsupported
5652 if test "$host_cpu" = ia64; then
5653 # On IA64, the linker does run time linking by default, so we don't
5654 # have to do anything special.
5655 aix_use_runtimelinking=no
5656 exp_sym_flag='-Bexport'
5659 aix_use_runtimelinking=no
5661 # Test if we are trying to use run time linking or normal
5662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5663 # need to do runtime linking.
5664 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5665 for ld_flag in $LDFLAGS; do
5666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5667 aix_use_runtimelinking=yes
5673 exp_sym_flag='-bexport'
5674 no_entry_flag='-bnoentry'
5677 # When large executables or shared objects are built, AIX ld can
5678 # have problems creating the table of contents. If linking a library
5679 # or program results in "error TOC overflow" add -mminimal-toc to
5680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5685 hardcode_libdir_separator=':'
5686 if test "$GCC" = yes; then
5687 case $host_os in aix4.[012]|aix4.[012].*)
5688 collect2name=`${CC} -print-prog-name=collect2`
5689 if test -f "$collect2name" && \
5690 strings "$collect2name" | grep resolve_lib_name >/dev/null
5692 # We have reworked collect2
5695 # We have old collect2
5696 hardcode_direct=unsupported
5697 # It fails to find uninstalled libraries when the uninstalled
5698 # path is not listed in the libpath. Setting hardcode_minus_L
5699 # to unsupported forces relinking
5700 hardcode_minus_L=yes
5701 hardcode_libdir_flag_spec='-L$libdir'
5702 hardcode_libdir_separator=
5706 shared_flag='-shared'
5709 if test "$host_cpu" = ia64; then
5710 shared_flag='${wl}-G'
5712 if test "$aix_use_runtimelinking" = yes; then
5713 shared_flag='${wl}-G'
5715 shared_flag='${wl}-bM:SRE'
5720 # It seems that -bexpall can do strange things, so it is better to
5721 # generate a list of symbols to export.
5722 always_export_symbols=yes
5723 if test "$aix_use_runtimelinking" = yes; then
5724 # Warning - without using the other runtime loading flags (-brtl),
5725 # -berok will link without error, but may produce a broken library.
5726 allow_undefined_flag='-berok'
5727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5728 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"
5730 if test "$host_cpu" = ia64; then
5731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5732 allow_undefined_flag="-z nodefs"
5733 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"
5735 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5736 # Warning - without using the other run time loading flags,
5737 # -berok will link without error, but may produce a broken library.
5738 allow_undefined_flag='${wl}-berok'
5739 # This is a bit strange, but is similar to how AIX traditionally builds
5740 # it's shared libraries.
5741 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'
5747 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)'
5748 hardcode_libdir_flag_spec='-L$libdir'
5749 hardcode_minus_L=yes
5750 # see comment about different semantics on the GNU ld section
5754 cygwin* | mingw* | pw32*)
5755 # When not using gcc, we currently assume that we are using
5756 # Microsoft Visual C++.
5757 # hardcode_libdir_flag_spec is actually meaningless, as there is
5758 # no search path for DLLs.
5759 hardcode_libdir_flag_spec=' '
5760 allow_undefined_flag=unsupported
5761 # Tell ltmain to make .lib files, not .a files.
5763 # FIXME: Setting linknames here is a bad hack.
5764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5765 # The linker will automatically build a .lib file if we build a DLL.
5766 old_archive_from_new_cmds='true'
5767 # FIXME: Should let the user specify the lib program.
5768 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5769 fix_srcfile_path='`cygpath -w "$srcfile"`'
5772 darwin* | rhapsody*)
5774 rhapsody* | darwin1.[012])
5775 allow_undefined_flag='-undefined suppress'
5778 allow_undefined_flag='-flat_namespace -undefined suppress'
5781 # FIXME: Relying on posixy $() will cause problems for
5782 # cross-compilation, but unfortunately the echo tests do not
5783 # yet detect zsh echo's removal of \ escapes.
5784 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'
5785 # We need to add '_' to the symbols in $export_symbols first
5786 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5788 hardcode_shlibpath_var=no
5789 whole_archive_flag_spec='-all_load $convenience'
5796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5797 # support. Future versions do this automatically, but an explicit c++rt0.o
5798 # does not break anything, and helps significantly (at the cost of a little
5801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5802 hardcode_libdir_flag_spec='-R$libdir'
5804 hardcode_shlibpath_var=no
5807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5811 hardcode_minus_L=yes
5812 hardcode_shlibpath_var=no
5815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5817 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5818 hardcode_libdir_flag_spec='-R$libdir'
5820 hardcode_shlibpath_var=no
5823 hpux9* | hpux10* | hpux11*)
5825 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' ;;
5826 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5829 hardcode_libdir_separator=:
5831 hardcode_minus_L=yes # Not in the search PATH, but as the default
5832 # location of the library.
5833 export_dynamic_flag_spec='${wl}-E'
5837 if test "$GCC" = yes; then
5838 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'
5840 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'
5842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5843 hardcode_libdir_separator=:
5844 link_all_deplibs=yes
5848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5853 hardcode_libdir_flag_spec='-R$libdir'
5855 hardcode_shlibpath_var=no
5859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5862 hardcode_libdir_separator=:
5863 hardcode_shlibpath_var=no
5868 hardcode_shlibpath_var=no
5869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5872 export_dynamic_flag_spec='${wl}-E'
5875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5877 hardcode_libdir_flag_spec='-R$libdir'
5880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5888 hardcode_libdir_flag_spec='-L$libdir'
5889 hardcode_minus_L=yes
5890 allow_undefined_flag=unsupported
5891 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'
5892 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5896 if test "$GCC" = yes; then
5897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5898 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'
5900 allow_undefined_flag=' -expect_unresolved \*'
5901 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'
5903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5904 hardcode_libdir_separator=:
5907 osf4* | osf5*) # as osf3* with the addition of -msym flag
5908 if test "$GCC" = yes; then
5909 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5910 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'
5911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5913 allow_undefined_flag=' -expect_unresolved \*'
5914 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'
5915 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5916 $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'
5918 #Both c and cxx compiler support -rpath directly
5919 hardcode_libdir_flag_spec='-rpath $libdir'
5921 hardcode_libdir_separator=:
5925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926 hardcode_shlibpath_var=no
5927 runpath_var=LD_RUN_PATH
5928 hardcode_runpath_var=yes
5929 export_dynamic_flag_spec='${wl}-Bexport'
5933 # gcc --version < 3.0 without binutils cannot create self contained
5934 # shared libraries reliably, requiring libgcc.a to resolve some of
5935 # the object symbols generated in some cases. Libraries that use
5936 # assert need libgcc.a to resolve __eprintf, for example. Linking
5937 # a copy of libgcc.a into every shared library to guarantee resolving
5938 # such symbols causes other problems: According to Tim Van Holder
5939 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5940 # (to the application) exception stack for one thing.
5941 no_undefined_flag=' -z defs'
5942 if test "$GCC" = yes; then
5943 case `$CC --version 2>/dev/null` in
5947 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5948 *** create self contained shared libraries on Solaris systems, without
5949 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5950 *** -no-undefined support, which will at least allow you to build shared
5951 *** libraries. However, you may find that when you link such libraries
5952 *** into an application without using GCC, you have to manually add
5953 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5954 *** upgrade to a newer version of GCC. Another option is to rebuild your
5955 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5962 # $CC -shared without GNU ld will not create a library from C++
5963 # object files and a static libstdc++, better avoid it by now
5964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5967 hardcode_libdir_flag_spec='-R$libdir'
5968 hardcode_shlibpath_var=no
5970 solaris2.[0-5] | solaris2.[0-5].*) ;;
5971 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5972 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5974 link_all_deplibs=yes
5978 if test "x$host_vendor" = xsequent; then
5979 # Use $CC to link under sequent, because it throws in some extra .o
5980 # files that make .init and .fini sections work.
5981 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5983 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5985 hardcode_libdir_flag_spec='-L$libdir'
5987 hardcode_minus_L=yes
5988 hardcode_shlibpath_var=no
5992 if test "x$host_vendor" = xsno; then
5993 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5994 hardcode_direct=yes # is this really true???
5996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5999 runpath_var='LD_RUN_PATH'
6000 hardcode_shlibpath_var=no
6004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6005 hardcode_shlibpath_var=no
6006 export_dynamic_flag_spec='-Bexport'
6010 no_undefined_flag=' -z text'
6011 # $CC -shared without GNU ld will not create a library from C++
6012 # object files and a static libstdc++, better avoid it by now
6013 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6014 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6016 hardcode_libdir_flag_spec=
6017 hardcode_shlibpath_var=no
6018 runpath_var='LD_RUN_PATH'
6022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6023 hardcode_libdir_flag_spec='-L$libdir'
6024 hardcode_shlibpath_var=no
6028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6029 hardcode_libdir_flag_spec='-L$libdir'
6030 hardcode_shlibpath_var=no
6034 if test -d /usr/nec; then
6035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6036 hardcode_shlibpath_var=no
6037 runpath_var=LD_RUN_PATH
6038 hardcode_runpath_var=yes
6044 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6047 hardcode_shlibpath_var=no
6048 hardcode_runpath_var=yes
6049 runpath_var=LD_RUN_PATH
6052 sysv5uw7* | unixware7*)
6053 no_undefined_flag='${wl}-z ${wl}text'
6054 if test "$GCC" = yes; then
6055 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6057 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6059 runpath_var='LD_RUN_PATH'
6060 hardcode_shlibpath_var=no
6068 echo "$ac_t""$ld_shlibs" 1>&6
6069 test "$ld_shlibs" = no && can_build_shared=no
6071 # Check hardcoding attributes.
6072 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6073 echo "configure:6074: checking how to hardcode library paths into programs" >&5
6075 if test -n "$hardcode_libdir_flag_spec" || \
6076 test -n "$runpath_var"; then
6078 # We can hardcode non-existant directories.
6079 if test "$hardcode_direct" != no &&
6080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6081 # have to relink, otherwise we might link with an installed library
6082 # when we should be linking with a yet-to-be-installed one
6083 ## test "$hardcode_shlibpath_var" != no &&
6084 test "$hardcode_minus_L" != no; then
6085 # Linking always hardcodes the temporary library directory.
6086 hardcode_action=relink
6088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6089 hardcode_action=immediate
6092 # We cannot hardcode anything, or else we can only hardcode existing
6094 hardcode_action=unsupported
6096 echo "$ac_t""$hardcode_action" 1>&6
6100 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6101 echo "configure:6102: checking whether stripping libraries is possible" >&5
6102 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6105 echo "$ac_t""yes" 1>&6
6107 echo "$ac_t""no" 1>&6
6110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6113 # PORTME Fill in your ld.so characteristics
6114 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6115 echo "configure:6116: checking dynamic linker characteristics" >&5
6117 libname_spec='lib$name'
6124 shlibpath_overrides_runpath=unknown
6126 dynamic_linker="$host_os ld.so"
6127 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6133 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6134 shlibpath_var=LIBPATH
6136 # AIX has no versioning support, so we append a major version to the name.
6137 soname_spec='${libname}${release}.so$major'
6142 if test "$host_cpu" = ia64; then
6143 # AIX 5 supports IA64
6144 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6145 shlibpath_var=LD_LIBRARY_PATH
6147 # With GCC up to 2.95.x, collect2 would create an import file
6148 # for dependence libraries. The import file would start with
6149 # the line `#! .'. This would cause the generated library to
6150 # depend on `.', always an invalid library. This was fixed in
6151 # development snapshots of GCC prior to 3.0.
6153 aix4 | aix4.[01] | aix4.[01].*)
6154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6156 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6163 # AIX (on Power*) has no versioning support, so currently we can
6164 # not hardcode correct soname into executable. Probably we can
6165 # add versioning support to collect2, so additional links can
6166 # be useful in future.
6167 if test "$aix_use_runtimelinking" = yes; then
6168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6169 # instead of lib<name>.a to let people know that these are not
6170 # typical AIX shared libraries.
6171 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6173 # We preserve .a as extension for shared libraries through AIX4.2
6174 # and later when we are not doing run time linking.
6175 library_names_spec='${libname}${release}.a $libname.a'
6176 soname_spec='${libname}${release}.so$major'
6178 shlibpath_var=LIBPATH
6183 library_names_spec='$libname.ixlibrary $libname.a'
6184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6185 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'
6189 library_names_spec='${libname}.so'
6190 dynamic_linker="$host_os ld.so"
6191 shlibpath_var=LIBRARY_PATH
6197 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6198 soname_spec='${libname}${release}.so$major'
6199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6200 shlibpath_var=LD_LIBRARY_PATH
6201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6203 export_dynamic_flag_spec=-rdynamic
6204 # the default ld.so.conf also contains /usr/contrib/lib and
6205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6206 # libtool to hard-code these into programs
6209 cygwin* | mingw* | pw32*)
6210 version_type=windows
6213 case $GCC,$host_os in
6215 library_names_spec='$libname.dll.a'
6216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6217 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6218 dldir=$destdir/`dirname \$dlpath`~
6219 test -d \$dldir || mkdir -p \$dldir~
6220 $install_prog .libs/$dlname \$dldir/$dlname'
6221 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6222 dlpath=$dir/\$dldll~
6226 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6227 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6233 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6236 dynamic_linker='Win32 ld.exe'
6237 # FIXME: first we should search . and the directory the executable is in
6241 darwin* | rhapsody*)
6242 dynamic_linker="$host_os dyld"
6246 # FIXME: Relying on posixy $() will cause problems for
6247 # cross-compilation, but unfortunately the echo tests do not
6248 # yet detect zsh echo's removal of \ escapes.
6249 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)'
6250 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6251 shlibpath_overrides_runpath=yes
6252 shlibpath_var=DYLD_LIBRARY_PATH
6260 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6261 version_type=freebsd-$objformat
6262 case $version_type in
6264 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6269 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6273 shlibpath_var=LD_LIBRARY_PATH
6276 shlibpath_overrides_runpath=yes
6279 shlibpath_overrides_runpath=no
6280 hardcode_into_libs=yes
6289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6290 soname_spec='${libname}${release}.so$major'
6291 shlibpath_var=LD_LIBRARY_PATH
6292 hardcode_into_libs=yes
6295 hpux9* | hpux10* | hpux11*)
6296 # Give a soname corresponding to the major version so that dld.sl refuses to
6297 # link against other versions.
6298 dynamic_linker="$host_os dld.sl"
6302 shlibpath_var=SHLIB_PATH
6303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6304 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6305 soname_spec='${libname}${release}.sl$major'
6306 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6307 postinstall_cmds='chmod 555 $lib'
6314 soname_spec='${libname}${release}.so$major'
6315 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6321 case $LD in # libtool.m4 will add one of these switches to LD
6322 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6323 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6324 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6325 *) libsuff= shlibsuff= libmagic=never-match;;
6329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6330 shlibpath_overrides_runpath=no
6331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6335 # No shared lib support for Linux oldld, aout, or coff.
6336 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6340 # This must be Linux ELF.
6345 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6346 soname_spec='${libname}${release}.so$major'
6347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6348 shlibpath_var=LD_LIBRARY_PATH
6349 shlibpath_overrides_runpath=no
6350 # This implies no fast_install, which is unacceptable.
6351 # Some rework will be needed to allow for fast_install
6352 # before this can be enabled.
6353 hardcode_into_libs=yes
6355 # We used to test for /lib/ld.so.1 and disable shared libraries on
6356 # powerpc, because MkLinux only supported shared libraries with the
6357 # GNU dynamic linker. Since this was broken with cross compilers,
6358 # most powerpc-linux boxes support dynamic linking these days and
6359 # people can always --disable-shared, the test was removed, and we
6360 # assume the GNU/Linux dynamic linker is in use.
6361 dynamic_linker='GNU/Linux ld.so'
6368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6369 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6371 dynamic_linker='NetBSD (a.out) ld.so'
6373 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6374 soname_spec='${libname}${release}.so$major'
6375 dynamic_linker='NetBSD ld.elf_so'
6377 shlibpath_var=LD_LIBRARY_PATH
6378 shlibpath_overrides_runpath=yes
6379 hardcode_into_libs=yes
6384 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 shlibpath_overrides_runpath=yes
6393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6395 openbsd2.[89] | openbsd2.[89].*)
6396 shlibpath_overrides_runpath=no
6399 shlibpath_overrides_runpath=yes
6403 shlibpath_overrides_runpath=yes
6405 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6407 shlibpath_var=LD_LIBRARY_PATH
6411 libname_spec='$name'
6413 library_names_spec='$libname.dll $libname.a'
6414 dynamic_linker='OS/2 ld.exe'
6415 shlibpath_var=LIBPATH
6418 osf3* | osf4* | osf5*)
6421 soname_spec='${libname}${release}.so'
6422 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6423 shlibpath_var=LD_LIBRARY_PATH
6424 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6425 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6430 soname_spec='${libname}${release}.so$major'
6431 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6432 shlibpath_var=LD_LIBRARY_PATH
6439 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6440 soname_spec='${libname}${release}.so$major'
6441 shlibpath_var=LD_LIBRARY_PATH
6442 shlibpath_overrides_runpath=yes
6443 hardcode_into_libs=yes
6444 # ldd complains unless libraries are executable
6445 postinstall_cmds='chmod +x $lib'
6450 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6452 shlibpath_var=LD_LIBRARY_PATH
6453 shlibpath_overrides_runpath=yes
6454 if test "$with_gnu_ld" = yes; then
6460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6462 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6463 soname_spec='${libname}${release}.so$major'
6464 shlibpath_var=LD_LIBRARY_PATH
6465 case $host_vendor in
6467 shlibpath_overrides_runpath=no
6472 shlibpath_overrides_runpath=no
6473 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6480 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6481 soname_spec='${libname}${release}.so$major'
6482 shlibpath_var=LD_LIBRARY_PATH
6489 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6490 soname_spec='${libname}${release}.so$major'
6491 shlibpath_var=LD_LIBRARY_PATH
6495 if test -d /usr/nec ;then
6497 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6498 soname_spec='$libname.so.$major'
6499 shlibpath_var=LD_LIBRARY_PATH
6507 echo "$ac_t""$dynamic_linker" 1>&6
6508 test "$dynamic_linker" = no && can_build_shared=no
6510 # Report the final consequences.
6511 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6512 echo "configure:6513: checking if libtool supports shared libraries" >&5
6513 echo "$ac_t""$can_build_shared" 1>&6
6515 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6516 echo "configure:6517: checking whether to build shared libraries" >&5
6517 test "$can_build_shared" = "no" && enable_shared=no
6519 # On AIX, shared libraries and static libraries use the same namespace, and
6520 # are all built from PIC.
6523 test "$enable_shared" = yes && enable_static=no
6524 if test -n "$RANLIB"; then
6525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6526 postinstall_cmds='$RANLIB $lib'
6531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6532 test "$enable_shared" = yes && enable_static=no
6536 echo "$ac_t""$enable_shared" 1>&6
6538 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6539 echo "configure:6540: checking whether to build static libraries" >&5
6540 # Make sure either enable_shared or enable_static is yes.
6541 test "$enable_shared" = yes || enable_static=yes
6542 echo "$ac_t""$enable_static" 1>&6
6544 if test "$hardcode_action" = relink; then
6545 # Fast installation is not supported
6546 enable_fast_install=no
6547 elif test "$shlibpath_overrides_runpath" = yes ||
6548 test "$enable_shared" = no; then
6549 # Fast installation is not necessary
6550 enable_fast_install=needless
6553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6554 if test "$GCC" = yes; then
6555 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6558 if test "x$enable_dlopen" != xyes; then
6559 enable_dlopen=unknown
6560 enable_dlopen_self=unknown
6561 enable_dlopen_self_static=unknown
6568 lt_cv_dlopen="load_add_on"
6570 lt_cv_dlopen_self=yes
6573 cygwin* | mingw* | pw32*)
6574 lt_cv_dlopen="LoadLibrary"
6579 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6580 echo "configure:6581: checking for shl_load" >&5
6581 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char shl_load(); below. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_func_shl_load=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_func_shl_load=no"
6621 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 lt_cv_dlopen="shl_load"
6625 echo "$ac_t""no" 1>&6
6626 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6627 echo "configure:6628: checking for shl_load in -ldld" >&5
6628 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6632 ac_save_LIBS="$LIBS"
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6648 eval "ac_cv_lib_$ac_lib_var=yes"
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6653 eval "ac_cv_lib_$ac_lib_var=no"
6656 LIBS="$ac_save_LIBS"
6659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6660 echo "$ac_t""yes" 1>&6
6661 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6663 echo "$ac_t""no" 1>&6
6664 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6665 echo "configure:6666: checking for dlopen" >&5
6666 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char dlopen(); below. */
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 eval "ac_cv_func_dlopen=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_func_dlopen=no"
6706 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 lt_cv_dlopen="dlopen"
6710 echo "$ac_t""no" 1>&6
6711 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6712 echo "configure:6713: checking for dlopen in -ldl" >&5
6713 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 ac_save_LIBS="$LIBS"
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_lib_$ac_lib_var=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_lib_$ac_lib_var=no"
6741 LIBS="$ac_save_LIBS"
6744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6748 echo "$ac_t""no" 1>&6
6749 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6750 echo "configure:6751: checking for dlopen in -lsvld" >&5
6751 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6752 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 ac_save_LIBS="$LIBS"
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 /* Override any gcc2 internal prototype to avoid an error. */
6761 /* We use char because int might match the return type of a gcc2
6762 builtin and then its argument prototype would still apply. */
6769 if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6771 eval "ac_cv_lib_$ac_lib_var=yes"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 eval "ac_cv_lib_$ac_lib_var=no"
6779 LIBS="$ac_save_LIBS"
6782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6783 echo "$ac_t""yes" 1>&6
6784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6786 echo "$ac_t""no" 1>&6
6787 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6788 echo "configure:6789: checking for dld_link in -ldld" >&5
6789 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6790 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 ac_save_LIBS="$LIBS"
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* Override any gcc2 internal prototype to avoid an error. */
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 eval "ac_cv_lib_$ac_lib_var=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_lib_$ac_lib_var=no"
6817 LIBS="$ac_save_LIBS"
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6824 echo "$ac_t""no" 1>&6
6845 if test "x$lt_cv_dlopen" != xno; then
6851 case $lt_cv_dlopen in
6853 save_CPPFLAGS="$CPPFLAGS"
6854 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6856 save_LDFLAGS="$LDFLAGS"
6857 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6860 LIBS="$lt_cv_dlopen_libs $LIBS"
6862 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6863 echo "configure:6864: checking whether a program can dlopen itself" >&5
6864 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 if test "$cross_compiling" = yes; then :
6868 lt_cv_dlopen_self=cross
6870 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6871 lt_status=$lt_dlunknown
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6883 # define LT_DLGLOBAL RTLD_GLOBAL
6886 # define LT_DLGLOBAL DL_GLOBAL
6888 # define LT_DLGLOBAL 0
6892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6893 find out it does not work in some platform. */
6894 #ifndef LT_DLLAZY_OR_NOW
6896 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6899 # define LT_DLLAZY_OR_NOW DL_LAZY
6902 # define LT_DLLAZY_OR_NOW RTLD_NOW
6905 # define LT_DLLAZY_OR_NOW DL_NOW
6907 # define LT_DLLAZY_OR_NOW 0
6915 extern "C" void exit (int);
6918 void fnord() { int i=42;}
6921 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6922 int status = $lt_dlunknown;
6926 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6927 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6928 /* dlclose (self); */
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6935 (./conftest; exit; ) 2>/dev/null
6938 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6939 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6940 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6943 # compilation failed
6944 lt_cv_dlopen_self=no
6952 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6954 if test "x$lt_cv_dlopen_self" = xyes; then
6955 LDFLAGS="$LDFLAGS $link_static_flag"
6956 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6957 echo "configure:6958: checking whether a statically linked program can dlopen itself" >&5
6958 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6959 echo $ac_n "(cached) $ac_c" 1>&6
6961 if test "$cross_compiling" = yes; then :
6962 lt_cv_dlopen_self_static=cross
6964 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6965 lt_status=$lt_dlunknown
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6977 # define LT_DLGLOBAL RTLD_GLOBAL
6980 # define LT_DLGLOBAL DL_GLOBAL
6982 # define LT_DLGLOBAL 0
6986 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6987 find out it does not work in some platform. */
6988 #ifndef LT_DLLAZY_OR_NOW
6990 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6993 # define LT_DLLAZY_OR_NOW DL_LAZY
6996 # define LT_DLLAZY_OR_NOW RTLD_NOW
6999 # define LT_DLLAZY_OR_NOW DL_NOW
7001 # define LT_DLLAZY_OR_NOW 0
7009 extern "C" void exit (int);
7012 void fnord() { int i=42;}
7015 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7016 int status = $lt_dlunknown;
7020 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7021 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7022 /* dlclose (self); */
7028 if { (eval echo configure:7029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7029 (./conftest; exit; ) 2>/dev/null
7032 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7033 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7034 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7037 # compilation failed
7038 lt_cv_dlopen_self_static=no
7046 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7049 CPPFLAGS="$save_CPPFLAGS"
7050 LDFLAGS="$save_LDFLAGS"
7055 case $lt_cv_dlopen_self in
7056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7057 *) enable_dlopen_self=unknown ;;
7060 case $lt_cv_dlopen_self_static in
7061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7062 *) enable_dlopen_self_static=unknown ;;
7067 if test "$enable_shared" = yes && test "$GCC" = yes; then
7068 case $archive_cmds in
7070 # FIXME: we may have to deal with multi-command sequences.
7073 # Test whether the compiler implicitly links with -lc since on some
7074 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7075 # to ld, don't add -lc before -lgcc.
7076 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7077 echo "configure:7078: checking whether -lc should be explicitly linked in" >&5
7078 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7082 echo 'static int dummy;' > conftest.$ac_ext
7084 if { (eval echo configure:7085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7087 libobjs=conftest.$ac_objext
7089 wl=$lt_cv_prog_cc_wl
7095 save_allow_undefined_flag=$allow_undefined_flag
7096 allow_undefined_flag=
7097 if { (eval echo configure:7098: \"$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; }
7099 lt_cv_archive_cmds_need_lc=no
7101 lt_cv_archive_cmds_need_lc=yes
7103 allow_undefined_flag=$save_allow_undefined_flag
7105 cat conftest.err 1>&5
7109 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7113 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7115 # The second clause should only fire when bootstrapping the
7116 # libtool distribution, otherwise you forgot to ship ltmain.sh
7117 # with your package, and you will get complaints that there are
7118 # no rules to generate ltmain.sh.
7119 if test -f "$ltmain"; then
7122 # If there is no Makefile yet, we rely on a make rule to execute
7123 # `config.status --recheck' to rerun these tests and create the
7124 # libtool script then.
7125 test -f Makefile && make "$ltmain"
7128 if test -f "$ltmain"; then
7129 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7132 echo creating $ofile
7134 # Now quote all the things that may contain metacharacters while being
7135 # careful not to overquote the AC_SUBSTed values. We take copies of the
7136 # variables and quote the copies for generation of the libtool script.
7137 for var in echo old_CC old_CFLAGS \
7138 AR AR_FLAGS CC LD LN_S NM SHELL \
7139 reload_flag reload_cmds wl \
7140 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7141 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7142 library_names_spec soname_spec \
7143 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7144 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7145 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7146 old_striplib striplib file_magic_cmd export_symbols_cmds \
7147 deplibs_check_method allow_undefined_flag no_undefined_flag \
7148 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7149 global_symbol_to_c_name_address \
7150 hardcode_libdir_flag_spec hardcode_libdir_separator \
7151 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7152 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7155 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7156 old_postinstall_cmds | old_postuninstall_cmds | \
7157 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7158 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7159 postinstall_cmds | postuninstall_cmds | \
7160 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7161 # Double-quote double-evaled strings.
7162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7170 cat <<__EOF__ > "${ofile}T"
7173 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7174 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7175 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7177 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7178 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7180 # This program is free software; you can redistribute it and/or modify
7181 # it under the terms of the GNU General Public License as published by
7182 # the Free Software Foundation; either version 2 of the License, or
7183 # (at your option) any later version.
7185 # This program is distributed in the hope that it will be useful, but
7186 # WITHOUT ANY WARRANTY; without even the implied warranty of
7187 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7188 # General Public License for more details.
7190 # You should have received a copy of the GNU General Public License
7191 # along with this program; if not, write to the Free Software
7192 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7194 # As a special exception to the GNU General Public License, if you
7195 # distribute this file as part of a program that contains a
7196 # configuration script generated by Autoconf, you may include it under
7197 # the same distribution terms that you use for the rest of that program.
7199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7200 Xsed="sed -e s/^X//"
7202 # The HP-UX ksh and POSIX shell print the target directory to stdout
7204 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7206 # ### BEGIN LIBTOOL CONFIG
7208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7210 # Shell to use when invoking shell scripts.
7213 # Whether or not to build shared libraries.
7214 build_libtool_libs=$enable_shared
7216 # Whether or not to build static libraries.
7217 build_old_libs=$enable_static
7219 # Whether or not to add -lc for building shared libraries.
7220 build_libtool_need_lc=$need_lc
7222 # Whether or not to optimize for fast installation.
7223 fast_install=$enable_fast_install
7226 host_alias=$host_alias
7229 # An echo program that does not interpret backslashes.
7234 AR_FLAGS=$lt_AR_FLAGS
7236 # The default C compiler.
7239 # Is the compiler the GNU C compiler?
7242 # The linker used to build libraries.
7245 # Whether we need hard or soft links.
7248 # A BSD-compatible nm program.
7251 # A symbol stripping program
7254 # Used to examine libraries when file_magic_cmd begins "file"
7255 MAGIC_CMD=$MAGIC_CMD
7257 # Used on cygwin: DLL creation program.
7260 # Used on cygwin: object dumper.
7263 # Used on cygwin: assembler.
7266 # The name of the directory that contains temporary libtool files.
7269 # How to create reloadable object files.
7270 reload_flag=$lt_reload_flag
7271 reload_cmds=$lt_reload_cmds
7273 # How to pass a linker flag through the compiler.
7276 # Object file suffix (normally "o").
7279 # Old archive suffix (normally "a").
7282 # Executable file suffix (normally "").
7285 # Additional compiler flags for building library objects.
7286 pic_flag=$lt_pic_flag
7289 # Does compiler simultaneously support -c and -o options?
7290 compiler_c_o=$lt_compiler_c_o
7292 # Can we write directly to a .lo ?
7293 compiler_o_lo=$lt_compiler_o_lo
7295 # Must we lock files when doing compilation ?
7296 need_locks=$lt_need_locks
7298 # Do we need the lib prefix for modules?
7299 need_lib_prefix=$need_lib_prefix
7301 # Do we need a version for libraries?
7302 need_version=$need_version
7304 # Whether dlopen is supported.
7305 dlopen_support=$enable_dlopen
7307 # Whether dlopen of programs is supported.
7308 dlopen_self=$enable_dlopen_self
7310 # Whether dlopen of statically linked programs is supported.
7311 dlopen_self_static=$enable_dlopen_self_static
7313 # Compiler flag to prevent dynamic linking.
7314 link_static_flag=$lt_link_static_flag
7316 # Compiler flag to turn off builtin functions.
7317 no_builtin_flag=$lt_no_builtin_flag
7319 # Compiler flag to allow reflexive dlopens.
7320 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7322 # Compiler flag to generate shared objects directly from archives.
7323 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7325 # Compiler flag to generate thread-safe objects.
7326 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7328 # Library versioning type.
7329 version_type=$version_type
7331 # Format of library name prefix.
7332 libname_spec=$lt_libname_spec
7334 # List of archive names. First name is the real one, the rest are links.
7335 # The last name is the one that the linker finds with -lNAME.
7336 library_names_spec=$lt_library_names_spec
7338 # The coded name of the library, if different from the real name.
7339 soname_spec=$lt_soname_spec
7341 # Commands used to build and install an old-style archive.
7343 old_archive_cmds=$lt_old_archive_cmds
7344 old_postinstall_cmds=$lt_old_postinstall_cmds
7345 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7347 # Create an old-style archive from a shared archive.
7348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7350 # Create a temporary old-style archive to link instead of a shared archive.
7351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7353 # Commands used to build and install a shared archive.
7354 archive_cmds=$lt_archive_cmds
7355 archive_expsym_cmds=$lt_archive_expsym_cmds
7356 postinstall_cmds=$lt_postinstall_cmds
7357 postuninstall_cmds=$lt_postuninstall_cmds
7359 # Commands to strip libraries.
7360 old_striplib=$lt_old_striplib
7361 striplib=$lt_striplib
7363 # Method to check whether dependent libraries are shared objects.
7364 deplibs_check_method=$lt_deplibs_check_method
7366 # Command to use when deplibs_check_method == file_magic.
7367 file_magic_cmd=$lt_file_magic_cmd
7369 # Flag that allows shared libraries with undefined symbols to be built.
7370 allow_undefined_flag=$lt_allow_undefined_flag
7372 # Flag that forces no undefined symbols.
7373 no_undefined_flag=$lt_no_undefined_flag
7375 # Commands used to finish a libtool library installation in a directory.
7376 finish_cmds=$lt_finish_cmds
7378 # Same as above, but a single script fragment to be evaled but not shown.
7379 finish_eval=$lt_finish_eval
7381 # Take the output of nm and produce a listing of raw symbols and C names.
7382 global_symbol_pipe=$lt_global_symbol_pipe
7384 # Transform the output of nm in a proper C declaration
7385 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7387 # Transform the output of nm in a C name address pair
7388 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7390 # This is the shared library runtime path variable.
7391 runpath_var=$runpath_var
7393 # This is the shared library path variable.
7394 shlibpath_var=$shlibpath_var
7396 # Is shlibpath searched before the hard-coded library search path?
7397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7399 # How to hardcode a shared library path into an executable.
7400 hardcode_action=$hardcode_action
7402 # Whether we should hardcode library paths into libraries.
7403 hardcode_into_libs=$hardcode_into_libs
7405 # Flag to hardcode \$libdir into a binary during linking.
7406 # This must work even if \$libdir does not exist.
7407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7409 # Whether we need a single -rpath flag with a separated argument.
7410 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7412 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7414 hardcode_direct=$hardcode_direct
7416 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7418 hardcode_minus_L=$hardcode_minus_L
7420 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7421 # the resulting binary.
7422 hardcode_shlibpath_var=$hardcode_shlibpath_var
7424 # Variables whose values should be saved in libtool wrapper scripts and
7425 # restored at relink time.
7426 variables_saved_for_relink="$variables_saved_for_relink"
7428 # Whether libtool must link a program against all its dependency libraries.
7429 link_all_deplibs=$link_all_deplibs
7431 # Compile-time system search path for libraries
7432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7434 # Run-time system search path for libraries
7435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7437 # Fix the shell variable \$srcfile for the compiler.
7438 fix_srcfile_path="$fix_srcfile_path"
7440 # Set to yes if exported symbols are required.
7441 always_export_symbols=$always_export_symbols
7443 # The commands to list exported symbols.
7444 export_symbols_cmds=$lt_export_symbols_cmds
7446 # The commands to extract the exported symbol list from a shared archive.
7447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7449 # Symbols that should not be listed in the preloaded symbols.
7450 exclude_expsyms=$lt_exclude_expsyms
7452 # Symbols that must always be exported.
7453 include_expsyms=$lt_include_expsyms
7455 # ### END LIBTOOL CONFIG
7461 cat <<\EOF >> "${ofile}T"
7463 # AIX sometimes has problems with the GCC collect2 program. For some
7464 # reason, if we set the COLLECT_NAMES environment variable, the problems
7465 # vanish in a puff of smoke.
7466 if test "X${COLLECT_NAMES+set}" != Xset; then
7468 export COLLECT_NAMES
7475 cygwin* | mingw* | pw32* | os2*)
7476 cat <<'EOF' >> "${ofile}T"
7477 # This is a source program that is used to create dlls on Windows
7478 # Don't remove nor modify the starting and closing comments
7479 # /* ltdll.c starts here */
7480 # #define WIN32_LEAN_AND_MEAN
7481 # #include <windows.h>
7482 # #undef WIN32_LEAN_AND_MEAN
7483 # #include <stdio.h>
7485 # #ifndef __CYGWIN__
7486 # # ifdef __CYGWIN32__
7487 # # define __CYGWIN__ __CYGWIN32__
7491 # #ifdef __cplusplus
7494 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7495 # #ifdef __cplusplus
7500 # #include <cygwin/cygwin_dll.h>
7501 # DECLARE_CYGWIN_DLL( DllMain );
7503 # HINSTANCE __hDllInstance_base;
7506 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7508 # __hDllInstance_base = hInst;
7511 # /* ltdll.c ends here */
7512 # This is a source program that is used to create import libraries
7513 # on Windows for dlls which lack them. Don't remove nor modify the
7514 # starting and closing comments
7515 # /* impgen.c starts here */
7516 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7518 # This file is part of GNU libtool.
7520 # This program is free software; you can redistribute it and/or modify
7521 # it under the terms of the GNU General Public License as published by
7522 # the Free Software Foundation; either version 2 of the License, or
7523 # (at your option) any later version.
7525 # This program is distributed in the hope that it will be useful,
7526 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7528 # GNU General Public License for more details.
7530 # You should have received a copy of the GNU General Public License
7531 # along with this program; if not, write to the Free Software
7532 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7535 # #include <stdio.h> /* for printf() */
7536 # #include <unistd.h> /* for open(), lseek(), read() */
7537 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7538 # #include <string.h> /* for strdup() */
7540 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7542 # #define O_BINARY 0
7545 # static unsigned int
7546 # pe_get16 (fd, offset)
7550 # unsigned char b[2];
7551 # lseek (fd, offset, SEEK_SET);
7553 # return b[0] + (b[1]<<8);
7556 # static unsigned int
7557 # pe_get32 (fd, offset)
7561 # unsigned char b[4];
7562 # lseek (fd, offset, SEEK_SET);
7564 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7567 # static unsigned int
7571 # unsigned char *b = ptr;
7572 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7581 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7582 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7583 # unsigned long name_rvas, nexp;
7584 # unsigned char *expdata, *erva;
7585 # char *filename, *dll_name;
7587 # filename = argv[1];
7589 # dll = open(filename, O_RDONLY|O_BINARY);
7593 # dll_name = filename;
7595 # for (i=0; filename[i]; i++)
7596 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7597 # dll_name = filename + i +1;
7599 # pe_header_offset = pe_get32 (dll, 0x3c);
7600 # opthdr_ofs = pe_header_offset + 4 + 20;
7601 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7603 # if (num_entries < 1) /* no exports */
7606 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7607 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7608 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7609 # secptr = (pe_header_offset + 4 + 20 +
7610 # pe_get16 (dll, pe_header_offset + 4 + 16));
7613 # for (i = 0; i < nsections; i++)
7616 # unsigned long secptr1 = secptr + 40 * i;
7617 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7618 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7619 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7620 # lseek(dll, secptr1, SEEK_SET);
7621 # read(dll, sname, 8);
7622 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7624 # expptr = fptr + (export_rva - vaddr);
7625 # if (export_rva + export_size > vaddr + vsize)
7626 # export_size = vsize - (export_rva - vaddr);
7631 # expdata = (unsigned char*)malloc(export_size);
7632 # lseek (dll, expptr, SEEK_SET);
7633 # read (dll, expdata, export_size);
7634 # erva = expdata - export_rva;
7636 # nexp = pe_as32 (expdata+24);
7637 # name_rvas = pe_as32 (expdata+32);
7639 # printf ("EXPORTS\n");
7640 # for (i = 0; i<nexp; i++)
7642 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7643 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7648 # /* impgen.c ends here */
7654 # We use sed instead of cat because bash on DJGPP gets confused if
7655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7656 # text mode, it properly converts lines to CR/LF. This bash problem
7657 # is reportedly fixed, but why not run on old versions too?
7658 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7660 mv -f "${ofile}T" "$ofile" || \
7661 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7669 # This can be used to rebuild libtool when needed
7670 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7672 # Always use our own libtool.
7673 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7675 # Prevent multiple expansion
7679 for ac_prog in mawk gawk nawk awk
7681 # Extract the first word of "$ac_prog", so it can be a program name with args.
7682 set dummy $ac_prog; ac_word=$2
7683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7684 echo "configure:7685: checking for $ac_word" >&5
7685 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7688 if test -n "$AWK"; then
7689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7693 for ac_dir in $ac_dummy; do
7694 test -z "$ac_dir" && ac_dir=.
7695 if test -f $ac_dir/$ac_word; then
7696 ac_cv_prog_AWK="$ac_prog"
7703 AWK="$ac_cv_prog_AWK"
7704 if test -n "$AWK"; then
7705 echo "$ac_t""$AWK" 1>&6
7707 echo "$ac_t""no" 1>&6
7710 test -n "$AWK" && break
7713 # test for ln hardlink support
7714 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7715 echo "configure:7716: checking whether ln works" >&5
7716 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 rm -f conftest.src conftest.dst
7720 echo "conftest" > conftest.src
7721 if ln conftest.src conftest.dst 2>/dev/null
7723 ol_cv_prog_LN_H="ln"
7725 ol_cv_prog_LN_H="cp"
7727 rm -f conftest.src conftest.dst
7730 LN_H="$ol_cv_prog_LN_H"
7731 if test "$ol_cv_prog_LN_H" = "ln"; then
7732 echo "$ac_t""yes" 1>&6
7734 echo "$ac_t""no" 1>&6
7737 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7738 echo "configure:7739: checking whether ln -s works" >&5
7739 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7743 if ln -s X conftestdata 2>/dev/null
7746 ac_cv_prog_LN_S="ln -s"
7751 LN_S="$ac_cv_prog_LN_S"
7752 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7753 echo "$ac_t""yes" 1>&6
7755 echo "$ac_t""no" 1>&6
7759 # Extract the first word of "sendmail", so it can be a program name with args.
7760 set dummy sendmail; ac_word=$2
7761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7762 echo "configure:7763: checking for $ac_word" >&5
7763 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7768 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7771 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7775 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7776 for ac_dir in $ac_dummy; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/$ac_word; then
7779 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7784 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7788 SENDMAIL="$ac_cv_path_SENDMAIL"
7789 if test -n "$SENDMAIL"; then
7790 echo "$ac_t""$SENDMAIL" 1>&6
7792 echo "$ac_t""no" 1>&6
7795 # Extract the first word of "vi", so it can be a program name with args.
7796 set dummy vi; ac_word=$2
7797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7798 echo "configure:7799: checking for $ac_word" >&5
7799 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7804 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7807 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7811 ac_dummy="$PATH:/usr/ucb"
7812 for ac_dir in $ac_dummy; do
7813 test -z "$ac_dir" && ac_dir=.
7814 if test -f $ac_dir/$ac_word; then
7815 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7820 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7824 EDITOR="$ac_cv_path_EDITOR"
7825 if test -n "$EDITOR"; then
7826 echo "$ac_t""$EDITOR" 1>&6
7828 echo "$ac_t""no" 1>&6
7833 if test $ol_enable_perl != no ; then
7834 # Extract the first word of "perl", so it can be a program name with args.
7835 set dummy perl; ac_word=$2
7836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7837 echo "configure:7838: checking for $ac_word" >&5
7838 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7843 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7846 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7851 for ac_dir in $ac_dummy; do
7852 test -z "$ac_dir" && ac_dir=.
7853 if test -f $ac_dir/$ac_word; then
7854 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7859 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7863 PERLBIN="$ac_cv_path_PERLBIN"
7864 if test -n "$PERLBIN"; then
7865 echo "$ac_t""$PERLBIN" 1>&6
7867 echo "$ac_t""no" 1>&6
7871 if test "no$PERLBIN" = "no" ; then
7872 if test $ol_enable_perl = yes ; then
7873 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7877 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7878 if test x"$ol_with_perl_module" = "xstatic" ; then
7879 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7881 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7887 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7888 echo "configure:7889: checking how to run the C preprocessor" >&5
7889 # On Suns, sometimes $CPP names a directory.
7890 if test -n "$CPP" && test -d "$CPP"; then
7893 if test -z "$CPP"; then
7894 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 # This must be in double quotes, not single quotes, because CPP may get
7898 # substituted into the Makefile and "${CC-cc}" will confuse make.
7900 # On the NeXT, cc -E runs the code through the compiler's parser,
7901 # not just through cpp.
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7909 { (eval echo configure:7910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7911 if test -z "$ac_err"; then
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 CPP="${CC-cc} -E -traditional-cpp"
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7926 { (eval echo configure:7927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7928 if test -z "$ac_err"; then
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 CPP="${CC-cc} -nologo -E"
7936 cat > conftest.$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7943 { (eval echo configure:7944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7945 if test -z "$ac_err"; then
7949 echo "configure: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7959 ac_cv_prog_CPP="$CPP"
7961 CPP="$ac_cv_prog_CPP"
7963 ac_cv_prog_CPP="$CPP"
7965 echo "$ac_t""$CPP" 1>&6
7968 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7969 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7971 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7972 echo "configure: warning: programs compiled here do run here..." 1>&2
7973 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7975 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7976 echo "configure: warning: programs compiled here do not run here..." 1>&2
7977 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7981 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7982 echo "configure:7983: checking for Cygwin environment" >&5
7983 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7993 #define __CYGWIN__ __CYGWIN32__
7998 if { (eval echo configure:7999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8010 echo "$ac_t""$ac_cv_cygwin" 1>&6
8012 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8013 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8014 echo "configure:8015: checking for mingw32 environment" >&5
8015 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8026 if { (eval echo configure:8027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8030 echo "configure: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8038 echo "$ac_t""$ac_cv_mingw32" 1>&6
8040 test "$ac_cv_mingw32" = yes && MINGW32=yes
8044 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8045 echo "configure:8046: checking for executable suffix" >&5
8046 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8049 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8053 echo 'int main () { return 0; }' > conftest.$ac_ext
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8056 for file in conftest.*; do
8058 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8059 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8063 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8066 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8071 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8072 echo "$ac_t""${ac_cv_exeext}" 1>&6
8075 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8076 echo "configure:8077: checking for object suffix" >&5
8077 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8081 echo 'int i = 1;' > conftest.$ac_ext
8082 if { (eval echo configure:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8083 for ac_file in conftest.*; do
8086 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8090 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8095 echo "$ac_t""$ac_cv_objext" 1>&6
8096 OBJEXT=$ac_cv_objext
8097 ac_objext=$ac_cv_objext
8100 cat >> confdefs.h <<EOF
8101 #define EXEEXT "${EXEEXT}"
8105 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8106 echo "configure:8107: checking for be_app in -lbe" >&5
8107 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8108 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8111 ac_save_LIBS="$LIBS"
8112 LIBS="-lbe -lroot -lnet $LIBS"
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8125 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8127 eval "ac_cv_lib_$ac_lib_var=yes"
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8132 eval "ac_cv_lib_$ac_lib_var=no"
8135 LIBS="$ac_save_LIBS"
8138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8139 echo "$ac_t""yes" 1>&6
8140 LIBS="$LIBS -lbe -lroot -lnet"
8142 echo "$ac_t""no" 1>&6
8150 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8151 echo "configure:8152: checking for ${CC-cc} option to accept ANSI C" >&5
8152 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8155 am_cv_prog_cc_stdc=no
8157 # Don't try gcc -ansi; that turns off useful extensions and
8158 # breaks some systems' header files.
8159 # AIX -qlanglvl=ansi
8160 # Ultrix and OSF/1 -std1
8161 # HP-UX 10.20 and later -Ae
8162 # HP-UX older versions -Aa -D_HPUX_SOURCE
8163 # SVR4 -Xc -D__EXTENSIONS__
8164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8166 CC="$ac_save_CC $ac_arg"
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8172 #include <sys/types.h>
8173 #include <sys/stat.h>
8174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8175 struct buf { int x; };
8176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8177 static char *e (p, i)
8183 static char *f (char * (*g) (char **, int), char **p, ...)
8188 s = g (p, va_arg (v,int));
8192 int test (int i, double x);
8193 struct s1 {int (*f) (int a);};
8194 struct s2 {int (*f) (double a);};
8195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8205 if { (eval echo configure:8206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8207 am_cv_prog_cc_stdc="$ac_arg"; break
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8218 if test -z "$am_cv_prog_cc_stdc"; then
8219 echo "$ac_t""none needed" 1>&6
8221 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8223 case "x$am_cv_prog_cc_stdc" in
8225 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8228 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8229 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8232 # test for make depend flag
8235 if test -z "${MKDEP}"; then
8237 if test -z "${MKDEP_FLAGS}"; then
8238 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8239 echo "configure:8240: checking for ${OL_MKDEP} depend flag" >&5
8240 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8241 echo $ac_n "(cached) $ac_c" 1>&6
8245 for flag in "-M" "-xM"; do
8246 cat > conftest.c <<EOF
8249 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8250 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8252 if test ! -f conftest."${ac_object}" ; then
8254 OL_MKDEP_FLAGS="$flag"
8263 echo "$ac_t""$ol_cv_mkdep" 1>&6
8266 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8271 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8276 if test "${ol_cv_mkdep}" = no ; then
8277 # this will soon become an error
8278 echo "configure: warning: do not know how to generate dependencies" 1>&2
8281 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8282 echo "configure:8283: checking for afopen in -ls" >&5
8283 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8284 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8287 ac_save_LIBS="$LIBS"
8289 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure"
8291 #include "confdefs.h"
8292 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8303 eval "ac_cv_lib_$ac_lib_var=yes"
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8308 eval "ac_cv_lib_$ac_lib_var=no"
8311 LIBS="$ac_save_LIBS"
8314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8315 echo "$ac_t""yes" 1>&6
8318 cat >> confdefs.h <<\EOF
8319 #define HAVE_AIX_SECURITY 1
8324 echo "$ac_t""no" 1>&6
8330 if test $ol_enable_modules != no ; then
8331 for ac_hdr in ltdl.h
8333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_hdr" >&5
8336 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8345 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8347 if test -z "$ac_err"; then
8349 eval "ac_cv_header_$ac_safe=yes"
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8355 eval "ac_cv_header_$ac_safe=no"
8359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8360 echo "$ac_t""yes" 1>&6
8361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8362 cat >> confdefs.h <<EOF
8363 #define $ac_tr_hdr 1
8367 echo "$ac_t""no" 1>&6
8372 if test $ac_cv_header_ltdl_h = no ; then
8373 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8376 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8377 echo "configure:8378: checking for lt_dlinit in -lltdl" >&5
8378 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8379 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8382 ac_save_LIBS="$LIBS"
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure"
8386 #include "confdefs.h"
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8398 eval "ac_cv_lib_$ac_lib_var=yes"
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8403 eval "ac_cv_lib_$ac_lib_var=no"
8406 LIBS="$ac_save_LIBS"
8409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8413 cat >> confdefs.h <<\EOF
8414 #define HAVE_LIBLTDL 1
8419 echo "$ac_t""no" 1>&6
8423 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8424 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8428 ol_with_bdb_module=static
8429 ol_with_dnssrv_module=static
8430 ol_with_ldap_module=static
8431 ol_with_ldbm_module=static
8432 ol_with_meta_module=static
8433 ol_with_monitor_module=static
8434 ol_with_null_module=static
8435 ol_with_passwd_module=static
8436 ol_with_perl_module=static
8437 ol_with_shell_module=static
8438 ol_with_tcl_module=static
8439 ol_with_sql_module=static
8443 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8444 echo "configure:8445: checking for EBCDIC" >&5
8445 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8454 #include <__ASCII__/generate_error.h>
8458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8459 { (eval echo configure:8460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8461 if test -z "$ac_err"; then
8463 ol_cv_cpp_ebcdic=yes
8466 echo "configure: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8474 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8475 if test $ol_cv_cpp_ebcdic = yes ; then
8476 cat >> confdefs.h <<\EOF
8477 #define HAVE_EBCDIC 1
8482 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8483 echo "configure:8484: checking for ANSI C header files" >&5
8484 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8496 { (eval echo configure:8497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8498 if test -z "$ac_err"; then
8500 ol_cv_header_stdc=yes
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8506 ol_cv_header_stdc=no
8510 if test $ol_cv_header_stdc = yes; then
8511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8512 cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure"
8514 #include "confdefs.h"
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518 egrep "memchr" >/dev/null 2>&1; then
8522 ol_cv_header_stdc=no
8528 if test $ol_cv_header_stdc = yes; then
8529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8536 egrep "free" >/dev/null 2>&1; then
8540 ol_cv_header_stdc=no
8546 if test $ol_cv_header_stdc = yes; then
8547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8548 if test "$cross_compiling" = yes; then
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8559 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8560 || ('j' <= (c) && (c) <= 'r') \
8561 || ('s' <= (c) && (c) <= 'z'))
8562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8565 int main () { int i; for (i = 0; i < 256; i++)
8566 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8570 if { (eval echo configure:8571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8574 echo "configure: failed program was:" >&5
8575 cat conftest.$ac_ext >&5
8577 ol_cv_header_stdc=no
8585 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8586 if test $ol_cv_header_stdc = yes; then
8587 cat >> confdefs.h <<\EOF
8588 #define STDC_HEADERS 1
8592 ac_cv_header_stdc=disable
8595 if test $ol_cv_header_stdc != yes; then
8596 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8600 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8603 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8604 echo "configure:8605: checking for $ac_hdr that defines DIR" >&5
8605 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8608 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure"
8610 #include "confdefs.h"
8611 #include <sys/types.h>
8617 if { (eval echo configure:8618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8619 eval "ac_cv_header_dirent_$ac_safe=yes"
8621 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8624 eval "ac_cv_header_dirent_$ac_safe=no"
8628 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8629 echo "$ac_t""yes" 1>&6
8630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8631 cat >> confdefs.h <<EOF
8632 #define $ac_tr_hdr 1
8634 ac_header_dirent=$ac_hdr; break
8636 echo "$ac_t""no" 1>&6
8639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8640 if test $ac_header_dirent = dirent.h; then
8641 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8642 echo "configure:8643: checking for opendir in -ldir" >&5
8643 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8647 ac_save_LIBS="$LIBS"
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8663 eval "ac_cv_lib_$ac_lib_var=yes"
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 eval "ac_cv_lib_$ac_lib_var=no"
8671 LIBS="$ac_save_LIBS"
8674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8675 echo "$ac_t""yes" 1>&6
8678 echo "$ac_t""no" 1>&6
8682 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8683 echo "configure:8684: checking for opendir in -lx" >&5
8684 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8685 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8688 ac_save_LIBS="$LIBS"
8690 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8693 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8702 if { (eval echo configure:8703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8704 eval "ac_cv_lib_$ac_lib_var=yes"
8706 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8709 eval "ac_cv_lib_$ac_lib_var=no"
8712 LIBS="$ac_save_LIBS"
8715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8716 echo "$ac_t""yes" 1>&6
8719 echo "$ac_t""no" 1>&6
8724 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8725 echo "configure:8726: checking for sys/wait.h that is POSIX.1 compatible" >&5
8726 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8727 echo $ac_n "(cached) $ac_c" 1>&6
8729 cat > conftest.$ac_ext <<EOF
8730 #line 8731 "configure"
8731 #include "confdefs.h"
8732 #include <sys/types.h>
8733 #include <sys/wait.h>
8735 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8738 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8743 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8746 if { (eval echo configure:8747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8748 ac_cv_header_sys_wait_h=yes
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 ac_cv_header_sys_wait_h=no
8758 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8759 if test $ac_cv_header_sys_wait_h = yes; then
8760 cat >> confdefs.h <<\EOF
8761 #define HAVE_SYS_WAIT_H 1
8766 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8767 echo "configure:8768: checking POSIX termios" >&5
8768 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8769 echo $ac_n "(cached) $ac_c" 1>&6
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 #include <sys/types.h>
8776 #include <termios.h>
8778 /* SunOS 4.0.3 has termios.h but not the library calls. */
8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8784 am_cv_sys_posix_termios=yes
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8789 am_cv_sys_posix_termios=no
8794 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8797 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8798 echo "configure:8799: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8799 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8802 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8804 gwinsz_in_termios_h=no
8805 if test $am_cv_sys_posix_termios = yes; then
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8810 # include <termios.h>
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 egrep "yes" >/dev/null 2>&1; then
8819 gwinsz_in_termios_h=yes
8825 if test $gwinsz_in_termios_h = no; then
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8828 "configure"
8828 #include "confdefs.h"
8829 #include <sys/types.h>
8830 # include <sys/ioctl.h>
8836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8837 egrep "yes" >/dev/null 2>&1; then
8839 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8847 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8848 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8849 cat >> confdefs.h <<\EOF
8850 #define GWINSZ_IN_SYS_IOCTL 1
8855 if test $am_cv_sys_posix_termios = yes ; then
8856 cat >> confdefs.h <<\EOF
8857 #define HAVE_POSIX_TERMIOS 1
8909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8911 echo "configure:8912: checking for $ac_hdr" >&5
8912 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8915 cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8921 { (eval echo configure:8922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8923 if test -z "$ac_err"; then
8925 eval "ac_cv_header_$ac_safe=yes"
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8931 eval "ac_cv_header_$ac_safe=no"
8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
8937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8938 cat >> confdefs.h <<EOF
8939 #define $ac_tr_hdr 1
8943 echo "$ac_t""no" 1>&6
8950 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8951 echo "configure:8952: checking for dlopen" >&5
8952 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8953 echo $ac_n "(cached) $ac_c" 1>&6
8955 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8958 /* System header to define __stub macros and hopefully few prototypes,
8959 which can conflict with char dlopen(); below. */
8961 /* Override any gcc2 internal prototype to avoid an error. */
8962 /* We use char because int might match the return type of a gcc2
8963 builtin and then its argument prototype would still apply. */
8969 /* The GNU C library defines this for functions which it implements
8970 to always fail with ENOSYS. Some functions are actually named
8971 something starting with __ and the normal name is an alias. */
8972 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8980 if { (eval echo configure:8981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8982 eval "ac_cv_func_dlopen=yes"
8984 echo "configure: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8987 eval "ac_cv_func_dlopen=no"
8992 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8993 echo "$ac_t""yes" 1>&6
8996 echo "$ac_t""no" 1>&6
8997 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8998 echo "configure:8999: checking for dlopen in -ldl" >&5
8999 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9003 ac_save_LIBS="$LIBS"
9005 cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 /* Override any gcc2 internal prototype to avoid an error. */
9009 /* We use char because int might match the return type of a gcc2
9010 builtin and then its argument prototype would still apply. */
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019 eval "ac_cv_lib_$ac_lib_var=yes"
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9024 eval "ac_cv_lib_$ac_lib_var=no"
9027 LIBS="$ac_save_LIBS"
9030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9031 echo "$ac_t""yes" 1>&6
9032 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9033 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9034 cat >> confdefs.h <<EOF
9035 #define $ac_tr_lib 1
9041 echo "$ac_t""no" 1>&6
9047 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9048 echo "configure:9049: checking for sigset in -lV3" >&5
9049 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9053 ac_save_LIBS="$LIBS"
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9058 /* Override any gcc2 internal prototype to avoid an error. */
9059 /* We use char because int might match the return type of a gcc2
9060 builtin and then its argument prototype would still apply. */
9067 if { (eval echo configure:9068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9069 eval "ac_cv_lib_$ac_lib_var=yes"
9071 echo "configure: failed program was:" >&5
9072 cat conftest.$ac_ext >&5
9074 eval "ac_cv_lib_$ac_lib_var=no"
9077 LIBS="$ac_save_LIBS"
9080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9081 echo "$ac_t""yes" 1>&6
9082 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9083 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9084 cat >> confdefs.h <<EOF
9085 #define $ac_tr_lib 1
9091 echo "$ac_t""no" 1>&6
9095 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9096 echo "configure:9097: checking for winsock" >&5
9098 for curlib in ws2_32 wsock32; do
9099 LIBS="$LIBS -l$curlib"
9100 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9106 char closesocket@4();
9107 char gethostname@8();
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9129 if test $have_winsock = yes; then
9130 cat >> confdefs.h <<\EOF
9131 #define HAVE_WINSOCK 1
9134 ac_cv_func_socket=yes
9135 ac_cv_func_select=yes
9136 ac_cv_func_closesocket=yes
9137 ac_cv_func_gethostname=yes
9138 if test $curlib = ws2_32; then
9139 have_winsock=winsock2
9140 cat >> confdefs.h <<\EOF
9141 #define HAVE_WINSOCK2 1
9149 echo "$ac_t""$have_winsock" 1>&6
9152 echo $ac_n "checking for socket""... $ac_c" 1>&6
9153 echo "configure:9154: checking for socket" >&5
9154 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9160 /* System header to define __stub macros and hopefully few prototypes,
9161 which can conflict with char socket(); below. */
9163 /* Override any gcc2 internal prototype to avoid an error. */
9164 /* We use char because int might match the return type of a gcc2
9165 builtin and then its argument prototype would still apply. */
9171 /* The GNU C library defines this for functions which it implements
9172 to always fail with ENOSYS. Some functions are actually named
9173 something starting with __ and the normal name is an alias. */
9174 #if defined (__stub_socket) || defined (__stub___socket)
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9184 eval "ac_cv_func_socket=yes"
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9189 eval "ac_cv_func_socket=no"
9194 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9195 echo "$ac_t""yes" 1>&6
9198 echo "$ac_t""no" 1>&6
9200 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9201 echo "configure:9202: checking for main in -lsocket" >&5
9202 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9203 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9206 ac_save_LIBS="$LIBS"
9207 LIBS="-lsocket $LIBS"
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9216 if { (eval echo configure:9217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9218 eval "ac_cv_lib_$ac_lib_var=yes"
9220 echo "configure: failed program was:" >&5
9221 cat conftest.$ac_ext >&5
9223 eval "ac_cv_lib_$ac_lib_var=no"
9226 LIBS="$ac_save_LIBS"
9229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9230 echo "$ac_t""yes" 1>&6
9231 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9233 cat >> confdefs.h <<EOF
9234 #define $ac_tr_lib 1
9237 LIBS="-lsocket $LIBS"
9240 echo "$ac_t""no" 1>&6
9243 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9244 echo "configure:9245: checking for main in -lnet" >&5
9245 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9246 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9249 ac_save_LIBS="$LIBS"
9251 cat > conftest.$ac_ext <<EOF
9252 #line 9253 "configure"
9253 #include "confdefs.h"
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9261 eval "ac_cv_lib_$ac_lib_var=yes"
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9266 eval "ac_cv_lib_$ac_lib_var=no"
9269 LIBS="$ac_save_LIBS"
9272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9273 echo "$ac_t""yes" 1>&6
9274 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9276 cat >> confdefs.h <<EOF
9277 #define $ac_tr_lib 1
9283 echo "$ac_t""no" 1>&6
9286 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9287 echo "configure:9288: checking for main in -lnsl_s" >&5
9288 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9289 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9292 ac_save_LIBS="$LIBS"
9293 LIBS="-lnsl_s $LIBS"
9294 cat > conftest.$ac_ext <<EOF
9295 #line 9296 "configure"
9296 #include "confdefs.h"
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9304 eval "ac_cv_lib_$ac_lib_var=yes"
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9309 eval "ac_cv_lib_$ac_lib_var=no"
9312 LIBS="$ac_save_LIBS"
9315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9317 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9319 cat >> confdefs.h <<EOF
9320 #define $ac_tr_lib 1
9323 LIBS="-lnsl_s $LIBS"
9326 echo "$ac_t""no" 1>&6
9329 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9330 echo "configure:9331: checking for main in -lnsl" >&5
9331 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9335 ac_save_LIBS="$LIBS"
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9347 eval "ac_cv_lib_$ac_lib_var=yes"
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 eval "ac_cv_lib_$ac_lib_var=no"
9355 LIBS="$ac_save_LIBS"
9358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9359 echo "$ac_t""yes" 1>&6
9360 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9362 cat >> confdefs.h <<EOF
9363 #define $ac_tr_lib 1
9369 echo "$ac_t""no" 1>&6
9372 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9373 echo "configure:9374: checking for socket in -linet" >&5
9374 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9378 ac_save_LIBS="$LIBS"
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure"
9382 #include "confdefs.h"
9383 /* Override any gcc2 internal prototype to avoid an error. */
9384 /* We use char because int might match the return type of a gcc2
9385 builtin and then its argument prototype would still apply. */
9392 if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9394 eval "ac_cv_lib_$ac_lib_var=yes"
9396 echo "configure: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9399 eval "ac_cv_lib_$ac_lib_var=no"
9402 LIBS="$ac_save_LIBS"
9405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9406 echo "$ac_t""yes" 1>&6
9407 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9408 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9409 cat >> confdefs.h <<EOF
9410 #define $ac_tr_lib 1
9416 echo "$ac_t""no" 1>&6
9419 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9420 echo "configure:9421: checking for main in -lgen" >&5
9421 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9423 echo $ac_n "(cached) $ac_c" 1>&6
9425 ac_save_LIBS="$LIBS"
9427 cat > conftest.$ac_ext <<EOF
9428 #line 9429 "configure"
9429 #include "confdefs.h"
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9437 eval "ac_cv_lib_$ac_lib_var=yes"
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9442 eval "ac_cv_lib_$ac_lib_var=no"
9445 LIBS="$ac_save_LIBS"
9448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9449 echo "$ac_t""yes" 1>&6
9450 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9452 cat >> confdefs.h <<EOF
9453 #define $ac_tr_lib 1
9459 echo "$ac_t""no" 1>&6
9466 echo $ac_n "checking for select""... $ac_c" 1>&6
9467 echo "configure:9468: checking for select" >&5
9468 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char select(); below. */
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9485 /* The GNU C library defines this for functions which it implements
9486 to always fail with ENOSYS. Some functions are actually named
9487 something starting with __ and the normal name is an alias. */
9488 #if defined (__stub_select) || defined (__stub___select)
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9498 eval "ac_cv_func_select=yes"
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9503 eval "ac_cv_func_select=no"
9508 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9509 echo "$ac_t""yes" 1>&6
9512 echo "$ac_t""no" 1>&6
9513 { echo "configure: error: select() required." 1>&2; exit 1; }
9517 if test "${ac_cv_header_winsock_h}" != yes; then
9518 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9519 echo "configure:9520: checking types of arguments for select()" >&5
9520 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9521 echo $ac_n "(cached) $ac_c" 1>&6
9523 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9526 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9529 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9530 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9531 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #ifdef HAVE_SYS_TYPES_H
9536 #include <sys/types.h>
9538 #ifdef HAVE_SYS_TIME_H
9539 #include <sys/time.h>
9541 #ifdef HAVE_SYS_SELECT_H
9542 #include <sys/select.h>
9544 #ifdef HAVE_SYS_SOCKET_H
9545 #include <sys/socket.h>
9547 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);
9552 if { (eval echo configure:9553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9554 ac_not_found=no ; break 3
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9571 if test "$ac_not_found" = yes; then
9572 ac_cv_func_select_arg1=int
9573 ac_cv_func_select_arg234='int *'
9574 ac_cv_func_select_arg5='struct timeval *'
9576 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9577 cat >> confdefs.h <<EOF
9578 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9581 cat >> confdefs.h <<EOF
9582 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9585 cat >> confdefs.h <<EOF
9586 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9593 for ac_hdr in regex.h
9595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9597 echo "configure:9598: checking for $ac_hdr" >&5
9598 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9607 { (eval echo configure:9608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9609 if test -z "$ac_err"; then
9611 eval "ac_cv_header_$ac_safe=yes"
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 eval "ac_cv_header_$ac_safe=no"
9621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9622 echo "$ac_t""yes" 1>&6
9623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9624 cat >> confdefs.h <<EOF
9625 #define $ac_tr_hdr 1
9629 echo "$ac_t""no" 1>&6
9633 if test "$ac_cv_header_regex_h" != yes ; then
9634 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9637 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9638 echo "configure:9639: checking for library containing regfree" >&5
9639 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9640 echo $ac_n "(cached) $ac_c" 1>&6
9642 ac_func_search_save_LIBS="$LIBS"
9643 ac_cv_search_regfree="no"
9644 cat > conftest.$ac_ext <<EOF
9645 #line 9646 "configure"
9646 #include "confdefs.h"
9647 /* Override any gcc2 internal prototype to avoid an error. */
9648 /* We use char because int might match the return type of a gcc2
9649 builtin and then its argument prototype would still apply. */
9656 if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9658 ac_cv_search_regfree="none required"
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9664 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9666 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9669 /* Override any gcc2 internal prototype to avoid an error. */
9670 /* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */
9678 if { (eval echo configure:9679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9680 ac_cv_search_regfree="-l$ac_lib"
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9688 LIBS="$ac_func_search_save_LIBS"
9691 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9692 if test "$ac_cv_search_regfree" != "no"; then
9693 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9696 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9700 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9701 echo "configure:9702: checking for compatible POSIX regex" >&5
9702 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9706 if test "$cross_compiling" = yes; then
9707 ol_cv_c_posix_regex=cross
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9713 #include <sys/types.h>
9715 static char *pattern, *string;
9723 if(regcomp(&re, pattern, 0)) {
9727 string = "ALL MATCH";
9729 rc = regexec(&re, string, 0, (void*)0, 0);
9736 if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9738 ol_cv_c_posix_regex=yes
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9743 ol_cv_c_posix_regex=no
9750 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9752 if test "$ol_cv_c_posix_regex" = no ; then
9753 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9758 for ac_hdr in sys/uuid.h
9760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9762 echo "configure:9763: checking for $ac_hdr" >&5
9763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9772 { (eval echo configure:9773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9774 if test -z "$ac_err"; then
9776 eval "ac_cv_header_$ac_safe=yes"
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9782 eval "ac_cv_header_$ac_safe=no"
9786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9787 echo "$ac_t""yes" 1>&6
9788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9789 cat >> confdefs.h <<EOF
9790 #define $ac_tr_hdr 1
9794 echo "$ac_t""no" 1>&6
9798 if test $ac_cv_header_sys_uuid_h = yes ; then
9801 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9802 echo "configure:9803: checking for library containing uuid_to_str" >&5
9803 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9806 ac_func_search_save_LIBS="$LIBS"
9807 ac_cv_search_uuid_to_str="no"
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 /* Override any gcc2 internal prototype to avoid an error. */
9812 /* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9822 ac_cv_search_uuid_to_str="none required"
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9828 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9833 /* Override any gcc2 internal prototype to avoid an error. */
9834 /* We use char because int might match the return type of a gcc2
9835 builtin and then its argument prototype would still apply. */
9842 if { (eval echo configure:9843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9844 ac_cv_search_uuid_to_str="-l$ac_lib"
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9852 LIBS="$ac_func_search_save_LIBS"
9855 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9856 if test "$ac_cv_search_uuid_to_str" != "no"; then
9857 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9864 if test have_uuid = yes ; then
9865 cat >> confdefs.h <<\EOF
9866 #define HAVE_UUID_TO_STR 1
9870 test "$ac_cv_search_uuid_to_str" = "none required" || \
9871 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9875 if test $have_uuid = no ; then
9876 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9877 echo "configure:9878: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9879 LIBS="$LIBS -lrpcrt4"
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9884 char UuidCreate@4();
9885 char UuidToStringA@8();
9894 if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9898 echo "configure: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9904 if test $need_rpcrt = yes; then
9905 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9908 echo "$ac_t""$need_rpcrt" 1>&6
9912 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9913 echo "configure:9914: checking for res_query" >&5
9914 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9917 cat > conftest.$ac_ext <<EOF
9918 #line 9919 "configure"
9919 #include "confdefs.h"
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char res_query(); below. */
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined (__stub_res_query) || defined (__stub___res_query)
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9944 eval "ac_cv_func_res_query=yes"
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 eval "ac_cv_func_res_query=no"
9954 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9958 echo "$ac_t""no" 1>&6
9961 if test $ac_cv_func_res_query = no ; then
9962 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9963 echo "configure:9964: checking for __res_query" >&5
9964 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 /* System header to define __stub macros and hopefully few prototypes,
9971 which can conflict with char __res_query(); below. */
9973 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9981 /* The GNU C library defines this for functions which it implements
9982 to always fail with ENOSYS. Some functions are actually named
9983 something starting with __ and the normal name is an alias. */
9984 #if defined (__stub___res_query) || defined (__stub_____res_query)
9992 if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9994 eval "ac_cv_func___res_query=yes"
9996 echo "configure: failed program was:" >&5
9997 cat conftest.$ac_ext >&5
9999 eval "ac_cv_func___res_query=no"
10004 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10005 echo "$ac_t""yes" 1>&6
10008 echo "$ac_t""no" 1>&6
10011 ac_cv_func_res_query=$ac_cv_func___res_query
10014 if test $ac_cv_func_res_query = no ; then
10015 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10016 echo "configure:10017: checking for res_query in -lbind" >&5
10017 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10018 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10021 ac_save_LIBS="$LIBS"
10022 LIBS="-lbind $LIBS"
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 eval "ac_cv_lib_$ac_lib_var=yes"
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10042 eval "ac_cv_lib_$ac_lib_var=no"
10045 LIBS="$ac_save_LIBS"
10048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10049 echo "$ac_t""yes" 1>&6
10050 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10052 cat >> confdefs.h <<EOF
10053 #define $ac_tr_lib 1
10056 LIBS="-lbind $LIBS"
10059 echo "$ac_t""no" 1>&6
10062 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10065 if test $ac_cv_func_res_query = no ; then
10066 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10067 echo "configure:10068: checking for __res_query in -lbind" >&5
10068 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10069 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10072 ac_save_LIBS="$LIBS"
10073 LIBS="-lbind $LIBS"
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10080 char __res_query();
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10088 eval "ac_cv_lib_$ac_lib_var=yes"
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 eval "ac_cv_lib_$ac_lib_var=no"
10096 LIBS="$ac_save_LIBS"
10099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10100 echo "$ac_t""yes" 1>&6
10101 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10103 cat >> confdefs.h <<EOF
10104 #define $ac_tr_lib 1
10107 LIBS="-lbind $LIBS"
10110 echo "$ac_t""no" 1>&6
10113 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10116 if test $ac_cv_func_res_query = no ; then
10117 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10118 echo "configure:10119: checking for res_query in -lresolv" >&5
10119 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10120 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10123 ac_save_LIBS="$LIBS"
10124 LIBS="-lresolv $LIBS"
10125 cat > conftest.$ac_ext <<EOF
10126 #line 10127 "configure"
10127 #include "confdefs.h"
10128 /* Override any gcc2 internal prototype to avoid an error. */
10129 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10139 eval "ac_cv_lib_$ac_lib_var=yes"
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10144 eval "ac_cv_lib_$ac_lib_var=no"
10147 LIBS="$ac_save_LIBS"
10150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10151 echo "$ac_t""yes" 1>&6
10152 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10153 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10154 cat >> confdefs.h <<EOF
10155 #define $ac_tr_lib 1
10158 LIBS="-lresolv $LIBS"
10161 echo "$ac_t""no" 1>&6
10164 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10167 if test $ac_cv_func_res_query = no ; then
10168 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10169 echo "configure:10170: checking for __res_query in -lresolv" >&5
10170 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10174 ac_save_LIBS="$LIBS"
10175 LIBS="-lresolv $LIBS"
10176 cat > conftest.$ac_ext <<EOF
10177 #line 10178 "configure"
10178 #include "confdefs.h"
10179 /* Override any gcc2 internal prototype to avoid an error. */
10180 /* We use char because int might match the return type of a gcc2
10181 builtin and then its argument prototype would still apply. */
10182 char __res_query();
10188 if { (eval echo configure:10189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10190 eval "ac_cv_lib_$ac_lib_var=yes"
10192 echo "configure: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10195 eval "ac_cv_lib_$ac_lib_var=no"
10198 LIBS="$ac_save_LIBS"
10201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10205 cat >> confdefs.h <<EOF
10206 #define $ac_tr_lib 1
10209 LIBS="-lresolv $LIBS"
10212 echo "$ac_t""no" 1>&6
10215 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10218 if test "$ac_cv_func_res_query" = yes ; then
10219 cat >> confdefs.h <<\EOF
10220 #define HAVE_RES_QUERY 1
10224 if test $ol_enable_dnssrv != no ; then
10229 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10230 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10233 for ac_func in getaddrinfo gai_strerror inet_ntop
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10236 echo "configure:10237: checking for $ac_func" >&5
10237 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char $ac_func(); below. */
10245 #include <assert.h>
10246 /* Override any gcc2 internal prototype to avoid an error. */
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10267 eval "ac_cv_func_$ac_func=yes"
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 eval "ac_cv_func_$ac_func=no"
10277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10278 echo "$ac_t""yes" 1>&6
10279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10280 cat >> confdefs.h <<EOF
10281 #define $ac_tr_func 1
10285 echo "$ac_t""no" 1>&6
10291 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10292 if test $ol_enable_ipv6 = yes ; then
10293 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10295 elif test $ol_enable_ipv6 != no ; then
10296 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10297 echo "configure:10298: checking INET6_ADDRSTRLEN" >&5
10298 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10306 # include <netinet/in.h>
10307 # ifdef INET6_ADDRSTRLEN
10308 __has_inet6_addrstrlen__;
10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10315 ol_cv_inet6_addrstrlen=yes
10318 ol_cv_inet6_addrstrlen=no
10324 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10326 if test $ol_cv_inet6_addrstrlen = yes ; then
10328 elif test $ol_enable_ipv6 = yes ; then
10329 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10333 if test $ol_enable_local != no ; then
10334 for ac_hdr in sys/un.h
10336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10338 echo "configure:10339: checking for $ac_hdr" >&5
10339 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10348 { (eval echo configure:10349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10350 if test -z "$ac_err"; then
10352 eval "ac_cv_header_$ac_safe=yes"
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10358 eval "ac_cv_header_$ac_safe=no"
10362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10363 echo "$ac_t""yes" 1>&6
10364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10365 cat >> confdefs.h <<EOF
10366 #define $ac_tr_hdr 1
10370 echo "$ac_t""no" 1>&6
10375 if test $ol_enable_local = auto ; then
10376 ol_enable_local=$ac_cv_header_sys_un_h
10377 elif test $ac_cv_header_sys_un_h = no ; then
10378 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10387 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10388 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10389 -o $ol_with_kerberos = k425 ; then
10391 for ac_hdr in krb5.h
10393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10395 echo "configure:10396: checking for $ac_hdr" >&5
10396 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10405 { (eval echo configure:10406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10407 if test -z "$ac_err"; then
10409 eval "ac_cv_header_$ac_safe=yes"
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 eval "ac_cv_header_$ac_safe=no"
10419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
10421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10422 cat >> confdefs.h <<EOF
10423 #define $ac_tr_hdr 1
10427 echo "$ac_t""no" 1>&6
10432 if test $ac_cv_header_krb5_h = yes ; then
10433 for ac_hdr in heim_err.h
10435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10437 echo "configure:10438: checking for $ac_hdr" >&5
10438 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10441 cat > conftest.$ac_ext <<EOF
10442 #line 10443 "configure"
10443 #include "confdefs.h"
10446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10447 { (eval echo configure:10448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10449 if test -z "$ac_err"; then
10451 eval "ac_cv_header_$ac_safe=yes"
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10457 eval "ac_cv_header_$ac_safe=no"
10461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10462 echo "$ac_t""yes" 1>&6
10463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10464 cat >> confdefs.h <<EOF
10465 #define $ac_tr_hdr 1
10469 echo "$ac_t""no" 1>&6
10473 if test $ac_cv_header_heim_err_h = yes ; then
10479 if test $krb5_impl = mit; then
10480 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10481 echo "configure:10482: checking for main in -lk5crypto" >&5
10482 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10483 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10486 ac_save_LIBS="$LIBS"
10487 LIBS="-lk5crypto $LIBS"
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10496 if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10498 eval "ac_cv_lib_$ac_lib_var=yes"
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10503 eval "ac_cv_lib_$ac_lib_var=no"
10506 LIBS="$ac_save_LIBS"
10509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10510 echo "$ac_t""yes" 1>&6
10511 krb5crypto=k5crypto
10513 echo "$ac_t""no" 1>&6
10518 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10519 echo "configure:10520: checking for main in -lkrb5" >&5
10520 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
10524 ac_save_LIBS="$LIBS"
10525 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10534 if { (eval echo configure:10535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10536 eval "ac_cv_lib_$ac_lib_var=yes"
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10541 eval "ac_cv_lib_$ac_lib_var=no"
10544 LIBS="$ac_save_LIBS"
10547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10548 echo "$ac_t""yes" 1>&6
10550 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10552 echo "$ac_t""no" 1>&6
10557 elif test $krb5_impl = heimdal; then
10558 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10559 echo "configure:10560: checking for main in -ldes" >&5
10560 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10562 echo $ac_n "(cached) $ac_c" 1>&6
10564 ac_save_LIBS="$LIBS"
10566 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure"
10568 #include "confdefs.h"
10574 if { (eval echo configure:10575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10576 eval "ac_cv_lib_$ac_lib_var=yes"
10578 echo "configure: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10581 eval "ac_cv_lib_$ac_lib_var=no"
10584 LIBS="$ac_save_LIBS"
10587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10588 echo "$ac_t""yes" 1>&6
10591 echo "$ac_t""no" 1>&6
10596 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10597 echo "configure:10598: checking for main in -lkrb5" >&5
10598 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10599 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 ac_save_LIBS="$LIBS"
10603 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 eval "ac_cv_lib_$ac_lib_var=yes"
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 eval "ac_cv_lib_$ac_lib_var=no"
10622 LIBS="$ac_save_LIBS"
10625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10626 echo "$ac_t""yes" 1>&6
10628 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10630 echo "$ac_t""no" 1>&6
10635 cat >> confdefs.h <<\EOF
10636 #define HAVE_HEIMDAL_KERBEROS 1
10642 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10645 if test $have_krb5 = yes ; then
10648 cat >> confdefs.h <<\EOF
10649 #define HAVE_KRB5 1
10653 if test $ol_enable_kpasswd != no ; then
10654 ol_link_kpasswd=yes;
10657 if test $ol_with_kerberos = k5only ; then
10658 ol_with_kerberos=found
10661 elif test $ol_with_kerberos != auto ; then
10662 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10668 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10669 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10671 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10675 echo "configure:10676: checking for $ac_hdr" >&5
10676 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10685 { (eval echo configure:10686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10687 if test -z "$ac_err"; then
10689 eval "ac_cv_header_$ac_safe=yes"
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10695 eval "ac_cv_header_$ac_safe=no"
10699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10700 echo "$ac_t""yes" 1>&6
10701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10702 cat >> confdefs.h <<EOF
10703 #define $ac_tr_hdr 1
10707 echo "$ac_t""no" 1>&6
10712 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10713 if test $krb5_impl = mit; then
10714 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10715 echo "configure:10716: checking for main in -lkrb4" >&5
10716 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10717 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10720 ac_save_LIBS="$LIBS"
10721 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10722 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10732 eval "ac_cv_lib_$ac_lib_var=yes"
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10737 eval "ac_cv_lib_$ac_lib_var=no"
10740 LIBS="$ac_save_LIBS"
10743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10744 echo "$ac_t""yes" 1>&6
10746 KRB4_LIBS="-lkrb4 -ldes425"
10748 echo "$ac_t""no" 1>&6
10753 elif test $krb5_impl = heimdal; then
10754 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10755 echo "configure:10756: checking for main in -lkrb4" >&5
10756 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10757 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10760 ac_save_LIBS="$LIBS"
10761 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure"
10764 #include "confdefs.h"
10770 if { (eval echo configure:10771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10772 eval "ac_cv_lib_$ac_lib_var=yes"
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10777 eval "ac_cv_lib_$ac_lib_var=no"
10780 LIBS="$ac_save_LIBS"
10783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10784 echo "$ac_t""yes" 1>&6
10788 echo "$ac_t""no" 1>&6
10795 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10798 if test $have_k425 = yes ; then
10799 ol_with_kerberos=found
10802 cat >> confdefs.h <<\EOF
10803 #define HAVE_KRB425 1
10806 cat >> confdefs.h <<\EOF
10807 #define HAVE_KRB4 1
10811 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10812 echo "configure:10813: checking for des_debug in Kerberos libraries" >&5
10813 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
10818 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10823 #include <kerberosIV/krb.h>
10824 #include <kerberosIV/des.h>
10825 extern int des_debug;
10833 if { (eval echo configure:10834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10835 ol_cv_var_des_debug=yes
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10840 ol_cv_var_des_debug=no
10847 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10849 if test $ol_cv_var_des_debug = yes ; then
10850 cat >> confdefs.h <<\EOF
10851 #define HAVE_DES_DEBUG 1
10861 if test $ol_link_krb5 = yes ; then
10862 ol_with_kerberos=found
10865 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10866 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10868 for ac_hdr in krb.h des.h krb-archaeology.h
10870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10872 echo "configure:10873: checking for $ac_hdr" >&5
10873 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10874 echo $ac_n "(cached) $ac_c" 1>&6
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10882 { (eval echo configure:10883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10884 if test -z "$ac_err"; then
10886 eval "ac_cv_header_$ac_safe=yes"
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10892 eval "ac_cv_header_$ac_safe=no"
10896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10899 cat >> confdefs.h <<EOF
10900 #define $ac_tr_hdr 1
10904 echo "$ac_t""no" 1>&6
10909 if test $ac_cv_header_krb_h = yes ; then
10910 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10911 echo "configure:10912: checking for main in -lkrb" >&5
10912 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10913 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10916 ac_save_LIBS="$LIBS"
10917 LIBS="-lkrb -ldes $LIBS"
10918 cat > conftest.$ac_ext <<EOF
10919 #line 10920 "configure"
10920 #include "confdefs.h"
10926 if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10928 eval "ac_cv_lib_$ac_lib_var=yes"
10930 echo "configure: failed program was:" >&5
10931 cat conftest.$ac_ext >&5
10933 eval "ac_cv_lib_$ac_lib_var=no"
10936 LIBS="$ac_save_LIBS"
10939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10940 echo "$ac_t""yes" 1>&6
10943 echo "$ac_t""no" 1>&6
10948 if test $have_k4 = yes ; then
10949 ol_with_kerberos=found
10952 cat >> confdefs.h <<\EOF
10953 #define HAVE_KRB4 1
10957 KRB4_LIBS="-lkrb -ldes"
10959 if test $ac_cv_header_krb_archaeology_h = yes ; then
10960 cat >> confdefs.h <<\EOF
10961 #define HAVE_KTH_KERBEROS 1
10969 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10970 ol_link_kpasswd=yes
10973 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10976 elif test $ol_enable_kbind = yes ; then
10977 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10980 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10981 cat >> confdefs.h <<\EOF
10982 #define HAVE_KERBEROS 1
10986 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10987 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10991 if test $ol_with_tls != no ; then
10992 for ac_hdr in openssl/ssl.h ssl.h
10994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10996 echo "configure:10997: checking for $ac_hdr" >&5
10997 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11006 { (eval echo configure:11007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11008 if test -z "$ac_err"; then
11010 eval "ac_cv_header_$ac_safe=yes"
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11016 eval "ac_cv_header_$ac_safe=no"
11020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11021 echo "$ac_t""yes" 1>&6
11022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11023 cat >> confdefs.h <<EOF
11024 #define $ac_tr_hdr 1
11028 echo "$ac_t""no" 1>&6
11033 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11034 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11035 echo "configure:11036: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11036 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11037 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11040 ac_save_LIBS="$LIBS"
11041 LIBS="-lssl -lcrypto $LIBS"
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11045 /* Override any gcc2 internal prototype to avoid an error. */
11046 /* We use char because int might match the return type of a gcc2
11047 builtin and then its argument prototype would still apply. */
11048 char SSLeay_add_ssl_algorithms();
11051 SSLeay_add_ssl_algorithms()
11054 if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11056 eval "ac_cv_lib_$ac_lib_var=yes"
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11061 eval "ac_cv_lib_$ac_lib_var=no"
11064 LIBS="$ac_save_LIBS"
11067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11072 echo "$ac_t""no" 1>&6
11077 if test $have_ssleay = no ; then
11078 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11079 echo "configure:11080: checking for SSL_library_init in -lssl" >&5
11080 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11081 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11082 echo $ac_n "(cached) $ac_c" 1>&6
11084 ac_save_LIBS="$LIBS"
11085 LIBS="-lssl -lcrypto $LIBS"
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 /* Override any gcc2 internal prototype to avoid an error. */
11090 /* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11092 char SSL_library_init();
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11100 eval "ac_cv_lib_$ac_lib_var=yes"
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11105 eval "ac_cv_lib_$ac_lib_var=no"
11108 LIBS="$ac_save_LIBS"
11111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11112 echo "$ac_t""yes" 1>&6
11116 echo "$ac_t""no" 1>&6
11122 if test $have_ssleay = no ; then
11123 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11124 echo "configure:11125: checking for ssl3_accept in -lssl" >&5
11125 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11126 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11129 ac_save_LIBS="$LIBS"
11130 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11131 cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char ssl3_accept();
11143 if { (eval echo configure:11144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11145 eval "ac_cv_lib_$ac_lib_var=yes"
11147 echo "configure: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11150 eval "ac_cv_lib_$ac_lib_var=no"
11153 LIBS="$ac_save_LIBS"
11156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11157 echo "$ac_t""yes" 1>&6
11161 echo "$ac_t""no" 1>&6
11167 if test $have_ssleay = yes ; then
11171 cat >> confdefs.h <<\EOF
11172 #define HAVE_SSLEAY 1
11176 if test $need_rsaref = yes; then
11177 cat >> confdefs.h <<\EOF
11178 #define HAVE_RSAREF 1
11182 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11184 TLS_LIBS="-lssl -lcrypto"
11190 echo "configure: warning: TLS data protection not supported!" 1>&2
11193 if test $ol_link_tls = yes ; then
11194 cat >> confdefs.h <<\EOF
11199 elif test $ol_with_tls = auto ; then
11200 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11201 echo "configure: warning: TLS data protection not supported!" 1>&2
11203 elif test $ol_with_tls != no ; then
11204 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11207 if test $ol_enable_lmpasswd != no; then
11208 if test $ol_link_tls != yes ; then
11209 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11212 cat >> confdefs.h <<\EOF
11213 #define SLAPD_LMHASH 1
11220 gethostbyname_r gethostbyaddr_r \
11223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11224 echo "configure:11225: checking for $ac_func" >&5
11225 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func(); below. */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error. */
11235 /* We use char because int might match the return type of a gcc2
11236 builtin and then its argument prototype would still apply. */
11242 /* The GNU C library defines this for functions which it implements
11243 to always fail with ENOSYS. Some functions are actually named
11244 something starting with __ and the normal name is an alias. */
11245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11253 if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11255 eval "ac_cv_func_$ac_func=yes"
11257 echo "configure: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11260 eval "ac_cv_func_$ac_func=no"
11265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11266 echo "$ac_t""yes" 1>&6
11267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11268 cat >> confdefs.h <<EOF
11269 #define $ac_tr_func 1
11273 echo "$ac_t""no" 1>&6
11278 if test "$ac_cv_func_ctime_r" = no ; then
11279 ol_cv_func_ctime_r_nargs=0
11281 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11282 echo "configure:11283: checking number of arguments of ctime_r" >&5
11283 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11284 echo $ac_n "(cached) $ac_c" 1>&6
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11291 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11294 if { (eval echo configure:11295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11296 ol_cv_func_ctime_r_nargs3=yes
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11301 ol_cv_func_ctime_r_nargs3=no
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11310 time_t ti; char *buffer; ctime_r(&ti,buffer);
11313 if { (eval echo configure:11314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11315 ol_cv_func_ctime_r_nargs2=yes
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11320 ol_cv_func_ctime_r_nargs2=no
11324 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11325 $ol_cv_func_ctime_r_nargs2 = no ; then
11327 ol_cv_func_ctime_r_nargs=3
11329 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11330 $ol_cv_func_ctime_r_nargs2 = yes ; then
11332 ol_cv_func_ctime_r_nargs=2
11335 ol_cv_func_ctime_r_nargs=0
11340 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11342 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11343 cat >> confdefs.h <<EOF
11344 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11351 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11352 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11353 echo "configure:11354: checking number of arguments of gethostbyname_r" >&5
11354 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11355 echo $ac_n "(cached) $ac_c" 1>&6
11357 cat > conftest.$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 #include <sys/types.h>
11361 #include <sys/socket.h>
11362 #include <netinet/in.h>
11364 #define BUFSIZE (sizeof(struct hostent)+10)
11366 struct hostent hent; char buffer[BUFSIZE];
11367 int bufsize=BUFSIZE;int h_errno;
11368 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11369 buffer, bufsize, &h_errno);
11372 if { (eval echo configure:11373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11374 ol_cv_func_gethostbyname_r_nargs5=yes
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11379 ol_cv_func_gethostbyname_r_nargs5=no
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11386 #include <sys/types.h>
11387 #include <sys/socket.h>
11388 #include <netinet/in.h>
11390 #define BUFSIZE (sizeof(struct hostent)+10)
11392 struct hostent hent;struct hostent *rhent;
11393 char buffer[BUFSIZE];
11394 int bufsize=BUFSIZE;int h_errno;
11395 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11399 if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11401 ol_cv_func_gethostbyname_r_nargs6=yes
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11406 ol_cv_func_gethostbyname_r_nargs6=no
11410 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11411 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11413 ol_cv_func_gethostbyname_r_nargs=5
11415 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11416 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11418 ol_cv_func_gethostbyname_r_nargs=6
11421 ol_cv_func_gethostbyname_r_nargs=0
11426 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11427 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11428 cat >> confdefs.h <<EOF
11429 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11435 ol_cv_func_gethostbyname_r_nargs=0
11438 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11439 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11440 echo "configure:11441: checking number of arguments of gethostbyaddr_r" >&5
11441 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11444 cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 #include <sys/types.h>
11448 #include <sys/socket.h>
11449 #include <netinet/in.h>
11451 #define BUFSIZE (sizeof(struct hostent)+10)
11453 struct hostent hent; char buffer[BUFSIZE];
11454 struct in_addr add;
11455 size_t alen=sizeof(struct in_addr);
11456 int bufsize=BUFSIZE;int h_errno;
11457 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11458 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11461 if { (eval echo configure:11462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11463 ol_cv_func_gethostbyaddr_r_nargs7=yes
11465 echo "configure: failed program was:" >&5
11466 cat conftest.$ac_ext >&5
11468 ol_cv_func_gethostbyaddr_r_nargs7=no
11472 cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure"
11474 #include "confdefs.h"
11475 #include <sys/types.h>
11476 #include <sys/socket.h>
11477 #include <netinet/in.h>
11479 #define BUFSIZE (sizeof(struct hostent)+10)
11481 struct hostent hent;
11482 struct hostent *rhent; char buffer[BUFSIZE];
11483 struct in_addr add;
11484 size_t alen=sizeof(struct in_addr);
11485 int bufsize=BUFSIZE;int h_errno;
11486 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11487 alen, AF_INET, &hent, buffer, bufsize,
11491 if { (eval echo configure:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11493 ol_cv_func_gethostbyaddr_r_nargs8=yes
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11498 ol_cv_func_gethostbyaddr_r_nargs8=no
11502 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11503 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11505 ol_cv_func_gethostbyaddr_r_nargs=7
11507 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11508 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11510 ol_cv_func_gethostbyaddr_r_nargs=8
11513 ol_cv_func_gethostbyaddr_r_nargs=0
11518 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11519 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11520 cat >> confdefs.h <<EOF
11521 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11527 ol_cv_func_gethostbyaddr_r_nargs=0
11530 if test "$ac_cv_func_ctime_r" = yes \
11531 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11532 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11533 -a "$ac_cv_func_gethostbyname_r" = yes \
11534 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11535 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11536 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11537 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11538 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11541 cat >> confdefs.h <<\EOF
11542 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11549 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11550 -o $ol_with_threads = nt ; then
11553 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11554 echo "configure:11555: checking for _beginthread" >&5
11555 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11556 echo $ac_n "(cached) $ac_c" 1>&6
11558 cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11561 /* System header to define __stub macros and hopefully few prototypes,
11562 which can conflict with char _beginthread(); below. */
11563 #include <assert.h>
11564 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11567 char _beginthread();
11572 /* The GNU C library defines this for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11583 if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11585 eval "ac_cv_func__beginthread=yes"
11587 echo "configure: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11590 eval "ac_cv_func__beginthread=no"
11595 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11596 echo "$ac_t""yes" 1>&6
11599 echo "$ac_t""no" 1>&6
11603 if test $ac_cv_func__beginthread = yes ; then
11604 cat >> confdefs.h <<\EOF
11605 #define HAVE_NT_THREADS 1
11608 ol_cv_nt_threads=yes
11612 if test "$ol_cv_nt_threads" = yes ; then
11614 ol_with_threads=found
11615 ol_with_yielding_select=yes
11617 cat >> confdefs.h <<\EOF
11618 #define HAVE_NT_SERVICE_MANAGER 1
11621 cat >> confdefs.h <<\EOF
11622 #define HAVE_NT_EVENT_LOG 1
11627 if test $ol_with_threads = nt ; then
11628 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11632 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11633 -o $ol_with_threads = posix ; then
11635 for ac_hdr in pthread.h
11637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11639 echo "configure:11640: checking for $ac_hdr" >&5
11640 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11641 echo $ac_n "(cached) $ac_c" 1>&6
11643 cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11649 { (eval echo configure:11650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11651 if test -z "$ac_err"; then
11653 eval "ac_cv_header_$ac_safe=yes"
11656 echo "configure: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11659 eval "ac_cv_header_$ac_safe=no"
11663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11664 echo "$ac_t""yes" 1>&6
11665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11666 cat >> confdefs.h <<EOF
11667 #define $ac_tr_hdr 1
11671 echo "$ac_t""no" 1>&6
11676 if test $ac_cv_header_pthread_h = yes ; then
11677 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11678 echo "configure:11679: checking POSIX thread version" >&5
11679 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11680 echo $ac_n "(cached) $ac_c" 1>&6
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11687 # include <pthread.h>
11688 /* this check could be improved */
11689 # ifdef PTHREAD_ONCE_INIT
11690 pthread_version_final;
11694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11695 egrep "pthread_version_final" >/dev/null 2>&1; then
11697 ol_pthread_final=yes
11700 ol_pthread_final=no
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11709 # include <pthread.h>
11710 /* this check could be improved */
11711 # ifdef pthread_once_init
11712 pthread_version_draft4;
11716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11717 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11719 ol_pthread_draft4=yes
11722 ol_pthread_draft4=no
11727 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11728 ol_cv_pthread_version=final
11729 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11730 ol_cv_pthread_version=draft4
11732 ol_cv_pthread_version=unknown
11737 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11740 if test $ol_cv_pthread_version = final ; then
11741 cat >> confdefs.h <<\EOF
11742 #define HAVE_PTHREADS_FINAL 1
11745 elif test $ol_cv_pthread_version = draft4 ; then
11746 cat >> confdefs.h <<\EOF
11747 #define HAVE_PTHREADS_D4 1
11751 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11754 # consider threads found
11755 ol_with_threads=found
11758 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11759 echo "configure:11760: checking for LinuxThreads pthread.h" >&5
11760 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11761 echo $ac_n "(cached) $ac_c" 1>&6
11763 cat > conftest.$ac_ext <<EOF
11764 #line 11765 "configure"
11765 #include "confdefs.h"
11766 #include <pthread.h>
11768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11769 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11771 ol_cv_header_linux_threads=yes
11774 ol_cv_header_linux_threads=no
11781 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11782 if test $ol_cv_header_linux_threads = yes; then
11783 cat >> confdefs.h <<\EOF
11784 #define HAVE_LINUX_THREADS 1
11790 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11791 echo "configure:11792: checking for GNU Pth pthread.h" >&5
11792 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 #include <pthread.h>
11799 #ifdef _POSIX_THREAD_IS_GNU_PTH
11804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11805 egrep "__gnu_pth__" >/dev/null 2>&1; then
11807 ol_cv_header_gnu_pth_pthread_h=yes
11810 ol_cv_header_gnu_pth_pthread_h=no
11817 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11820 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11821 for ac_hdr in sched.h
11823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11825 echo "configure:11826: checking for $ac_hdr" >&5
11826 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11835 { (eval echo configure:11836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11837 if test -z "$ac_err"; then
11839 eval "ac_cv_header_$ac_safe=yes"
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11845 eval "ac_cv_header_$ac_safe=no"
11849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11850 echo "$ac_t""yes" 1>&6
11851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11852 cat >> confdefs.h <<EOF
11853 #define $ac_tr_hdr 1
11857 echo "$ac_t""no" 1>&6
11864 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11865 echo "configure:11866: checking for pthread_create in default libraries" >&5
11866 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11870 if test "$cross_compiling" = yes; then
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11874 /* pthread test headers */
11875 #include <pthread.h>
11877 #define NULL (void*)0
11880 static void *task(p)
11883 return (void *) (p == NULL);
11888 /* pthread test function */
11893 #ifdef HAVE_PTHREADS_FINAL
11894 /* Final pthreads */
11895 pthread_attr_t attr;
11897 status = pthread_attr_init(&attr);
11898 if( status ) return status;
11900 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11902 #if defined( PTHREAD_CREATE_JOINABLE )
11903 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11905 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11908 #ifdef PTHREAD_CREATE_DETACHED
11910 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11913 if( status ) return status;
11916 status = pthread_create( &t, &attr, task, NULL );
11917 if( status ) return status;
11919 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11921 /* give thread a chance to complete */
11922 /* it should remain joinable and hence detachable */
11925 status = pthread_detach( t );
11926 if( status ) return status;
11931 /* Draft 4 pthreads */
11932 status = pthread_create( &t, pthread_attr_default, task, NULL );
11933 if( status ) return status;
11936 /* give thread a chance to complete */
11937 /* it should remain joinable and hence detachable */
11940 status = pthread_detach( &t );
11941 if( status ) return status;
11945 #ifdef HAVE_LINUX_THREADS
11946 pthread_kill_other_threads_np();
11953 if { (eval echo configure:11954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11955 ol_cv_pthread_create=yes
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11960 ol_cv_pthread_create=no
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 /* pthread test headers */
11968 #include <pthread.h>
11970 #define NULL (void*)0
11973 static void *task(p)
11976 return (void *) (p == NULL);
11980 int main(argc, argv)
11985 /* pthread test function */
11990 #ifdef HAVE_PTHREADS_FINAL
11991 /* Final pthreads */
11992 pthread_attr_t attr;
11994 status = pthread_attr_init(&attr);
11995 if( status ) return status;
11997 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11999 #if defined( PTHREAD_CREATE_JOINABLE )
12000 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12002 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12005 #ifdef PTHREAD_CREATE_DETACHED
12007 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12010 if( status ) return status;
12013 status = pthread_create( &t, &attr, task, NULL );
12014 if( status ) return status;
12016 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12018 /* give thread a chance to complete */
12019 /* it should remain joinable and hence detachable */
12022 status = pthread_detach( t );
12023 if( status ) return status;
12028 /* Draft 4 pthreads */
12029 status = pthread_create( &t, pthread_attr_default, task, NULL );
12030 if( status ) return status;
12033 /* give thread a chance to complete */
12034 /* it should remain joinable and hence detachable */
12037 status = pthread_detach( &t );
12038 if( status ) return status;
12042 #ifdef HAVE_LINUX_THREADS
12043 pthread_kill_other_threads_np();
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12053 ol_cv_pthread_create=yes
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12058 ol_cv_pthread_create=no
12065 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12067 if test $ol_cv_pthread_create != no ; then
12068 ol_link_threads=posix
12069 ol_link_pthreads=""
12072 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12073 if test "$ol_link_threads" = no ; then
12075 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12076 echo "configure:12077: checking for pthread link with -kthread" >&5
12077 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
12083 LIBS="-kthread $LIBS"
12085 if test "$cross_compiling" = yes; then
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12089 /* pthread test headers */
12090 #include <pthread.h>
12092 #define NULL (void*)0
12095 static void *task(p)
12098 return (void *) (p == NULL);
12103 /* pthread test function */
12108 #ifdef HAVE_PTHREADS_FINAL
12109 /* Final pthreads */
12110 pthread_attr_t attr;
12112 status = pthread_attr_init(&attr);
12113 if( status ) return status;
12115 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12117 #if defined( PTHREAD_CREATE_JOINABLE )
12118 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12120 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12123 #ifdef PTHREAD_CREATE_DETACHED
12125 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12128 if( status ) return status;
12131 status = pthread_create( &t, &attr, task, NULL );
12132 if( status ) return status;
12134 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12136 /* give thread a chance to complete */
12137 /* it should remain joinable and hence detachable */
12140 status = pthread_detach( t );
12141 if( status ) return status;
12146 /* Draft 4 pthreads */
12147 status = pthread_create( &t, pthread_attr_default, task, NULL );
12148 if( status ) return status;
12151 /* give thread a chance to complete */
12152 /* it should remain joinable and hence detachable */
12155 status = pthread_detach( &t );
12156 if( status ) return status;
12160 #ifdef HAVE_LINUX_THREADS
12161 pthread_kill_other_threads_np();
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 ol_cv_pthread_kthread=yes
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 ol_cv_pthread_kthread=no
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* pthread test headers */
12183 #include <pthread.h>
12185 #define NULL (void*)0
12188 static void *task(p)
12191 return (void *) (p == NULL);
12195 int main(argc, argv)
12200 /* pthread test function */
12205 #ifdef HAVE_PTHREADS_FINAL
12206 /* Final pthreads */
12207 pthread_attr_t attr;
12209 status = pthread_attr_init(&attr);
12210 if( status ) return status;
12212 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12214 #if defined( PTHREAD_CREATE_JOINABLE )
12215 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12217 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12220 #ifdef PTHREAD_CREATE_DETACHED
12222 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12225 if( status ) return status;
12228 status = pthread_create( &t, &attr, task, NULL );
12229 if( status ) return status;
12231 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12233 /* give thread a chance to complete */
12234 /* it should remain joinable and hence detachable */
12237 status = pthread_detach( t );
12238 if( status ) return status;
12243 /* Draft 4 pthreads */
12244 status = pthread_create( &t, pthread_attr_default, task, NULL );
12245 if( status ) return status;
12248 /* give thread a chance to complete */
12249 /* it should remain joinable and hence detachable */
12252 status = pthread_detach( &t );
12253 if( status ) return status;
12257 #ifdef HAVE_LINUX_THREADS
12258 pthread_kill_other_threads_np();
12266 if { (eval echo configure:12267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12268 ol_cv_pthread_kthread=yes
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12273 ol_cv_pthread_kthread=no
12284 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12286 if test $ol_cv_pthread_kthread = yes ; then
12287 ol_link_pthreads="-kthread"
12288 ol_link_threads=posix
12292 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12293 if test "$ol_link_threads" = no ; then
12295 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12296 echo "configure:12297: checking for pthread link with -pthread" >&5
12297 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12298 echo $ac_n "(cached) $ac_c" 1>&6
12303 LIBS="-pthread $LIBS"
12305 if test "$cross_compiling" = yes; then
12306 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309 /* pthread test headers */
12310 #include <pthread.h>
12312 #define NULL (void*)0
12315 static void *task(p)
12318 return (void *) (p == NULL);
12323 /* pthread test function */
12328 #ifdef HAVE_PTHREADS_FINAL
12329 /* Final pthreads */
12330 pthread_attr_t attr;
12332 status = pthread_attr_init(&attr);
12333 if( status ) return status;
12335 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12337 #if defined( PTHREAD_CREATE_JOINABLE )
12338 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12340 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12343 #ifdef PTHREAD_CREATE_DETACHED
12345 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12348 if( status ) return status;
12351 status = pthread_create( &t, &attr, task, NULL );
12352 if( status ) return status;
12354 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12356 /* give thread a chance to complete */
12357 /* it should remain joinable and hence detachable */
12360 status = pthread_detach( t );
12361 if( status ) return status;
12366 /* Draft 4 pthreads */
12367 status = pthread_create( &t, pthread_attr_default, task, NULL );
12368 if( status ) return status;
12371 /* give thread a chance to complete */
12372 /* it should remain joinable and hence detachable */
12375 status = pthread_detach( &t );
12376 if( status ) return status;
12380 #ifdef HAVE_LINUX_THREADS
12381 pthread_kill_other_threads_np();
12388 if { (eval echo configure:12389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12390 ol_cv_pthread_pthread=yes
12392 echo "configure: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12395 ol_cv_pthread_pthread=no
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* pthread test headers */
12403 #include <pthread.h>
12405 #define NULL (void*)0
12408 static void *task(p)
12411 return (void *) (p == NULL);
12415 int main(argc, argv)
12420 /* pthread test function */
12425 #ifdef HAVE_PTHREADS_FINAL
12426 /* Final pthreads */
12427 pthread_attr_t attr;
12429 status = pthread_attr_init(&attr);
12430 if( status ) return status;
12432 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12434 #if defined( PTHREAD_CREATE_JOINABLE )
12435 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12440 #ifdef PTHREAD_CREATE_DETACHED
12442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12445 if( status ) return status;
12448 status = pthread_create( &t, &attr, task, NULL );
12449 if( status ) return status;
12451 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12453 /* give thread a chance to complete */
12454 /* it should remain joinable and hence detachable */
12457 status = pthread_detach( t );
12458 if( status ) return status;
12463 /* Draft 4 pthreads */
12464 status = pthread_create( &t, pthread_attr_default, task, NULL );
12465 if( status ) return status;
12468 /* give thread a chance to complete */
12469 /* it should remain joinable and hence detachable */
12472 status = pthread_detach( &t );
12473 if( status ) return status;
12477 #ifdef HAVE_LINUX_THREADS
12478 pthread_kill_other_threads_np();
12486 if { (eval echo configure:12487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12488 ol_cv_pthread_pthread=yes
12490 echo "configure: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12493 ol_cv_pthread_pthread=no
12504 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12506 if test $ol_cv_pthread_pthread = yes ; then
12507 ol_link_pthreads="-pthread"
12508 ol_link_threads=posix
12512 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12513 if test "$ol_link_threads" = no ; then
12515 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12516 echo "configure:12517: checking for pthread link with -pthreads" >&5
12517 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12518 echo $ac_n "(cached) $ac_c" 1>&6
12523 LIBS="-pthreads $LIBS"
12525 if test "$cross_compiling" = yes; then
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 /* pthread test headers */
12530 #include <pthread.h>
12532 #define NULL (void*)0
12535 static void *task(p)
12538 return (void *) (p == NULL);
12543 /* pthread test function */
12548 #ifdef HAVE_PTHREADS_FINAL
12549 /* Final pthreads */
12550 pthread_attr_t attr;
12552 status = pthread_attr_init(&attr);
12553 if( status ) return status;
12555 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12557 #if defined( PTHREAD_CREATE_JOINABLE )
12558 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12560 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12563 #ifdef PTHREAD_CREATE_DETACHED
12565 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12568 if( status ) return status;
12571 status = pthread_create( &t, &attr, task, NULL );
12572 if( status ) return status;
12574 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12576 /* give thread a chance to complete */
12577 /* it should remain joinable and hence detachable */
12580 status = pthread_detach( t );
12581 if( status ) return status;
12586 /* Draft 4 pthreads */
12587 status = pthread_create( &t, pthread_attr_default, task, NULL );
12588 if( status ) return status;
12591 /* give thread a chance to complete */
12592 /* it should remain joinable and hence detachable */
12595 status = pthread_detach( &t );
12596 if( status ) return status;
12600 #ifdef HAVE_LINUX_THREADS
12601 pthread_kill_other_threads_np();
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610 ol_cv_pthread_pthreads=yes
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 ol_cv_pthread_pthreads=no
12619 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure"
12621 #include "confdefs.h"
12622 /* pthread test headers */
12623 #include <pthread.h>
12625 #define NULL (void*)0
12628 static void *task(p)
12631 return (void *) (p == NULL);
12635 int main(argc, argv)
12640 /* pthread test function */
12645 #ifdef HAVE_PTHREADS_FINAL
12646 /* Final pthreads */
12647 pthread_attr_t attr;
12649 status = pthread_attr_init(&attr);
12650 if( status ) return status;
12652 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12654 #if defined( PTHREAD_CREATE_JOINABLE )
12655 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12657 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12660 #ifdef PTHREAD_CREATE_DETACHED
12662 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12665 if( status ) return status;
12668 status = pthread_create( &t, &attr, task, NULL );
12669 if( status ) return status;
12671 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12673 /* give thread a chance to complete */
12674 /* it should remain joinable and hence detachable */
12677 status = pthread_detach( t );
12678 if( status ) return status;
12683 /* Draft 4 pthreads */
12684 status = pthread_create( &t, pthread_attr_default, task, NULL );
12685 if( status ) return status;
12688 /* give thread a chance to complete */
12689 /* it should remain joinable and hence detachable */
12692 status = pthread_detach( &t );
12693 if( status ) return status;
12697 #ifdef HAVE_LINUX_THREADS
12698 pthread_kill_other_threads_np();
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12708 ol_cv_pthread_pthreads=yes
12710 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12713 ol_cv_pthread_pthreads=no
12724 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12726 if test $ol_cv_pthread_pthreads = yes ; then
12727 ol_link_pthreads="-pthreads"
12728 ol_link_threads=posix
12732 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12733 if test "$ol_link_threads" = no ; then
12735 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12736 echo "configure:12737: checking for pthread link with -mthreads" >&5
12737 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12738 echo $ac_n "(cached) $ac_c" 1>&6
12743 LIBS="-mthreads $LIBS"
12745 if test "$cross_compiling" = yes; then
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12749 /* pthread test headers */
12750 #include <pthread.h>
12752 #define NULL (void*)0
12755 static void *task(p)
12758 return (void *) (p == NULL);
12763 /* pthread test function */
12768 #ifdef HAVE_PTHREADS_FINAL
12769 /* Final pthreads */
12770 pthread_attr_t attr;
12772 status = pthread_attr_init(&attr);
12773 if( status ) return status;
12775 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12777 #if defined( PTHREAD_CREATE_JOINABLE )
12778 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12780 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12783 #ifdef PTHREAD_CREATE_DETACHED
12785 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12788 if( status ) return status;
12791 status = pthread_create( &t, &attr, task, NULL );
12792 if( status ) return status;
12794 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12796 /* give thread a chance to complete */
12797 /* it should remain joinable and hence detachable */
12800 status = pthread_detach( t );
12801 if( status ) return status;
12806 /* Draft 4 pthreads */
12807 status = pthread_create( &t, pthread_attr_default, task, NULL );
12808 if( status ) return status;
12811 /* give thread a chance to complete */
12812 /* it should remain joinable and hence detachable */
12815 status = pthread_detach( &t );
12816 if( status ) return status;
12820 #ifdef HAVE_LINUX_THREADS
12821 pthread_kill_other_threads_np();
12828 if { (eval echo configure:12829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12830 ol_cv_pthread_mthreads=yes
12832 echo "configure: failed program was:" >&5
12833 cat conftest.$ac_ext >&5
12835 ol_cv_pthread_mthreads=no
12839 cat > conftest.$ac_ext <<EOF
12840 #line 12841 "configure"
12841 #include "confdefs.h"
12842 /* pthread test headers */
12843 #include <pthread.h>
12845 #define NULL (void*)0
12848 static void *task(p)
12851 return (void *) (p == NULL);
12855 int main(argc, argv)
12860 /* pthread test function */
12865 #ifdef HAVE_PTHREADS_FINAL
12866 /* Final pthreads */
12867 pthread_attr_t attr;
12869 status = pthread_attr_init(&attr);
12870 if( status ) return status;
12872 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12874 #if defined( PTHREAD_CREATE_JOINABLE )
12875 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12880 #ifdef PTHREAD_CREATE_DETACHED
12882 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12885 if( status ) return status;
12888 status = pthread_create( &t, &attr, task, NULL );
12889 if( status ) return status;
12891 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12893 /* give thread a chance to complete */
12894 /* it should remain joinable and hence detachable */
12897 status = pthread_detach( t );
12898 if( status ) return status;
12903 /* Draft 4 pthreads */
12904 status = pthread_create( &t, pthread_attr_default, task, NULL );
12905 if( status ) return status;
12908 /* give thread a chance to complete */
12909 /* it should remain joinable and hence detachable */
12912 status = pthread_detach( &t );
12913 if( status ) return status;
12917 #ifdef HAVE_LINUX_THREADS
12918 pthread_kill_other_threads_np();
12926 if { (eval echo configure:12927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12928 ol_cv_pthread_mthreads=yes
12930 echo "configure: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12933 ol_cv_pthread_mthreads=no
12944 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12946 if test $ol_cv_pthread_mthreads = yes ; then
12947 ol_link_pthreads="-mthreads"
12948 ol_link_threads=posix
12952 # Pthread try link: -thread (ol_cv_pthread_thread)
12953 if test "$ol_link_threads" = no ; then
12955 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12956 echo "configure:12957: checking for pthread link with -thread" >&5
12957 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12958 echo $ac_n "(cached) $ac_c" 1>&6
12963 LIBS="-thread $LIBS"
12965 if test "$cross_compiling" = yes; then
12966 cat > conftest.$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12969 /* pthread test headers */
12970 #include <pthread.h>
12972 #define NULL (void*)0
12975 static void *task(p)
12978 return (void *) (p == NULL);
12983 /* pthread test function */
12988 #ifdef HAVE_PTHREADS_FINAL
12989 /* Final pthreads */
12990 pthread_attr_t attr;
12992 status = pthread_attr_init(&attr);
12993 if( status ) return status;
12995 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12997 #if defined( PTHREAD_CREATE_JOINABLE )
12998 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13000 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13003 #ifdef PTHREAD_CREATE_DETACHED
13005 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13008 if( status ) return status;
13011 status = pthread_create( &t, &attr, task, NULL );
13012 if( status ) return status;
13014 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13016 /* give thread a chance to complete */
13017 /* it should remain joinable and hence detachable */
13020 status = pthread_detach( t );
13021 if( status ) return status;
13026 /* Draft 4 pthreads */
13027 status = pthread_create( &t, pthread_attr_default, task, NULL );
13028 if( status ) return status;
13031 /* give thread a chance to complete */
13032 /* it should remain joinable and hence detachable */
13035 status = pthread_detach( &t );
13036 if( status ) return status;
13040 #ifdef HAVE_LINUX_THREADS
13041 pthread_kill_other_threads_np();
13048 if { (eval echo configure:13049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13050 ol_cv_pthread_thread=yes
13052 echo "configure: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13055 ol_cv_pthread_thread=no
13059 cat > conftest.$ac_ext <<EOF
13060 #line 13061 "configure"
13061 #include "confdefs.h"
13062 /* pthread test headers */
13063 #include <pthread.h>
13065 #define NULL (void*)0
13068 static void *task(p)
13071 return (void *) (p == NULL);
13075 int main(argc, argv)
13080 /* pthread test function */
13085 #ifdef HAVE_PTHREADS_FINAL
13086 /* Final pthreads */
13087 pthread_attr_t attr;
13089 status = pthread_attr_init(&attr);
13090 if( status ) return status;
13092 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13094 #if defined( PTHREAD_CREATE_JOINABLE )
13095 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13097 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13100 #ifdef PTHREAD_CREATE_DETACHED
13102 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13105 if( status ) return status;
13108 status = pthread_create( &t, &attr, task, NULL );
13109 if( status ) return status;
13111 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13113 /* give thread a chance to complete */
13114 /* it should remain joinable and hence detachable */
13117 status = pthread_detach( t );
13118 if( status ) return status;
13123 /* Draft 4 pthreads */
13124 status = pthread_create( &t, pthread_attr_default, task, NULL );
13125 if( status ) return status;
13128 /* give thread a chance to complete */
13129 /* it should remain joinable and hence detachable */
13132 status = pthread_detach( &t );
13133 if( status ) return status;
13137 #ifdef HAVE_LINUX_THREADS
13138 pthread_kill_other_threads_np();
13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13148 ol_cv_pthread_thread=yes
13150 echo "configure: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13153 ol_cv_pthread_thread=no
13164 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13166 if test $ol_cv_pthread_thread = yes ; then
13167 ol_link_pthreads="-thread"
13168 ol_link_threads=posix
13173 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13174 if test "$ol_link_threads" = no ; then
13175 # try -lpthread -lmach -lexc -lc_r
13176 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13177 echo "configure:13178: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13178 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13179 echo $ac_n "(cached) $ac_c" 1>&6
13184 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13186 if test "$cross_compiling" = yes; then
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 /* pthread test headers */
13191 #include <pthread.h>
13193 #define NULL (void*)0
13196 static void *task(p)
13199 return (void *) (p == NULL);
13204 /* pthread test function */
13209 #ifdef HAVE_PTHREADS_FINAL
13210 /* Final pthreads */
13211 pthread_attr_t attr;
13213 status = pthread_attr_init(&attr);
13214 if( status ) return status;
13216 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13218 #if defined( PTHREAD_CREATE_JOINABLE )
13219 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13221 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13224 #ifdef PTHREAD_CREATE_DETACHED
13226 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13229 if( status ) return status;
13232 status = pthread_create( &t, &attr, task, NULL );
13233 if( status ) return status;
13235 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13237 /* give thread a chance to complete */
13238 /* it should remain joinable and hence detachable */
13241 status = pthread_detach( t );
13242 if( status ) return status;
13247 /* Draft 4 pthreads */
13248 status = pthread_create( &t, pthread_attr_default, task, NULL );
13249 if( status ) return status;
13252 /* give thread a chance to complete */
13253 /* it should remain joinable and hence detachable */
13256 status = pthread_detach( &t );
13257 if( status ) return status;
13261 #ifdef HAVE_LINUX_THREADS
13262 pthread_kill_other_threads_np();
13269 if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13271 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13273 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13276 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13280 cat > conftest.$ac_ext <<EOF
13281 #line 13282 "configure"
13282 #include "confdefs.h"
13283 /* pthread test headers */
13284 #include <pthread.h>
13286 #define NULL (void*)0
13289 static void *task(p)
13292 return (void *) (p == NULL);
13296 int main(argc, argv)
13301 /* pthread test function */
13306 #ifdef HAVE_PTHREADS_FINAL
13307 /* Final pthreads */
13308 pthread_attr_t attr;
13310 status = pthread_attr_init(&attr);
13311 if( status ) return status;
13313 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13315 #if defined( PTHREAD_CREATE_JOINABLE )
13316 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13318 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13321 #ifdef PTHREAD_CREATE_DETACHED
13323 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13326 if( status ) return status;
13329 status = pthread_create( &t, &attr, task, NULL );
13330 if( status ) return status;
13332 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13334 /* give thread a chance to complete */
13335 /* it should remain joinable and hence detachable */
13338 status = pthread_detach( t );
13339 if( status ) return status;
13344 /* Draft 4 pthreads */
13345 status = pthread_create( &t, pthread_attr_default, task, NULL );
13346 if( status ) return status;
13349 /* give thread a chance to complete */
13350 /* it should remain joinable and hence detachable */
13353 status = pthread_detach( &t );
13354 if( status ) return status;
13358 #ifdef HAVE_LINUX_THREADS
13359 pthread_kill_other_threads_np();
13367 if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13369 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13371 echo "configure: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13374 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13385 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13387 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13388 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13389 ol_link_threads=posix
13393 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13394 if test "$ol_link_threads" = no ; then
13395 # try -lpthread -lmach -lexc
13396 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13397 echo "configure:13398: checking for pthread link with -lpthread -lmach -lexc" >&5
13398 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13399 echo $ac_n "(cached) $ac_c" 1>&6
13404 LIBS="-lpthread -lmach -lexc $LIBS"
13406 if test "$cross_compiling" = yes; then
13407 cat > conftest.$ac_ext <<EOF
13408 #line 13409 "configure"
13409 #include "confdefs.h"
13410 /* pthread test headers */
13411 #include <pthread.h>
13413 #define NULL (void*)0
13416 static void *task(p)
13419 return (void *) (p == NULL);
13424 /* pthread test function */
13429 #ifdef HAVE_PTHREADS_FINAL
13430 /* Final pthreads */
13431 pthread_attr_t attr;
13433 status = pthread_attr_init(&attr);
13434 if( status ) return status;
13436 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13438 #if defined( PTHREAD_CREATE_JOINABLE )
13439 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13441 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13444 #ifdef PTHREAD_CREATE_DETACHED
13446 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13449 if( status ) return status;
13452 status = pthread_create( &t, &attr, task, NULL );
13453 if( status ) return status;
13455 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13457 /* give thread a chance to complete */
13458 /* it should remain joinable and hence detachable */
13461 status = pthread_detach( t );
13462 if( status ) return status;
13467 /* Draft 4 pthreads */
13468 status = pthread_create( &t, pthread_attr_default, task, NULL );
13469 if( status ) return status;
13472 /* give thread a chance to complete */
13473 /* it should remain joinable and hence detachable */
13476 status = pthread_detach( &t );
13477 if( status ) return status;
13481 #ifdef HAVE_LINUX_THREADS
13482 pthread_kill_other_threads_np();
13489 if { (eval echo configure:13490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13491 ol_cv_pthread_lpthread_lmach_lexc=yes
13493 echo "configure: failed program was:" >&5
13494 cat conftest.$ac_ext >&5
13496 ol_cv_pthread_lpthread_lmach_lexc=no
13500 cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 /* pthread test headers */
13504 #include <pthread.h>
13506 #define NULL (void*)0
13509 static void *task(p)
13512 return (void *) (p == NULL);
13516 int main(argc, argv)
13521 /* pthread test function */
13526 #ifdef HAVE_PTHREADS_FINAL
13527 /* Final pthreads */
13528 pthread_attr_t attr;
13530 status = pthread_attr_init(&attr);
13531 if( status ) return status;
13533 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13535 #if defined( PTHREAD_CREATE_JOINABLE )
13536 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13538 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13541 #ifdef PTHREAD_CREATE_DETACHED
13543 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13546 if( status ) return status;
13549 status = pthread_create( &t, &attr, task, NULL );
13550 if( status ) return status;
13552 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13554 /* give thread a chance to complete */
13555 /* it should remain joinable and hence detachable */
13558 status = pthread_detach( t );
13559 if( status ) return status;
13564 /* Draft 4 pthreads */
13565 status = pthread_create( &t, pthread_attr_default, task, NULL );
13566 if( status ) return status;
13569 /* give thread a chance to complete */
13570 /* it should remain joinable and hence detachable */
13573 status = pthread_detach( &t );
13574 if( status ) return status;
13578 #ifdef HAVE_LINUX_THREADS
13579 pthread_kill_other_threads_np();
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13589 ol_cv_pthread_lpthread_lmach_lexc=yes
13591 echo "configure: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13594 ol_cv_pthread_lpthread_lmach_lexc=no
13605 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13607 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13608 ol_link_pthreads="-lpthread -lmach -lexc"
13609 ol_link_threads=posix
13614 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13615 if test "$ol_link_threads" = no ; then
13616 # try -lpthread -Wl,-woff,85
13617 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13618 echo "configure:13619: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13619 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13620 echo $ac_n "(cached) $ac_c" 1>&6
13625 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13627 if test "$cross_compiling" = yes; then
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 /* pthread test headers */
13632 #include <pthread.h>
13634 #define NULL (void*)0
13637 static void *task(p)
13640 return (void *) (p == NULL);
13645 /* pthread test function */
13650 #ifdef HAVE_PTHREADS_FINAL
13651 /* Final pthreads */
13652 pthread_attr_t attr;
13654 status = pthread_attr_init(&attr);
13655 if( status ) return status;
13657 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13659 #if defined( PTHREAD_CREATE_JOINABLE )
13660 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13662 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13665 #ifdef PTHREAD_CREATE_DETACHED
13667 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13670 if( status ) return status;
13673 status = pthread_create( &t, &attr, task, NULL );
13674 if( status ) return status;
13676 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13678 /* give thread a chance to complete */
13679 /* it should remain joinable and hence detachable */
13682 status = pthread_detach( t );
13683 if( status ) return status;
13688 /* Draft 4 pthreads */
13689 status = pthread_create( &t, pthread_attr_default, task, NULL );
13690 if( status ) return status;
13693 /* give thread a chance to complete */
13694 /* it should remain joinable and hence detachable */
13697 status = pthread_detach( &t );
13698 if( status ) return status;
13702 #ifdef HAVE_LINUX_THREADS
13703 pthread_kill_other_threads_np();
13710 if { (eval echo configure:13711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13712 ol_cv_pthread_lib_lpthread_woff=yes
13714 echo "configure: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13717 ol_cv_pthread_lib_lpthread_woff=no
13721 cat > conftest.$ac_ext <<EOF
13722 #line 13723 "configure"
13723 #include "confdefs.h"
13724 /* pthread test headers */
13725 #include <pthread.h>
13727 #define NULL (void*)0
13730 static void *task(p)
13733 return (void *) (p == NULL);
13737 int main(argc, argv)
13742 /* pthread test function */
13747 #ifdef HAVE_PTHREADS_FINAL
13748 /* Final pthreads */
13749 pthread_attr_t attr;
13751 status = pthread_attr_init(&attr);
13752 if( status ) return status;
13754 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13756 #if defined( PTHREAD_CREATE_JOINABLE )
13757 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13759 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13762 #ifdef PTHREAD_CREATE_DETACHED
13764 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13767 if( status ) return status;
13770 status = pthread_create( &t, &attr, task, NULL );
13771 if( status ) return status;
13773 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13775 /* give thread a chance to complete */
13776 /* it should remain joinable and hence detachable */
13779 status = pthread_detach( t );
13780 if( status ) return status;
13785 /* Draft 4 pthreads */
13786 status = pthread_create( &t, pthread_attr_default, task, NULL );
13787 if( status ) return status;
13790 /* give thread a chance to complete */
13791 /* it should remain joinable and hence detachable */
13794 status = pthread_detach( &t );
13795 if( status ) return status;
13799 #ifdef HAVE_LINUX_THREADS
13800 pthread_kill_other_threads_np();
13808 if { (eval echo configure:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13810 ol_cv_pthread_lib_lpthread_woff=yes
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13815 ol_cv_pthread_lib_lpthread_woff=no
13826 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13828 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13829 ol_link_pthreads="-lpthread -Wl,-woff,85"
13830 ol_link_threads=posix
13835 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13836 if test "$ol_link_threads" = no ; then
13838 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13839 echo "configure:13840: checking for pthread link with -lpthread" >&5
13840 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13841 echo $ac_n "(cached) $ac_c" 1>&6
13846 LIBS="-lpthread $LIBS"
13848 if test "$cross_compiling" = yes; then
13849 cat > conftest.$ac_ext <<EOF
13850 #line 13851 "configure"
13851 #include "confdefs.h"
13852 /* pthread test headers */
13853 #include <pthread.h>
13855 #define NULL (void*)0
13858 static void *task(p)
13861 return (void *) (p == NULL);
13866 /* pthread test function */
13871 #ifdef HAVE_PTHREADS_FINAL
13872 /* Final pthreads */
13873 pthread_attr_t attr;
13875 status = pthread_attr_init(&attr);
13876 if( status ) return status;
13878 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13880 #if defined( PTHREAD_CREATE_JOINABLE )
13881 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13883 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13886 #ifdef PTHREAD_CREATE_DETACHED
13888 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13891 if( status ) return status;
13894 status = pthread_create( &t, &attr, task, NULL );
13895 if( status ) return status;
13897 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13899 /* give thread a chance to complete */
13900 /* it should remain joinable and hence detachable */
13903 status = pthread_detach( t );
13904 if( status ) return status;
13909 /* Draft 4 pthreads */
13910 status = pthread_create( &t, pthread_attr_default, task, NULL );
13911 if( status ) return status;
13914 /* give thread a chance to complete */
13915 /* it should remain joinable and hence detachable */
13918 status = pthread_detach( &t );
13919 if( status ) return status;
13923 #ifdef HAVE_LINUX_THREADS
13924 pthread_kill_other_threads_np();
13931 if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13933 ol_cv_pthread_lpthread=yes
13935 echo "configure: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13938 ol_cv_pthread_lpthread=no
13942 cat > conftest.$ac_ext <<EOF
13943 #line 13944 "configure"
13944 #include "confdefs.h"
13945 /* pthread test headers */
13946 #include <pthread.h>
13948 #define NULL (void*)0
13951 static void *task(p)
13954 return (void *) (p == NULL);
13958 int main(argc, argv)
13963 /* pthread test function */
13968 #ifdef HAVE_PTHREADS_FINAL
13969 /* Final pthreads */
13970 pthread_attr_t attr;
13972 status = pthread_attr_init(&attr);
13973 if( status ) return status;
13975 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13977 #if defined( PTHREAD_CREATE_JOINABLE )
13978 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13980 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13983 #ifdef PTHREAD_CREATE_DETACHED
13985 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13988 if( status ) return status;
13991 status = pthread_create( &t, &attr, task, NULL );
13992 if( status ) return status;
13994 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13996 /* give thread a chance to complete */
13997 /* it should remain joinable and hence detachable */
14000 status = pthread_detach( t );
14001 if( status ) return status;
14006 /* Draft 4 pthreads */
14007 status = pthread_create( &t, pthread_attr_default, task, NULL );
14008 if( status ) return status;
14011 /* give thread a chance to complete */
14012 /* it should remain joinable and hence detachable */
14015 status = pthread_detach( &t );
14016 if( status ) return status;
14020 #ifdef HAVE_LINUX_THREADS
14021 pthread_kill_other_threads_np();
14029 if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14031 ol_cv_pthread_lpthread=yes
14033 echo "configure: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14036 ol_cv_pthread_lpthread=no
14047 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
14049 if test $ol_cv_pthread_lpthread = yes ; then
14050 ol_link_pthreads="-lpthread"
14051 ol_link_threads=posix
14055 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
14056 if test "$ol_link_threads" = no ; then
14058 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
14059 echo "configure:14060: checking for pthread link with -lc_r" >&5
14060 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14068 if test "$cross_compiling" = yes; then
14069 cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 /* pthread test headers */
14073 #include <pthread.h>
14075 #define NULL (void*)0
14078 static void *task(p)
14081 return (void *) (p == NULL);
14086 /* pthread test function */
14091 #ifdef HAVE_PTHREADS_FINAL
14092 /* Final pthreads */
14093 pthread_attr_t attr;
14095 status = pthread_attr_init(&attr);
14096 if( status ) return status;
14098 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14100 #if defined( PTHREAD_CREATE_JOINABLE )
14101 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14103 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14106 #ifdef PTHREAD_CREATE_DETACHED
14108 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14111 if( status ) return status;
14114 status = pthread_create( &t, &attr, task, NULL );
14115 if( status ) return status;
14117 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14119 /* give thread a chance to complete */
14120 /* it should remain joinable and hence detachable */
14123 status = pthread_detach( t );
14124 if( status ) return status;
14129 /* Draft 4 pthreads */
14130 status = pthread_create( &t, pthread_attr_default, task, NULL );
14131 if( status ) return status;
14134 /* give thread a chance to complete */
14135 /* it should remain joinable and hence detachable */
14138 status = pthread_detach( &t );
14139 if( status ) return status;
14143 #ifdef HAVE_LINUX_THREADS
14144 pthread_kill_other_threads_np();
14151 if { (eval echo configure:14152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14153 ol_cv_pthread_lc_r=yes
14155 echo "configure: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14158 ol_cv_pthread_lc_r=no
14162 cat > conftest.$ac_ext <<EOF
14163 #line 14164 "configure"
14164 #include "confdefs.h"
14165 /* pthread test headers */
14166 #include <pthread.h>
14168 #define NULL (void*)0
14171 static void *task(p)
14174 return (void *) (p == NULL);
14178 int main(argc, argv)
14183 /* pthread test function */
14188 #ifdef HAVE_PTHREADS_FINAL
14189 /* Final pthreads */
14190 pthread_attr_t attr;
14192 status = pthread_attr_init(&attr);
14193 if( status ) return status;
14195 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14197 #if defined( PTHREAD_CREATE_JOINABLE )
14198 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14200 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14203 #ifdef PTHREAD_CREATE_DETACHED
14205 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14208 if( status ) return status;
14211 status = pthread_create( &t, &attr, task, NULL );
14212 if( status ) return status;
14214 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14216 /* give thread a chance to complete */
14217 /* it should remain joinable and hence detachable */
14220 status = pthread_detach( t );
14221 if( status ) return status;
14226 /* Draft 4 pthreads */
14227 status = pthread_create( &t, pthread_attr_default, task, NULL );
14228 if( status ) return status;
14231 /* give thread a chance to complete */
14232 /* it should remain joinable and hence detachable */
14235 status = pthread_detach( &t );
14236 if( status ) return status;
14240 #ifdef HAVE_LINUX_THREADS
14241 pthread_kill_other_threads_np();
14249 if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14251 ol_cv_pthread_lc_r=yes
14253 echo "configure: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14256 ol_cv_pthread_lc_r=no
14267 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14269 if test $ol_cv_pthread_lc_r = yes ; then
14270 ol_link_pthreads="-lc_r"
14271 ol_link_threads=posix
14276 # Pthread try link: -threads (ol_cv_pthread_threads)
14277 if test "$ol_link_threads" = no ; then
14279 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14280 echo "configure:14281: checking for pthread link with -threads" >&5
14281 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14282 echo $ac_n "(cached) $ac_c" 1>&6
14287 LIBS="-threads $LIBS"
14289 if test "$cross_compiling" = yes; then
14290 cat > conftest.$ac_ext <<EOF
14291 #line 14292 "configure"
14292 #include "confdefs.h"
14293 /* pthread test headers */
14294 #include <pthread.h>
14296 #define NULL (void*)0
14299 static void *task(p)
14302 return (void *) (p == NULL);
14307 /* pthread test function */
14312 #ifdef HAVE_PTHREADS_FINAL
14313 /* Final pthreads */
14314 pthread_attr_t attr;
14316 status = pthread_attr_init(&attr);
14317 if( status ) return status;
14319 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14321 #if defined( PTHREAD_CREATE_JOINABLE )
14322 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14324 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14327 #ifdef PTHREAD_CREATE_DETACHED
14329 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14332 if( status ) return status;
14335 status = pthread_create( &t, &attr, task, NULL );
14336 if( status ) return status;
14338 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14340 /* give thread a chance to complete */
14341 /* it should remain joinable and hence detachable */
14344 status = pthread_detach( t );
14345 if( status ) return status;
14350 /* Draft 4 pthreads */
14351 status = pthread_create( &t, pthread_attr_default, task, NULL );
14352 if( status ) return status;
14355 /* give thread a chance to complete */
14356 /* it should remain joinable and hence detachable */
14359 status = pthread_detach( &t );
14360 if( status ) return status;
14364 #ifdef HAVE_LINUX_THREADS
14365 pthread_kill_other_threads_np();
14372 if { (eval echo configure:14373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14374 ol_cv_pthread_threads=yes
14376 echo "configure: failed program was:" >&5
14377 cat conftest.$ac_ext >&5
14379 ol_cv_pthread_threads=no
14383 cat > conftest.$ac_ext <<EOF
14384 #line 14385 "configure"
14385 #include "confdefs.h"
14386 /* pthread test headers */
14387 #include <pthread.h>
14389 #define NULL (void*)0
14392 static void *task(p)
14395 return (void *) (p == NULL);
14399 int main(argc, argv)
14404 /* pthread test function */
14409 #ifdef HAVE_PTHREADS_FINAL
14410 /* Final pthreads */
14411 pthread_attr_t attr;
14413 status = pthread_attr_init(&attr);
14414 if( status ) return status;
14416 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14418 #if defined( PTHREAD_CREATE_JOINABLE )
14419 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14421 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14424 #ifdef PTHREAD_CREATE_DETACHED
14426 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14429 if( status ) return status;
14432 status = pthread_create( &t, &attr, task, NULL );
14433 if( status ) return status;
14435 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14437 /* give thread a chance to complete */
14438 /* it should remain joinable and hence detachable */
14441 status = pthread_detach( t );
14442 if( status ) return status;
14447 /* Draft 4 pthreads */
14448 status = pthread_create( &t, pthread_attr_default, task, NULL );
14449 if( status ) return status;
14452 /* give thread a chance to complete */
14453 /* it should remain joinable and hence detachable */
14456 status = pthread_detach( &t );
14457 if( status ) return status;
14461 #ifdef HAVE_LINUX_THREADS
14462 pthread_kill_other_threads_np();
14470 if { (eval echo configure:14471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14472 ol_cv_pthread_threads=yes
14474 echo "configure: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14477 ol_cv_pthread_threads=no
14488 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14490 if test $ol_cv_pthread_threads = yes ; then
14491 ol_link_pthreads="-threads"
14492 ol_link_threads=posix
14497 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14498 if test "$ol_link_threads" = no ; then
14499 # try -lpthreads -lmach -lexc -lc_r
14500 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14501 echo "configure:14502: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14502 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
14508 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14510 if test "$cross_compiling" = yes; then
14511 cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14514 /* pthread test headers */
14515 #include <pthread.h>
14517 #define NULL (void*)0
14520 static void *task(p)
14523 return (void *) (p == NULL);
14528 /* pthread test function */
14533 #ifdef HAVE_PTHREADS_FINAL
14534 /* Final pthreads */
14535 pthread_attr_t attr;
14537 status = pthread_attr_init(&attr);
14538 if( status ) return status;
14540 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14542 #if defined( PTHREAD_CREATE_JOINABLE )
14543 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14545 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14548 #ifdef PTHREAD_CREATE_DETACHED
14550 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14553 if( status ) return status;
14556 status = pthread_create( &t, &attr, task, NULL );
14557 if( status ) return status;
14559 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14561 /* give thread a chance to complete */
14562 /* it should remain joinable and hence detachable */
14565 status = pthread_detach( t );
14566 if( status ) return status;
14571 /* Draft 4 pthreads */
14572 status = pthread_create( &t, pthread_attr_default, task, NULL );
14573 if( status ) return status;
14576 /* give thread a chance to complete */
14577 /* it should remain joinable and hence detachable */
14580 status = pthread_detach( &t );
14581 if( status ) return status;
14585 #ifdef HAVE_LINUX_THREADS
14586 pthread_kill_other_threads_np();
14593 if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14595 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14597 echo "configure: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14600 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14604 cat > conftest.$ac_ext <<EOF
14605 #line 14606 "configure"
14606 #include "confdefs.h"
14607 /* pthread test headers */
14608 #include <pthread.h>
14610 #define NULL (void*)0
14613 static void *task(p)
14616 return (void *) (p == NULL);
14620 int main(argc, argv)
14625 /* pthread test function */
14630 #ifdef HAVE_PTHREADS_FINAL
14631 /* Final pthreads */
14632 pthread_attr_t attr;
14634 status = pthread_attr_init(&attr);
14635 if( status ) return status;
14637 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14639 #if defined( PTHREAD_CREATE_JOINABLE )
14640 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14642 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14645 #ifdef PTHREAD_CREATE_DETACHED
14647 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14650 if( status ) return status;
14653 status = pthread_create( &t, &attr, task, NULL );
14654 if( status ) return status;
14656 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14658 /* give thread a chance to complete */
14659 /* it should remain joinable and hence detachable */
14662 status = pthread_detach( t );
14663 if( status ) return status;
14668 /* Draft 4 pthreads */
14669 status = pthread_create( &t, pthread_attr_default, task, NULL );
14670 if( status ) return status;
14673 /* give thread a chance to complete */
14674 /* it should remain joinable and hence detachable */
14677 status = pthread_detach( &t );
14678 if( status ) return status;
14682 #ifdef HAVE_LINUX_THREADS
14683 pthread_kill_other_threads_np();
14691 if { (eval echo configure:14692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14693 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14695 echo "configure: failed program was:" >&5
14696 cat conftest.$ac_ext >&5
14698 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14709 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14711 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14712 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14713 ol_link_threads=posix
14717 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14718 if test "$ol_link_threads" = no ; then
14719 # try -lpthreads -lmach -lexc
14720 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14721 echo "configure:14722: checking for pthread link with -lpthreads -lmach -lexc" >&5
14722 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14723 echo $ac_n "(cached) $ac_c" 1>&6
14728 LIBS="-lpthreads -lmach -lexc $LIBS"
14730 if test "$cross_compiling" = yes; then
14731 cat > conftest.$ac_ext <<EOF
14732 #line 14733 "configure"
14733 #include "confdefs.h"
14734 /* pthread test headers */
14735 #include <pthread.h>
14737 #define NULL (void*)0
14740 static void *task(p)
14743 return (void *) (p == NULL);
14748 /* pthread test function */
14753 #ifdef HAVE_PTHREADS_FINAL
14754 /* Final pthreads */
14755 pthread_attr_t attr;
14757 status = pthread_attr_init(&attr);
14758 if( status ) return status;
14760 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14762 #if defined( PTHREAD_CREATE_JOINABLE )
14763 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14765 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14768 #ifdef PTHREAD_CREATE_DETACHED
14770 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14773 if( status ) return status;
14776 status = pthread_create( &t, &attr, task, NULL );
14777 if( status ) return status;
14779 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14781 /* give thread a chance to complete */
14782 /* it should remain joinable and hence detachable */
14785 status = pthread_detach( t );
14786 if( status ) return status;
14791 /* Draft 4 pthreads */
14792 status = pthread_create( &t, pthread_attr_default, task, NULL );
14793 if( status ) return status;
14796 /* give thread a chance to complete */
14797 /* it should remain joinable and hence detachable */
14800 status = pthread_detach( &t );
14801 if( status ) return status;
14805 #ifdef HAVE_LINUX_THREADS
14806 pthread_kill_other_threads_np();
14813 if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14815 ol_cv_pthread_lpthreads_lmach_lexc=yes
14817 echo "configure: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14820 ol_cv_pthread_lpthreads_lmach_lexc=no
14824 cat > conftest.$ac_ext <<EOF
14825 #line 14826 "configure"
14826 #include "confdefs.h"
14827 /* pthread test headers */
14828 #include <pthread.h>
14830 #define NULL (void*)0
14833 static void *task(p)
14836 return (void *) (p == NULL);
14840 int main(argc, argv)
14845 /* pthread test function */
14850 #ifdef HAVE_PTHREADS_FINAL
14851 /* Final pthreads */
14852 pthread_attr_t attr;
14854 status = pthread_attr_init(&attr);
14855 if( status ) return status;
14857 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14859 #if defined( PTHREAD_CREATE_JOINABLE )
14860 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14862 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14865 #ifdef PTHREAD_CREATE_DETACHED
14867 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14870 if( status ) return status;
14873 status = pthread_create( &t, &attr, task, NULL );
14874 if( status ) return status;
14876 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14878 /* give thread a chance to complete */
14879 /* it should remain joinable and hence detachable */
14882 status = pthread_detach( t );
14883 if( status ) return status;
14888 /* Draft 4 pthreads */
14889 status = pthread_create( &t, pthread_attr_default, task, NULL );
14890 if( status ) return status;
14893 /* give thread a chance to complete */
14894 /* it should remain joinable and hence detachable */
14897 status = pthread_detach( &t );
14898 if( status ) return status;
14902 #ifdef HAVE_LINUX_THREADS
14903 pthread_kill_other_threads_np();
14911 if { (eval echo configure:14912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14913 ol_cv_pthread_lpthreads_lmach_lexc=yes
14915 echo "configure: failed program was:" >&5
14916 cat conftest.$ac_ext >&5
14918 ol_cv_pthread_lpthreads_lmach_lexc=no
14929 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14931 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14932 ol_link_pthreads="-lpthreads -lmach -lexc"
14933 ol_link_threads=posix
14937 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14938 if test "$ol_link_threads" = no ; then
14939 # try -lpthreads -lexc
14940 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14941 echo "configure:14942: checking for pthread link with -lpthreads -lexc" >&5
14942 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14943 echo $ac_n "(cached) $ac_c" 1>&6
14948 LIBS="-lpthreads -lexc $LIBS"
14950 if test "$cross_compiling" = yes; then
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14953 "configure"
14953 #include "confdefs.h"
14954 /* pthread test headers */
14955 #include <pthread.h>
14957 #define NULL (void*)0
14960 static void *task(p)
14963 return (void *) (p == NULL);
14968 /* pthread test function */
14973 #ifdef HAVE_PTHREADS_FINAL
14974 /* Final pthreads */
14975 pthread_attr_t attr;
14977 status = pthread_attr_init(&attr);
14978 if( status ) return status;
14980 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14982 #if defined( PTHREAD_CREATE_JOINABLE )
14983 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14985 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14988 #ifdef PTHREAD_CREATE_DETACHED
14990 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14993 if( status ) return status;
14996 status = pthread_create( &t, &attr, task, NULL );
14997 if( status ) return status;
14999 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15001 /* give thread a chance to complete */
15002 /* it should remain joinable and hence detachable */
15005 status = pthread_detach( t );
15006 if( status ) return status;
15011 /* Draft 4 pthreads */
15012 status = pthread_create( &t, pthread_attr_default, task, NULL );
15013 if( status ) return status;
15016 /* give thread a chance to complete */
15017 /* it should remain joinable and hence detachable */
15020 status = pthread_detach( &t );
15021 if( status ) return status;
15025 #ifdef HAVE_LINUX_THREADS
15026 pthread_kill_other_threads_np();
15033 if { (eval echo configure:15034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15035 ol_cv_pthread_lpthreads_lexc=yes
15037 echo "configure: failed program was:" >&5
15038 cat conftest.$ac_ext >&5
15040 ol_cv_pthread_lpthreads_lexc=no
15044 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* pthread test headers */
15048 #include <pthread.h>
15050 #define NULL (void*)0
15053 static void *task(p)
15056 return (void *) (p == NULL);
15060 int main(argc, argv)
15065 /* pthread test function */
15070 #ifdef HAVE_PTHREADS_FINAL
15071 /* Final pthreads */
15072 pthread_attr_t attr;
15074 status = pthread_attr_init(&attr);
15075 if( status ) return status;
15077 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15079 #if defined( PTHREAD_CREATE_JOINABLE )
15080 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15082 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15085 #ifdef PTHREAD_CREATE_DETACHED
15087 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15090 if( status ) return status;
15093 status = pthread_create( &t, &attr, task, NULL );
15094 if( status ) return status;
15096 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15098 /* give thread a chance to complete */
15099 /* it should remain joinable and hence detachable */
15102 status = pthread_detach( t );
15103 if( status ) return status;
15108 /* Draft 4 pthreads */
15109 status = pthread_create( &t, pthread_attr_default, task, NULL );
15110 if( status ) return status;
15113 /* give thread a chance to complete */
15114 /* it should remain joinable and hence detachable */
15117 status = pthread_detach( &t );
15118 if( status ) return status;
15122 #ifdef HAVE_LINUX_THREADS
15123 pthread_kill_other_threads_np();
15131 if { (eval echo configure:15132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15133 ol_cv_pthread_lpthreads_lexc=yes
15135 echo "configure: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15138 ol_cv_pthread_lpthreads_lexc=no
15149 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15151 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15152 ol_link_pthreads="-lpthreads -lexc"
15153 ol_link_threads=posix
15158 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15159 if test "$ol_link_threads" = no ; then
15161 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15162 echo "configure:15163: checking for pthread link with -lpthreads" >&5
15163 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15164 echo $ac_n "(cached) $ac_c" 1>&6
15169 LIBS="-lpthreads $LIBS"
15171 if test "$cross_compiling" = yes; then
15172 cat > conftest.$ac_ext <<EOF
15173 #line 15174 "configure"
15174 #include "confdefs.h"
15175 /* pthread test headers */
15176 #include <pthread.h>
15178 #define NULL (void*)0
15181 static void *task(p)
15184 return (void *) (p == NULL);
15189 /* pthread test function */
15194 #ifdef HAVE_PTHREADS_FINAL
15195 /* Final pthreads */
15196 pthread_attr_t attr;
15198 status = pthread_attr_init(&attr);
15199 if( status ) return status;
15201 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15203 #if defined( PTHREAD_CREATE_JOINABLE )
15204 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15206 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15209 #ifdef PTHREAD_CREATE_DETACHED
15211 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15214 if( status ) return status;
15217 status = pthread_create( &t, &attr, task, NULL );
15218 if( status ) return status;
15220 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15222 /* give thread a chance to complete */
15223 /* it should remain joinable and hence detachable */
15226 status = pthread_detach( t );
15227 if( status ) return status;
15232 /* Draft 4 pthreads */
15233 status = pthread_create( &t, pthread_attr_default, task, NULL );
15234 if( status ) return status;
15237 /* give thread a chance to complete */
15238 /* it should remain joinable and hence detachable */
15241 status = pthread_detach( &t );
15242 if( status ) return status;
15246 #ifdef HAVE_LINUX_THREADS
15247 pthread_kill_other_threads_np();
15254 if { (eval echo configure:15255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15256 ol_cv_pthread_lib_lpthreads=yes
15258 echo "configure: failed program was:" >&5
15259 cat conftest.$ac_ext >&5
15261 ol_cv_pthread_lib_lpthreads=no
15265 cat > conftest.$ac_ext <<EOF
15266 #line 15267 "configure"
15267 #include "confdefs.h"
15268 /* pthread test headers */
15269 #include <pthread.h>
15271 #define NULL (void*)0
15274 static void *task(p)
15277 return (void *) (p == NULL);
15281 int main(argc, argv)
15286 /* pthread test function */
15291 #ifdef HAVE_PTHREADS_FINAL
15292 /* Final pthreads */
15293 pthread_attr_t attr;
15295 status = pthread_attr_init(&attr);
15296 if( status ) return status;
15298 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15300 #if defined( PTHREAD_CREATE_JOINABLE )
15301 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15303 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15306 #ifdef PTHREAD_CREATE_DETACHED
15308 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15311 if( status ) return status;
15314 status = pthread_create( &t, &attr, task, NULL );
15315 if( status ) return status;
15317 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15319 /* give thread a chance to complete */
15320 /* it should remain joinable and hence detachable */
15323 status = pthread_detach( t );
15324 if( status ) return status;
15329 /* Draft 4 pthreads */
15330 status = pthread_create( &t, pthread_attr_default, task, NULL );
15331 if( status ) return status;
15334 /* give thread a chance to complete */
15335 /* it should remain joinable and hence detachable */
15338 status = pthread_detach( &t );
15339 if( status ) return status;
15343 #ifdef HAVE_LINUX_THREADS
15344 pthread_kill_other_threads_np();
15352 if { (eval echo configure:15353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15354 ol_cv_pthread_lib_lpthreads=yes
15356 echo "configure: failed program was:" >&5
15357 cat conftest.$ac_ext >&5
15359 ol_cv_pthread_lib_lpthreads=no
15370 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15372 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15373 ol_link_pthreads="-lpthreads"
15374 ol_link_threads=posix
15379 if test $ol_link_threads != no ; then
15380 cat >> confdefs.h <<\EOF
15381 #define HAVE_PTHREADS 1
15385 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15387 save_CPPFLAGS="$CPPFLAGS"
15389 LIBS="$LTHREAD_LIBS $LIBS"
15391 for ac_func in sched_yield pthread_yield
15393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15394 echo "configure:15395: checking for $ac_func" >&5
15395 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15396 echo $ac_n "(cached) $ac_c" 1>&6
15398 cat > conftest.$ac_ext <<EOF
15399 #line 15400 "configure"
15400 #include "confdefs.h"
15401 /* System header to define __stub macros and hopefully few prototypes,
15402 which can conflict with char $ac_func(); below. */
15403 #include <assert.h>
15404 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15412 /* The GNU C library defines this for functions which it implements
15413 to always fail with ENOSYS. Some functions are actually named
15414 something starting with __ and the normal name is an alias. */
15415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 if { (eval echo configure:15424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15425 eval "ac_cv_func_$ac_func=yes"
15427 echo "configure: failed program was:" >&5
15428 cat conftest.$ac_ext >&5
15430 eval "ac_cv_func_$ac_func=no"
15435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15436 echo "$ac_t""yes" 1>&6
15437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15438 cat >> confdefs.h <<EOF
15439 #define $ac_tr_func 1
15443 echo "$ac_t""no" 1>&6
15448 if test $ac_cv_func_sched_yield = no -a \
15449 $ac_cv_func_pthread_yield = no ; then
15450 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15451 echo "configure:15452: checking for sched_yield in -lrt" >&5
15452 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15453 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15456 ac_save_LIBS="$LIBS"
15458 cat > conftest.$ac_ext <<EOF
15459 #line 15460 "configure"
15460 #include "confdefs.h"
15461 /* Override any gcc2 internal prototype to avoid an error. */
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15464 char sched_yield();
15470 if { (eval echo configure:15471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15472 eval "ac_cv_lib_$ac_lib_var=yes"
15474 echo "configure: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15477 eval "ac_cv_lib_$ac_lib_var=no"
15480 LIBS="$ac_save_LIBS"
15483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15484 echo "$ac_t""yes" 1>&6
15485 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15486 cat >> confdefs.h <<\EOF
15487 #define HAVE_SCHED_YIELD 1
15490 ac_cv_func_sched_yield=yes
15492 echo "$ac_t""no" 1>&6
15493 ac_cv_func_sched_yield=no
15497 if test $ac_cv_func_sched_yield = no -a \
15498 $ac_cv_func_pthread_yield = no ; then
15499 for ac_func in thr_yield
15501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15502 echo "configure:15503: checking for $ac_func" >&5
15503 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15506 cat > conftest.$ac_ext <<EOF
15507 #line 15508 "configure"
15508 #include "confdefs.h"
15509 /* System header to define __stub macros and hopefully few prototypes,
15510 which can conflict with char $ac_func(); below. */
15511 #include <assert.h>
15512 /* Override any gcc2 internal prototype to avoid an error. */
15513 /* We use char because int might match the return type of a gcc2
15514 builtin and then its argument prototype would still apply. */
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15533 eval "ac_cv_func_$ac_func=yes"
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15538 eval "ac_cv_func_$ac_func=no"
15543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15544 echo "$ac_t""yes" 1>&6
15545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15546 cat >> confdefs.h <<EOF
15547 #define $ac_tr_func 1
15551 echo "$ac_t""no" 1>&6
15556 if test $ac_cv_func_sched_yield = no -a \
15557 $ac_cv_func_pthread_yield = no -a \
15558 "$ac_cv_func_thr_yield" = no ; then
15559 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15562 for ac_func in pthread_kill pthread_rwlock_destroy
15564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15565 echo "configure:15566: checking for $ac_func" >&5
15566 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15567 echo $ac_n "(cached) $ac_c" 1>&6
15569 cat > conftest.$ac_ext <<EOF
15570 #line 15571 "configure"
15571 #include "confdefs.h"
15572 /* System header to define __stub macros and hopefully few prototypes,
15573 which can conflict with char $ac_func(); below. */
15574 #include <assert.h>
15575 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15583 /* The GNU C library defines this for functions which it implements
15584 to always fail with ENOSYS. Some functions are actually named
15585 something starting with __ and the normal name is an alias. */
15586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15594 if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15596 eval "ac_cv_func_$ac_func=yes"
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15601 eval "ac_cv_func_$ac_func=no"
15606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15607 echo "$ac_t""yes" 1>&6
15608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15609 cat >> confdefs.h <<EOF
15610 #define $ac_tr_func 1
15614 echo "$ac_t""no" 1>&6
15619 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15620 echo "configure:15621: checking for pthread_detach with <pthread.h>" >&5
15621 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15622 echo $ac_n "(cached) $ac_c" 1>&6
15625 cat > conftest.$ac_ext <<EOF
15626 #line 15627 "configure"
15627 #include "confdefs.h"
15629 #include <pthread.h>
15631 #define NULL (void*)0
15635 pthread_detach(NULL);
15638 if { (eval echo configure:15639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15640 ol_cv_func_pthread_detach=yes
15642 echo "configure: failed program was:" >&5
15643 cat conftest.$ac_ext >&5
15645 ol_cv_func_pthread_detach=no
15651 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15653 if test $ol_cv_func_pthread_detach = no ; then
15654 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15657 cat >> confdefs.h <<\EOF
15658 #define HAVE_PTHREAD_DETACH 1
15663 pthread_setconcurrency \
15664 pthread_getconcurrency \
15665 thr_setconcurrency \
15666 thr_getconcurrency \
15669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15670 echo "configure:15671: checking for $ac_func" >&5
15671 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15674 cat > conftest.$ac_ext <<EOF
15675 #line 15676 "configure"
15676 #include "confdefs.h"
15677 /* System header to define __stub macros and hopefully few prototypes,
15678 which can conflict with char $ac_func(); below. */
15679 #include <assert.h>
15680 /* Override any gcc2 internal prototype to avoid an error. */
15681 /* We use char because int might match the return type of a gcc2
15682 builtin and then its argument prototype would still apply. */
15688 /* The GNU C library defines this for functions which it implements
15689 to always fail with ENOSYS. Some functions are actually named
15690 something starting with __ and the normal name is an alias. */
15691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15701 eval "ac_cv_func_$ac_func=yes"
15703 echo "configure: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15706 eval "ac_cv_func_$ac_func=no"
15711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15712 echo "$ac_t""yes" 1>&6
15713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15714 cat >> confdefs.h <<EOF
15715 #define $ac_tr_func 1
15719 echo "$ac_t""no" 1>&6
15725 for ac_func in pthread_kill_other_threads_np
15727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15728 echo "configure:15729: checking for $ac_func" >&5
15729 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15730 echo $ac_n "(cached) $ac_c" 1>&6
15732 cat > conftest.$ac_ext <<EOF
15733 #line 15734 "configure"
15734 #include "confdefs.h"
15735 /* System header to define __stub macros and hopefully few prototypes,
15736 which can conflict with char $ac_func(); below. */
15737 #include <assert.h>
15738 /* Override any gcc2 internal prototype to avoid an error. */
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15746 /* The GNU C library defines this for functions which it implements
15747 to always fail with ENOSYS. Some functions are actually named
15748 something starting with __ and the normal name is an alias. */
15749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15757 if { (eval echo configure:15758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15759 eval "ac_cv_func_$ac_func=yes"
15761 echo "configure: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15764 eval "ac_cv_func_$ac_func=no"
15769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15770 echo "$ac_t""yes" 1>&6
15771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15772 cat >> confdefs.h <<EOF
15773 #define $ac_tr_func 1
15777 echo "$ac_t""no" 1>&6
15781 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15782 echo "configure:15783: checking for LinuxThreads implementation" >&5
15783 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15784 echo $ac_n "(cached) $ac_c" 1>&6
15786 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15789 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15794 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15795 echo "configure:15796: checking for LinuxThreads consistency" >&5
15796 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15797 echo $ac_n "(cached) $ac_c" 1>&6
15800 if test $ol_cv_header_linux_threads = yes -a \
15801 $ol_cv_sys_linux_threads = yes; then
15802 ol_cv_linux_threads=yes
15803 elif test $ol_cv_header_linux_threads = no -a \
15804 $ol_cv_sys_linux_threads = no; then
15805 ol_cv_linux_threads=no
15807 ol_cv_linux_threads=error
15812 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15815 if test $ol_cv_linux_threads = error; then
15816 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15819 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15820 echo "configure:15821: checking if pthread_create() works" >&5
15821 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15822 echo $ac_n "(cached) $ac_c" 1>&6
15825 if test "$cross_compiling" = yes; then
15826 ol_cv_pthread_create_works=yes
15828 cat > conftest.$ac_ext <<EOF
15829 #line 15830 "configure"
15830 #include "confdefs.h"
15831 /* pthread test headers */
15832 #include <pthread.h>
15834 #define NULL (void*)0
15837 static void *task(p)
15840 return (void *) (p == NULL);
15844 int main(argc, argv)
15849 /* pthread test function */
15854 #ifdef HAVE_PTHREADS_FINAL
15855 /* Final pthreads */
15856 pthread_attr_t attr;
15858 status = pthread_attr_init(&attr);
15859 if( status ) return status;
15861 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15863 #if defined( PTHREAD_CREATE_JOINABLE )
15864 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15866 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15869 #ifdef PTHREAD_CREATE_DETACHED
15871 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15874 if( status ) return status;
15877 status = pthread_create( &t, &attr, task, NULL );
15878 if( status ) return status;
15880 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15882 /* give thread a chance to complete */
15883 /* it should remain joinable and hence detachable */
15886 status = pthread_detach( t );
15887 if( status ) return status;
15892 /* Draft 4 pthreads */
15893 status = pthread_create( &t, pthread_attr_default, task, NULL );
15894 if( status ) return status;
15897 /* give thread a chance to complete */
15898 /* it should remain joinable and hence detachable */
15901 status = pthread_detach( &t );
15902 if( status ) return status;
15906 #ifdef HAVE_LINUX_THREADS
15907 pthread_kill_other_threads_np();
15915 if { (eval echo configure:15916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15917 ol_cv_pthread_create_works=yes
15919 echo "configure: failed program was:" >&5
15920 cat conftest.$ac_ext >&5
15922 ol_cv_pthread_create_works=no
15929 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15931 if test $ol_cv_pthread_create_works = no ; then
15932 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15935 if test $ol_with_yielding_select = auto ; then
15936 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15937 echo "configure:15938: checking if select yields when using pthreads" >&5
15938 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15939 echo $ac_n "(cached) $ac_c" 1>&6
15942 if test "$cross_compiling" = yes; then
15943 ol_cv_pthread_select_yields=cross
15945 cat > conftest.$ac_ext <<EOF
15946 #line 15947 "configure"
15947 #include "confdefs.h"
15949 #include <sys/types.h>
15950 #include <sys/time.h>
15951 #include <unistd.h>
15952 #include <pthread.h>
15954 #define NULL (void*) 0
15957 static int fildes[2];
15959 static void *task(p)
15971 FD_SET(fildes[0], &rfds);
15973 /* we're not interested in any fds */
15974 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15981 exit(0); /* if we exit here, the select blocked the whole process */
15984 int main(argc, argv)
15990 /* create a pipe to select */
15991 if(pipe(&fildes[0])) {
15996 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15997 (void) pthread_setconcurrency(2);
15999 #ifdef HAVE_THR_SETCONCURRENCY
16000 /* Set Solaris LWP concurrency to 2 */
16001 thr_setconcurrency(2);
16005 #if HAVE_PTHREADS_D4
16006 pthread_create(&t, pthread_attr_default, task, NULL);
16008 pthread_create(&t, NULL, task, NULL);
16011 #if HAVE_SCHED_YIELD
16012 sched_yield(); /* make sure task runs first */
16014 #ifdef HAVE_PTHREAD_YIELD
16015 pthread_yield(); /* make sure task runs first */
16022 if { (eval echo configure:16023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16024 ol_cv_pthread_select_yields=no
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16029 ol_cv_pthread_select_yields=yes
16036 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
16038 if test $ol_cv_pthread_select_yields = cross ; then
16039 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
16042 if test $ol_cv_pthread_select_yields = yes ; then
16043 ol_with_yielding_select=yes
16047 CPPFLAGS="$save_CPPFLAGS"
16050 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
16054 if test $ol_with_threads = posix ; then
16055 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
16059 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16060 -o $ol_with_threads = mach ; then
16062 for ac_hdr in mach/cthreads.h cthreads.h
16064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16066 echo "configure:16067: checking for $ac_hdr" >&5
16067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16068 echo $ac_n "(cached) $ac_c" 1>&6
16070 cat > conftest.$ac_ext <<EOF
16071 #line 16072 "configure"
16072 #include "confdefs.h"
16075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16076 { (eval echo configure:16077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16078 if test -z "$ac_err"; then
16080 eval "ac_cv_header_$ac_safe=yes"
16083 echo "configure: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16086 eval "ac_cv_header_$ac_safe=no"
16090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16091 echo "$ac_t""yes" 1>&6
16092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16093 cat >> confdefs.h <<EOF
16094 #define $ac_tr_hdr 1
16098 echo "$ac_t""no" 1>&6
16102 if test $ac_cv_header_mach_cthreads_h = yes ; then
16103 ol_with_threads=found
16105 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16106 echo "configure:16107: checking for cthread_fork" >&5
16107 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16108 echo $ac_n "(cached) $ac_c" 1>&6
16110 cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char cthread_fork(); below. */
16115 #include <assert.h>
16116 /* Override any gcc2 internal prototype to avoid an error. */
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16119 char cthread_fork();
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16135 if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16137 eval "ac_cv_func_cthread_fork=yes"
16139 echo "configure: failed program was:" >&5
16140 cat conftest.$ac_ext >&5
16142 eval "ac_cv_func_cthread_fork=no"
16147 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16148 echo "$ac_t""yes" 1>&6
16149 ol_link_threads=yes
16151 echo "$ac_t""no" 1>&6
16155 if test $ol_link_threads = no ; then
16156 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16157 echo "configure:16158: checking for cthread_fork with -all_load" >&5
16158 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16159 echo $ac_n "(cached) $ac_c" 1>&6
16163 LIBS="-all_load $LIBS"
16164 cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure"
16166 #include "confdefs.h"
16167 #include <mach/cthreads.h>
16170 cthread_fork((void *)0, (void *)0);
16174 if { (eval echo configure:16175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16176 ol_cv_cthread_all_load=yes
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16181 ol_cv_cthread_all_load=no
16188 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16190 if test $ol_cv_cthread_all_load = yes ; then
16191 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16192 ol_link_threads=mach
16193 ol_with_threads=found
16197 elif test $ac_cv_header_cthreads_h = yes ; then
16199 ol_with_threads=found
16202 LIBS="$LIBS -lthreads"
16203 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16204 echo "configure:16205: checking for cthread_fork" >&5
16205 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16206 echo $ac_n "(cached) $ac_c" 1>&6
16208 cat > conftest.$ac_ext <<EOF
16209 #line 16210 "configure"
16210 #include "confdefs.h"
16211 /* System header to define __stub macros and hopefully few prototypes,
16212 which can conflict with char cthread_fork(); below. */
16213 #include <assert.h>
16214 /* Override any gcc2 internal prototype to avoid an error. */
16215 /* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16217 char cthread_fork();
16222 /* The GNU C library defines this for functions which it implements
16223 to always fail with ENOSYS. Some functions are actually named
16224 something starting with __ and the normal name is an alias. */
16225 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16233 if { (eval echo configure:16234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16235 eval "ac_cv_func_cthread_fork=yes"
16237 echo "configure: failed program was:" >&5
16238 cat conftest.$ac_ext >&5
16240 eval "ac_cv_func_cthread_fork=no"
16245 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16246 echo "$ac_t""yes" 1>&6
16247 ol_link_threads=yes
16249 echo "$ac_t""no" 1>&6
16254 if test $ol_link_threads = yes ; then
16255 LTHREAD_LIBS="-lthreads"
16256 ol_link_threads=mach
16257 ol_with_threads=found
16259 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16262 elif test $ol_with_threads = mach ; then
16263 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16266 if test $ol_link_threads = mach ; then
16267 cat >> confdefs.h <<\EOF
16268 #define HAVE_MACH_CTHREADS 1
16271 elif test $ol_with_threads = found ; then
16272 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16276 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16277 -o $ol_with_threads = pth ; then
16279 for ac_hdr in pth.h
16281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16283 echo "configure:16284: checking for $ac_hdr" >&5
16284 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16285 echo $ac_n "(cached) $ac_c" 1>&6
16287 cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16293 { (eval echo configure:16294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16295 if test -z "$ac_err"; then
16297 eval "ac_cv_header_$ac_safe=yes"
16300 echo "configure: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16303 eval "ac_cv_header_$ac_safe=no"
16307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16308 echo "$ac_t""yes" 1>&6
16309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16310 cat >> confdefs.h <<EOF
16311 #define $ac_tr_hdr 1
16315 echo "$ac_t""no" 1>&6
16320 if test $ac_cv_header_pth_h = yes ; then
16321 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16322 echo "configure:16323: checking for pth_version in -lpth" >&5
16323 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16325 echo $ac_n "(cached) $ac_c" 1>&6
16327 ac_save_LIBS="$LIBS"
16329 cat > conftest.$ac_ext <<EOF
16330 #line 16331 "configure"
16331 #include "confdefs.h"
16332 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16335 char pth_version();
16341 if { (eval echo configure:16342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16343 eval "ac_cv_lib_$ac_lib_var=yes"
16345 echo "configure: failed program was:" >&5
16346 cat conftest.$ac_ext >&5
16348 eval "ac_cv_lib_$ac_lib_var=no"
16351 LIBS="$ac_save_LIBS"
16354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16355 echo "$ac_t""yes" 1>&6
16358 echo "$ac_t""no" 1>&6
16363 if test $have_pth = yes ; then
16364 cat >> confdefs.h <<\EOF
16365 #define HAVE_GNU_PTH 1
16368 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16369 ol_link_threads=pth
16370 ol_with_threads=found
16372 if test $ol_with_yielding_select = auto ; then
16373 ol_with_yielding_select=yes
16379 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16380 -o $ol_with_threads = lwp ; then
16382 for ac_hdr in thread.h synch.h
16384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16386 echo "configure:16387: checking for $ac_hdr" >&5
16387 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16388 echo $ac_n "(cached) $ac_c" 1>&6
16390 cat > conftest.$ac_ext <<EOF
16391 #line 16392 "configure"
16392 #include "confdefs.h"
16395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16396 { (eval echo configure:16397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16398 if test -z "$ac_err"; then
16400 eval "ac_cv_header_$ac_safe=yes"
16403 echo "configure: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16406 eval "ac_cv_header_$ac_safe=no"
16410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16411 echo "$ac_t""yes" 1>&6
16412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16413 cat >> confdefs.h <<EOF
16414 #define $ac_tr_hdr 1
16418 echo "$ac_t""no" 1>&6
16422 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16423 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16424 echo "configure:16425: checking for thr_create in -lthread" >&5
16425 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16426 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16427 echo $ac_n "(cached) $ac_c" 1>&6
16429 ac_save_LIBS="$LIBS"
16430 LIBS="-lthread $LIBS"
16431 cat > conftest.$ac_ext <<EOF
16432 #line 16433 "configure"
16433 #include "confdefs.h"
16434 /* Override any gcc2 internal prototype to avoid an error. */
16435 /* We use char because int might match the return type of a gcc2
16436 builtin and then its argument prototype would still apply. */
16443 if { (eval echo configure:16444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16445 eval "ac_cv_lib_$ac_lib_var=yes"
16447 echo "configure: failed program was:" >&5
16448 cat conftest.$ac_ext >&5
16450 eval "ac_cv_lib_$ac_lib_var=no"
16453 LIBS="$ac_save_LIBS"
16456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16457 echo "$ac_t""yes" 1>&6
16460 echo "$ac_t""no" 1>&6
16465 if test $have_thr = yes ; then
16466 cat >> confdefs.h <<\EOF
16470 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16471 ol_link_threads=thr
16473 if test $ol_with_yielding_select = auto ; then
16474 ol_with_yielding_select=yes
16478 thr_setconcurrency \
16479 thr_getconcurrency \
16482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16483 echo "configure:16484: checking for $ac_func" >&5
16484 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16485 echo $ac_n "(cached) $ac_c" 1>&6
16487 cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16490 /* System header to define __stub macros and hopefully few prototypes,
16491 which can conflict with char $ac_func(); below. */
16492 #include <assert.h>
16493 /* Override any gcc2 internal prototype to avoid an error. */
16494 /* We use char because int might match the return type of a gcc2
16495 builtin and then its argument prototype would still apply. */
16501 /* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16512 if { (eval echo configure:16513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16514 eval "ac_cv_func_$ac_func=yes"
16516 echo "configure: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16519 eval "ac_cv_func_$ac_func=no"
16524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16525 echo "$ac_t""yes" 1>&6
16526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16527 cat >> confdefs.h <<EOF
16528 #define $ac_tr_func 1
16532 echo "$ac_t""no" 1>&6
16539 for ac_hdr in lwp/lwp.h
16541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16543 echo "configure:16544: checking for $ac_hdr" >&5
16544 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16545 echo $ac_n "(cached) $ac_c" 1>&6
16547 cat > conftest.$ac_ext <<EOF
16548 #line 16549 "configure"
16549 #include "confdefs.h"
16552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16553 { (eval echo configure:16554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16555 if test -z "$ac_err"; then
16557 eval "ac_cv_header_$ac_safe=yes"
16560 echo "configure: failed program was:" >&5
16561 cat conftest.$ac_ext >&5
16563 eval "ac_cv_header_$ac_safe=no"
16567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16568 echo "$ac_t""yes" 1>&6
16569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16570 cat >> confdefs.h <<EOF
16571 #define $ac_tr_hdr 1
16575 echo "$ac_t""no" 1>&6
16579 if test $ac_cv_header_lwp_lwp_h = yes ; then
16580 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16581 echo "configure:16582: checking for lwp_create in -llwp" >&5
16582 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16583 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16584 echo $ac_n "(cached) $ac_c" 1>&6
16586 ac_save_LIBS="$LIBS"
16588 cat > conftest.$ac_ext <<EOF
16589 #line 16590 "configure"
16590 #include "confdefs.h"
16591 /* Override any gcc2 internal prototype to avoid an error. */
16592 /* We use char because int might match the return type of a gcc2
16593 builtin and then its argument prototype would still apply. */
16600 if { (eval echo configure:16601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16602 eval "ac_cv_lib_$ac_lib_var=yes"
16604 echo "configure: failed program was:" >&5
16605 cat conftest.$ac_ext >&5
16607 eval "ac_cv_lib_$ac_lib_var=no"
16610 LIBS="$ac_save_LIBS"
16613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16614 echo "$ac_t""yes" 1>&6
16617 echo "$ac_t""no" 1>&6
16622 if test $have_lwp = yes ; then
16623 cat >> confdefs.h <<\EOF
16627 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16628 ol_link_threads=lwp
16630 if test $ol_with_yielding_select = auto ; then
16631 ol_with_yielding_select=no
16637 if test $ol_with_yielding_select = yes ; then
16638 cat >> confdefs.h <<\EOF
16639 #define HAVE_YIELDING_SELECT 1
16644 if test $ol_with_threads = manual ; then
16645 ol_link_threads=yes
16647 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16649 for ac_hdr in pthread.h sched.h
16651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16653 echo "configure:16654: checking for $ac_hdr" >&5
16654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16655 echo $ac_n "(cached) $ac_c" 1>&6
16657 cat > conftest.$ac_ext <<EOF
16658 #line 16659 "configure"
16659 #include "confdefs.h"
16662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16663 { (eval echo configure:16664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16665 if test -z "$ac_err"; then
16667 eval "ac_cv_header_$ac_safe=yes"
16670 echo "configure: failed program was:" >&5
16671 cat conftest.$ac_ext >&5
16673 eval "ac_cv_header_$ac_safe=no"
16677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16678 echo "$ac_t""yes" 1>&6
16679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16680 cat >> confdefs.h <<EOF
16681 #define $ac_tr_hdr 1
16685 echo "$ac_t""no" 1>&6
16689 for ac_func in sched_yield pthread_yield
16691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16692 echo "configure:16693: checking for $ac_func" >&5
16693 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16694 echo $ac_n "(cached) $ac_c" 1>&6
16696 cat > conftest.$ac_ext <<EOF
16697 #line 16698 "configure"
16698 #include "confdefs.h"
16699 /* System header to define __stub macros and hopefully few prototypes,
16700 which can conflict with char $ac_func(); below. */
16701 #include <assert.h>
16702 /* Override any gcc2 internal prototype to avoid an error. */
16703 /* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16710 /* The GNU C library defines this for functions which it implements
16711 to always fail with ENOSYS. Some functions are actually named
16712 something starting with __ and the normal name is an alias. */
16713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16721 if { (eval echo configure:16722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16723 eval "ac_cv_func_$ac_func=yes"
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16728 eval "ac_cv_func_$ac_func=no"
16733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16734 echo "$ac_t""yes" 1>&6
16735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16736 cat >> confdefs.h <<EOF
16737 #define $ac_tr_func 1
16741 echo "$ac_t""no" 1>&6
16746 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16747 echo "configure:16748: checking for LinuxThreads pthread.h" >&5
16748 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16749 echo $ac_n "(cached) $ac_c" 1>&6
16751 cat > conftest.$ac_ext <<EOF
16752 #line 16753 "configure"
16753 #include "confdefs.h"
16754 #include <pthread.h>
16756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16757 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16759 ol_cv_header_linux_threads=yes
16762 ol_cv_header_linux_threads=no
16769 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16770 if test $ol_cv_header_linux_threads = yes; then
16771 cat >> confdefs.h <<\EOF
16772 #define HAVE_LINUX_THREADS 1
16778 for ac_hdr in mach/cthreads.h
16780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16782 echo "configure:16783: checking for $ac_hdr" >&5
16783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16784 echo $ac_n "(cached) $ac_c" 1>&6
16786 cat > conftest.$ac_ext <<EOF
16787 #line 16788 "configure"
16788 #include "confdefs.h"
16791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16792 { (eval echo configure:16793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16794 if test -z "$ac_err"; then
16796 eval "ac_cv_header_$ac_safe=yes"
16799 echo "configure: failed program was:" >&5
16800 cat conftest.$ac_ext >&5
16802 eval "ac_cv_header_$ac_safe=no"
16806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16807 echo "$ac_t""yes" 1>&6
16808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16809 cat >> confdefs.h <<EOF
16810 #define $ac_tr_hdr 1
16814 echo "$ac_t""no" 1>&6
16818 for ac_hdr in lwp/lwp.h
16820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16822 echo "configure:16823: checking for $ac_hdr" >&5
16823 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16824 echo $ac_n "(cached) $ac_c" 1>&6
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16832 { (eval echo configure:16833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16834 if test -z "$ac_err"; then
16836 eval "ac_cv_header_$ac_safe=yes"
16839 echo "configure: failed program was:" >&5
16840 cat conftest.$ac_ext >&5
16842 eval "ac_cv_header_$ac_safe=no"
16846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16847 echo "$ac_t""yes" 1>&6
16848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16849 cat >> confdefs.h <<EOF
16850 #define $ac_tr_hdr 1
16854 echo "$ac_t""no" 1>&6
16858 for ac_hdr in thread.h synch.h
16860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16862 echo "configure:16863: checking for $ac_hdr" >&5
16863 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16864 echo $ac_n "(cached) $ac_c" 1>&6
16866 cat > conftest.$ac_ext <<EOF
16867 #line 16868 "configure"
16868 #include "confdefs.h"
16871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16872 { (eval echo configure:16873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16874 if test -z "$ac_err"; then
16876 eval "ac_cv_header_$ac_safe=yes"
16879 echo "configure: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16882 eval "ac_cv_header_$ac_safe=no"
16886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16887 echo "$ac_t""yes" 1>&6
16888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16889 cat >> confdefs.h <<EOF
16890 #define $ac_tr_hdr 1
16894 echo "$ac_t""no" 1>&6
16900 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16901 cat >> confdefs.h <<\EOF
16902 #define REENTRANT 1
16905 cat >> confdefs.h <<\EOF
16906 #define _REENTRANT 1
16909 cat >> confdefs.h <<\EOF
16910 #define THREAD_SAFE 1
16913 cat >> confdefs.h <<\EOF
16914 #define _THREAD_SAFE 1
16917 cat >> confdefs.h <<\EOF
16918 #define THREADSAFE 1
16921 cat >> confdefs.h <<\EOF
16922 #define _THREADSAFE 1
16925 cat >> confdefs.h <<\EOF
16926 #define _SGI_MP_SOURCE 1
16930 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16931 echo "configure:16932: checking for thread specific errno" >&5
16932 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16933 echo $ac_n "(cached) $ac_c" 1>&6
16936 cat > conftest.$ac_ext <<EOF
16937 #line 16938 "configure"
16938 #include "confdefs.h"
16944 if { (eval echo configure:16945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16946 ol_cv_errno_thread_specific=yes
16948 echo "configure: failed program was:" >&5
16949 cat conftest.$ac_ext >&5
16951 ol_cv_errno_thread_specific=no
16957 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16959 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16960 echo "configure:16961: checking for thread specific h_errno" >&5
16961 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16962 echo $ac_n "(cached) $ac_c" 1>&6
16965 cat > conftest.$ac_ext <<EOF
16966 #line 16967 "configure"
16967 #include "confdefs.h"
16973 if { (eval echo configure:16974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16975 ol_cv_h_errno_thread_specific=yes
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16980 ol_cv_h_errno_thread_specific=no
16986 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16988 if test $ol_cv_errno_thread_specific != yes \
16989 -o $ol_cv_h_errno_thread_specific != yes ; then
16990 LIBS="$LTHREAD_LIBS $LIBS"
16996 if test $ol_link_threads = no ; then
16997 if test $ol_with_threads = yes ; then
16998 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
17001 if test $ol_with_threads = auto ; then
17002 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
17006 cat >> confdefs.h <<\EOF
17007 #define NO_THREADS 1
17013 if test $ol_link_threads != no ; then
17014 cat >> confdefs.h <<\EOF
17015 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
17022 if test $ol_with_ldbm_api = auto \
17023 -o $ol_with_ldbm_api = berkeley \
17024 -o $ol_with_ldbm_api = bcompat ; then
17026 if test $ol_with_ldbm_api = bcompat; then \
17027 for ac_hdr in db_185.h db.h
17029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17031 echo "configure:17032: checking for $ac_hdr" >&5
17032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17033 echo $ac_n "(cached) $ac_c" 1>&6
17035 cat > conftest.$ac_ext <<EOF
17036 #line 17037 "configure"
17037 #include "confdefs.h"
17040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17041 { (eval echo configure:17042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17043 if test -z "$ac_err"; then
17045 eval "ac_cv_header_$ac_safe=yes"
17048 echo "configure: failed program was:" >&5
17049 cat conftest.$ac_ext >&5
17051 eval "ac_cv_header_$ac_safe=no"
17055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17056 echo "$ac_t""yes" 1>&6
17057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17058 cat >> confdefs.h <<EOF
17059 #define $ac_tr_hdr 1
17063 echo "$ac_t""no" 1>&6
17067 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17068 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17069 echo "configure:17070: checking if Berkeley DB header compatibility" >&5
17070 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17071 echo $ac_n "(cached) $ac_c" 1>&6
17074 cat > conftest.$ac_ext <<EOF
17075 #line 17076 "configure"
17076 #include "confdefs.h"
17079 # include <db_185.h>
17084 /* this check could be improved */
17085 #ifndef DB_VERSION_MAJOR
17086 # define DB_VERSION_MAJOR 1
17089 #if DB_VERSION_MAJOR == 1
17094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17095 egrep "__db_version_1" >/dev/null 2>&1; then
17097 ol_cv_header_db1=yes
17100 ol_cv_header_db1=no
17106 echo "$ac_t""$ol_cv_header_db1" 1>&6
17108 if test $ol_cv_header_db1 = yes ; then
17110 if test $ol_cv_lib_db = no ; then
17111 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17112 echo "configure:17113: checking for Berkeley DB link (default)" >&5
17113 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17114 echo $ac_n "(cached) $ac_c" 1>&6
17119 LIBS="$ol_DB_LIB $LIBS"
17121 cat > conftest.$ac_ext <<EOF
17122 #line 17123 "configure"
17123 #include "confdefs.h"
17125 #ifdef HAVE_DB_185_H
17126 # include <db_185.h>
17131 #ifndef DB_VERSION_MAJOR
17132 # define DB_VERSION_MAJOR 1
17136 #define NULL ((void*)0)
17141 #if DB_VERSION_MAJOR > 1
17144 int major, minor, patch;
17146 version = db_version( &major, &minor, &patch );
17148 if( major != DB_VERSION_MAJOR ||
17149 minor < DB_VERSION_MINOR )
17151 printf("Berkeley DB version mismatch\n"
17152 "\texpected: %s\n\tgot: %s\n",
17153 DB_VERSION_STRING, version);
17159 #if DB_VERSION_MAJOR > 2
17160 db_env_create( NULL, 0 );
17161 #elif DB_VERSION_MAJOR > 1
17162 db_appexit( NULL );
17164 (void) dbopen( NULL, 0, 0, 0, NULL);
17169 if { (eval echo configure:17170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17173 echo "configure: failed program was:" >&5
17174 cat conftest.$ac_ext >&5
17184 echo "$ac_t""$ol_cv_db_none" 1>&6
17186 if test $ol_cv_db_none = yes ; then
17191 if test $ol_cv_lib_db = no ; then
17192 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17193 echo "configure:17194: checking for Berkeley DB link (-ldb4)" >&5
17194 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17195 echo $ac_n "(cached) $ac_c" 1>&6
17200 LIBS="$ol_DB_LIB $LIBS"
17202 cat > conftest.$ac_ext <<EOF
17203 #line 17204 "configure"
17204 #include "confdefs.h"
17206 #ifdef HAVE_DB_185_H
17207 # include <db_185.h>
17212 #ifndef DB_VERSION_MAJOR
17213 # define DB_VERSION_MAJOR 1
17217 #define NULL ((void*)0)
17222 #if DB_VERSION_MAJOR > 1
17225 int major, minor, patch;
17227 version = db_version( &major, &minor, &patch );
17229 if( major != DB_VERSION_MAJOR ||
17230 minor < DB_VERSION_MINOR )
17232 printf("Berkeley DB version mismatch\n"
17233 "\texpected: %s\n\tgot: %s\n",
17234 DB_VERSION_STRING, version);
17240 #if DB_VERSION_MAJOR > 2
17241 db_env_create( NULL, 0 );
17242 #elif DB_VERSION_MAJOR > 1
17243 db_appexit( NULL );
17245 (void) dbopen( NULL, 0, 0, 0, NULL);
17250 if { (eval echo configure:17251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17254 echo "configure: failed program was:" >&5
17255 cat conftest.$ac_ext >&5
17265 echo "$ac_t""$ol_cv_db_db4" 1>&6
17267 if test $ol_cv_db_db4 = yes ; then
17272 if test $ol_cv_lib_db = no ; then
17273 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17274 echo "configure:17275: checking for Berkeley DB link (-ldb-4)" >&5
17275 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17276 echo $ac_n "(cached) $ac_c" 1>&6
17281 LIBS="$ol_DB_LIB $LIBS"
17283 cat > conftest.$ac_ext <<EOF
17284 #line 17285 "configure"
17285 #include "confdefs.h"
17287 #ifdef HAVE_DB_185_H
17288 # include <db_185.h>
17293 #ifndef DB_VERSION_MAJOR
17294 # define DB_VERSION_MAJOR 1
17298 #define NULL ((void*)0)
17303 #if DB_VERSION_MAJOR > 1
17306 int major, minor, patch;
17308 version = db_version( &major, &minor, &patch );
17310 if( major != DB_VERSION_MAJOR ||
17311 minor < DB_VERSION_MINOR )
17313 printf("Berkeley DB version mismatch\n"
17314 "\texpected: %s\n\tgot: %s\n",
17315 DB_VERSION_STRING, version);
17321 #if DB_VERSION_MAJOR > 2
17322 db_env_create( NULL, 0 );
17323 #elif DB_VERSION_MAJOR > 1
17324 db_appexit( NULL );
17326 (void) dbopen( NULL, 0, 0, 0, NULL);
17331 if { (eval echo configure:17332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17335 echo "configure: failed program was:" >&5
17336 cat conftest.$ac_ext >&5
17346 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17348 if test $ol_cv_db_db_4 = yes ; then
17349 ol_cv_lib_db=-ldb-4
17353 if test $ol_cv_lib_db = no ; then
17354 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17355 echo "configure:17356: checking for Berkeley DB link (-ldb)" >&5
17356 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17357 echo $ac_n "(cached) $ac_c" 1>&6
17362 LIBS="$ol_DB_LIB $LIBS"
17364 cat > conftest.$ac_ext <<EOF
17365 #line 17366 "configure"
17366 #include "confdefs.h"
17368 #ifdef HAVE_DB_185_H
17369 # include <db_185.h>
17374 #ifndef DB_VERSION_MAJOR
17375 # define DB_VERSION_MAJOR 1
17379 #define NULL ((void*)0)
17384 #if DB_VERSION_MAJOR > 1
17387 int major, minor, patch;
17389 version = db_version( &major, &minor, &patch );
17391 if( major != DB_VERSION_MAJOR ||
17392 minor < DB_VERSION_MINOR )
17394 printf("Berkeley DB version mismatch\n"
17395 "\texpected: %s\n\tgot: %s\n",
17396 DB_VERSION_STRING, version);
17402 #if DB_VERSION_MAJOR > 2
17403 db_env_create( NULL, 0 );
17404 #elif DB_VERSION_MAJOR > 1
17405 db_appexit( NULL );
17407 (void) dbopen( NULL, 0, 0, 0, NULL);
17412 if { (eval echo configure:17413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17416 echo "configure: failed program was:" >&5
17417 cat conftest.$ac_ext >&5
17427 echo "$ac_t""$ol_cv_db_db" 1>&6
17429 if test $ol_cv_db_db = yes ; then
17434 if test $ol_cv_lib_db = no ; then
17435 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17436 echo "configure:17437: checking for Berkeley DB link (-ldb3)" >&5
17437 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17438 echo $ac_n "(cached) $ac_c" 1>&6
17443 LIBS="$ol_DB_LIB $LIBS"
17445 cat > conftest.$ac_ext <<EOF
17446 #line 17447 "configure"
17447 #include "confdefs.h"
17449 #ifdef HAVE_DB_185_H
17450 # include <db_185.h>
17455 #ifndef DB_VERSION_MAJOR
17456 # define DB_VERSION_MAJOR 1
17460 #define NULL ((void*)0)
17465 #if DB_VERSION_MAJOR > 1
17468 int major, minor, patch;
17470 version = db_version( &major, &minor, &patch );
17472 if( major != DB_VERSION_MAJOR ||
17473 minor < DB_VERSION_MINOR )
17475 printf("Berkeley DB version mismatch\n"
17476 "\texpected: %s\n\tgot: %s\n",
17477 DB_VERSION_STRING, version);
17483 #if DB_VERSION_MAJOR > 2
17484 db_env_create( NULL, 0 );
17485 #elif DB_VERSION_MAJOR > 1
17486 db_appexit( NULL );
17488 (void) dbopen( NULL, 0, 0, 0, NULL);
17493 if { (eval echo configure:17494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17497 echo "configure: failed program was:" >&5
17498 cat conftest.$ac_ext >&5
17508 echo "$ac_t""$ol_cv_db_db3" 1>&6
17510 if test $ol_cv_db_db3 = yes ; then
17515 if test $ol_cv_lib_db = no ; then
17516 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17517 echo "configure:17518: checking for Berkeley DB link (-ldb-3)" >&5
17518 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17519 echo $ac_n "(cached) $ac_c" 1>&6
17524 LIBS="$ol_DB_LIB $LIBS"
17526 cat > conftest.$ac_ext <<EOF
17527 #line 17528 "configure"
17528 #include "confdefs.h"
17530 #ifdef HAVE_DB_185_H
17531 # include <db_185.h>
17536 #ifndef DB_VERSION_MAJOR
17537 # define DB_VERSION_MAJOR 1
17541 #define NULL ((void*)0)
17546 #if DB_VERSION_MAJOR > 1
17549 int major, minor, patch;
17551 version = db_version( &major, &minor, &patch );
17553 if( major != DB_VERSION_MAJOR ||
17554 minor < DB_VERSION_MINOR )
17556 printf("Berkeley DB version mismatch\n"
17557 "\texpected: %s\n\tgot: %s\n",
17558 DB_VERSION_STRING, version);
17564 #if DB_VERSION_MAJOR > 2
17565 db_env_create( NULL, 0 );
17566 #elif DB_VERSION_MAJOR > 1
17567 db_appexit( NULL );
17569 (void) dbopen( NULL, 0, 0, 0, NULL);
17574 if { (eval echo configure:17575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17578 echo "configure: failed program was:" >&5
17579 cat conftest.$ac_ext >&5
17589 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17591 if test $ol_cv_db_db_3 = yes ; then
17592 ol_cv_lib_db=-ldb-3
17596 if test $ol_cv_lib_db = no ; then
17597 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17598 echo "configure:17599: checking for Berkeley DB link (-ldb2)" >&5
17599 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17600 echo $ac_n "(cached) $ac_c" 1>&6
17605 LIBS="$ol_DB_LIB $LIBS"
17607 cat > conftest.$ac_ext <<EOF
17608 #line 17609 "configure"
17609 #include "confdefs.h"
17611 #ifdef HAVE_DB_185_H
17612 # include <db_185.h>
17617 #ifndef DB_VERSION_MAJOR
17618 # define DB_VERSION_MAJOR 1
17622 #define NULL ((void*)0)
17627 #if DB_VERSION_MAJOR > 1
17630 int major, minor, patch;
17632 version = db_version( &major, &minor, &patch );
17634 if( major != DB_VERSION_MAJOR ||
17635 minor < DB_VERSION_MINOR )
17637 printf("Berkeley DB version mismatch\n"
17638 "\texpected: %s\n\tgot: %s\n",
17639 DB_VERSION_STRING, version);
17645 #if DB_VERSION_MAJOR > 2
17646 db_env_create( NULL, 0 );
17647 #elif DB_VERSION_MAJOR > 1
17648 db_appexit( NULL );
17650 (void) dbopen( NULL, 0, 0, 0, NULL);
17655 if { (eval echo configure:17656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17659 echo "configure: failed program was:" >&5
17660 cat conftest.$ac_ext >&5
17670 echo "$ac_t""$ol_cv_db_db2" 1>&6
17672 if test $ol_cv_db_db2 = yes ; then
17677 if test $ol_cv_lib_db = no ; then
17678 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17679 echo "configure:17680: checking for Berkeley DB link (-ldb-2)" >&5
17680 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17681 echo $ac_n "(cached) $ac_c" 1>&6
17686 LIBS="$ol_DB_LIB $LIBS"
17688 cat > conftest.$ac_ext <<EOF
17689 #line 17690 "configure"
17690 #include "confdefs.h"
17692 #ifdef HAVE_DB_185_H
17693 # include <db_185.h>
17698 #ifndef DB_VERSION_MAJOR
17699 # define DB_VERSION_MAJOR 1
17703 #define NULL ((void*)0)
17708 #if DB_VERSION_MAJOR > 1
17711 int major, minor, patch;
17713 version = db_version( &major, &minor, &patch );
17715 if( major != DB_VERSION_MAJOR ||
17716 minor < DB_VERSION_MINOR )
17718 printf("Berkeley DB version mismatch\n"
17719 "\texpected: %s\n\tgot: %s\n",
17720 DB_VERSION_STRING, version);
17726 #if DB_VERSION_MAJOR > 2
17727 db_env_create( NULL, 0 );
17728 #elif DB_VERSION_MAJOR > 1
17729 db_appexit( NULL );
17731 (void) dbopen( NULL, 0, 0, 0, NULL);
17736 if { (eval echo configure:17737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17740 echo "configure: failed program was:" >&5
17741 cat conftest.$ac_ext >&5
17751 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17753 if test $ol_cv_db_db_2 = yes ; then
17754 ol_cv_lib_db=-ldb-2
17758 if test $ol_cv_lib_db = no ; then
17759 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17760 echo "configure:17761: checking for Berkeley DB link (-ldb1)" >&5
17761 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17762 echo $ac_n "(cached) $ac_c" 1>&6
17767 LIBS="$ol_DB_LIB $LIBS"
17769 cat > conftest.$ac_ext <<EOF
17770 #line 17771 "configure"
17771 #include "confdefs.h"
17773 #ifdef HAVE_DB_185_H
17774 # include <db_185.h>
17779 #ifndef DB_VERSION_MAJOR
17780 # define DB_VERSION_MAJOR 1
17784 #define NULL ((void*)0)
17789 #if DB_VERSION_MAJOR > 1
17792 int major, minor, patch;
17794 version = db_version( &major, &minor, &patch );
17796 if( major != DB_VERSION_MAJOR ||
17797 minor < DB_VERSION_MINOR )
17799 printf("Berkeley DB version mismatch\n"
17800 "\texpected: %s\n\tgot: %s\n",
17801 DB_VERSION_STRING, version);
17807 #if DB_VERSION_MAJOR > 2
17808 db_env_create( NULL, 0 );
17809 #elif DB_VERSION_MAJOR > 1
17810 db_appexit( NULL );
17812 (void) dbopen( NULL, 0, 0, 0, NULL);
17817 if { (eval echo configure:17818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17821 echo "configure: failed program was:" >&5
17822 cat conftest.$ac_ext >&5
17832 echo "$ac_t""$ol_cv_db_db1" 1>&6
17834 if test $ol_cv_db_db1 = yes ; then
17839 if test $ol_cv_lib_db = no ; then
17840 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17841 echo "configure:17842: checking for Berkeley DB link (-ldb-1)" >&5
17842 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17843 echo $ac_n "(cached) $ac_c" 1>&6
17848 LIBS="$ol_DB_LIB $LIBS"
17850 cat > conftest.$ac_ext <<EOF
17851 #line 17852 "configure"
17852 #include "confdefs.h"
17854 #ifdef HAVE_DB_185_H
17855 # include <db_185.h>
17860 #ifndef DB_VERSION_MAJOR
17861 # define DB_VERSION_MAJOR 1
17865 #define NULL ((void*)0)
17870 #if DB_VERSION_MAJOR > 1
17873 int major, minor, patch;
17875 version = db_version( &major, &minor, &patch );
17877 if( major != DB_VERSION_MAJOR ||
17878 minor < DB_VERSION_MINOR )
17880 printf("Berkeley DB version mismatch\n"
17881 "\texpected: %s\n\tgot: %s\n",
17882 DB_VERSION_STRING, version);
17888 #if DB_VERSION_MAJOR > 2
17889 db_env_create( NULL, 0 );
17890 #elif DB_VERSION_MAJOR > 1
17891 db_appexit( NULL );
17893 (void) dbopen( NULL, 0, 0, 0, NULL);
17898 if { (eval echo configure:17899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17902 echo "configure: failed program was:" >&5
17903 cat conftest.$ac_ext >&5
17913 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17915 if test $ol_cv_db_db_1 = yes ; then
17916 ol_cv_lib_db=-ldb-1
17921 if test "$ol_cv_lib_db" != no ; then
17922 ol_cv_berkeley_db=yes
17928 ol_cv_berkeley_db=no
17931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17933 echo "configure:17934: checking for $ac_hdr" >&5
17934 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17935 echo $ac_n "(cached) $ac_c" 1>&6
17937 cat > conftest.$ac_ext <<EOF
17938 #line 17939 "configure"
17939 #include "confdefs.h"
17942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17943 { (eval echo configure:17944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17945 if test -z "$ac_err"; then
17947 eval "ac_cv_header_$ac_safe=yes"
17950 echo "configure: failed program was:" >&5
17951 cat conftest.$ac_ext >&5
17953 eval "ac_cv_header_$ac_safe=no"
17957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17958 echo "$ac_t""yes" 1>&6
17959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17960 cat >> confdefs.h <<EOF
17961 #define $ac_tr_hdr 1
17965 echo "$ac_t""no" 1>&6
17969 if test $ac_cv_header_db_h = yes; then
17971 if test $ol_cv_lib_db = no ; then
17972 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17973 echo "configure:17974: checking for Berkeley DB link (default)" >&5
17974 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17975 echo $ac_n "(cached) $ac_c" 1>&6
17980 LIBS="$ol_DB_LIB $LIBS"
17982 cat > conftest.$ac_ext <<EOF
17983 #line 17984 "configure"
17984 #include "confdefs.h"
17986 #ifdef HAVE_DB_185_H
17987 # include <db_185.h>
17992 #ifndef DB_VERSION_MAJOR
17993 # define DB_VERSION_MAJOR 1
17997 #define NULL ((void*)0)
18002 #if DB_VERSION_MAJOR > 1
18005 int major, minor, patch;
18007 version = db_version( &major, &minor, &patch );
18009 if( major != DB_VERSION_MAJOR ||
18010 minor < DB_VERSION_MINOR )
18012 printf("Berkeley DB version mismatch\n"
18013 "\texpected: %s\n\tgot: %s\n",
18014 DB_VERSION_STRING, version);
18020 #if DB_VERSION_MAJOR > 2
18021 db_env_create( NULL, 0 );
18022 #elif DB_VERSION_MAJOR > 1
18023 db_appexit( NULL );
18025 (void) dbopen( NULL, 0, 0, 0, NULL);
18030 if { (eval echo configure:18031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18034 echo "configure: failed program was:" >&5
18035 cat conftest.$ac_ext >&5
18045 echo "$ac_t""$ol_cv_db_none" 1>&6
18047 if test $ol_cv_db_none = yes ; then
18052 if test $ol_cv_lib_db = no ; then
18053 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18054 echo "configure:18055: checking for Berkeley DB link (-ldb4)" >&5
18055 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18056 echo $ac_n "(cached) $ac_c" 1>&6
18061 LIBS="$ol_DB_LIB $LIBS"
18063 cat > conftest.$ac_ext <<EOF
18064 #line 18065 "configure"
18065 #include "confdefs.h"
18067 #ifdef HAVE_DB_185_H
18068 # include <db_185.h>
18073 #ifndef DB_VERSION_MAJOR
18074 # define DB_VERSION_MAJOR 1
18078 #define NULL ((void*)0)
18083 #if DB_VERSION_MAJOR > 1
18086 int major, minor, patch;
18088 version = db_version( &major, &minor, &patch );
18090 if( major != DB_VERSION_MAJOR ||
18091 minor < DB_VERSION_MINOR )
18093 printf("Berkeley DB version mismatch\n"
18094 "\texpected: %s\n\tgot: %s\n",
18095 DB_VERSION_STRING, version);
18101 #if DB_VERSION_MAJOR > 2
18102 db_env_create( NULL, 0 );
18103 #elif DB_VERSION_MAJOR > 1
18104 db_appexit( NULL );
18106 (void) dbopen( NULL, 0, 0, 0, NULL);
18111 if { (eval echo configure:18112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18115 echo "configure: failed program was:" >&5
18116 cat conftest.$ac_ext >&5
18126 echo "$ac_t""$ol_cv_db_db4" 1>&6
18128 if test $ol_cv_db_db4 = yes ; then
18133 if test $ol_cv_lib_db = no ; then
18134 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18135 echo "configure:18136: checking for Berkeley DB link (-ldb-4)" >&5
18136 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18137 echo $ac_n "(cached) $ac_c" 1>&6
18142 LIBS="$ol_DB_LIB $LIBS"
18144 cat > conftest.$ac_ext <<EOF
18145 #line 18146 "configure"
18146 #include "confdefs.h"
18148 #ifdef HAVE_DB_185_H
18149 # include <db_185.h>
18154 #ifndef DB_VERSION_MAJOR
18155 # define DB_VERSION_MAJOR 1
18159 #define NULL ((void*)0)
18164 #if DB_VERSION_MAJOR > 1
18167 int major, minor, patch;
18169 version = db_version( &major, &minor, &patch );
18171 if( major != DB_VERSION_MAJOR ||
18172 minor < DB_VERSION_MINOR )
18174 printf("Berkeley DB version mismatch\n"
18175 "\texpected: %s\n\tgot: %s\n",
18176 DB_VERSION_STRING, version);
18182 #if DB_VERSION_MAJOR > 2
18183 db_env_create( NULL, 0 );
18184 #elif DB_VERSION_MAJOR > 1
18185 db_appexit( NULL );
18187 (void) dbopen( NULL, 0, 0, 0, NULL);
18192 if { (eval echo configure:18193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18196 echo "configure: failed program was:" >&5
18197 cat conftest.$ac_ext >&5
18207 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18209 if test $ol_cv_db_db_4 = yes ; then
18210 ol_cv_lib_db=-ldb-4
18214 if test $ol_cv_lib_db = no ; then
18215 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18216 echo "configure:18217: checking for Berkeley DB link (-ldb)" >&5
18217 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18218 echo $ac_n "(cached) $ac_c" 1>&6
18223 LIBS="$ol_DB_LIB $LIBS"
18225 cat > conftest.$ac_ext <<EOF
18226 #line 18227 "configure"
18227 #include "confdefs.h"
18229 #ifdef HAVE_DB_185_H
18230 # include <db_185.h>
18235 #ifndef DB_VERSION_MAJOR
18236 # define DB_VERSION_MAJOR 1
18240 #define NULL ((void*)0)
18245 #if DB_VERSION_MAJOR > 1
18248 int major, minor, patch;
18250 version = db_version( &major, &minor, &patch );
18252 if( major != DB_VERSION_MAJOR ||
18253 minor < DB_VERSION_MINOR )
18255 printf("Berkeley DB version mismatch\n"
18256 "\texpected: %s\n\tgot: %s\n",
18257 DB_VERSION_STRING, version);
18263 #if DB_VERSION_MAJOR > 2
18264 db_env_create( NULL, 0 );
18265 #elif DB_VERSION_MAJOR > 1
18266 db_appexit( NULL );
18268 (void) dbopen( NULL, 0, 0, 0, NULL);
18273 if { (eval echo configure:18274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18277 echo "configure: failed program was:" >&5
18278 cat conftest.$ac_ext >&5
18288 echo "$ac_t""$ol_cv_db_db" 1>&6
18290 if test $ol_cv_db_db = yes ; then
18295 if test $ol_cv_lib_db = no ; then
18296 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18297 echo "configure:18298: checking for Berkeley DB link (-ldb3)" >&5
18298 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18299 echo $ac_n "(cached) $ac_c" 1>&6
18304 LIBS="$ol_DB_LIB $LIBS"
18306 cat > conftest.$ac_ext <<EOF
18307 #line 18308 "configure"
18308 #include "confdefs.h"
18310 #ifdef HAVE_DB_185_H
18311 # include <db_185.h>
18316 #ifndef DB_VERSION_MAJOR
18317 # define DB_VERSION_MAJOR 1
18321 #define NULL ((void*)0)
18326 #if DB_VERSION_MAJOR > 1
18329 int major, minor, patch;
18331 version = db_version( &major, &minor, &patch );
18333 if( major != DB_VERSION_MAJOR ||
18334 minor < DB_VERSION_MINOR )
18336 printf("Berkeley DB version mismatch\n"
18337 "\texpected: %s\n\tgot: %s\n",
18338 DB_VERSION_STRING, version);
18344 #if DB_VERSION_MAJOR > 2
18345 db_env_create( NULL, 0 );
18346 #elif DB_VERSION_MAJOR > 1
18347 db_appexit( NULL );
18349 (void) dbopen( NULL, 0, 0, 0, NULL);
18354 if { (eval echo configure:18355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18358 echo "configure: failed program was:" >&5
18359 cat conftest.$ac_ext >&5
18369 echo "$ac_t""$ol_cv_db_db3" 1>&6
18371 if test $ol_cv_db_db3 = yes ; then
18376 if test $ol_cv_lib_db = no ; then
18377 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18378 echo "configure:18379: checking for Berkeley DB link (-ldb-3)" >&5
18379 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18380 echo $ac_n "(cached) $ac_c" 1>&6
18385 LIBS="$ol_DB_LIB $LIBS"
18387 cat > conftest.$ac_ext <<EOF
18388 #line 18389 "configure"
18389 #include "confdefs.h"
18391 #ifdef HAVE_DB_185_H
18392 # include <db_185.h>
18397 #ifndef DB_VERSION_MAJOR
18398 # define DB_VERSION_MAJOR 1
18402 #define NULL ((void*)0)
18407 #if DB_VERSION_MAJOR > 1
18410 int major, minor, patch;
18412 version = db_version( &major, &minor, &patch );
18414 if( major != DB_VERSION_MAJOR ||
18415 minor < DB_VERSION_MINOR )
18417 printf("Berkeley DB version mismatch\n"
18418 "\texpected: %s\n\tgot: %s\n",
18419 DB_VERSION_STRING, version);
18425 #if DB_VERSION_MAJOR > 2
18426 db_env_create( NULL, 0 );
18427 #elif DB_VERSION_MAJOR > 1
18428 db_appexit( NULL );
18430 (void) dbopen( NULL, 0, 0, 0, NULL);
18435 if { (eval echo configure:18436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18439 echo "configure: failed program was:" >&5
18440 cat conftest.$ac_ext >&5
18450 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18452 if test $ol_cv_db_db_3 = yes ; then
18453 ol_cv_lib_db=-ldb-3
18457 if test $ol_cv_lib_db = no ; then
18458 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18459 echo "configure:18460: checking for Berkeley DB link (-ldb2)" >&5
18460 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18461 echo $ac_n "(cached) $ac_c" 1>&6
18466 LIBS="$ol_DB_LIB $LIBS"
18468 cat > conftest.$ac_ext <<EOF
18469 #line 18470 "configure"
18470 #include "confdefs.h"
18472 #ifdef HAVE_DB_185_H
18473 # include <db_185.h>
18478 #ifndef DB_VERSION_MAJOR
18479 # define DB_VERSION_MAJOR 1
18483 #define NULL ((void*)0)
18488 #if DB_VERSION_MAJOR > 1
18491 int major, minor, patch;
18493 version = db_version( &major, &minor, &patch );
18495 if( major != DB_VERSION_MAJOR ||
18496 minor < DB_VERSION_MINOR )
18498 printf("Berkeley DB version mismatch\n"
18499 "\texpected: %s\n\tgot: %s\n",
18500 DB_VERSION_STRING, version);
18506 #if DB_VERSION_MAJOR > 2
18507 db_env_create( NULL, 0 );
18508 #elif DB_VERSION_MAJOR > 1
18509 db_appexit( NULL );
18511 (void) dbopen( NULL, 0, 0, 0, NULL);
18516 if { (eval echo configure:18517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18520 echo "configure: failed program was:" >&5
18521 cat conftest.$ac_ext >&5
18531 echo "$ac_t""$ol_cv_db_db2" 1>&6
18533 if test $ol_cv_db_db2 = yes ; then
18538 if test $ol_cv_lib_db = no ; then
18539 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18540 echo "configure:18541: checking for Berkeley DB link (-ldb-2)" >&5
18541 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18542 echo $ac_n "(cached) $ac_c" 1>&6
18547 LIBS="$ol_DB_LIB $LIBS"
18549 cat > conftest.$ac_ext <<EOF
18550 #line 18551 "configure"
18551 #include "confdefs.h"
18553 #ifdef HAVE_DB_185_H
18554 # include <db_185.h>
18559 #ifndef DB_VERSION_MAJOR
18560 # define DB_VERSION_MAJOR 1
18564 #define NULL ((void*)0)
18569 #if DB_VERSION_MAJOR > 1
18572 int major, minor, patch;
18574 version = db_version( &major, &minor, &patch );
18576 if( major != DB_VERSION_MAJOR ||
18577 minor < DB_VERSION_MINOR )
18579 printf("Berkeley DB version mismatch\n"
18580 "\texpected: %s\n\tgot: %s\n",
18581 DB_VERSION_STRING, version);
18587 #if DB_VERSION_MAJOR > 2
18588 db_env_create( NULL, 0 );
18589 #elif DB_VERSION_MAJOR > 1
18590 db_appexit( NULL );
18592 (void) dbopen( NULL, 0, 0, 0, NULL);
18597 if { (eval echo configure:18598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18601 echo "configure: failed program was:" >&5
18602 cat conftest.$ac_ext >&5
18612 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18614 if test $ol_cv_db_db_2 = yes ; then
18615 ol_cv_lib_db=-ldb-2
18619 if test $ol_cv_lib_db = no ; then
18620 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18621 echo "configure:18622: checking for Berkeley DB link (-ldb1)" >&5
18622 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18623 echo $ac_n "(cached) $ac_c" 1>&6
18628 LIBS="$ol_DB_LIB $LIBS"
18630 cat > conftest.$ac_ext <<EOF
18631 #line 18632 "configure"
18632 #include "confdefs.h"
18634 #ifdef HAVE_DB_185_H
18635 # include <db_185.h>
18640 #ifndef DB_VERSION_MAJOR
18641 # define DB_VERSION_MAJOR 1
18645 #define NULL ((void*)0)
18650 #if DB_VERSION_MAJOR > 1
18653 int major, minor, patch;
18655 version = db_version( &major, &minor, &patch );
18657 if( major != DB_VERSION_MAJOR ||
18658 minor < DB_VERSION_MINOR )
18660 printf("Berkeley DB version mismatch\n"
18661 "\texpected: %s\n\tgot: %s\n",
18662 DB_VERSION_STRING, version);
18668 #if DB_VERSION_MAJOR > 2
18669 db_env_create( NULL, 0 );
18670 #elif DB_VERSION_MAJOR > 1
18671 db_appexit( NULL );
18673 (void) dbopen( NULL, 0, 0, 0, NULL);
18678 if { (eval echo configure:18679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18682 echo "configure: failed program was:" >&5
18683 cat conftest.$ac_ext >&5
18693 echo "$ac_t""$ol_cv_db_db1" 1>&6
18695 if test $ol_cv_db_db1 = yes ; then
18700 if test $ol_cv_lib_db = no ; then
18701 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18702 echo "configure:18703: checking for Berkeley DB link (-ldb-1)" >&5
18703 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18704 echo $ac_n "(cached) $ac_c" 1>&6
18709 LIBS="$ol_DB_LIB $LIBS"
18711 cat > conftest.$ac_ext <<EOF
18712 #line 18713 "configure"
18713 #include "confdefs.h"
18715 #ifdef HAVE_DB_185_H
18716 # include <db_185.h>
18721 #ifndef DB_VERSION_MAJOR
18722 # define DB_VERSION_MAJOR 1
18726 #define NULL ((void*)0)
18731 #if DB_VERSION_MAJOR > 1
18734 int major, minor, patch;
18736 version = db_version( &major, &minor, &patch );
18738 if( major != DB_VERSION_MAJOR ||
18739 minor < DB_VERSION_MINOR )
18741 printf("Berkeley DB version mismatch\n"
18742 "\texpected: %s\n\tgot: %s\n",
18743 DB_VERSION_STRING, version);
18749 #if DB_VERSION_MAJOR > 2
18750 db_env_create( NULL, 0 );
18751 #elif DB_VERSION_MAJOR > 1
18752 db_appexit( NULL );
18754 (void) dbopen( NULL, 0, 0, 0, NULL);
18759 if { (eval echo configure:18760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18763 echo "configure: failed program was:" >&5
18764 cat conftest.$ac_ext >&5
18774 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18776 if test $ol_cv_db_db_1 = yes ; then
18777 ol_cv_lib_db=-ldb-1
18782 if test "$ol_cv_lib_db" != no ; then
18783 ol_cv_berkeley_db=yes
18784 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18785 echo "configure:18786: checking for Berkeley DB thread support" >&5
18786 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18787 echo $ac_n "(cached) $ac_c" 1>&6
18791 if test $ol_cv_lib_db != yes ; then
18792 LIBS="$ol_cv_lib_db"
18795 if test "$cross_compiling" = yes; then
18796 ol_cv_berkeley_db_thread=cross
18798 cat > conftest.$ac_ext <<EOF
18799 #line 18800 "configure"
18800 #include "confdefs.h"
18802 #ifdef HAVE_DB_185_H
18808 #define NULL ((void *)0)
18813 u_int32_t flags = DB_CREATE |
18819 #if DB_VERSION_MAJOR > 2
18820 DB_ENV *env = NULL;
18822 rc = db_env_create( &env, 0 );
18824 flags |= DB_INIT_MPOOL;
18825 #ifdef DB_MPOOL_PRIVATE
18826 flags |= DB_MPOOL_PRIVATE;
18830 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18834 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18835 rc = env->open( env, NULL, flags, 0 );
18837 rc = env->open( env, NULL, NULL, flags, 0 );
18841 rc = env->close( env, 0 );
18845 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18851 memset( &env, '\0', sizeof(env) );
18853 rc = db_appinit( NULL, NULL, &env, flags );
18856 db_appexit( &env );
18859 unlink("__db_mpool.share");
18860 unlink("__db_lock.share");
18866 if { (eval echo configure:18867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18868 ol_cv_berkeley_db_thread=yes
18870 echo "configure: failed program was:" >&5
18871 cat conftest.$ac_ext >&5
18873 ol_cv_berkeley_db_thread=no
18881 if test $ol_cv_berkeley_db_thread != no ; then
18882 cat >> confdefs.h <<\EOF
18883 #define HAVE_BERKELEY_DB_THREAD 1
18890 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18896 if test $ol_cv_berkeley_db != no ; then
18897 cat >> confdefs.h <<\EOF
18898 #define HAVE_BERKELEY_DB 1
18902 ol_link_ldbm=berkeley
18903 ol_with_ldbm_api=berkeley
18905 if test $ol_with_ldbm_type = hash ; then
18906 cat >> confdefs.h <<\EOF
18907 #define LDBM_USE_DBHASH 1
18911 cat >> confdefs.h <<\EOF
18912 #define LDBM_USE_DBBTREE 1
18917 if test $ol_cv_lib_db != yes ; then
18918 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18923 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18924 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18925 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18926 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18927 echo "configure:18928: checking Berkeley DB version for BDB backend" >&5
18928 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18929 echo $ac_n "(cached) $ac_c" 1>&6
18932 cat > conftest.$ac_ext <<EOF
18933 #line 18934 "configure"
18934 #include "confdefs.h"
18938 /* this check could be improved */
18939 #ifndef DB_VERSION_MAJOR
18940 # define DB_VERSION_MAJOR 1
18943 /* require 4.0 or later */
18944 #if DB_VERSION_MAJOR >= 4
18945 __db_version_compat
18949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18950 egrep "__db_version_compat" >/dev/null 2>&1; then
18952 ol_cv_bdb_compat=yes
18955 ol_cv_bdb_compat=no
18961 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18964 if test $ol_cv_bdb_compat = yes ; then
18966 elif test $ol_enable_bdb = yes ; then
18967 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18973 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18974 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18975 ol_with_ldbm_api=none
18978 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18979 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18980 echo "configure:18981: checking for MDBM library" >&5
18981 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18982 echo $ac_n "(cached) $ac_c" 1>&6
18985 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18986 echo "configure:18987: checking for mdbm_set_chain" >&5
18987 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18988 echo $ac_n "(cached) $ac_c" 1>&6
18990 cat > conftest.$ac_ext <<EOF
18991 #line 18992 "configure"
18992 #include "confdefs.h"
18993 /* System header to define __stub macros and hopefully few prototypes,
18994 which can conflict with char mdbm_set_chain(); below. */
18995 #include <assert.h>
18996 /* Override any gcc2 internal prototype to avoid an error. */
18997 /* We use char because int might match the return type of a gcc2
18998 builtin and then its argument prototype would still apply. */
18999 char mdbm_set_chain();
19004 /* The GNU C library defines this for functions which it implements
19005 to always fail with ENOSYS. Some functions are actually named
19006 something starting with __ and the normal name is an alias. */
19007 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19010 f = mdbm_set_chain;
19015 if { (eval echo configure:19016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19017 eval "ac_cv_func_mdbm_set_chain=yes"
19019 echo "configure: failed program was:" >&5
19020 cat conftest.$ac_ext >&5
19022 eval "ac_cv_func_mdbm_set_chain=no"
19027 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19028 echo "$ac_t""yes" 1>&6
19031 echo "$ac_t""no" 1>&6
19033 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19034 echo "configure:19035: checking for mdbm_set_chain in -lmdbm" >&5
19035 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19037 echo $ac_n "(cached) $ac_c" 1>&6
19039 ac_save_LIBS="$LIBS"
19040 LIBS="-lmdbm $LIBS"
19041 cat > conftest.$ac_ext <<EOF
19042 #line 19043 "configure"
19043 #include "confdefs.h"
19044 /* Override any gcc2 internal prototype to avoid an error. */
19045 /* We use char because int might match the return type of a gcc2
19046 builtin and then its argument prototype would still apply. */
19047 char mdbm_set_chain();
19053 if { (eval echo configure:19054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19055 eval "ac_cv_lib_$ac_lib_var=yes"
19057 echo "configure: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19060 eval "ac_cv_lib_$ac_lib_var=no"
19063 LIBS="$ac_save_LIBS"
19066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19067 echo "$ac_t""yes" 1>&6
19068 ol_cv_lib_mdbm=-lmdbm
19070 echo "$ac_t""no" 1>&6
19081 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19084 for ac_hdr in mdbm.h
19086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19088 echo "configure:19089: checking for $ac_hdr" >&5
19089 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19090 echo $ac_n "(cached) $ac_c" 1>&6
19092 cat > conftest.$ac_ext <<EOF
19093 #line 19094 "configure"
19094 #include "confdefs.h"
19097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19098 { (eval echo configure:19099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19100 if test -z "$ac_err"; then
19102 eval "ac_cv_header_$ac_safe=yes"
19105 echo "configure: failed program was:" >&5
19106 cat conftest.$ac_ext >&5
19108 eval "ac_cv_header_$ac_safe=no"
19112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19113 echo "$ac_t""yes" 1>&6
19114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19115 cat >> confdefs.h <<EOF
19116 #define $ac_tr_hdr 1
19120 echo "$ac_t""no" 1>&6
19124 echo $ac_n "checking for db""... $ac_c" 1>&6
19125 echo "configure:19126: checking for db" >&5
19126 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19127 echo $ac_n "(cached) $ac_c" 1>&6
19130 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19138 echo "$ac_t""$ol_cv_mdbm" 1>&6
19139 if test $ol_cv_mdbm = yes ; then
19140 cat >> confdefs.h <<\EOF
19141 #define HAVE_MDBM 1
19147 if test $ol_cv_mdbm = yes ; then
19149 ol_with_ldbm_api=mdbm
19150 if test $ol_cv_lib_mdbm != yes ; then
19151 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19156 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19157 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19158 echo "configure:19159: checking for GDBM library" >&5
19159 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19160 echo $ac_n "(cached) $ac_c" 1>&6
19163 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19164 echo "configure:19165: checking for gdbm_open" >&5
19165 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19166 echo $ac_n "(cached) $ac_c" 1>&6
19168 cat > conftest.$ac_ext <<EOF
19169 #line 19170 "configure"
19170 #include "confdefs.h"
19171 /* System header to define __stub macros and hopefully few prototypes,
19172 which can conflict with char gdbm_open(); below. */
19173 #include <assert.h>
19174 /* Override any gcc2 internal prototype to avoid an error. */
19175 /* We use char because int might match the return type of a gcc2
19176 builtin and then its argument prototype would still apply. */
19182 /* The GNU C library defines this for functions which it implements
19183 to always fail with ENOSYS. Some functions are actually named
19184 something starting with __ and the normal name is an alias. */
19185 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19193 if { (eval echo configure:19194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19195 eval "ac_cv_func_gdbm_open=yes"
19197 echo "configure: failed program was:" >&5
19198 cat conftest.$ac_ext >&5
19200 eval "ac_cv_func_gdbm_open=no"
19205 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19206 echo "$ac_t""yes" 1>&6
19209 echo "$ac_t""no" 1>&6
19211 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19212 echo "configure:19213: checking for gdbm_open in -lgdbm" >&5
19213 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19215 echo $ac_n "(cached) $ac_c" 1>&6
19217 ac_save_LIBS="$LIBS"
19218 LIBS="-lgdbm $LIBS"
19219 cat > conftest.$ac_ext <<EOF
19220 #line 19221 "configure"
19221 #include "confdefs.h"
19222 /* Override any gcc2 internal prototype to avoid an error. */
19223 /* We use char because int might match the return type of a gcc2
19224 builtin and then its argument prototype would still apply. */
19231 if { (eval echo configure:19232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19233 eval "ac_cv_lib_$ac_lib_var=yes"
19235 echo "configure: failed program was:" >&5
19236 cat conftest.$ac_ext >&5
19238 eval "ac_cv_lib_$ac_lib_var=no"
19241 LIBS="$ac_save_LIBS"
19244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19245 echo "$ac_t""yes" 1>&6
19246 ol_cv_lib_gdbm=-lgdbm
19248 echo "$ac_t""no" 1>&6
19259 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19262 for ac_hdr in gdbm.h
19264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19266 echo "configure:19267: checking for $ac_hdr" >&5
19267 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19268 echo $ac_n "(cached) $ac_c" 1>&6
19270 cat > conftest.$ac_ext <<EOF
19271 #line 19272 "configure"
19272 #include "confdefs.h"
19275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19276 { (eval echo configure:19277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19278 if test -z "$ac_err"; then
19280 eval "ac_cv_header_$ac_safe=yes"
19283 echo "configure: failed program was:" >&5
19284 cat conftest.$ac_ext >&5
19286 eval "ac_cv_header_$ac_safe=no"
19290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19291 echo "$ac_t""yes" 1>&6
19292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19293 cat >> confdefs.h <<EOF
19294 #define $ac_tr_hdr 1
19298 echo "$ac_t""no" 1>&6
19302 echo $ac_n "checking for db""... $ac_c" 1>&6
19303 echo "configure:19304: checking for db" >&5
19304 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19305 echo $ac_n "(cached) $ac_c" 1>&6
19308 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19316 echo "$ac_t""$ol_cv_gdbm" 1>&6
19317 if test $ol_cv_gdbm = yes ; then
19318 cat >> confdefs.h <<\EOF
19319 #define HAVE_GDBM 1
19325 if test $ol_cv_gdbm = yes ; then
19327 ol_with_ldbm_api=gdbm
19329 if test $ol_cv_lib_gdbm != yes ; then
19330 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19335 if test $ol_with_ldbm_api = ndbm ; then
19336 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19337 echo "configure:19338: checking for NDBM library" >&5
19338 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19339 echo $ac_n "(cached) $ac_c" 1>&6
19342 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19343 echo "configure:19344: checking for dbm_open" >&5
19344 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19345 echo $ac_n "(cached) $ac_c" 1>&6
19347 cat > conftest.$ac_ext <<EOF
19348 #line 19349 "configure"
19349 #include "confdefs.h"
19350 /* System header to define __stub macros and hopefully few prototypes,
19351 which can conflict with char dbm_open(); below. */
19352 #include <assert.h>
19353 /* Override any gcc2 internal prototype to avoid an error. */
19354 /* We use char because int might match the return type of a gcc2
19355 builtin and then its argument prototype would still apply. */
19361 /* The GNU C library defines this for functions which it implements
19362 to always fail with ENOSYS. Some functions are actually named
19363 something starting with __ and the normal name is an alias. */
19364 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19372 if { (eval echo configure:19373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19374 eval "ac_cv_func_dbm_open=yes"
19376 echo "configure: failed program was:" >&5
19377 cat conftest.$ac_ext >&5
19379 eval "ac_cv_func_dbm_open=no"
19384 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19385 echo "$ac_t""yes" 1>&6
19388 echo "$ac_t""no" 1>&6
19390 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19391 echo "configure:19392: checking for dbm_open in -lndbm" >&5
19392 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19394 echo $ac_n "(cached) $ac_c" 1>&6
19396 ac_save_LIBS="$LIBS"
19397 LIBS="-lndbm $LIBS"
19398 cat > conftest.$ac_ext <<EOF
19399 #line 19400 "configure"
19400 #include "confdefs.h"
19401 /* Override any gcc2 internal prototype to avoid an error. */
19402 /* We use char because int might match the return type of a gcc2
19403 builtin and then its argument prototype would still apply. */
19410 if { (eval echo configure:19411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412 eval "ac_cv_lib_$ac_lib_var=yes"
19414 echo "configure: failed program was:" >&5
19415 cat conftest.$ac_ext >&5
19417 eval "ac_cv_lib_$ac_lib_var=no"
19420 LIBS="$ac_save_LIBS"
19423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19424 echo "$ac_t""yes" 1>&6
19425 ol_cv_lib_ndbm=-lndbm
19427 echo "$ac_t""no" 1>&6
19429 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19430 echo "configure:19431: checking for dbm_open in -ldbm" >&5
19431 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19432 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19433 echo $ac_n "(cached) $ac_c" 1>&6
19435 ac_save_LIBS="$LIBS"
19437 cat > conftest.$ac_ext <<EOF
19438 #line 19439 "configure"
19439 #include "confdefs.h"
19440 /* Override any gcc2 internal prototype to avoid an error. */
19441 /* We use char because int might match the return type of a gcc2
19442 builtin and then its argument prototype would still apply. */
19449 if { (eval echo configure:19450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19451 eval "ac_cv_lib_$ac_lib_var=yes"
19453 echo "configure: failed program was:" >&5
19454 cat conftest.$ac_ext >&5
19456 eval "ac_cv_lib_$ac_lib_var=no"
19459 LIBS="$ac_save_LIBS"
19462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19463 echo "$ac_t""yes" 1>&6
19464 ol_cv_lib_ndbm=-ldbm
19466 echo "$ac_t""no" 1>&6
19479 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19482 for ac_hdr in ndbm.h
19484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19486 echo "configure:19487: checking for $ac_hdr" >&5
19487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19488 echo $ac_n "(cached) $ac_c" 1>&6
19490 cat > conftest.$ac_ext <<EOF
19491 #line 19492 "configure"
19492 #include "confdefs.h"
19495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19496 { (eval echo configure:19497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19498 if test -z "$ac_err"; then
19500 eval "ac_cv_header_$ac_safe=yes"
19503 echo "configure: failed program was:" >&5
19504 cat conftest.$ac_ext >&5
19506 eval "ac_cv_header_$ac_safe=no"
19510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19511 echo "$ac_t""yes" 1>&6
19512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19513 cat >> confdefs.h <<EOF
19514 #define $ac_tr_hdr 1
19518 echo "$ac_t""no" 1>&6
19522 echo $ac_n "checking for db""... $ac_c" 1>&6
19523 echo "configure:19524: checking for db" >&5
19524 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19525 echo $ac_n "(cached) $ac_c" 1>&6
19528 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19536 echo "$ac_t""$ol_cv_ndbm" 1>&6
19537 if test $ol_cv_ndbm = yes ; then
19538 cat >> confdefs.h <<\EOF
19539 #define HAVE_NDBM 1
19545 if test $ol_cv_ndbm = yes ; then
19547 ol_with_ldbm_api=ndbm
19549 if test $ol_cv_lib_ndbm != yes ; then
19550 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19555 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19556 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19557 if test $ol_enable_ldbm = yes ; then
19558 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19561 echo "configure: warning: disabling LDBM" 1>&2
19565 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19566 BUILD_LIBS_DYNAMIC=shared
19567 cat >> confdefs.h <<\EOF
19568 #define LDAP_LIBS_DYNAMIC 1
19572 BUILD_LIBS_DYNAMIC=static
19575 if test $ol_enable_wrappers != no ; then
19576 for ac_hdr in tcpd.h
19578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19580 echo "configure:19581: checking for $ac_hdr" >&5
19581 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19582 echo $ac_n "(cached) $ac_c" 1>&6
19584 cat > conftest.$ac_ext <<EOF
19585 #line 19586 "configure"
19586 #include "confdefs.h"
19589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19590 { (eval echo configure:19591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19592 if test -z "$ac_err"; then
19594 eval "ac_cv_header_$ac_safe=yes"
19597 echo "configure: failed program was:" >&5
19598 cat conftest.$ac_ext >&5
19600 eval "ac_cv_header_$ac_safe=no"
19604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19605 echo "$ac_t""yes" 1>&6
19606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19607 cat >> confdefs.h <<EOF
19608 #define $ac_tr_hdr 1
19611 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19612 echo "configure:19613: checking for TCP wrappers library" >&5
19614 LIBS="$LIBS -lwrap"
19615 cat > conftest.$ac_ext <<EOF
19616 #line 19617 "configure"
19617 #include "confdefs.h"
19620 int allow_severity = 0;
19621 int deny_severity = 0;
19623 struct request_info *req;
19631 if { (eval echo configure:19632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19633 echo "$ac_t""-lwrap" 1>&6
19637 echo "configure: failed program was:" >&5
19638 cat conftest.$ac_ext >&5
19642 cat > conftest.$ac_ext <<EOF
19643 #line 19644 "configure"
19644 #include "confdefs.h"
19647 int allow_severity = 0;
19648 int deny_severity = 0;
19650 struct request_info *req;
19658 if { (eval echo configure:19659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19660 echo "$ac_t""-lwrap -lnsl" 1>&6
19662 LIBS="$save_LIBS -lnsl"
19664 echo "configure: failed program was:" >&5
19665 cat conftest.$ac_ext >&5
19668 echo "$ac_t""no" 1>&6
19676 echo "$ac_t""no" 1>&6
19682 if test $have_wrappers = yes ; then
19683 cat >> confdefs.h <<\EOF
19684 #define HAVE_TCPD 1
19688 elif test $ol_enable_wrappers = yes ; then
19689 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19691 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19696 if test $ol_enable_syslog != no ; then
19697 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19698 echo "configure:19699: checking for openlog" >&5
19699 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19700 echo $ac_n "(cached) $ac_c" 1>&6
19702 cat > conftest.$ac_ext <<EOF
19703 #line 19704 "configure"
19704 #include "confdefs.h"
19705 /* System header to define __stub macros and hopefully few prototypes,
19706 which can conflict with char openlog(); below. */
19707 #include <assert.h>
19708 /* Override any gcc2 internal prototype to avoid an error. */
19709 /* We use char because int might match the return type of a gcc2
19710 builtin and then its argument prototype would still apply. */
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined (__stub_openlog) || defined (__stub___openlog)
19727 if { (eval echo configure:19728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19729 eval "ac_cv_func_openlog=yes"
19731 echo "configure: failed program was:" >&5
19732 cat conftest.$ac_ext >&5
19734 eval "ac_cv_func_openlog=no"
19739 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19740 echo "$ac_t""yes" 1>&6
19743 echo "$ac_t""no" 1>&6
19746 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19747 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19749 ol_enable_syslog=$ac_cv_func_openlog
19754 if test $ol_enable_sql != no ; then
19755 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19756 echo "configure:19757: checking for SQLDriverConnect in -liodbc" >&5
19757 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19758 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19759 echo $ac_n "(cached) $ac_c" 1>&6
19761 ac_save_LIBS="$LIBS"
19762 LIBS="-liodbc $LIBS"
19763 cat > conftest.$ac_ext <<EOF
19764 #line 19765 "configure"
19765 #include "confdefs.h"
19766 /* Override any gcc2 internal prototype to avoid an error. */
19767 /* We use char because int might match the return type of a gcc2
19768 builtin and then its argument prototype would still apply. */
19769 char SQLDriverConnect();
19775 if { (eval echo configure:19776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19777 eval "ac_cv_lib_$ac_lib_var=yes"
19779 echo "configure: failed program was:" >&5
19780 cat conftest.$ac_ext >&5
19782 eval "ac_cv_lib_$ac_lib_var=no"
19785 LIBS="$ac_save_LIBS"
19788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19789 echo "$ac_t""yes" 1>&6
19792 echo "$ac_t""no" 1>&6
19796 if test $have_iodbc = yes ; then
19797 ol_link_sql="-liodbc"
19799 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19800 echo "configure:19801: checking for SQLDriverConnect in -lodbc" >&5
19801 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19802 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19803 echo $ac_n "(cached) $ac_c" 1>&6
19805 ac_save_LIBS="$LIBS"
19806 LIBS="-lodbc $LIBS"
19807 cat > conftest.$ac_ext <<EOF
19808 #line 19809 "configure"
19809 #include "confdefs.h"
19810 /* Override any gcc2 internal prototype to avoid an error. */
19811 /* We use char because int might match the return type of a gcc2
19812 builtin and then its argument prototype would still apply. */
19813 char SQLDriverConnect();
19819 if { (eval echo configure:19820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19821 eval "ac_cv_lib_$ac_lib_var=yes"
19823 echo "configure: failed program was:" >&5
19824 cat conftest.$ac_ext >&5
19826 eval "ac_cv_lib_$ac_lib_var=no"
19829 LIBS="$ac_save_LIBS"
19832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19833 echo "$ac_t""yes" 1>&6
19836 echo "$ac_t""no" 1>&6
19840 if test $have_odbc = yes ; then
19841 ol_link_sql="-lodbc"
19845 if test $ol_link_sql != no ; then
19846 SLAPD_SQL_LIBS="$ol_link_sql"
19848 elif test $ol_enable_sql != auto ; then
19849 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19853 if test $ol_enable_tcl != no ; then
19854 for ac_hdr in tcl.h
19856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19858 echo "configure:19859: checking for $ac_hdr" >&5
19859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19860 echo $ac_n "(cached) $ac_c" 1>&6
19862 cat > conftest.$ac_ext <<EOF
19863 #line 19864 "configure"
19864 #include "confdefs.h"
19867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19868 { (eval echo configure:19869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19870 if test -z "$ac_err"; then
19872 eval "ac_cv_header_$ac_safe=yes"
19875 echo "configure: failed program was:" >&5
19876 cat conftest.$ac_ext >&5
19878 eval "ac_cv_header_$ac_safe=no"
19882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19883 echo "$ac_t""yes" 1>&6
19884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19885 cat >> confdefs.h <<EOF
19886 #define $ac_tr_hdr 1
19890 echo "$ac_t""no" 1>&6
19895 if test $ac_cv_header_tcl_h != yes ; then
19898 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19899 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19900 echo "configure:19901: checking for main in -l$lib" >&5
19901 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19903 echo $ac_n "(cached) $ac_c" 1>&6
19905 ac_save_LIBS="$LIBS"
19906 LIBS="-l$lib $LIBS"
19907 cat > conftest.$ac_ext <<EOF
19908 #line 19909 "configure"
19909 #include "confdefs.h"
19915 if { (eval echo configure:19916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19917 eval "ac_cv_lib_$ac_lib_var=yes"
19919 echo "configure: failed program was:" >&5
19920 cat conftest.$ac_ext >&5
19922 eval "ac_cv_lib_$ac_lib_var=no"
19925 LIBS="$ac_save_LIBS"
19928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19929 echo "$ac_t""yes" 1>&6
19931 if test x"$ol_with_tcl_module" = "xstatic" ; then
19932 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19934 MOD_TCL_LIB="-l${lib}"
19937 echo "$ac_t""no" 1>&6
19944 if test $have_tcl != yes ; then
19945 echo "configure: warning: could not find -ltcl" 1>&2
19946 if test $ol_enable_tcl = yes ; then
19947 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19955 for ac_hdr in termcap.h ncurses.h
19957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19959 echo "configure:19960: checking for $ac_hdr" >&5
19960 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19961 echo $ac_n "(cached) $ac_c" 1>&6
19963 cat > conftest.$ac_ext <<EOF
19964 #line 19965 "configure"
19965 #include "confdefs.h"
19968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19969 { (eval echo configure:19970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19971 if test -z "$ac_err"; then
19973 eval "ac_cv_header_$ac_safe=yes"
19976 echo "configure: failed program was:" >&5
19977 cat conftest.$ac_ext >&5
19979 eval "ac_cv_header_$ac_safe=no"
19983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19984 echo "$ac_t""yes" 1>&6
19985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19986 cat >> confdefs.h <<EOF
19987 #define $ac_tr_hdr 1
19991 echo "$ac_t""no" 1>&6
19996 if test $ol_link_termcap = no ; then
19997 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19998 echo "configure:19999: checking for tputs in -ltermcap" >&5
19999 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
20000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20001 echo $ac_n "(cached) $ac_c" 1>&6
20003 ac_save_LIBS="$LIBS"
20004 LIBS="-ltermcap $LIBS"
20005 cat > conftest.$ac_ext <<EOF
20006 #line 20007 "configure"
20007 #include "confdefs.h"
20008 /* Override any gcc2 internal prototype to avoid an error. */
20009 /* We use char because int might match the return type of a gcc2
20010 builtin and then its argument prototype would still apply. */
20017 if { (eval echo configure:20018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20019 eval "ac_cv_lib_$ac_lib_var=yes"
20021 echo "configure: failed program was:" >&5
20022 cat conftest.$ac_ext >&5
20024 eval "ac_cv_lib_$ac_lib_var=no"
20027 LIBS="$ac_save_LIBS"
20030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20031 echo "$ac_t""yes" 1>&6
20034 echo "$ac_t""no" 1>&6
20038 if test $have_termcap = yes ; then
20039 cat >> confdefs.h <<\EOF
20040 #define HAVE_TERMCAP 1
20043 ol_link_termcap=yes
20044 TERMCAP_LIBS=-ltermcap
20048 if test $ol_link_termcap = no ; then
20049 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20050 echo "configure:20051: checking for initscr in -lncurses" >&5
20051 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20053 echo $ac_n "(cached) $ac_c" 1>&6
20055 ac_save_LIBS="$LIBS"
20056 LIBS="-lncurses $LIBS"
20057 cat > conftest.$ac_ext <<EOF
20058 #line 20059 "configure"
20059 #include "confdefs.h"
20060 /* Override any gcc2 internal prototype to avoid an error. */
20061 /* We use char because int might match the return type of a gcc2
20062 builtin and then its argument prototype would still apply. */
20069 if { (eval echo configure:20070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20071 eval "ac_cv_lib_$ac_lib_var=yes"
20073 echo "configure: failed program was:" >&5
20074 cat conftest.$ac_ext >&5
20076 eval "ac_cv_lib_$ac_lib_var=no"
20079 LIBS="$ac_save_LIBS"
20082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20083 echo "$ac_t""yes" 1>&6
20086 echo "$ac_t""no" 1>&6
20090 if test $have_ncurses = yes ; then
20091 cat >> confdefs.h <<\EOF
20092 #define HAVE_NCURSES 1
20095 ol_link_termcap=yes
20096 TERMCAP_LIBS=-lncurses
20100 if test $ol_link_termcap = no ; then
20101 cat >> confdefs.h <<\EOF
20102 #define NO_TERMCAP 1
20110 if test $ol_with_cyrus_sasl != no ; then
20111 for ac_hdr in sasl/sasl.h sasl.h
20113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20115 echo "configure:20116: checking for $ac_hdr" >&5
20116 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20119 cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20125 { (eval echo configure:20126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20127 if test -z "$ac_err"; then
20129 eval "ac_cv_header_$ac_safe=yes"
20132 echo "configure: failed program was:" >&5
20133 cat conftest.$ac_ext >&5
20135 eval "ac_cv_header_$ac_safe=no"
20139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20140 echo "$ac_t""yes" 1>&6
20141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20142 cat >> confdefs.h <<EOF
20143 #define $ac_tr_hdr 1
20147 echo "$ac_t""no" 1>&6
20152 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20153 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20154 echo "configure:20155: checking for sasl_client_init in -lsasl2" >&5
20155 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20156 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20157 echo $ac_n "(cached) $ac_c" 1>&6
20159 ac_save_LIBS="$LIBS"
20160 LIBS="-lsasl2 $LIBS"
20161 cat > conftest.$ac_ext <<EOF
20162 #line 20163 "configure"
20163 #include "confdefs.h"
20164 /* Override any gcc2 internal prototype to avoid an error. */
20165 /* We use char because int might match the return type of a gcc2
20166 builtin and then its argument prototype would still apply. */
20167 char sasl_client_init();
20173 if { (eval echo configure:20174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20175 eval "ac_cv_lib_$ac_lib_var=yes"
20177 echo "configure: failed program was:" >&5
20178 cat conftest.$ac_ext >&5
20180 eval "ac_cv_lib_$ac_lib_var=no"
20183 LIBS="$ac_save_LIBS"
20186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20187 echo "$ac_t""yes" 1>&6
20188 ol_link_sasl="-lsasl2"
20190 echo "$ac_t""no" 1>&6
20191 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20192 echo "configure:20193: checking for sasl_client_init in -lsasl" >&5
20193 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20195 echo $ac_n "(cached) $ac_c" 1>&6
20197 ac_save_LIBS="$LIBS"
20198 LIBS="-lsasl $LIBS"
20199 cat > conftest.$ac_ext <<EOF
20200 #line 20201 "configure"
20201 #include "confdefs.h"
20202 /* Override any gcc2 internal prototype to avoid an error. */
20203 /* We use char because int might match the return type of a gcc2
20204 builtin and then its argument prototype would still apply. */
20205 char sasl_client_init();
20211 if { (eval echo configure:20212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20213 eval "ac_cv_lib_$ac_lib_var=yes"
20215 echo "configure: failed program was:" >&5
20216 cat conftest.$ac_ext >&5
20218 eval "ac_cv_lib_$ac_lib_var=no"
20221 LIBS="$ac_save_LIBS"
20224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20225 echo "$ac_t""yes" 1>&6
20226 ol_link_sasl="-lsasl"
20228 echo "$ac_t""no" 1>&6
20235 if test $ol_link_sasl = no ; then
20236 if test $ol_with_cyrus_sasl != auto ; then
20237 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20239 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20240 echo "configure: warning: SASL authentication not supported!" 1>&2
20241 if test $ol_link_tls = no ; then
20242 echo "configure: warning: Strong authentication not supported!" 1>&2
20246 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20247 echo "configure:20248: checking Cyrus SASL library version" >&5
20248 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20249 echo $ac_n "(cached) $ac_c" 1>&6
20252 cat > conftest.$ac_ext <<EOF
20253 #line 20254 "configure"
20254 #include "confdefs.h"
20256 #ifdef HAVE_SASL_SASL_H
20257 #include <sasl/sasl.h>
20262 /* require 2.1.3 or later */
20263 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20264 char *__sasl_compat = "1.5.x okay";
20265 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20266 __sasl_compat "2.2+ or better okay (we guess)";
20267 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20268 && SASL_VERSION_STEP >=3
20269 __sasl_compat = "2.1.3+ or better okay";
20273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20274 egrep "__sasl_compat" >/dev/null 2>&1; then
20276 ol_cv_sasl_compat=yes
20279 ol_cv_sasl_compat=no
20285 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20287 if test $ol_cv_sasl_compat = no ; then
20289 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20292 cat >> confdefs.h <<\EOF
20293 #define HAVE_CYRUS_SASL 1
20296 SASL_LIBS="$ol_link_sasl"
20297 if test $ol_enable_spasswd != no ; then
20298 ol_link_spasswd=yes
20303 echo "configure: warning: SASL authentication not supported!" 1>&2
20304 if test $ol_link_tls = no ; then
20305 echo "configure: warning: Strong authentication not supported!" 1>&2
20309 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20311 if test -r /dev/urandom ; then
20312 dev="/dev/urandom";
20313 elif test -r /idev/urandom ; then
20314 dev="/idev/urandom";
20315 elif test -r /dev/srandom ; then
20316 dev="/dev/srandom";
20317 elif test -r /dev/random ; then
20319 elif test -r /idev/random ; then
20320 dev="/idev/random";
20323 if test $dev != no ; then
20324 cat >> confdefs.h <<EOF
20325 #define URANDOM_DEVICE "$dev"
20332 if test $ol_with_fetch != no ; then
20334 LIBS="-lfetch -lcom_err $LIBS"
20335 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20336 echo "configure:20337: checking fetch(3) library" >&5
20337 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20338 echo $ac_n "(cached) $ac_c" 1>&6
20341 cat > conftest.$ac_ext <<EOF
20342 #line 20343 "configure"
20343 #include "confdefs.h"
20345 #include <sys/param.h>
20349 struct url *u = fetchParseURL("file:///");
20352 if { (eval echo configure:20353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20354 ol_cv_lib_fetch=yes
20356 echo "configure: failed program was:" >&5
20357 cat conftest.$ac_ext >&5
20364 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20366 if test $ol_cv_lib_fetch != no ; then
20367 ol_link_fetch="-lfetch -lcom_err"
20368 cat >> confdefs.h <<\EOF
20369 #define HAVE_FETCH 1
20375 if test $ol_cv_lib_fetch != no ; then
20376 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20377 ol_link_fetch=freebsd
20379 elif test $ol_with_fetch != auto ; then
20380 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20384 ol_link_readline=no
20385 if test $ol_with_readline != no ; then
20386 for ac_hdr in readline/readline.h readline/history.h
20388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20390 echo "configure:20391: checking for $ac_hdr" >&5
20391 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20392 echo $ac_n "(cached) $ac_c" 1>&6
20394 cat > conftest.$ac_ext <<EOF
20395 #line 20396 "configure"
20396 #include "confdefs.h"
20399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20400 { (eval echo configure:20401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20402 if test -z "$ac_err"; then
20404 eval "ac_cv_header_$ac_safe=yes"
20407 echo "configure: failed program was:" >&5
20408 cat conftest.$ac_ext >&5
20410 eval "ac_cv_header_$ac_safe=no"
20414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20415 echo "$ac_t""yes" 1>&6
20416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20417 cat >> confdefs.h <<EOF
20418 #define $ac_tr_hdr 1
20422 echo "$ac_t""no" 1>&6
20427 if test $ac_cv_header_readline_readline_h = yes ; then
20429 LIBS="$TERMCAP_LIBS $LIBS"
20430 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20431 echo "configure:20432: checking for readline in -lreadline" >&5
20432 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20434 echo $ac_n "(cached) $ac_c" 1>&6
20436 ac_save_LIBS="$LIBS"
20437 LIBS="-lreadline $LIBS"
20438 cat > conftest.$ac_ext <<EOF
20439 #line 20440 "configure"
20440 #include "confdefs.h"
20441 /* Override any gcc2 internal prototype to avoid an error. */
20442 /* We use char because int might match the return type of a gcc2
20443 builtin and then its argument prototype would still apply. */
20450 if { (eval echo configure:20451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20452 eval "ac_cv_lib_$ac_lib_var=yes"
20454 echo "configure: failed program was:" >&5
20455 cat conftest.$ac_ext >&5
20457 eval "ac_cv_lib_$ac_lib_var=no"
20460 LIBS="$ac_save_LIBS"
20463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20464 echo "$ac_t""yes" 1>&6
20467 echo "$ac_t""no" 1>&6
20473 if test $have_readline = yes ; then
20474 ol_with_readline=found
20475 ol_link_readline=yes
20477 READLINE_LIBS="-lreadline"
20482 if test $ol_link_readline = yes ; then
20483 cat >> confdefs.h <<\EOF
20484 #define HAVE_READLINE 1
20490 if test $ol_enable_crypt != no ; then
20491 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20492 echo "configure:20493: checking for crypt" >&5
20493 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20494 echo $ac_n "(cached) $ac_c" 1>&6
20496 cat > conftest.$ac_ext <<EOF
20497 #line 20498 "configure"
20498 #include "confdefs.h"
20499 /* System header to define __stub macros and hopefully few prototypes,
20500 which can conflict with char crypt(); below. */
20501 #include <assert.h>
20502 /* Override any gcc2 internal prototype to avoid an error. */
20503 /* We use char because int might match the return type of a gcc2
20504 builtin and then its argument prototype would still apply. */
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined (__stub_crypt) || defined (__stub___crypt)
20521 if { (eval echo configure:20522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20523 eval "ac_cv_func_crypt=yes"
20525 echo "configure: failed program was:" >&5
20526 cat conftest.$ac_ext >&5
20528 eval "ac_cv_func_crypt=no"
20533 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20534 echo "$ac_t""yes" 1>&6
20537 echo "$ac_t""no" 1>&6
20539 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20540 echo "configure:20541: checking for crypt in -lcrypt" >&5
20541 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20543 echo $ac_n "(cached) $ac_c" 1>&6
20545 ac_save_LIBS="$LIBS"
20546 LIBS="-lcrypt $LIBS"
20547 cat > conftest.$ac_ext <<EOF
20548 #line 20549 "configure"
20549 #include "confdefs.h"
20550 /* Override any gcc2 internal prototype to avoid an error. */
20551 /* We use char because int might match the return type of a gcc2
20552 builtin and then its argument prototype would still apply. */
20559 if { (eval echo configure:20560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20561 eval "ac_cv_lib_$ac_lib_var=yes"
20563 echo "configure: failed program was:" >&5
20564 cat conftest.$ac_ext >&5
20566 eval "ac_cv_lib_$ac_lib_var=no"
20569 LIBS="$ac_save_LIBS"
20572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20573 echo "$ac_t""yes" 1>&6
20574 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20577 echo "$ac_t""no" 1>&6
20584 if test $have_crypt = yes ; then
20585 cat >> confdefs.h <<\EOF
20586 #define HAVE_CRYPT 1
20590 echo "configure: warning: could not find crypt" 1>&2
20591 if test $ol_enable_crypt = yes ; then
20592 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20595 echo "configure: warning: disabling crypt support" 1>&2
20600 if test $ol_enable_proctitle != no ; then
20601 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20602 echo "configure:20603: checking for setproctitle" >&5
20603 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20604 echo $ac_n "(cached) $ac_c" 1>&6
20606 cat > conftest.$ac_ext <<EOF
20607 #line 20608 "configure"
20608 #include "confdefs.h"
20609 /* System header to define __stub macros and hopefully few prototypes,
20610 which can conflict with char setproctitle(); below. */
20611 #include <assert.h>
20612 /* Override any gcc2 internal prototype to avoid an error. */
20613 /* We use char because int might match the return type of a gcc2
20614 builtin and then its argument prototype would still apply. */
20615 char setproctitle();
20620 /* The GNU C library defines this for functions which it implements
20621 to always fail with ENOSYS. Some functions are actually named
20622 something starting with __ and the normal name is an alias. */
20623 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20631 if { (eval echo configure:20632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20633 eval "ac_cv_func_setproctitle=yes"
20635 echo "configure: failed program was:" >&5
20636 cat conftest.$ac_ext >&5
20638 eval "ac_cv_func_setproctitle=no"
20643 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20644 echo "$ac_t""yes" 1>&6
20645 have_setproctitle=yes
20647 echo "$ac_t""no" 1>&6
20649 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20650 echo "configure:20651: checking for setproctitle in -lutil" >&5
20651 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20653 echo $ac_n "(cached) $ac_c" 1>&6
20655 ac_save_LIBS="$LIBS"
20656 LIBS="-lutil $LIBS"
20657 cat > conftest.$ac_ext <<EOF
20658 #line 20659 "configure"
20659 #include "confdefs.h"
20660 /* Override any gcc2 internal prototype to avoid an error. */
20661 /* We use char because int might match the return type of a gcc2
20662 builtin and then its argument prototype would still apply. */
20663 char setproctitle();
20669 if { (eval echo configure:20670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20671 eval "ac_cv_lib_$ac_lib_var=yes"
20673 echo "configure: failed program was:" >&5
20674 cat conftest.$ac_ext >&5
20676 eval "ac_cv_lib_$ac_lib_var=no"
20679 LIBS="$ac_save_LIBS"
20682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20683 echo "$ac_t""yes" 1>&6
20684 have_setproctitle=yes
20685 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20687 echo "$ac_t""no" 1>&6
20688 have_setproctitle=no
20689 LIBOBJS="$LIBOBJS setproctitle.o"
20690 LIBSRCS="$LIBSRCS setproctitle.c"
20696 if test $have_setproctitle = yes ; then
20697 cat >> confdefs.h <<\EOF
20698 #define HAVE_SETPROCTITLE 1
20704 if test $ol_enable_slp != no ; then
20705 for ac_hdr in slp.h
20707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20709 echo "configure:20710: checking for $ac_hdr" >&5
20710 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20711 echo $ac_n "(cached) $ac_c" 1>&6
20713 cat > conftest.$ac_ext <<EOF
20714 #line 20715 "configure"
20715 #include "confdefs.h"
20718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20719 { (eval echo configure:20720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20721 if test -z "$ac_err"; then
20723 eval "ac_cv_header_$ac_safe=yes"
20726 echo "configure: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20729 eval "ac_cv_header_$ac_safe=no"
20733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20734 echo "$ac_t""yes" 1>&6
20735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20736 cat >> confdefs.h <<EOF
20737 #define $ac_tr_hdr 1
20741 echo "$ac_t""no" 1>&6
20746 if test $ac_cv_header_slp_h = yes ; then
20747 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20748 echo "configure:20749: checking for SLPOpen in -lslp" >&5
20749 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20750 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20751 echo $ac_n "(cached) $ac_c" 1>&6
20753 ac_save_LIBS="$LIBS"
20755 cat > conftest.$ac_ext <<EOF
20756 #line 20757 "configure"
20757 #include "confdefs.h"
20758 /* Override any gcc2 internal prototype to avoid an error. */
20759 /* We use char because int might match the return type of a gcc2
20760 builtin and then its argument prototype would still apply. */
20767 if { (eval echo configure:20768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20769 eval "ac_cv_lib_$ac_lib_var=yes"
20771 echo "configure: failed program was:" >&5
20772 cat conftest.$ac_ext >&5
20774 eval "ac_cv_lib_$ac_lib_var=no"
20777 LIBS="$ac_save_LIBS"
20780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20781 echo "$ac_t""yes" 1>&6
20784 echo "$ac_t""no" 1>&6
20788 if test $have_slp = yes ; then
20789 cat >> confdefs.h <<\EOF
20793 SLAPD_SLP_LIBS=-lslp
20796 elif test $ol_enable_slp = yes ; then
20797 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20801 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20802 echo "configure:20803: checking for ANSI C header files" >&5
20803 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20804 echo $ac_n "(cached) $ac_c" 1>&6
20806 cat > conftest.$ac_ext <<EOF
20807 #line 20808 "configure"
20808 #include "confdefs.h"
20809 #include <stdlib.h>
20810 #include <stdarg.h>
20811 #include <string.h>
20814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20815 { (eval echo configure:20816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20817 if test -z "$ac_err"; then
20819 ac_cv_header_stdc=yes
20822 echo "configure: failed program was:" >&5
20823 cat conftest.$ac_ext >&5
20825 ac_cv_header_stdc=no
20829 if test $ac_cv_header_stdc = yes; then
20830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20831 cat > conftest.$ac_ext <<EOF
20832 #line 20833 "configure"
20833 #include "confdefs.h"
20834 #include <string.h>
20836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20837 egrep "memchr" >/dev/null 2>&1; then
20841 ac_cv_header_stdc=no
20847 if test $ac_cv_header_stdc = yes; then
20848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20849 cat > conftest.$ac_ext <<EOF
20850 #line 20851 "configure"
20851 #include "confdefs.h"
20852 #include <stdlib.h>
20854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20855 egrep "free" >/dev/null 2>&1; then
20859 ac_cv_header_stdc=no
20865 if test $ac_cv_header_stdc = yes; then
20866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20867 if test "$cross_compiling" = yes; then
20870 cat > conftest.$ac_ext <<EOF
20871 #line 20872 "configure"
20872 #include "confdefs.h"
20874 #if ((' ' & 0x0FF) == 0x020)
20875 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20876 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20878 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20879 || ('j' <= (c) && (c) <= 'r') \
20880 || ('s' <= (c) && (c) <= 'z'))
20881 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20884 int main () { int i; for (i = 0; i < 256; i++)
20885 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20889 if { (eval echo configure:20890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20893 echo "configure: failed program was:" >&5
20894 cat conftest.$ac_ext >&5
20896 ac_cv_header_stdc=no
20904 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20905 if test $ac_cv_header_stdc = yes; then
20906 cat >> confdefs.h <<\EOF
20907 #define STDC_HEADERS 1
20912 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20913 echo "configure:20914: checking for mode_t" >&5
20914 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20915 echo $ac_n "(cached) $ac_c" 1>&6
20917 cat > conftest.$ac_ext <<EOF
20918 #line 20919 "configure"
20919 #include "confdefs.h"
20920 #include <sys/types.h>
20922 #include <stdlib.h>
20923 #include <stddef.h>
20927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20928 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20930 eval "ac_cv_type_mode_t=yes"
20933 eval "ac_cv_type_mode_t=no"
20938 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20939 echo "$ac_t""yes" 1>&6
20941 echo "$ac_t""no" 1>&6
20942 cat >> confdefs.h <<EOF
20948 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20949 echo "configure:20950: checking for off_t" >&5
20950 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20951 echo $ac_n "(cached) $ac_c" 1>&6
20953 cat > conftest.$ac_ext <<EOF
20954 #line 20955 "configure"
20955 #include "confdefs.h"
20956 #include <sys/types.h>
20958 #include <stdlib.h>
20959 #include <stddef.h>
20963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20964 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20966 eval "ac_cv_type_off_t=yes"
20969 eval "ac_cv_type_off_t=no"
20974 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20975 echo "$ac_t""yes" 1>&6
20977 echo "$ac_t""no" 1>&6
20978 cat >> confdefs.h <<EOF
20984 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20985 echo "configure:20986: checking for pid_t" >&5
20986 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20987 echo $ac_n "(cached) $ac_c" 1>&6
20989 cat > conftest.$ac_ext <<EOF
20990 #line 20991 "configure"
20991 #include "confdefs.h"
20992 #include <sys/types.h>
20994 #include <stdlib.h>
20995 #include <stddef.h>
20999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21000 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21002 eval "ac_cv_type_pid_t=yes"
21005 eval "ac_cv_type_pid_t=no"
21010 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21011 echo "$ac_t""yes" 1>&6
21013 echo "$ac_t""no" 1>&6
21014 cat >> confdefs.h <<EOF
21020 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21021 echo "configure:21022: checking for ptrdiff_t" >&5
21022 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21023 echo $ac_n "(cached) $ac_c" 1>&6
21025 cat > conftest.$ac_ext <<EOF
21026 #line 21027 "configure"
21027 #include "confdefs.h"
21028 #include <stddef.h>
21033 if { (eval echo configure:21034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21035 am_cv_type_ptrdiff_t=yes
21037 echo "configure: failed program was:" >&5
21038 cat conftest.$ac_ext >&5
21040 am_cv_type_ptrdiff_t=no
21045 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21046 if test $am_cv_type_ptrdiff_t = yes; then
21047 cat >> confdefs.h <<\EOF
21048 #define HAVE_PTRDIFF_T 1
21053 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21054 echo "configure:21055: checking return type of signal handlers" >&5
21055 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21056 echo $ac_n "(cached) $ac_c" 1>&6
21058 cat > conftest.$ac_ext <<EOF
21059 #line 21060 "configure"
21060 #include "confdefs.h"
21061 #include <sys/types.h>
21062 #include <signal.h>
21067 extern "C" void (*signal (int, void (*)(int)))(int);
21069 void (*signal ()) ();
21076 if { (eval echo configure:21077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21078 ac_cv_type_signal=void
21080 echo "configure: failed program was:" >&5
21081 cat conftest.$ac_ext >&5
21083 ac_cv_type_signal=int
21088 echo "$ac_t""$ac_cv_type_signal" 1>&6
21089 cat >> confdefs.h <<EOF
21090 #define RETSIGTYPE $ac_cv_type_signal
21094 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21095 echo "configure:21096: checking for size_t" >&5
21096 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21097 echo $ac_n "(cached) $ac_c" 1>&6
21099 cat > conftest.$ac_ext <<EOF
21100 #line 21101 "configure"
21101 #include "confdefs.h"
21102 #include <sys/types.h>
21104 #include <stdlib.h>
21105 #include <stddef.h>
21109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21110 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21112 eval "ac_cv_type_size_t=yes"
21115 eval "ac_cv_type_size_t=no"
21120 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21121 echo "$ac_t""yes" 1>&6
21123 echo "$ac_t""no" 1>&6
21124 cat >> confdefs.h <<EOF
21125 #define size_t unsigned
21131 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21132 echo "configure:21133: checking for ssize_t" >&5
21133 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21134 echo $ac_n "(cached) $ac_c" 1>&6
21136 cat > conftest.$ac_ext <<EOF
21137 #line 21138 "configure"
21138 #include "confdefs.h"
21139 #include <sys/types.h>
21141 #include <stdlib.h>
21142 #include <stddef.h>
21146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21147 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21149 eval "ac_cv_type_ssize_t=yes"
21152 eval "ac_cv_type_ssize_t=no"
21157 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21158 echo "$ac_t""yes" 1>&6
21160 echo "$ac_t""no" 1>&6
21161 cat >> confdefs.h <<EOF
21162 #define ssize_t signed int
21167 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21168 echo "configure:21169: checking for caddr_t" >&5
21169 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21170 echo $ac_n "(cached) $ac_c" 1>&6
21172 cat > conftest.$ac_ext <<EOF
21173 #line 21174 "configure"
21174 #include "confdefs.h"
21175 #include <sys/types.h>
21177 #include <stdlib.h>
21178 #include <stddef.h>
21182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21183 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21185 eval "ac_cv_type_caddr_t=yes"
21188 eval "ac_cv_type_caddr_t=no"
21193 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21194 echo "$ac_t""yes" 1>&6
21196 echo "$ac_t""no" 1>&6
21197 cat >> confdefs.h <<EOF
21198 #define caddr_t char *
21204 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21205 echo "configure:21206: checking for socklen_t" >&5
21206 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21207 echo $ac_n "(cached) $ac_c" 1>&6
21209 cat > conftest.$ac_ext <<EOF
21210 #line 21211 "configure"
21211 #include "confdefs.h"
21213 #ifdef HAVE_SYS_TYPES_H
21214 #include <sys/types.h>
21216 #ifdef HAVE_SYS_SOCKET_H
21217 #include <sys/socket.h>
21224 if { (eval echo configure:21225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21226 ol_cv_type_socklen_t=yes
21228 echo "configure: failed program was:" >&5
21229 cat conftest.$ac_ext >&5
21231 ol_cv_type_socklen_t=no
21236 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21237 if test $ol_cv_type_socklen_t = no; then
21238 cat >> confdefs.h <<\EOF
21239 #define socklen_t int
21244 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21245 echo "configure:21246: checking for member st_blksize in aggregate type struct stat" >&5
21246 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21247 echo $ac_n "(cached) $ac_c" 1>&6
21249 cat > conftest.$ac_ext <<EOF
21250 #line 21251 "configure"
21251 #include "confdefs.h"
21252 #include <sys/types.h>
21253 #include <sys/stat.h>
21255 struct stat foo; foo.st_blksize;
21258 if { (eval echo configure:21259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21260 ac_cv_c_struct_member_st_blksize=yes
21262 echo "configure: failed program was:" >&5
21263 cat conftest.$ac_ext >&5
21265 ac_cv_c_struct_member_st_blksize=no
21270 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21271 st_blksize="$ac_cv_c_struct_member_st_blksize"
21272 if test $ac_cv_c_struct_member_st_blksize = yes; then
21273 cat >> confdefs.h <<\EOF
21274 #define HAVE_ST_BLKSIZE 1
21279 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21280 echo "configure:21281: checking whether time.h and sys/time.h may both be included" >&5
21281 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21282 echo $ac_n "(cached) $ac_c" 1>&6
21284 cat > conftest.$ac_ext <<EOF
21285 #line 21286 "configure"
21286 #include "confdefs.h"
21287 #include <sys/types.h>
21288 #include <sys/time.h>
21294 if { (eval echo configure:21295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21296 ac_cv_header_time=yes
21298 echo "configure: failed program was:" >&5
21299 cat conftest.$ac_ext >&5
21301 ac_cv_header_time=no
21306 echo "$ac_t""$ac_cv_header_time" 1>&6
21307 if test $ac_cv_header_time = yes; then
21308 cat >> confdefs.h <<\EOF
21309 #define TIME_WITH_SYS_TIME 1
21314 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21315 echo "configure:21316: checking whether struct tm is in sys/time.h or time.h" >&5
21316 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21317 echo $ac_n "(cached) $ac_c" 1>&6
21319 cat > conftest.$ac_ext <<EOF
21320 #line 21321 "configure"
21321 #include "confdefs.h"
21322 #include <sys/types.h>
21325 struct tm *tp; tp->tm_sec;
21328 if { (eval echo configure:21329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21330 ac_cv_struct_tm=time.h
21332 echo "configure: failed program was:" >&5
21333 cat conftest.$ac_ext >&5
21335 ac_cv_struct_tm=sys/time.h
21340 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21341 if test $ac_cv_struct_tm = sys/time.h; then
21342 cat >> confdefs.h <<\EOF
21343 #define TM_IN_SYS_TIME 1
21348 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21349 echo "configure:21350: checking for uid_t in sys/types.h" >&5
21350 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21351 echo $ac_n "(cached) $ac_c" 1>&6
21353 cat > conftest.$ac_ext <<EOF
21354 #line 21355 "configure"
21355 #include "confdefs.h"
21356 #include <sys/types.h>
21358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21359 egrep "uid_t" >/dev/null 2>&1; then
21361 ac_cv_type_uid_t=yes
21364 ac_cv_type_uid_t=no
21370 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21371 if test $ac_cv_type_uid_t = no; then
21372 cat >> confdefs.h <<\EOF
21376 cat >> confdefs.h <<\EOF
21382 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21383 echo "configure:21384: checking for sig_atomic_t" >&5
21384 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21385 echo $ac_n "(cached) $ac_c" 1>&6
21387 cat > conftest.$ac_ext <<EOF
21388 #line 21389 "configure"
21389 #include "confdefs.h"
21390 #include <signal.h>
21392 sig_atomic_t atomic;
21395 if { (eval echo configure:21396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21397 ol_cv_type_sig_atomic_t=yes
21399 echo "configure: failed program was:" >&5
21400 cat conftest.$ac_ext >&5
21402 ol_cv_type_sig_atomic_t=no
21407 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21408 if test $ol_cv_type_sig_atomic_t = no; then
21409 cat >> confdefs.h <<\EOF
21410 #define sig_atomic_t int
21417 # test for pw_gecos in struct passwd
21418 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21419 echo "configure:21420: checking struct passwd for pw_gecos" >&5
21420 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21421 echo $ac_n "(cached) $ac_c" 1>&6
21424 cat > conftest.$ac_ext <<EOF
21425 #line 21426 "configure"
21426 #include "confdefs.h"
21431 pwd.pw_gecos = pwd.pw_name;
21435 if { (eval echo configure:21436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21437 ol_cv_struct_passwd_pw_gecos=yes
21439 echo "configure: failed program was:" >&5
21440 cat conftest.$ac_ext >&5
21442 ol_cv_struct_passwd_pw_gecos=no
21447 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21448 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21449 cat >> confdefs.h <<\EOF
21450 #define HAVE_PW_GECOS 1
21455 # test for pw_passwd in struct passwd
21456 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21457 echo "configure:21458: checking struct passwd for pw_passwd" >&5
21458 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21459 echo $ac_n "(cached) $ac_c" 1>&6
21462 cat > conftest.$ac_ext <<EOF
21463 #line 21464 "configure"
21464 #include "confdefs.h"
21469 pwd.pw_passwd = pwd.pw_name;
21473 if { (eval echo configure:21474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21475 ol_cv_struct_passwd_pw_passwd=yes
21477 echo "configure: failed program was:" >&5
21478 cat conftest.$ac_ext >&5
21480 ol_cv_struct_passwd_pw_passwd=no
21485 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21486 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21487 cat >> confdefs.h <<\EOF
21488 #define HAVE_PW_PASSWD 1
21494 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21495 echo "configure:21496: checking if toupper() requires islower()" >&5
21496 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21497 echo $ac_n "(cached) $ac_c" 1>&6
21500 if test "$cross_compiling" = yes; then
21501 ol_cv_c_upper_lower=safe
21503 cat > conftest.$ac_ext <<EOF
21504 #line 21505 "configure"
21505 #include "confdefs.h"
21510 if ('C' == toupper('C'))
21516 if { (eval echo configure:21517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21518 ol_cv_c_upper_lower=no
21520 echo "configure: failed program was:" >&5
21521 cat conftest.$ac_ext >&5
21523 ol_cv_c_upper_lower=yes
21530 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21531 if test $ol_cv_c_upper_lower != no ; then
21532 cat >> confdefs.h <<\EOF
21533 #define C_UPPER_LOWER 1
21538 echo $ac_n "checking for working const""... $ac_c" 1>&6
21539 echo "configure:21540: checking for working const" >&5
21540 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21541 echo $ac_n "(cached) $ac_c" 1>&6
21543 cat > conftest.$ac_ext <<EOF
21544 #line 21545 "configure"
21545 #include "confdefs.h"
21549 /* Ultrix mips cc rejects this. */
21550 typedef int charset[2]; const charset x;
21551 /* SunOS 4.1.1 cc rejects this. */
21552 char const *const *ccp;
21554 /* NEC SVR4.0.2 mips cc rejects this. */
21555 struct point {int x, y;};
21556 static struct point const zero = {0,0};
21557 /* AIX XL C 1.02.0.0 rejects this.
21558 It does not let you subtract one const X* pointer from another in an arm
21559 of an if-expression whose if-part is not a constant expression */
21560 const char *g = "string";
21561 ccp = &g + (g ? g-g : 0);
21562 /* HPUX 7.0 cc rejects these. */
21565 ccp = (char const *const *) p;
21566 { /* SCO 3.2v4 cc rejects this. */
21568 char const *s = 0 ? (char *) 0 : (char const *) 0;
21572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21573 int x[] = {25, 17};
21574 const int *foo = &x[0];
21577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21578 typedef const int *iptr;
21582 { /* AIX XL C 1.02.0.0 rejects this saying
21583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21584 struct s { int j; const int *ap[3]; };
21585 struct s *b; b->j = 5;
21587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21588 const int foo = 10;
21593 if { (eval echo configure:21594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21597 echo "configure: failed program was:" >&5
21598 cat conftest.$ac_ext >&5
21605 echo "$ac_t""$ac_cv_c_const" 1>&6
21606 if test $ac_cv_c_const = no; then
21607 cat >> confdefs.h <<\EOF
21613 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21614 echo "configure:21615: checking if compiler understands volatile" >&5
21615 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21616 echo $ac_n "(cached) $ac_c" 1>&6
21618 cat > conftest.$ac_ext <<EOF
21619 #line 21620 "configure"
21620 #include "confdefs.h"
21623 volatile int a; int * volatile b = x ? &y : &z;
21624 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21628 if { (eval echo configure:21629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21630 ol_cv_c_volatile=yes
21632 echo "configure: failed program was:" >&5
21633 cat conftest.$ac_ext >&5
21635 ol_cv_c_volatile=no
21640 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21641 if test $ol_cv_c_volatile = yes; then
21644 cat >> confdefs.h <<\EOF
21651 if test $cross_compiling = yes ; then
21652 cat >> confdefs.h <<\EOF
21653 #define CROSS_COMPILING 1
21657 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21658 echo "configure:21659: checking whether byte ordering is bigendian" >&5
21659 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21660 echo $ac_n "(cached) $ac_c" 1>&6
21662 ac_cv_c_bigendian=unknown
21663 # See if sys/param.h defines the BYTE_ORDER macro.
21664 cat > conftest.$ac_ext <<EOF
21665 #line 21666 "configure"
21666 #include "confdefs.h"
21667 #include <sys/types.h>
21668 #include <sys/param.h>
21671 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21672 bogus endian macros
21676 if { (eval echo configure:21677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21678 # It does; now see whether it defined to BIG_ENDIAN or not.
21679 cat > conftest.$ac_ext <<EOF
21680 #line 21681 "configure"
21681 #include "confdefs.h"
21682 #include <sys/types.h>
21683 #include <sys/param.h>
21686 #if BYTE_ORDER != BIG_ENDIAN
21691 if { (eval echo configure:21692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21693 ac_cv_c_bigendian=yes
21695 echo "configure: failed program was:" >&5
21696 cat conftest.$ac_ext >&5
21698 ac_cv_c_bigendian=no
21702 echo "configure: failed program was:" >&5
21703 cat conftest.$ac_ext >&5
21706 if test $ac_cv_c_bigendian = unknown; then
21707 if test "$cross_compiling" = yes; then
21708 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21710 cat > conftest.$ac_ext <<EOF
21711 #line 21712 "configure"
21712 #include "confdefs.h"
21714 /* Are we little or big endian? From Harbison&Steele. */
21718 char c[sizeof (long)];
21721 exit (u.c[sizeof (long) - 1] == 1);
21724 if { (eval echo configure:21725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21726 ac_cv_c_bigendian=no
21728 echo "configure: failed program was:" >&5
21729 cat conftest.$ac_ext >&5
21731 ac_cv_c_bigendian=yes
21739 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21740 if test $ac_cv_c_bigendian = yes; then
21741 cat >> confdefs.h <<\EOF
21742 #define WORDS_BIGENDIAN 1
21749 echo $ac_n "checking size of short""... $ac_c" 1>&6
21750 echo "configure:21751: checking size of short" >&5
21751 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21752 echo $ac_n "(cached) $ac_c" 1>&6
21754 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21755 cat > conftest.$ac_ext <<EOF
21756 #line 21757 "configure"
21757 #include "confdefs.h"
21758 #include "confdefs.h"
21759 #include <sys/types.h>
21763 switch (0) case 0: case (sizeof (short) == $ac_size):;
21766 if { (eval echo configure:21767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21768 ac_cv_sizeof_short=$ac_size
21770 echo "configure: failed program was:" >&5
21771 cat conftest.$ac_ext >&5
21774 if test x$ac_cv_sizeof_short != x ; then break; fi
21779 if test x$ac_cv_sizeof_short = x ; then
21780 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21782 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21783 cat >> confdefs.h <<EOF
21784 #define SIZEOF_SHORT $ac_cv_sizeof_short
21788 echo $ac_n "checking size of int""... $ac_c" 1>&6
21789 echo "configure:21790: checking size of int" >&5
21790 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21791 echo $ac_n "(cached) $ac_c" 1>&6
21793 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21794 cat > conftest.$ac_ext <<EOF
21795 #line 21796 "configure"
21796 #include "confdefs.h"
21797 #include "confdefs.h"
21798 #include <sys/types.h>
21802 switch (0) case 0: case (sizeof (int) == $ac_size):;
21805 if { (eval echo configure:21806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21807 ac_cv_sizeof_int=$ac_size
21809 echo "configure: failed program was:" >&5
21810 cat conftest.$ac_ext >&5
21813 if test x$ac_cv_sizeof_int != x ; then break; fi
21818 if test x$ac_cv_sizeof_int = x ; then
21819 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21821 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21822 cat >> confdefs.h <<EOF
21823 #define SIZEOF_INT $ac_cv_sizeof_int
21827 echo $ac_n "checking size of long""... $ac_c" 1>&6
21828 echo "configure:21829: checking size of long" >&5
21829 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21830 echo $ac_n "(cached) $ac_c" 1>&6
21832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21833 cat > conftest.$ac_ext <<EOF
21834 #line 21835 "configure"
21835 #include "confdefs.h"
21836 #include "confdefs.h"
21837 #include <sys/types.h>
21841 switch (0) case 0: case (sizeof (long) == $ac_size):;
21844 if { (eval echo configure:21845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21846 ac_cv_sizeof_long=$ac_size
21848 echo "configure: failed program was:" >&5
21849 cat conftest.$ac_ext >&5
21852 if test x$ac_cv_sizeof_long != x ; then break; fi
21857 if test x$ac_cv_sizeof_long = x ; then
21858 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21860 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21861 cat >> confdefs.h <<EOF
21862 #define SIZEOF_LONG $ac_cv_sizeof_long
21867 if test "$ac_cv_sizeof_int" -lt 4 ; then
21868 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21870 cat >> confdefs.h <<\EOF
21871 #define LBER_INT_T long
21875 cat >> confdefs.h <<\EOF
21876 #define LBER_INT_T int
21881 cat >> confdefs.h <<\EOF
21882 #define LBER_LEN_T long
21885 cat >> confdefs.h <<\EOF
21886 #define LBER_SOCKET_T int
21889 cat >> confdefs.h <<\EOF
21890 #define LBER_TAG_T long
21894 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21895 echo "configure:21896: checking for 8-bit clean memcmp" >&5
21896 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21897 echo $ac_n "(cached) $ac_c" 1>&6
21899 if test "$cross_compiling" = yes; then
21900 ac_cv_func_memcmp_clean=no
21902 cat > conftest.$ac_ext <<EOF
21903 #line 21904 "configure"
21904 #include "confdefs.h"
21908 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21909 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21913 if { (eval echo configure:21914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21915 ac_cv_func_memcmp_clean=yes
21917 echo "configure: failed program was:" >&5
21918 cat conftest.$ac_ext >&5
21920 ac_cv_func_memcmp_clean=no
21927 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21928 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21930 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21931 echo "configure:21932: checking for strftime" >&5
21932 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21933 echo $ac_n "(cached) $ac_c" 1>&6
21935 cat > conftest.$ac_ext <<EOF
21936 #line 21937 "configure"
21937 #include "confdefs.h"
21938 /* System header to define __stub macros and hopefully few prototypes,
21939 which can conflict with char strftime(); below. */
21940 #include <assert.h>
21941 /* Override any gcc2 internal prototype to avoid an error. */
21942 /* We use char because int might match the return type of a gcc2
21943 builtin and then its argument prototype would still apply. */
21949 /* The GNU C library defines this for functions which it implements
21950 to always fail with ENOSYS. Some functions are actually named
21951 something starting with __ and the normal name is an alias. */
21952 #if defined (__stub_strftime) || defined (__stub___strftime)
21960 if { (eval echo configure:21961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21962 eval "ac_cv_func_strftime=yes"
21964 echo "configure: failed program was:" >&5
21965 cat conftest.$ac_ext >&5
21967 eval "ac_cv_func_strftime=no"
21972 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21973 echo "$ac_t""yes" 1>&6
21974 cat >> confdefs.h <<\EOF
21975 #define HAVE_STRFTIME 1
21979 echo "$ac_t""no" 1>&6
21980 # strftime is in -lintl on SCO UNIX.
21981 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21982 echo "configure:21983: checking for strftime in -lintl" >&5
21983 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21985 echo $ac_n "(cached) $ac_c" 1>&6
21987 ac_save_LIBS="$LIBS"
21988 LIBS="-lintl $LIBS"
21989 cat > conftest.$ac_ext <<EOF
21990 #line 21991 "configure"
21991 #include "confdefs.h"
21992 /* Override any gcc2 internal prototype to avoid an error. */
21993 /* We use char because int might match the return type of a gcc2
21994 builtin and then its argument prototype would still apply. */
22001 if { (eval echo configure:22002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22003 eval "ac_cv_lib_$ac_lib_var=yes"
22005 echo "configure: failed program was:" >&5
22006 cat conftest.$ac_ext >&5
22008 eval "ac_cv_lib_$ac_lib_var=no"
22011 LIBS="$ac_save_LIBS"
22014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22015 echo "$ac_t""yes" 1>&6
22016 cat >> confdefs.h <<\EOF
22017 #define HAVE_STRFTIME 1
22020 LIBS="-lintl $LIBS"
22022 echo "$ac_t""no" 1>&6
22028 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22029 echo "configure:22030: checking for inet_aton()" >&5
22030 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22031 echo $ac_n "(cached) $ac_c" 1>&6
22033 cat > conftest.$ac_ext <<EOF
22034 #line 22035 "configure"
22035 #include "confdefs.h"
22037 #ifdef HAVE_SYS_TYPES_H
22038 # include <sys/types.h>
22040 #ifdef HAVE_SYS_SOCKET_H
22041 # include <sys/socket.h>
22042 # ifdef HAVE_SYS_SELECT_H
22043 # include <sys/select.h>
22045 # include <netinet/in.h>
22046 # ifdef HAVE_ARPA_INET_H
22047 # include <arpa/inet.h>
22053 int rc = inet_aton( "255.255.255.255", &in );
22056 if { (eval echo configure:22057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22058 ol_cv_func_inet_aton=yes
22060 echo "configure: failed program was:" >&5
22061 cat conftest.$ac_ext >&5
22063 ol_cv_func_inet_aton=no
22068 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22069 if test $ol_cv_func_inet_aton != no; then
22070 cat >> confdefs.h <<\EOF
22071 #define HAVE_INET_ATON 1
22077 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22078 echo "configure:22079: checking for _spawnlp" >&5
22079 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22080 echo $ac_n "(cached) $ac_c" 1>&6
22082 cat > conftest.$ac_ext <<EOF
22083 #line 22084 "configure"
22084 #include "confdefs.h"
22085 /* System header to define __stub macros and hopefully few prototypes,
22086 which can conflict with char _spawnlp(); below. */
22087 #include <assert.h>
22088 /* Override any gcc2 internal prototype to avoid an error. */
22089 /* We use char because int might match the return type of a gcc2
22090 builtin and then its argument prototype would still apply. */
22096 /* The GNU C library defines this for functions which it implements
22097 to always fail with ENOSYS. Some functions are actually named
22098 something starting with __ and the normal name is an alias. */
22099 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22107 if { (eval echo configure:22108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22109 eval "ac_cv_func__spawnlp=yes"
22111 echo "configure: failed program was:" >&5
22112 cat conftest.$ac_ext >&5
22114 eval "ac_cv_func__spawnlp=no"
22119 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22120 echo "$ac_t""yes" 1>&6
22121 cat >> confdefs.h <<\EOF
22122 #define HAVE_SPAWNLP 1
22126 echo "$ac_t""no" 1>&6
22130 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22131 echo "configure:22132: checking for _snprintf" >&5
22132 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22133 echo $ac_n "(cached) $ac_c" 1>&6
22135 cat > conftest.$ac_ext <<EOF
22136 #line 22137 "configure"
22137 #include "confdefs.h"
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char _snprintf(); below. */
22140 #include <assert.h>
22141 /* Override any gcc2 internal prototype to avoid an error. */
22142 /* We use char because int might match the return type of a gcc2
22143 builtin and then its argument prototype would still apply. */
22149 /* The GNU C library defines this for functions which it implements
22150 to always fail with ENOSYS. Some functions are actually named
22151 something starting with __ and the normal name is an alias. */
22152 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22160 if { (eval echo configure:22161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22162 eval "ac_cv_func__snprintf=yes"
22164 echo "configure: failed program was:" >&5
22165 cat conftest.$ac_ext >&5
22167 eval "ac_cv_func__snprintf=no"
22172 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22173 echo "$ac_t""yes" 1>&6
22174 ac_cv_func_snprintf=yes
22175 cat >> confdefs.h <<\EOF
22176 #define snprintf _snprintf
22181 echo "$ac_t""no" 1>&6
22185 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22186 echo "configure:22187: checking for _vsnprintf" >&5
22187 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22188 echo $ac_n "(cached) $ac_c" 1>&6
22190 cat > conftest.$ac_ext <<EOF
22191 #line 22192 "configure"
22192 #include "confdefs.h"
22193 /* System header to define __stub macros and hopefully few prototypes,
22194 which can conflict with char _vsnprintf(); below. */
22195 #include <assert.h>
22196 /* Override any gcc2 internal prototype to avoid an error. */
22197 /* We use char because int might match the return type of a gcc2
22198 builtin and then its argument prototype would still apply. */
22204 /* The GNU C library defines this for functions which it implements
22205 to always fail with ENOSYS. Some functions are actually named
22206 something starting with __ and the normal name is an alias. */
22207 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22215 if { (eval echo configure:22216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22217 eval "ac_cv_func__vsnprintf=yes"
22219 echo "configure: failed program was:" >&5
22220 cat conftest.$ac_ext >&5
22222 eval "ac_cv_func__vsnprintf=no"
22227 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22228 echo "$ac_t""yes" 1>&6
22229 ac_cv_func_vsnprintf=yes
22230 cat >> confdefs.h <<\EOF
22231 #define vsnprintf _vsnprintf
22236 echo "$ac_t""no" 1>&6
22240 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22241 echo "configure:22242: checking for vprintf" >&5
22242 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22243 echo $ac_n "(cached) $ac_c" 1>&6
22245 cat > conftest.$ac_ext <<EOF
22246 #line 22247 "configure"
22247 #include "confdefs.h"
22248 /* System header to define __stub macros and hopefully few prototypes,
22249 which can conflict with char vprintf(); below. */
22250 #include <assert.h>
22251 /* Override any gcc2 internal prototype to avoid an error. */
22252 /* We use char because int might match the return type of a gcc2
22253 builtin and then its argument prototype would still apply. */
22259 /* The GNU C library defines this for functions which it implements
22260 to always fail with ENOSYS. Some functions are actually named
22261 something starting with __ and the normal name is an alias. */
22262 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22270 if { (eval echo configure:22271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22272 eval "ac_cv_func_vprintf=yes"
22274 echo "configure: failed program was:" >&5
22275 cat conftest.$ac_ext >&5
22277 eval "ac_cv_func_vprintf=no"
22282 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22283 echo "$ac_t""yes" 1>&6
22284 cat >> confdefs.h <<\EOF
22285 #define HAVE_VPRINTF 1
22289 echo "$ac_t""no" 1>&6
22292 if test "$ac_cv_func_vprintf" != yes; then
22293 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22294 echo "configure:22295: checking for _doprnt" >&5
22295 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22296 echo $ac_n "(cached) $ac_c" 1>&6
22298 cat > conftest.$ac_ext <<EOF
22299 #line 22300 "configure"
22300 #include "confdefs.h"
22301 /* System header to define __stub macros and hopefully few prototypes,
22302 which can conflict with char _doprnt(); below. */
22303 #include <assert.h>
22304 /* Override any gcc2 internal prototype to avoid an error. */
22305 /* We use char because int might match the return type of a gcc2
22306 builtin and then its argument prototype would still apply. */
22312 /* The GNU C library defines this for functions which it implements
22313 to always fail with ENOSYS. Some functions are actually named
22314 something starting with __ and the normal name is an alias. */
22315 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22323 if { (eval echo configure:22324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22325 eval "ac_cv_func__doprnt=yes"
22327 echo "configure: failed program was:" >&5
22328 cat conftest.$ac_ext >&5
22330 eval "ac_cv_func__doprnt=no"
22335 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22336 echo "$ac_t""yes" 1>&6
22337 cat >> confdefs.h <<\EOF
22338 #define HAVE_DOPRNT 1
22342 echo "$ac_t""no" 1>&6
22348 if test $ac_cv_func_vprintf = yes ; then
22349 for ac_func in vsnprintf vsprintf
22351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22352 echo "configure:22353: checking for $ac_func" >&5
22353 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22354 echo $ac_n "(cached) $ac_c" 1>&6
22356 cat > conftest.$ac_ext <<EOF
22357 #line 22358 "configure"
22358 #include "confdefs.h"
22359 /* System header to define __stub macros and hopefully few prototypes,
22360 which can conflict with char $ac_func(); below. */
22361 #include <assert.h>
22362 /* Override any gcc2 internal prototype to avoid an error. */
22363 /* We use char because int might match the return type of a gcc2
22364 builtin and then its argument prototype would still apply. */
22370 /* The GNU C library defines this for functions which it implements
22371 to always fail with ENOSYS. Some functions are actually named
22372 something starting with __ and the normal name is an alias. */
22373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22381 if { (eval echo configure:22382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22383 eval "ac_cv_func_$ac_func=yes"
22385 echo "configure: failed program was:" >&5
22386 cat conftest.$ac_ext >&5
22388 eval "ac_cv_func_$ac_func=no"
22393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22394 echo "$ac_t""yes" 1>&6
22395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22396 cat >> confdefs.h <<EOF
22397 #define $ac_tr_func 1
22401 echo "$ac_t""no" 1>&6
22462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22463 echo "configure:22464: checking for $ac_func" >&5
22464 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22465 echo $ac_n "(cached) $ac_c" 1>&6
22467 cat > conftest.$ac_ext <<EOF
22468 #line 22469 "configure"
22469 #include "confdefs.h"
22470 /* System header to define __stub macros and hopefully few prototypes,
22471 which can conflict with char $ac_func(); below. */
22472 #include <assert.h>
22473 /* Override any gcc2 internal prototype to avoid an error. */
22474 /* We use char because int might match the return type of a gcc2
22475 builtin and then its argument prototype would still apply. */
22481 /* The GNU C library defines this for functions which it implements
22482 to always fail with ENOSYS. Some functions are actually named
22483 something starting with __ and the normal name is an alias. */
22484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22492 if { (eval echo configure:22493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22494 eval "ac_cv_func_$ac_func=yes"
22496 echo "configure: failed program was:" >&5
22497 cat conftest.$ac_ext >&5
22499 eval "ac_cv_func_$ac_func=no"
22504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22505 echo "$ac_t""yes" 1>&6
22506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22507 cat >> confdefs.h <<EOF
22508 #define $ac_tr_func 1
22512 echo "$ac_t""no" 1>&6
22517 for ac_func in getopt
22519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22520 echo "configure:22521: checking for $ac_func" >&5
22521 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22522 echo $ac_n "(cached) $ac_c" 1>&6
22524 cat > conftest.$ac_ext <<EOF
22525 #line 22526 "configure"
22526 #include "confdefs.h"
22527 /* System header to define __stub macros and hopefully few prototypes,
22528 which can conflict with char $ac_func(); below. */
22529 #include <assert.h>
22530 /* Override any gcc2 internal prototype to avoid an error. */
22531 /* We use char because int might match the return type of a gcc2
22532 builtin and then its argument prototype would still apply. */
22538 /* The GNU C library defines this for functions which it implements
22539 to always fail with ENOSYS. Some functions are actually named
22540 something starting with __ and the normal name is an alias. */
22541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22549 if { (eval echo configure:22550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22551 eval "ac_cv_func_$ac_func=yes"
22553 echo "configure: failed program was:" >&5
22554 cat conftest.$ac_ext >&5
22556 eval "ac_cv_func_$ac_func=no"
22561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22562 echo "$ac_t""yes" 1>&6
22563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22564 cat >> confdefs.h <<EOF
22565 #define $ac_tr_func 1
22569 echo "$ac_t""no" 1>&6
22570 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22576 if test "$ac_cv_func_getopt" != yes; then
22577 LIBSRCS="$LIBSRCS getopt.c"
22580 # Check Configuration
22581 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22582 echo "configure:22583: checking declaration of sys_errlist" >&5
22583 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22584 echo $ac_n "(cached) $ac_c" 1>&6
22587 cat > conftest.$ac_ext <<EOF
22588 #line 22589 "configure"
22589 #include "confdefs.h"
22592 #include <sys/types.h>
22595 #include <stdlib.h>
22598 char *c = (char *) *sys_errlist
22601 if { (eval echo configure:22602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22603 ol_cv_dcl_sys_errlist=yes
22604 ol_cv_have_sys_errlist=yes
22606 echo "configure: failed program was:" >&5
22607 cat conftest.$ac_ext >&5
22609 ol_cv_dcl_sys_errlist=no
22614 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22616 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22617 if test $ol_cv_dcl_sys_errlist = no ; then
22618 cat >> confdefs.h <<\EOF
22619 #define DECL_SYS_ERRLIST 1
22623 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22624 echo "configure:22625: checking existence of sys_errlist" >&5
22625 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22626 echo $ac_n "(cached) $ac_c" 1>&6
22629 cat > conftest.$ac_ext <<EOF
22630 #line 22631 "configure"
22631 #include "confdefs.h"
22634 char *c = (char *) *sys_errlist
22637 if { (eval echo configure:22638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22639 ol_cv_have_sys_errlist=yes
22641 echo "configure: failed program was:" >&5
22642 cat conftest.$ac_ext >&5
22644 ol_cv_have_sys_errlist=no
22649 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22651 if test $ol_cv_have_sys_errlist = yes ; then
22652 cat >> confdefs.h <<\EOF
22653 #define HAVE_SYS_ERRLIST 1
22660 if test "$ol_enable_debug" != no ; then
22661 cat >> confdefs.h <<\EOF
22662 #define LDAP_DEBUG 1
22666 if test "$ol_enable_syslog" = yes ; then
22667 cat >> confdefs.h <<\EOF
22668 #define LDAP_SYSLOG 1
22672 if test "$ol_enable_cache" = no ; then
22673 cat >> confdefs.h <<\EOF
22674 #define LDAP_NOCACHE 1
22678 if test "$ol_link_kbind" != no ; then
22679 cat >> confdefs.h <<\EOF
22680 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22684 if test "$ol_enable_proctitle" != no ; then
22685 cat >> confdefs.h <<\EOF
22686 #define LDAP_PROCTITLE 1
22690 if test "$ol_enable_referrals" != no ; then
22691 cat >> confdefs.h <<\EOF
22692 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22696 if test "$ol_enable_local" != no; then
22697 cat >> confdefs.h <<\EOF
22698 #define LDAP_PF_LOCAL 1
22702 if test "$ol_link_ipv6" != no; then
22703 cat >> confdefs.h <<\EOF
22704 #define LDAP_PF_INET6 1
22708 if test "$ol_enable_cleartext" != no ; then
22709 cat >> confdefs.h <<\EOF
22710 #define SLAPD_CLEARTEXT 1
22714 if test "$ol_enable_crypt" != no ; then
22715 cat >> confdefs.h <<\EOF
22716 #define SLAPD_CRYPT 1
22720 if test "$ol_link_kpasswd" != no ; then
22721 cat >> confdefs.h <<\EOF
22722 #define SLAPD_KPASSWD 1
22726 if test "$ol_link_spasswd" != no ; then
22727 cat >> confdefs.h <<\EOF
22728 #define SLAPD_SPASSWD 1
22732 if test "$ol_enable_multimaster" != no ; then
22733 cat >> confdefs.h <<\EOF
22734 #define SLAPD_MULTIMASTER 1
22738 if test "$ol_enable_phonetic" != no ; then
22739 cat >> confdefs.h <<\EOF
22740 #define SLAPD_PHONETIC 1
22744 if test "$ol_enable_rlookups" != no ; then
22745 cat >> confdefs.h <<\EOF
22746 #define SLAPD_RLOOKUPS 1
22750 if test "$ol_enable_aci" != no ; then
22751 cat >> confdefs.h <<\EOF
22752 #define SLAPD_ACI_ENABLED 1
22757 if test "$ol_link_modules" != no ; then
22758 cat >> confdefs.h <<\EOF
22759 #define SLAPD_MODULES 1
22763 SLAPD_MODULES_LDFLAGS="-dlopen self"
22766 if test "$ol_enable_bdb" != no ; then
22767 cat >> confdefs.h <<\EOF
22768 #define SLAPD_BDB 1
22773 if test "$ol_with_bdb_module" != static ; then
22774 cat >> confdefs.h <<\EOF
22775 #define SLAPD_BDB_DYNAMIC 1
22779 BUILD_BDB_DYNAMIC=shared
22780 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22782 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22786 if test "$ol_link_dnssrv" != no ; then
22787 cat >> confdefs.h <<\EOF
22788 #define SLAPD_DNSSRV 1
22793 if test "$ol_with_dnssrv_module" != static ; then
22794 cat >> confdefs.h <<\EOF
22795 #define SLAPD_DNSSRV_DYNAMIC 1
22799 BUILD_DNSSRV_DYNAMIC=shared
22800 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22802 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22806 if test "$ol_enable_ldap" != no ; then
22807 cat >> confdefs.h <<\EOF
22808 #define SLAPD_LDAP 1
22813 if test "$ol_with_ldap_module" != static ; then
22814 cat >> confdefs.h <<\EOF
22815 #define SLAPD_LDAP_DYNAMIC 1
22819 BUILD_LDAP_DYNAMIC=shared
22820 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22822 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22826 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22827 cat >> confdefs.h <<\EOF
22828 #define SLAPD_LDBM 1
22834 if test "$ol_with_ldbm_module" != static ; then
22835 cat >> confdefs.h <<\EOF
22836 #define SLAPD_LDBM_DYNAMIC 1
22840 BUILD_LDBM_DYNAMIC=shared
22841 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22843 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22847 if test "$ol_enable_meta" != no ; then
22848 if test "$ol_enable_ldap" = no ; then
22849 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22851 if test "$ol_enable_rewrite" = no ; then
22852 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22854 cat >> confdefs.h <<\EOF
22855 #define SLAPD_META 1
22862 if test "$ol_with_meta_module" != static ; then
22863 cat >> confdefs.h <<\EOF
22864 #define SLAPD_META_DYNAMIC 1
22868 BUILD_META_DYNAMIC=shared
22869 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22871 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22875 if test "$ol_enable_monitor" != no ; then
22876 cat >> confdefs.h <<\EOF
22877 #define SLAPD_MONITOR 1
22882 if test "$ol_with_monitor_module" != static ; then
22883 cat >> confdefs.h <<\EOF
22884 #define SLAPD_MONITOR_DYNAMIC 1
22888 BUILD_MONITOR_DYNAMIC=shared
22889 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22891 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22895 if test "$ol_enable_null" != no ; then
22896 cat >> confdefs.h <<\EOF
22897 #define SLAPD_NULL 1
22902 if test "$ol_with_null_module" != static ; then
22903 cat >> confdefs.h <<\EOF
22904 #define SLAPD_NULL_DYNAMIC 1
22908 BUILD_NULL_DYNAMIC=shared
22909 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22911 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22915 if test "$ol_enable_passwd" != no ; then
22916 cat >> confdefs.h <<\EOF
22917 #define SLAPD_PASSWD 1
22922 if test "$ol_with_passwd_module" != static ; then
22923 cat >> confdefs.h <<\EOF
22924 #define SLAPD_PASSWD_DYNAMIC 1
22928 BUILD_PASSWD_DYNAMIC=shared
22929 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22931 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22935 if test "$ol_link_perl" != no ; then
22936 cat >> confdefs.h <<\EOF
22937 #define SLAPD_PERL 1
22942 if test "$ol_with_perl_module" != static ; then
22943 cat >> confdefs.h <<\EOF
22944 #define SLAPD_PERL_DYNAMIC 1
22948 BUILD_PERL_DYNAMIC=shared
22949 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22951 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22955 if test "$ol_enable_shell" != no ; then
22956 cat >> confdefs.h <<\EOF
22957 #define SLAPD_SHELL 1
22962 if test "$ol_with_shell_module" != static ; then
22963 cat >> confdefs.h <<\EOF
22964 #define SLAPD_SHELL_DYNAMIC 1
22968 BUILD_SHELL_DYNAMIC=shared
22969 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22971 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22975 if test "$ol_enable_tcl" != no ; then
22976 cat >> confdefs.h <<\EOF
22977 #define SLAPD_TCL 1
22982 if test "$ol_with_tcl_module" != static; then
22983 cat >> confdefs.h <<\EOF
22984 #define SLAPD_TCL_DYNAMIC 1
22988 BUILD_TCL_DYNAMIC=shared
22989 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22991 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22995 if test "$ol_link_sql" != no ; then
22996 cat >> confdefs.h <<\EOF
22997 #define SLAPD_SQL 1
23002 if test "$ol_with_sql_module" != static; then
23003 cat >> confdefs.h <<\EOF
23004 #define SLAPD_SQL_DYNAMIC 1
23008 BUILD_SQL_DYNAMIC=shared
23009 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23011 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23015 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23016 $BUILD_SLAPD = yes ; then
23020 if test "$ol_enable_rewrite" != no ; then
23021 cat >> confdefs.h <<\EOF
23022 #define ENABLE_REWRITE 1
23030 if test "$ac_cv_mingw32" = yes ; then
23032 SLAPD_MODULES_LDFLAGS=
23105 # Check whether --with-xxinstall or --without-xxinstall was given.
23106 if test "${with_xxinstall+set}" = set; then
23107 withval="$with_xxinstall"
23115 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23118 # Let make expand exec_prefix.
23119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23121 # Any assignment to VPATH causes Sun make to only execute
23122 # the first set of double-colon rules, so remove it if not needed.
23123 # If there is a colon in the path, we need to keep it.
23124 if test "x$srcdir" = x.; then
23125 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23128 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23130 DEFS=-DHAVE_CONFIG_H
23132 # Without the "./", some shells look in PATH for config.status.
23133 : ${CONFIG_STATUS=./config.status}
23135 echo creating $CONFIG_STATUS
23136 rm -f $CONFIG_STATUS
23137 cat > $CONFIG_STATUS <<EOF
23139 # Generated automatically by configure.
23140 # Run this file to recreate the current configuration.
23141 # This directory was configured as follows,
23142 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23144 # $0 $ac_configure_args
23146 # Compiler output produced by configure, useful for debugging
23147 # configure, is in ./config.log if it exists.
23149 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23152 case "\$ac_option" in
23153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23154 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23155 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23156 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23157 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23159 -help | --help | --hel | --he | --h)
23160 echo "\$ac_cs_usage"; exit 0 ;;
23161 *) echo "\$ac_cs_usage"; exit 1 ;;
23165 ac_given_srcdir=$srcdir
23166 ac_given_INSTALL="$INSTALL"
23168 trap 'rm -fr `echo "\
23169 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23170 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23171 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23172 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23173 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23174 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23175 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23176 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23177 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
23178 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
23179 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
23180 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23181 include/Makefile:build/top.mk:include/Makefile.in \
23182 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23183 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23184 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23185 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23186 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23187 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23188 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23189 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23190 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23191 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23192 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23193 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23194 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23195 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23196 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23197 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23198 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23199 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23200 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23201 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23202 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23203 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23204 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23205 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23206 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23207 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23208 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23209 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23210 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23211 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23213 cat >> $CONFIG_STATUS <<EOF
23215 # Protect against being on the right side of a sed subst in config.status.
23216 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23217 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23221 s%@CFLAGS@%$CFLAGS%g
23222 s%@CPPFLAGS@%$CPPFLAGS%g
23223 s%@CXXFLAGS@%$CXXFLAGS%g
23224 s%@FFLAGS@%$FFLAGS%g
23226 s%@LDFLAGS@%$LDFLAGS%g
23228 s%@exec_prefix@%$exec_prefix%g
23229 s%@prefix@%$prefix%g
23230 s%@program_transform_name@%$program_transform_name%g
23231 s%@bindir@%$bindir%g
23232 s%@sbindir@%$sbindir%g
23233 s%@libexecdir@%$libexecdir%g
23234 s%@datadir@%$datadir%g
23235 s%@sysconfdir@%$sysconfdir%g
23236 s%@sharedstatedir@%$sharedstatedir%g
23237 s%@localstatedir@%$localstatedir%g
23238 s%@libdir@%$libdir%g
23239 s%@includedir@%$includedir%g
23240 s%@oldincludedir@%$oldincludedir%g
23241 s%@infodir@%$infodir%g
23242 s%@mandir@%$mandir%g
23244 s%@host_alias@%$host_alias%g
23245 s%@host_cpu@%$host_cpu%g
23246 s%@host_vendor@%$host_vendor%g
23247 s%@host_os@%$host_os%g
23248 s%@target@%$target%g
23249 s%@target_alias@%$target_alias%g
23250 s%@target_cpu@%$target_cpu%g
23251 s%@target_vendor@%$target_vendor%g
23252 s%@target_os@%$target_os%g
23254 s%@build_alias@%$build_alias%g
23255 s%@build_cpu@%$build_cpu%g
23256 s%@build_vendor@%$build_vendor%g
23257 s%@build_os@%$build_os%g
23258 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23259 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23260 s%@INSTALL_DATA@%$INSTALL_DATA%g
23261 s%@PACKAGE@%$PACKAGE%g
23262 s%@VERSION@%$VERSION%g
23263 s%@ACLOCAL@%$ACLOCAL%g
23264 s%@AUTOCONF@%$AUTOCONF%g
23265 s%@AUTOMAKE@%$AUTOMAKE%g
23266 s%@AUTOHEADER@%$AUTOHEADER%g
23267 s%@MAKEINFO@%$MAKEINFO%g
23268 s%@install_sh@%$install_sh%g
23271 s%@AMTARFLAGS@%$AMTARFLAGS%g
23272 s%@SET_MAKE@%$SET_MAKE%g
23273 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23274 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23275 s%@top_builddir@%$top_builddir%g
23276 s%@ldap_subdir@%$ldap_subdir%g
23280 s%@OBJEXT@%$OBJEXT%g
23281 s%@EXEEXT@%$EXEEXT%g
23283 s%@RANLIB@%$RANLIB%g
23285 s%@DLLTOOL@%$DLLTOOL%g
23287 s%@OBJDUMP@%$OBJDUMP%g
23289 s%@LIBTOOL@%$LIBTOOL%g
23291 s%@SENDMAIL@%$SENDMAIL%g
23292 s%@EDITOR@%$EDITOR%g
23293 s%@PERLBIN@%$PERLBIN%g
23294 s%@OL_MKDEP@%$OL_MKDEP%g
23295 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23296 s%@LIBOBJS@%$LIBOBJS%g
23297 s%@LIBSRCS@%$LIBSRCS%g
23299 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23300 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23301 s%@BUILD_BDB@%$BUILD_BDB%g
23302 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23303 s%@BUILD_LDAP@%$BUILD_LDAP%g
23304 s%@BUILD_LDBM@%$BUILD_LDBM%g
23305 s%@BUILD_META@%$BUILD_META%g
23306 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23307 s%@BUILD_NULL@%$BUILD_NULL%g
23308 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23309 s%@BUILD_PERL@%$BUILD_PERL%g
23310 s%@BUILD_SHELL@%$BUILD_SHELL%g
23311 s%@BUILD_SQL@%$BUILD_SQL%g
23312 s%@BUILD_TCL@%$BUILD_TCL%g
23313 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23314 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23315 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23316 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23317 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23318 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23319 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23320 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23321 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23322 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23323 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23324 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23325 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23326 s%@LDBM_LIB@%$LDBM_LIB%g
23327 s%@LDAP_LIBS@%$LDAP_LIBS%g
23328 s%@LDIF_LIBS@%$LDIF_LIBS%g
23329 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23330 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23331 s%@LDBM_LIBS@%$LDBM_LIBS%g
23332 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23333 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23334 s%@WRAP_LIBS@%$WRAP_LIBS%g
23335 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23336 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23337 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23338 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23339 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23340 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23341 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23342 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23343 s%@KRB4_LIBS@%$KRB4_LIBS%g
23344 s%@KRB5_LIBS@%$KRB5_LIBS%g
23345 s%@READLINE_LIBS@%$READLINE_LIBS%g
23346 s%@SASL_LIBS@%$SASL_LIBS%g
23347 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23348 s%@TLS_LIBS@%$TLS_LIBS%g
23349 s%@MODULES_LIBS@%$MODULES_LIBS%g
23350 s%@AUTH_LIBS@%$AUTH_LIBS%g
23351 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23352 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23353 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23354 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23359 cat >> $CONFIG_STATUS <<\EOF
23361 # Split the substitutions into bite-sized pieces for seds with
23362 # small command number limits, like on Digital OSF/1 and HP-UX.
23363 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23364 ac_file=1 # Number of current file.
23365 ac_beg=1 # First line for current file.
23366 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23369 while $ac_more_lines; do
23370 if test $ac_beg -gt 1; then
23371 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23373 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23375 if test ! -s conftest.s$ac_file; then
23376 ac_more_lines=false
23377 rm -f conftest.s$ac_file
23379 if test -z "$ac_sed_cmds"; then
23380 ac_sed_cmds="sed -f conftest.s$ac_file"
23382 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23384 ac_file=`expr $ac_file + 1`
23386 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23389 if test -z "$ac_sed_cmds"; then
23394 cat >> $CONFIG_STATUS <<EOF
23396 CONFIG_FILES=\${CONFIG_FILES-"\
23397 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23398 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23399 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23400 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23401 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23402 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23403 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23404 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23405 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
23406 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
23407 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
23408 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23409 include/Makefile:build/top.mk:include/Makefile.in \
23410 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23411 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23412 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23413 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23414 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23415 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23416 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23417 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23418 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23419 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23420 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23421 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23422 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23423 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23424 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23425 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23426 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23427 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23428 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23429 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23430 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23431 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23432 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23433 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23434 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23435 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23436 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23437 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23438 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23441 cat >> $CONFIG_STATUS <<\EOF
23442 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23445 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23446 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23447 *) ac_file_in="${ac_file}.in" ;;
23450 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23452 # Remove last slash and all that follows it. Not all systems have dirname.
23453 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23454 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23455 # The file is in a subdirectory.
23456 test ! -d "$ac_dir" && mkdir "$ac_dir"
23457 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23458 # A "../" for each directory in $ac_dir_suffix.
23459 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23461 ac_dir_suffix= ac_dots=
23464 case "$ac_given_srcdir" in
23466 if test -z "$ac_dots"; then top_srcdir=.
23467 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23468 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23469 *) # Relative path.
23470 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23471 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23474 case "$ac_given_INSTALL" in
23475 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23476 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23479 echo creating "$ac_file"
23481 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23483 *[Mm]akefile*) ac_comsub="1i\\
23484 # $configure_input" ;;
23488 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23490 s%@configure_input@%$configure_input%g
23491 s%@srcdir@%$srcdir%g
23492 s%@top_srcdir@%$top_srcdir%g
23493 s%@INSTALL@%$INSTALL%g
23494 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23498 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23499 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23501 # ac_d sets the value in "#define NAME VALUE" lines.
23502 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23503 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23506 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23507 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23508 ac_uB='\([ ]\)%\1#\2define\3'
23511 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23512 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23513 ac_eB='$%\1#\2define\3'
23517 if test "${CONFIG_HEADERS+set}" != set; then
23519 cat >> $CONFIG_STATUS <<EOF
23520 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23522 cat >> $CONFIG_STATUS <<\EOF
23524 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23527 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23528 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23529 *) ac_file_in="${ac_file}.in" ;;
23532 echo creating $ac_file
23534 rm -f conftest.frag conftest.in conftest.out
23535 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23536 cat $ac_file_inputs > conftest.in
23540 # Transform confdefs.h into a sed script conftest.vals that substitutes
23541 # the proper values into config.h.in to produce config.h. And first:
23542 # Protect against being on the right side of a sed subst in config.status.
23543 # Protect against being in an unquoted here document in config.status.
23544 rm -f conftest.vals
23545 cat > conftest.hdr <<\EOF
23548 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23552 sed -n -f conftest.hdr confdefs.h > conftest.vals
23555 # This sed command replaces #undef with comments. This is necessary, for
23556 # example, in the case of _POSIX_SOURCE, which is predefined and required
23557 # on some systems where configure will not decide to define it.
23558 cat >> conftest.vals <<\EOF
23559 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23562 # Break up conftest.vals because some shells have a limit on
23563 # the size of here documents, and old seds have small limits too.
23565 rm -f conftest.tail
23568 ac_lines=`grep -c . conftest.vals`
23569 # grep -c gives empty output for an empty file on some AIX systems.
23570 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23571 # Write a limited-size here document to conftest.frag.
23572 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23573 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23575 sed -f conftest.frag conftest.in > conftest.out
23577 mv conftest.out conftest.in
23578 ' >> $CONFIG_STATUS
23579 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23580 rm -f conftest.vals
23581 mv conftest.tail conftest.vals
23583 rm -f conftest.vals
23585 cat >> $CONFIG_STATUS <<\EOF
23586 rm -f conftest.frag conftest.h
23587 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23588 cat conftest.in >> conftest.h
23590 if cmp -s $ac_file conftest.h 2>/dev/null; then
23591 echo "$ac_file is unchanged"
23594 # Remove last slash and all that follows it. Not all systems have dirname.
23595 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23596 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23597 # The file is in a subdirectory.
23598 test ! -d "$ac_dir" && mkdir "$ac_dir"
23601 mv conftest.h $ac_file
23606 cat >> $CONFIG_STATUS <<EOF
23609 cat >> $CONFIG_STATUS <<\EOF
23612 echo Please run \"make depend\" to build dependencies
23616 chmod +x $CONFIG_STATUS
23617 rm -fr confdefs* $ac_clean_files
23618 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1