3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.18 2004/04/15 20:48:20 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
86 SLAPD Backend Options:"
88 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
90 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
92 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
94 --enable-ldap enable ldap backend no|yes|mod [no]"
96 --enable-ldbm enable ldbm backend no|yes|mod [no]"
98 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
100 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
102 --enable-meta enable metadirectory backend no|yes|mod [no]"
104 --enable-monitor enable monitor backend no|yes|mod [yes]"
106 --enable-null enable null backend no|yes|mod [no]"
108 --enable-passwd enable passwd backend no|yes|mod [no]"
110 --enable-perl enable perl backend no|yes|mod [no]"
112 --enable-shell enable shell backend no|yes|mod [no]"
114 --enable-sql enable sql backend no|yes|mod [no]"
117 SLAPD Overlay Options:"
119 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
121 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
124 SLURPD (Replication Daemon) Options:"
126 --enable-slurpd enable building slurpd [auto]"
129 Library Generation & Linking Options"
131 --enable-static[=PKGS] build static libraries [default=yes]"
133 --enable-shared[=PKGS] build shared libraries [default=yes]"
135 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
137 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
139 # Find the correct PATH separator. Usually this is `:', but
140 # DJGPP uses `;' like DOS.
141 if test "X${PATH_SEPARATOR+set}" != Xset; then
142 UNAME=${UNAME-`uname 2>/dev/null`}
144 *-DOS) lt_cv_sys_path_separator=';' ;;
145 *) lt_cv_sys_path_separator=':' ;;
147 PATH_SEPARATOR=$lt_cv_sys_path_separator
151 # Check that we are running under the correct shell.
152 SHELL=${CONFIG_SHELL-/bin/sh}
156 # Remove one level of quotation (which was required for Make).
157 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
162 if test "X$1" = X--no-reexec; then
163 # Discard the --no-reexec flag, and continue.
165 elif test "X$1" = X--fallback-echo; then
166 # Avoid inline document here, it may be left over
168 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
169 # Yippee, $echo works!
172 # Restart under the correct shell.
173 exec $SHELL "$0" --no-reexec ${1+"$@"}
176 if test "X$1" = X--fallback-echo; then
177 # used as fallback echo
185 # The HP-UX ksh and POSIX shell print the target directory to stdout
187 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
189 if test -z "$ECHO"; then
190 if test "X${echo_test_string+set}" != Xset; then
191 # find a string as large as possible, as long as the shell can cope with it
192 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
193 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
194 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
195 echo_test_string="`eval $cmd`" &&
196 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
203 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
204 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
205 test "X$echo_testing_string" = "X$echo_test_string"; then
208 # The Solaris, AIX, and Digital Unix default echo programs unquote
209 # backslashes. This makes it impossible to quote backslashes using
210 # echo "$something" | sed 's/\\/\\\\/g'
212 # So, first we look for a working echo in the user's PATH.
214 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
215 for dir in $PATH /usr/ucb; do
216 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
217 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
218 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
219 test "X$echo_testing_string" = "X$echo_test_string"; then
226 if test "X$echo" = Xecho; then
227 # We didn't find a better echo, so look for alternatives.
228 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
229 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
230 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # This shell has a builtin print -r that does the trick.
233 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
234 test "X$CONFIG_SHELL" != X/bin/ksh; then
235 # If we have ksh, try running configure again with it.
236 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
237 export ORIGINAL_CONFIG_SHELL
238 CONFIG_SHELL=/bin/ksh
240 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
244 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
245 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
246 test "X$echo_testing_string" = "X$echo_test_string"; then
249 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
250 test "X$echo_testing_string" = 'X\t' &&
251 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
252 test "X$echo_testing_string" = "X$echo_test_string"; then
253 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
255 SHELL="$CONFIG_SHELL"
257 echo="$CONFIG_SHELL $0 --fallback-echo"
258 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
259 test "X$echo_testing_string" = 'X\t' &&
260 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
261 test "X$echo_testing_string" = "X$echo_test_string"; then
262 echo="$CONFIG_SHELL $0 --fallback-echo"
264 # maybe with a smaller string...
267 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
268 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
275 if test "$prev" != 'sed 50q "$0"'; then
276 echo_test_string=`eval $prev`
277 export echo_test_string
278 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
280 # Oops. We lost completely, so just stick with echo.
289 # Copy echo and quote the copy suitably for passing to libtool from
290 # the Makefile, instead of quoting the original, which is used later.
292 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
293 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
298 --disable-libtool-lock avoid locking (might break parallel builds)"
300 --with-pic try to use only PIC/non-PIC objects [default=use both]"
303 See INSTALL file for further details."
305 # Initialize some variables set by options.
306 # The variables have the same names as the options, with
307 # dashes changed to underlines.
309 cache_file=./config.cache
318 program_transform_name=s,x,x,
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
339 # Initialize some other variables.
342 SHELL=${CONFIG_SHELL-/bin/sh}
343 # Maximum number of lines to put in a shell here document.
350 # If the previous option needs an argument, assign it.
351 if test -n "$ac_prev"; then
352 eval "$ac_prev=\$ac_option"
358 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 bindir="$ac_optarg" ;;
371 -build | --build | --buil | --bui | --bu)
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build="$ac_optarg" ;;
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file="$ac_optarg" ;;
383 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
385 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
387 datadir="$ac_optarg" ;;
389 -disable-* | --disable-*)
390 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
395 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
396 eval "enable_${ac_feature}=no" ;;
398 -enable-* | --enable-*)
399 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
404 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
409 eval "enable_${ac_feature}='$ac_optarg'" ;;
411 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
412 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
413 | --exec | --exe | --ex)
414 ac_prev=exec_prefix ;;
415 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
416 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
417 | --exec=* | --exe=* | --ex=*)
418 exec_prefix="$ac_optarg" ;;
420 -gas | --gas | --ga | --g)
421 # Obsolete; use --with-gas.
424 -help | --help | --hel | --he)
425 # Omit some internal or obsolete options to make the list less imposing.
426 # This message is too long to be a string in the A/UX 3.1 sh.
428 Usage: configure [options] [host]
429 Options: [defaults in brackets after descriptions]
431 --cache-file=FILE cache test results in FILE
432 --help print this message
433 --no-create do not create output files
434 --quiet, --silent do not print \`checking...' messages
435 --version print the version of autoconf that created configure
436 Directory and file names:
437 --prefix=PREFIX install architecture-independent files in PREFIX
439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
441 --bindir=DIR user executables in DIR [EPREFIX/bin]
442 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
443 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
444 --datadir=DIR read-only architecture-independent data in DIR
446 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
447 --sharedstatedir=DIR modifiable architecture-independent data in DIR
449 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
450 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
451 --includedir=DIR C header files in DIR [PREFIX/include]
452 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
453 --infodir=DIR info documentation in DIR [PREFIX/info]
454 --mandir=DIR man documentation in DIR [PREFIX/man]
455 --srcdir=DIR find the sources in DIR [configure dir or ..]
456 --program-prefix=PREFIX prepend PREFIX to installed program names
457 --program-suffix=SUFFIX append SUFFIX to installed program names
458 --program-transform-name=PROGRAM
459 run sed PROGRAM on installed program names
463 --build=BUILD configure for building on BUILD [BUILD=HOST]
464 --host=HOST configure for HOST [guessed]
465 --target=TARGET configure for TARGET [TARGET=HOST]
466 Features and packages:
467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
471 --x-includes=DIR X include files are in DIR
472 --x-libraries=DIR X library files are in DIR
474 if test -n "$ac_help"; then
475 echo "--enable and --with options recognized:$ac_help"
479 -host | --host | --hos | --ho)
481 -host=* | --host=* | --hos=* | --ho=*)
484 -includedir | --includedir | --includedi | --included | --include \
485 | --includ | --inclu | --incl | --inc)
486 ac_prev=includedir ;;
487 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
488 | --includ=* | --inclu=* | --incl=* | --inc=*)
489 includedir="$ac_optarg" ;;
491 -infodir | --infodir | --infodi | --infod | --info | --inf)
493 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
494 infodir="$ac_optarg" ;;
496 -libdir | --libdir | --libdi | --libd)
498 -libdir=* | --libdir=* | --libdi=* | --libd=*)
499 libdir="$ac_optarg" ;;
501 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
502 | --libexe | --libex | --libe)
503 ac_prev=libexecdir ;;
504 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
505 | --libexe=* | --libex=* | --libe=*)
506 libexecdir="$ac_optarg" ;;
508 -localstatedir | --localstatedir | --localstatedi | --localstated \
509 | --localstate | --localstat | --localsta | --localst \
510 | --locals | --local | --loca | --loc | --lo)
511 ac_prev=localstatedir ;;
512 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
513 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
514 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
515 localstatedir="$ac_optarg" ;;
517 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
519 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
520 mandir="$ac_optarg" ;;
523 # Obsolete; use --without-fp.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
534 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
535 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
536 | --oldin | --oldi | --old | --ol | --o)
537 ac_prev=oldincludedir ;;
538 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
539 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
540 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
541 oldincludedir="$ac_optarg" ;;
543 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
545 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
546 prefix="$ac_optarg" ;;
548 -program-prefix | --program-prefix | --program-prefi | --program-pref \
549 | --program-pre | --program-pr | --program-p)
550 ac_prev=program_prefix ;;
551 -program-prefix=* | --program-prefix=* | --program-prefi=* \
552 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
553 program_prefix="$ac_optarg" ;;
555 -program-suffix | --program-suffix | --program-suffi | --program-suff \
556 | --program-suf | --program-su | --program-s)
557 ac_prev=program_suffix ;;
558 -program-suffix=* | --program-suffix=* | --program-suffi=* \
559 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
560 program_suffix="$ac_optarg" ;;
562 -program-transform-name | --program-transform-name \
563 | --program-transform-nam | --program-transform-na \
564 | --program-transform-n | --program-transform- \
565 | --program-transform | --program-transfor \
566 | --program-transfo | --program-transf \
567 | --program-trans | --program-tran \
568 | --progr-tra | --program-tr | --program-t)
569 ac_prev=program_transform_name ;;
570 -program-transform-name=* | --program-transform-name=* \
571 | --program-transform-nam=* | --program-transform-na=* \
572 | --program-transform-n=* | --program-transform-=* \
573 | --program-transform=* | --program-transfor=* \
574 | --program-transfo=* | --program-transf=* \
575 | --program-trans=* | --program-tran=* \
576 | --progr-tra=* | --program-tr=* | --program-t=*)
577 program_transform_name="$ac_optarg" ;;
579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
580 | -silent | --silent | --silen | --sile | --sil)
583 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
585 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
587 sbindir="$ac_optarg" ;;
589 -sharedstatedir | --sharedstatedir | --sharedstatedi \
590 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
591 | --sharedst | --shareds | --shared | --share | --shar \
593 ac_prev=sharedstatedir ;;
594 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
595 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
596 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
598 sharedstatedir="$ac_optarg" ;;
600 -site | --site | --sit)
602 -site=* | --site=* | --sit=*)
605 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
607 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
608 srcdir="$ac_optarg" ;;
610 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
611 | --syscon | --sysco | --sysc | --sys | --sy)
612 ac_prev=sysconfdir ;;
613 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
614 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
615 sysconfdir="$ac_optarg" ;;
617 -target | --target | --targe | --targ | --tar | --ta | --t)
619 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
620 target="$ac_optarg" ;;
622 -v | -verbose | --verbose | --verbos | --verbo | --verb)
625 -version | --version | --versio | --versi | --vers)
626 echo "configure generated by autoconf version 2.13.1"
630 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
631 # Reject names that are not valid shell variable names.
632 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
633 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
635 ac_package=`echo $ac_package| sed 's/-/_/g'`
640 eval "with_${ac_package}='$ac_optarg'" ;;
642 -without-* | --without-*)
643 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
644 # Reject names that are not valid shell variable names.
645 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
646 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
648 ac_package=`echo $ac_package| sed 's/-/_/g'`
649 eval "with_${ac_package}=no" ;;
652 # Obsolete; use --with-x.
655 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
656 | --x-incl | --x-inc | --x-in | --x-i)
657 ac_prev=x_includes ;;
658 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
659 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
660 x_includes="$ac_optarg" ;;
662 -x-libraries | --x-libraries | --x-librarie | --x-librari \
663 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
664 ac_prev=x_libraries ;;
665 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
666 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
667 x_libraries="$ac_optarg" ;;
669 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
673 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
674 echo "configure: warning: $ac_option: invalid host type" 1>&2
676 if test "x$nonopt" != xNONE; then
677 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
685 if test -n "$ac_prev"; then
686 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
689 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
691 # File descriptor usage:
694 # 2 errors and warnings
695 # 3 some systems may open it to /dev/tty
696 # 4 used on the Kubota Titan
697 # 6 checking for... messages and results
698 # 5 compiler messages saved in config.log
699 if test "$silent" = yes; then
707 This file contains any messages produced by compilers while
708 running configure, to aid debugging if configure makes a mistake.
711 # Strip out --no-create and --no-recursion so they do not pile up.
712 # Also quote any args containing shell metacharacters.
717 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
718 | --no-cr | --no-c) ;;
719 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
720 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
721 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
722 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
723 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
728 # Only set these to C if already set. These must not be set unconditionally
729 # because not all systems understand e.g. LANG=C (notably SCO).
730 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
731 # Non-C LC_CTYPE values break the ctype check.
732 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
733 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
734 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
735 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
738 rm -rf conftest* confdefs.h
739 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
742 # A filename unique to this package, relative to the directory that
743 # configure is in, which we can look for to find out if srcdir is correct.
744 ac_unique_file=build/version.sh
746 # Find the source files, if location was not specified.
747 if test -z "$srcdir"; then
748 ac_srcdir_defaulted=yes
749 # Try the directory containing this script, then its parent.
751 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
752 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
754 if test ! -r $srcdir/$ac_unique_file; then
758 ac_srcdir_defaulted=no
760 if test ! -r $srcdir/$ac_unique_file; then
761 if test "$ac_srcdir_defaulted" = yes; then
762 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
764 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
767 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
769 # Prefer explicitly selected file to automatically selected ones.
770 if test -z "$CONFIG_SITE"; then
771 if test "x$prefix" != xNONE; then
772 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
774 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
777 for ac_site_file in $CONFIG_SITE; do
778 if test -r "$ac_site_file"; then
779 echo "loading site script $ac_site_file"
786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp='$CPP $CPPFLAGS'
788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling=$ac_cv_prog_cc_cross
794 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
795 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
796 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
803 ac_n= ac_c='\c' ac_t=
807 # set unset (borrowed from autoconf 2.49c)
808 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
814 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
817 for ac_dir in build $srcdir/build; do
818 if test -f $ac_dir/install-sh; then
820 ac_install_sh="$ac_aux_dir/install-sh -c"
822 elif test -f $ac_dir/install.sh; then
824 ac_install_sh="$ac_aux_dir/install.sh -c"
826 elif test -f $ac_dir/shtool; then
828 ac_install_sh="$ac_aux_dir/shtool install -c"
832 if test -z "$ac_aux_dir"; then
833 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
835 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
836 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
837 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
839 eval `$ac_aux_dir/version.sh`
840 if test -z "$OL_STRING"; then
841 { echo "configure: error: could not determine version" 1>&2; exit 1; }
844 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
845 ac_cv_shtool="$ac_aux_dir/shtool"
847 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
850 SHTOOL="$ac_cv_shtool"
852 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
853 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
856 if test -d $ac_aux_dir/CVS; then
857 OPENLDAP_CVS="(from CVS sources) "
860 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
863 echo $ac_n "checking host system type""... $ac_c" 1>&6
864 echo "configure:865: checking host system type" >&5
865 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
867 # Make sure we can run config.sub.
868 if $ac_config_sub sun4 >/dev/null 2>&1; then :
869 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
872 ac_cv_host_alias=$host
873 case "$ac_cv_host_alias" in
877 if ac_cv_host_alias=`$ac_config_guess`; then :
878 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
880 *) ac_cv_host_alias=$nonopt ;;
884 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
885 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
886 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
887 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889 echo $ac_n "(cached) $ac_c" 1>&6
892 echo "$ac_t""$ac_cv_host" 1>&6
895 host_alias=$ac_cv_host_alias
896 host_cpu=$ac_cv_host_cpu
897 host_vendor=$ac_cv_host_vendor
898 host_os=$ac_cv_host_os
904 echo $ac_n "checking target system type""... $ac_c" 1>&6
905 echo "configure:906: checking target system type" >&5
906 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
908 # Make sure we can run config.sub.
909 if $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 ac_cv_target_alias=$target
914 case "$ac_cv_target_alias" in
918 ac_cv_target_alias=$host_alias ;;
920 *) ac_cv_target_alias=$nonopt ;;
924 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
925 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
926 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
927 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
929 echo $ac_n "(cached) $ac_c" 1>&6
932 echo "$ac_t""$ac_cv_target" 1>&6
935 target_alias=$ac_cv_target_alias
936 target_cpu=$ac_cv_target_cpu
937 target_vendor=$ac_cv_target_vendor
938 target_os=$ac_cv_target_os
944 echo $ac_n "checking build system type""... $ac_c" 1>&6
945 echo "configure:946: checking build system type" >&5
946 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
948 # Make sure we can run config.sub.
949 if $ac_config_sub sun4 >/dev/null 2>&1; then :
950 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953 ac_cv_build_alias=$build
954 case "$ac_cv_build_alias" in
958 ac_cv_build_alias=$host_alias ;;
960 *) ac_cv_build_alias=$nonopt ;;
964 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
965 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
969 echo $ac_n "(cached) $ac_c" 1>&6
972 echo "$ac_t""$ac_cv_build" 1>&6
975 build_alias=$ac_cv_build_alias
976 build_cpu=$ac_cv_build_cpu
977 build_vendor=$ac_cv_build_vendor
978 build_os=$ac_cv_build_os
984 # Do some error checking and defaulting for the host and target type.
986 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
989 # 1. You are not allowed to specify --host, --target, and nonopt at the
991 # 2. Host defaults to nonopt.
992 # 3. If nonopt is not specified, then host defaults to the current host,
993 # as determined by config.guess.
994 # 4. Target and build default to nonopt.
995 # 5. If nonopt is not specified, then target and build default to host.
997 # The aliases save the names the user supplied, while $host etc.
998 # will get canonicalized.
999 case $host---$target---$nonopt in
1000 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1001 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004 test "$host_alias" != "$target_alias" &&
1005 test "$program_prefix$program_suffix$program_transform_name" = \
1007 program_prefix=${target_alias}-
1010 # Find a good install program. We prefer a C program (faster),
1011 # so one script is as good as another. But avoid the broken or
1012 # incompatible versions:
1013 # SysV /etc/install, /usr/sbin/install
1014 # SunOS /usr/etc/install
1015 # IRIX /sbin/install
1017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1020 # ./install, which can be erroneously created by make from ./install.sh.
1021 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1022 echo "configure:1023: checking for a BSD compatible install" >&5
1023 if test -z "$INSTALL"; then
1024 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1028 for ac_dir in $PATH; do
1029 # Account for people who put trailing slashes in PATH elements.
1031 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1033 # OSF1 and SCO ODT 3.0 have their own names for install.
1034 # Don't use installbsd from OSF since it installs stuff as root
1036 for ac_prog in ginstall scoinst install; do
1037 if test -f $ac_dir/$ac_prog; then
1038 if test $ac_prog = install &&
1039 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1040 # AIX install. It has an incompatible calling convention.
1042 elif test $ac_prog = install &&
1043 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1044 # program-specific install script used by HP pwplus--don't use.
1047 ac_cv_path_install="$ac_dir/$ac_prog -c"
1058 if test "${ac_cv_path_install+set}" = set; then
1059 INSTALL="$ac_cv_path_install"
1061 # As a last resort, use the slow shell script. We don't cache a
1062 # path for INSTALL within a source directory, because that will
1063 # break other packages using the cache if that directory is
1064 # removed, or if the path is relative.
1065 INSTALL="$ac_install_sh"
1068 echo "$ac_t""$INSTALL" 1>&6
1070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1071 # It thinks the first close brace ends the variable substitution.
1072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1078 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1079 echo "configure:1080: checking whether build environment is sane" >&5
1082 echo timestamp > conftestfile
1083 # Do `set' in a subshell so we don't clobber the current shell's
1084 # arguments. Must try -L first in case configure is actually a
1085 # symlink; some systems play weird games with the mod time of symlinks
1086 # (eg FreeBSD returns the mod time of the symlink's containing
1089 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1090 if test "$*" = "X"; then
1092 set X `ls -t $srcdir/configure conftestfile`
1094 if test "$*" != "X $srcdir/configure conftestfile" \
1095 && test "$*" != "X conftestfile $srcdir/configure"; then
1097 # If neither matched, then we have a broken ls. This can happen
1098 # if, for instance, CONFIG_SHELL is bash and it inherits a
1099 # broken ls alias from the environment. This has actually
1100 # happened. Such a system could not be considered "sane".
1101 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1102 alias in your environment" 1>&2; exit 1; }
1105 test "$2" = conftestfile
1111 { echo "configure: error: newly created file is older than distributed files!
1112 Check your system clock" 1>&2; exit 1; }
1115 echo "$ac_t""yes" 1>&6
1116 if test "$program_transform_name" = s,x,x,; then
1117 program_transform_name=
1119 # Double any \ or $. echo might interpret backslashes.
1120 cat <<\EOF_SED > conftestsed
1121 s,\\,\\\\,g; s,\$,$$,g
1123 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1126 test "$program_prefix" != NONE &&
1127 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1128 # Use a double $ so make ignores it.
1129 test "$program_suffix" != NONE &&
1130 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1132 # sed with no file args requires a program.
1133 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1135 for ac_prog in mawk gawk nawk awk
1137 # Extract the first word of "$ac_prog", so it can be a program name with args.
1138 set dummy $ac_prog; ac_word=$2
1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140 echo "configure:1141: checking for $ac_word" >&5
1141 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 if test -n "$AWK"; then
1145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1149 for ac_dir in $ac_dummy; do
1150 test -z "$ac_dir" && ac_dir=.
1151 if test -f $ac_dir/$ac_word; then
1152 ac_cv_prog_AWK="$ac_prog"
1159 AWK="$ac_cv_prog_AWK"
1160 if test -n "$AWK"; then
1161 echo "$ac_t""$AWK" 1>&6
1163 echo "$ac_t""no" 1>&6
1166 test -n "$AWK" && break
1169 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether ${MAKE-make} sets \${MAKE}" >&5
1171 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1172 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 cat > conftestmake <<\EOF
1177 @echo 'ac_maketemp="${MAKE}"'
1179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1180 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1181 if test -n "$ac_maketemp"; then
1182 eval ac_cv_prog_make_${ac_make}_set=yes
1184 eval ac_cv_prog_make_${ac_make}_set=no
1188 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1189 echo "$ac_t""yes" 1>&6
1192 echo "$ac_t""no" 1>&6
1193 SET_MAKE="MAKE=${MAKE-make}"
1202 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1203 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1208 missing_dir=`cd $ac_aux_dir && pwd`
1209 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1210 echo "configure:1211: checking for working aclocal" >&5
1211 # Run test in a subshell; some versions of sh will print an error if
1212 # an executable is not found, even if stderr is redirected.
1213 # Redirect stdin to placate older versions of autoconf. Sigh.
1214 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1216 echo "$ac_t""found" 1>&6
1218 ACLOCAL="$missing_dir/missing aclocal"
1219 echo "$ac_t""missing" 1>&6
1222 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1223 echo "configure:1224: checking for working autoconf" >&5
1224 # Run test in a subshell; some versions of sh will print an error if
1225 # an executable is not found, even if stderr is redirected.
1226 # Redirect stdin to placate older versions of autoconf. Sigh.
1227 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1229 echo "$ac_t""found" 1>&6
1231 AUTOCONF="$missing_dir/missing autoconf"
1232 echo "$ac_t""missing" 1>&6
1235 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1236 echo "configure:1237: checking for working automake" >&5
1237 # Run test in a subshell; some versions of sh will print an error if
1238 # an executable is not found, even if stderr is redirected.
1239 # Redirect stdin to placate older versions of autoconf. Sigh.
1240 if (automake --version) < /dev/null > /dev/null 2>&1; then
1242 echo "$ac_t""found" 1>&6
1244 AUTOMAKE="$missing_dir/missing automake"
1245 echo "$ac_t""missing" 1>&6
1248 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1249 echo "configure:1250: checking for working autoheader" >&5
1250 # Run test in a subshell; some versions of sh will print an error if
1251 # an executable is not found, even if stderr is redirected.
1252 # Redirect stdin to placate older versions of autoconf. Sigh.
1253 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1254 AUTOHEADER=autoheader
1255 echo "$ac_t""found" 1>&6
1257 AUTOHEADER="$missing_dir/missing autoheader"
1258 echo "$ac_t""missing" 1>&6
1261 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working makeinfo" >&5
1263 # Run test in a subshell; some versions of sh will print an error if
1264 # an executable is not found, even if stderr is redirected.
1265 # Redirect stdin to placate older versions of autoconf. Sigh.
1266 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1268 echo "$ac_t""found" 1>&6
1270 MAKEINFO="$missing_dir/missing makeinfo"
1271 echo "$ac_t""missing" 1>&6
1274 install_sh="$missing_dir/install-sh"
1275 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1277 for ac_prog in gnutar gtar tar
1279 # Extract the first word of "$ac_prog", so it can be a program name with args.
1280 set dummy $ac_prog; ac_word=$2
1281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1282 echo "configure:1283: checking for $ac_word" >&5
1283 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 if test -n "$AMTAR"; then
1287 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_prog_AMTAR="$ac_prog"
1301 AMTAR="$ac_cv_prog_AMTAR"
1302 if test -n "$AMTAR"; then
1303 echo "$ac_t""$AMTAR" 1>&6
1305 echo "$ac_t""no" 1>&6
1308 test -n "$AMTAR" && break
1313 if test -n "$AMTAR"; then
1314 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1319 cat >> confdefs.h <<EOF
1320 #define OPENLDAP_PACKAGE "$PACKAGE"
1323 cat >> confdefs.h <<EOF
1324 #define OPENLDAP_VERSION "$VERSION"
1328 cat >> confdefs.h <<EOF
1329 #define LDAP_VENDOR_VERSION $OL_API_INC
1332 cat >> confdefs.h <<EOF
1333 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1336 cat >> confdefs.h <<EOF
1337 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1345 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1347 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1349 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1353 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1354 echo "configure:1355: checking configure arguments" >&5
1359 ldap_subdir="/openldap"
1361 # Check whether --with-subdir or --without-subdir was given.
1362 if test "${with_subdir+set}" = set; then
1363 withval="$with_subdir"
1370 ldap_subdir="$withval"
1373 ldap_subdir="/$withval"
1380 # OpenLDAP --enable-debug
1381 # Check whether --enable-debug or --disable-debug was given.
1382 if test "${enable_debug+set}" = set; then
1383 enableval="$enable_debug"
1386 for ol_val in auto yes no ; do
1387 if test "$enableval" = "$ol_val" ; then
1391 if test "$ol_arg" = "invalid" ; then
1392 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1394 ol_enable_debug="$ol_arg"
1397 ol_enable_debug="yes"
1399 # end --enable-debug
1400 # OpenLDAP --enable-dynamic
1401 # Check whether --enable-dynamic or --disable-dynamic was given.
1402 if test "${enable_dynamic+set}" = set; then
1403 enableval="$enable_dynamic"
1406 for ol_val in auto yes no ; do
1407 if test "$enableval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1414 ol_enable_dynamic="$ol_arg"
1417 ol_enable_dynamic="no"
1419 # end --enable-dynamic
1420 # OpenLDAP --enable-syslog
1421 # Check whether --enable-syslog or --disable-syslog was given.
1422 if test "${enable_syslog+set}" = set; then
1423 enableval="$enable_syslog"
1426 for ol_val in auto yes no ; do
1427 if test "$enableval" = "$ol_val" ; then
1431 if test "$ol_arg" = "invalid" ; then
1432 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1434 ol_enable_syslog="$ol_arg"
1437 ol_enable_syslog="auto"
1439 # end --enable-syslog
1440 # OpenLDAP --enable-proctitle
1441 # Check whether --enable-proctitle or --disable-proctitle was given.
1442 if test "${enable_proctitle+set}" = set; then
1443 enableval="$enable_proctitle"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1454 ol_enable_proctitle="$ol_arg"
1457 ol_enable_proctitle="yes"
1459 # end --enable-proctitle
1460 ol_enable_referrals=${ol_enable_referrals-no}
1461 ol_enable_kbind=${ol_enable_kbind-no}
1462 # OpenLDAP --enable-ipv6
1463 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1464 if test "${enable_ipv6+set}" = set; then
1465 enableval="$enable_ipv6"
1468 for ol_val in auto yes no ; do
1469 if test "$enableval" = "$ol_val" ; then
1473 if test "$ol_arg" = "invalid" ; then
1474 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1476 ol_enable_ipv6="$ol_arg"
1479 ol_enable_ipv6="auto"
1482 # OpenLDAP --enable-local
1483 # Check whether --enable-local or --disable-local was given.
1484 if test "${enable_local+set}" = set; then
1485 enableval="$enable_local"
1488 for ol_val in auto yes no ; do
1489 if test "$enableval" = "$ol_val" ; then
1493 if test "$ol_arg" = "invalid" ; then
1494 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1496 ol_enable_local="$ol_arg"
1499 ol_enable_local="auto"
1501 # end --enable-local
1504 # OpenLDAP --with-cyrus_sasl
1505 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1506 if test "${with_cyrus_sasl+set}" = set; then
1507 withval="$with_cyrus_sasl"
1510 for ol_val in auto yes no ; do
1511 if test "$withval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1518 ol_with_cyrus_sasl="$ol_arg"
1521 ol_with_cyrus_sasl="auto"
1523 # end --with-cyrus_sasl
1525 # OpenLDAP --with-fetch
1526 # Check whether --with-fetch or --without-fetch was given.
1527 if test "${with_fetch+set}" = set; then
1528 withval="$with_fetch"
1531 for ol_val in auto yes no ; do
1532 if test "$withval" = "$ol_val" ; then
1536 if test "$ol_arg" = "invalid" ; then
1537 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1539 ol_with_fetch="$ol_arg"
1542 ol_with_fetch="auto"
1546 ol_with_kerberos=${ol_with_kerberos-auto}
1547 # OpenLDAP --with-threads
1548 # Check whether --with-threads or --without-threads was given.
1549 if test "${with_threads+set}" = set; then
1550 withval="$with_threads"
1553 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1554 if test "$withval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1561 ol_with_threads="$ol_arg"
1564 ol_with_threads="auto"
1566 # end --with-threads
1568 # OpenLDAP --with-tls
1569 # Check whether --with-tls or --without-tls was given.
1570 if test "${with_tls+set}" = set; then
1574 for ol_val in auto ssleay openssl yes no ; do
1575 if test "$withval" = "$ol_val" ; then
1579 if test "$ol_arg" = "invalid" ; then
1580 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1582 ol_with_tls="$ol_arg"
1589 # OpenLDAP --with-yielding_select
1590 # Check whether --with-yielding_select or --without-yielding_select was given.
1591 if test "${with_yielding_select+set}" = set; then
1592 withval="$with_yielding_select"
1595 for ol_val in auto yes no manual ; do
1596 if test "$withval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1603 ol_with_yielding_select="$ol_arg"
1606 ol_with_yielding_select="auto"
1608 # end --with-yielding_select
1612 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1613 if test "${with_xxslapdoptions+set}" = set; then
1614 withval="$with_xxslapdoptions"
1618 # OpenLDAP --enable-slapd
1619 # Check whether --enable-slapd or --disable-slapd was given.
1620 if test "${enable_slapd+set}" = set; then
1621 enableval="$enable_slapd"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1632 ol_enable_slapd="$ol_arg"
1635 ol_enable_slapd="yes"
1637 # end --enable-slapd
1638 # OpenLDAP --enable-aci
1639 # Check whether --enable-aci or --disable-aci was given.
1640 if test "${enable_aci+set}" = set; then
1641 enableval="$enable_aci"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1652 ol_enable_aci="$ol_arg"
1658 # OpenLDAP --enable-cleartext
1659 # Check whether --enable-cleartext or --disable-cleartext was given.
1660 if test "${enable_cleartext+set}" = set; then
1661 enableval="$enable_cleartext"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1672 ol_enable_cleartext="$ol_arg"
1675 ol_enable_cleartext="yes"
1677 # end --enable-cleartext
1678 # OpenLDAP --enable-crypt
1679 # Check whether --enable-crypt or --disable-crypt was given.
1680 if test "${enable_crypt+set}" = set; then
1681 enableval="$enable_crypt"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1692 ol_enable_crypt="$ol_arg"
1695 ol_enable_crypt="no"
1697 # end --enable-crypt
1698 # OpenLDAP --enable-lmpasswd
1699 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1700 if test "${enable_lmpasswd+set}" = set; then
1701 enableval="$enable_lmpasswd"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1712 ol_enable_lmpasswd="$ol_arg"
1715 ol_enable_lmpasswd="no"
1717 # end --enable-lmpasswd
1718 # OpenLDAP --enable-spasswd
1719 # Check whether --enable-spasswd or --disable-spasswd was given.
1720 if test "${enable_spasswd+set}" = set; then
1721 enableval="$enable_spasswd"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1732 ol_enable_spasswd="$ol_arg"
1735 ol_enable_spasswd="no"
1737 # end --enable-spasswd
1738 # OpenLDAP --enable-modules
1739 # Check whether --enable-modules or --disable-modules was given.
1740 if test "${enable_modules+set}" = set; then
1741 enableval="$enable_modules"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1752 ol_enable_modules="$ol_arg"
1755 ol_enable_modules="no"
1757 # end --enable-modules
1758 ol_enable_multimaster=${ol_enable_multimaster-no}
1759 # OpenLDAP --enable-rewrite
1760 # Check whether --enable-rewrite or --disable-rewrite was given.
1761 if test "${enable_rewrite+set}" = set; then
1762 enableval="$enable_rewrite"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1773 ol_enable_rewrite="$ol_arg"
1776 ol_enable_rewrite="auto"
1778 # end --enable-rewrite
1779 # OpenLDAP --enable-rlookups
1780 # Check whether --enable-rlookups or --disable-rlookups was given.
1781 if test "${enable_rlookups+set}" = set; then
1782 enableval="$enable_rlookups"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1793 ol_enable_rlookups="$ol_arg"
1796 ol_enable_rlookups="no"
1798 # end --enable-rlookups
1799 # OpenLDAP --enable-slapi
1800 # Check whether --enable-slapi or --disable-slapi was given.
1801 if test "${enable_slapi+set}" = set; then
1802 enableval="$enable_slapi"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1813 ol_enable_slapi="$ol_arg"
1816 ol_enable_slapi="no"
1818 # end --enable-slapi
1819 # OpenLDAP --enable-slp
1820 # Check whether --enable-slp or --disable-slp was given.
1821 if test "${enable_slp+set}" = set; then
1822 enableval="$enable_slp"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1833 ol_enable_slp="$ol_arg"
1839 # OpenLDAP --enable-wrappers
1840 # Check whether --enable-wrappers or --disable-wrappers was given.
1841 if test "${enable_wrappers+set}" = set; then
1842 enableval="$enable_wrappers"
1845 for ol_val in auto yes no ; do
1846 if test "$enableval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1853 ol_enable_wrappers="$ol_arg"
1856 ol_enable_wrappers="no"
1858 # end --enable-wrappers
1860 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1861 passwd perl shell sql"
1863 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
1864 if test "${with_xxslapoverlays+set}" = set; then
1865 withval="$with_xxslapoverlays"
1870 # OpenLDAP --enable-bdb
1871 # Check whether --enable-bdb or --disable-bdb was given.
1872 if test "${enable_bdb+set}" = set; then
1873 enableval="$enable_bdb"
1876 for ol_val in no yes mod ; do
1877 if test "$enableval" = "$ol_val" ; then
1881 if test "$ol_arg" = "invalid" ; then
1882 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1884 ol_enable_bdb="$ol_arg"
1890 # OpenLDAP --enable-dnssrv
1891 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1892 if test "${enable_dnssrv+set}" = set; then
1893 enableval="$enable_dnssrv"
1896 for ol_val in no yes mod ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1904 ol_enable_dnssrv="$ol_arg"
1907 ol_enable_dnssrv="no"
1909 # end --enable-dnssrv
1910 # OpenLDAP --enable-hdb
1911 # Check whether --enable-hdb or --disable-hdb was given.
1912 if test "${enable_hdb+set}" = set; then
1913 enableval="$enable_hdb"
1916 for ol_val in no yes mod ; do
1917 if test "$enableval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1924 ol_enable_hdb="$ol_arg"
1930 # OpenLDAP --enable-ldap
1931 # Check whether --enable-ldap or --disable-ldap was given.
1932 if test "${enable_ldap+set}" = set; then
1933 enableval="$enable_ldap"
1936 for ol_val in no yes mod ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1944 ol_enable_ldap="$ol_arg"
1950 # OpenLDAP --enable-ldbm
1951 # Check whether --enable-ldbm or --disable-ldbm was given.
1952 if test "${enable_ldbm+set}" = set; then
1953 enableval="$enable_ldbm"
1956 for ol_val in no yes mod ; do
1957 if test "$enableval" = "$ol_val" ; then
1961 if test "$ol_arg" = "invalid" ; then
1962 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1964 ol_enable_ldbm="$ol_arg"
1970 # OpenLDAP --with-ldbm_api
1971 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1972 if test "${with_ldbm_api+set}" = set; then
1973 withval="$with_ldbm_api"
1976 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1977 if test "$withval" = "$ol_val" ; then
1981 if test "$ol_arg" = "invalid" ; then
1982 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1984 ol_with_ldbm_api="$ol_arg"
1987 ol_with_ldbm_api="auto"
1989 # end --with-ldbm_api
1991 # OpenLDAP --with-ldbm_type
1992 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1993 if test "${with_ldbm_type+set}" = set; then
1994 withval="$with_ldbm_type"
1997 for ol_val in auto btree hash ; do
1998 if test "$withval" = "$ol_val" ; then
2002 if test "$ol_arg" = "invalid" ; then
2003 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2005 ol_with_ldbm_type="$ol_arg"
2008 ol_with_ldbm_type="auto"
2010 # end --with-ldbm_type
2012 # OpenLDAP --enable-meta
2013 # Check whether --enable-meta or --disable-meta was given.
2014 if test "${enable_meta+set}" = set; then
2015 enableval="$enable_meta"
2018 for ol_val in no yes mod ; do
2019 if test "$enableval" = "$ol_val" ; then
2023 if test "$ol_arg" = "invalid" ; then
2024 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2026 ol_enable_meta="$ol_arg"
2032 # OpenLDAP --enable-monitor
2033 # Check whether --enable-monitor or --disable-monitor was given.
2034 if test "${enable_monitor+set}" = set; then
2035 enableval="$enable_monitor"
2038 for ol_val in no yes mod ; do
2039 if test "$enableval" = "$ol_val" ; then
2043 if test "$ol_arg" = "invalid" ; then
2044 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2046 ol_enable_monitor="$ol_arg"
2049 ol_enable_monitor="yes"
2051 # end --enable-monitor
2052 # OpenLDAP --enable-null
2053 # Check whether --enable-null or --disable-null was given.
2054 if test "${enable_null+set}" = set; then
2055 enableval="$enable_null"
2058 for ol_val in no yes mod ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2066 ol_enable_null="$ol_arg"
2072 # OpenLDAP --enable-passwd
2073 # Check whether --enable-passwd or --disable-passwd was given.
2074 if test "${enable_passwd+set}" = set; then
2075 enableval="$enable_passwd"
2078 for ol_val in no yes mod ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2086 ol_enable_passwd="$ol_arg"
2089 ol_enable_passwd="no"
2091 # end --enable-passwd
2092 # OpenLDAP --enable-perl
2093 # Check whether --enable-perl or --disable-perl was given.
2094 if test "${enable_perl+set}" = set; then
2095 enableval="$enable_perl"
2098 for ol_val in no yes mod ; do
2099 if test "$enableval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2106 ol_enable_perl="$ol_arg"
2112 # OpenLDAP --enable-shell
2113 # Check whether --enable-shell or --disable-shell was given.
2114 if test "${enable_shell+set}" = set; then
2115 enableval="$enable_shell"
2118 for ol_val in no yes mod ; do
2119 if test "$enableval" = "$ol_val" ; then
2123 if test "$ol_arg" = "invalid" ; then
2124 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2126 ol_enable_shell="$ol_arg"
2129 ol_enable_shell="no"
2131 # end --enable-shell
2132 # OpenLDAP --enable-sql
2133 # Check whether --enable-sql or --disable-sql was given.
2134 if test "${enable_sql+set}" = set; then
2135 enableval="$enable_sql"
2138 for ol_val in no yes mod ; do
2139 if test "$enableval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2146 ol_enable_sql="$ol_arg"
2153 Overlays="dyngroup proxycache"
2155 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2156 if test "${with_xxslapoverlays+set}" = set; then
2157 withval="$with_xxslapoverlays"
2162 # OpenLDAP --enable-dyngroup
2163 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2164 if test "${enable_dyngroup+set}" = set; then
2165 enableval="$enable_dyngroup"
2168 for ol_val in no yes mod ; do
2169 if test "$enableval" = "$ol_val" ; then
2173 if test "$ol_arg" = "invalid" ; then
2174 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2176 ol_enable_dyngroup="$ol_arg"
2179 ol_enable_dyngroup="no"
2181 # end --enable-dyngroup
2183 # OpenLDAP --enable-proxycache
2184 # Check whether --enable-proxycache or --disable-proxycache was given.
2185 if test "${enable_proxycache+set}" = set; then
2186 enableval="$enable_proxycache"
2189 for ol_val in no yes mod ; do
2190 if test "$enableval" = "$ol_val" ; then
2194 if test "$ol_arg" = "invalid" ; then
2195 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2197 ol_enable_proxycache="$ol_arg"
2200 ol_enable_proxycache="no"
2202 # end --enable-proxycache
2205 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2206 if test "${with_xxslurpdoptions+set}" = set; then
2207 withval="$with_xxslurpdoptions"
2211 # OpenLDAP --enable-slurpd
2212 # Check whether --enable-slurpd or --disable-slurpd was given.
2213 if test "${enable_slurpd+set}" = set; then
2214 enableval="$enable_slurpd"
2217 for ol_val in auto yes no ; do
2218 if test "$enableval" = "$ol_val" ; then
2222 if test "$ol_arg" = "invalid" ; then
2223 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2225 ol_enable_slurpd="$ol_arg"
2228 ol_enable_slurpd="auto"
2230 # end --enable-slurpd
2232 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2233 if test "${with_xxliboptions+set}" = set; then
2234 withval="$with_xxliboptions"
2238 # Check whether --enable-static or --disable-static was given.
2239 if test "${enable_static+set}" = set; then
2240 enableval="$enable_static"
2241 p=${PACKAGE-default}
2243 yes) enable_static=yes ;;
2244 no) enable_static=no ;;
2247 # Look at the argument we got. We use all the common list separators.
2248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2249 for pkg in $enableval; do
2250 if test "X$pkg" = "X$p"; then
2261 # Check whether --enable-shared or --disable-shared was given.
2262 if test "${enable_shared+set}" = set; then
2263 enableval="$enable_shared"
2264 p=${PACKAGE-default}
2266 yes) enable_shared=yes ;;
2267 no) enable_shared=no ;;
2270 # Look at the argument we got. We use all the common list separators.
2271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2272 for pkg in $enableval; do
2273 if test "X$pkg" = "X$p"; then
2287 if test $ol_enable_slapd = no ; then
2288 if test $ol_enable_slapi = yes ; then
2289 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2291 for i in $Backends; do
2292 eval "ol_tmp=\$ol_enable_$i"
2293 if test $ol_tmp != no ; then
2294 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2295 eval "ol_enable_$i=no"
2298 if test $ol_enable_modules = yes ; then
2299 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2301 if test $ol_enable_multimaster = yes ; then
2302 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2304 if test $ol_enable_wrappers = yes ; then
2305 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2307 if test $ol_enable_rlookups = yes ; then
2308 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2310 if test $ol_enable_aci = yes ; then
2311 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2313 if test $ol_with_ldbm_api != auto ; then
2314 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2316 if test $ol_with_ldbm_type != auto ; then
2317 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2319 if test $ol_enable_slurpd = yes ; then
2320 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2322 if test $ol_enable_rewrite = yes ; then
2323 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2325 for i in $Overlays; do
2326 eval "ol_tmp=\$ol_enable_$i"
2327 if test $ol_tmp != no ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2329 eval "ol_enable_$i=no"
2333 # force settings to no
2336 ol_enable_modules=no
2337 ol_enable_multimaster=no
2338 ol_enable_rlookups=no
2340 ol_enable_wrappers=no
2343 ol_with_ldbm_type=no
2347 ol_enable_rewrite=no
2349 elif test $ol_enable_ldbm = no ; then
2351 if test $ol_with_ldbm_api != auto ; then
2352 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2355 if test $ol_with_ldbm_type != auto ; then
2356 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2359 if test $ol_enable_modules != yes -a \
2360 $ol_enable_bdb = no -a \
2361 $ol_enable_dnssrv = no -a \
2362 $ol_enable_hdb = no -a \
2363 $ol_enable_ldap = no -a \
2364 $ol_enable_meta = no -a \
2365 $ol_enable_monitor = no -a \
2366 $ol_enable_null = no -a \
2367 $ol_enable_passwd = no -a \
2368 $ol_enable_perl = no -a \
2369 $ol_enable_shell = no -a \
2370 $ol_enable_sql = no ; then
2372 if test $ol_enable_slapd = yes ; then
2373 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2375 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2381 ol_with_ldbm_type=no
2383 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2384 ol_with_ldbm_api=berkeley
2388 if test $ol_with_ldbm_api = gdbm -a \
2389 $ol_with_ldbm_type = btree ; then
2390 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2392 if test $ol_with_ldbm_api = mdbm -a \
2393 $ol_with_ldbm_type = btree ; then
2394 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2396 if test $ol_with_ldbm_api = ndbm -a \
2397 $ol_with_ldbm_type = btree ; then
2398 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2401 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2402 if test $ol_with_ldbm_api = auto ; then
2403 ol_with_ldbm_api=berkeley
2404 elif test $ol_with_ldbm_api != berkeley ; then
2405 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2408 elif test $ol_enable_bdb = auto ; then
2409 if test $ol_with_ldbm_api != berkeley \
2410 -o $ol_with_ldbm_api != auto ; then
2411 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2417 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2418 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2421 if test $ol_enable_slurpd = yes ; then
2422 if test $ol_with_threads = no ; then
2423 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2427 if test $ol_enable_lmpasswd = yes ; then
2428 if test $ol_with_tls = no ; then
2429 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2433 if test $ol_enable_kbind = yes ; then
2434 if test $ol_with_kerberos = no ; then
2435 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2436 elif test $ol_with_kerberos = auto ; then
2437 ol_with_kerberos=yes
2440 elif test $ol_enable_kbind = no ; then
2441 if test $ol_with_kerberos = auto ; then
2443 elif test $ol_with_kerberos != no ; then
2444 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2449 if test $ol_enable_spasswd = yes ; then
2450 if test $ol_with_cyrus_sasl = no ; then
2451 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2453 ol_with_cyrus_sasl=yes
2456 echo "$ac_t""done" 1>&6
2490 SLAPD_DYNAMIC_OVERLAYS=
2492 SLAPD_MODULES_LDFLAGS=
2493 SLAPD_MODULES_CPPFLAGS=
2495 SLAPD_STATIC_BACKENDS=
2496 SLAPD_DYNAMIC_BACKENDS=
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2531 echo "configure:2532: checking for a BSD compatible install" >&5
2532 if test -z "$INSTALL"; then
2533 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2537 for ac_dir in $PATH; do
2538 # Account for people who put trailing slashes in PATH elements.
2540 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2542 # OSF1 and SCO ODT 3.0 have their own names for install.
2543 # Don't use installbsd from OSF since it installs stuff as root
2545 for ac_prog in ginstall scoinst install; do
2546 if test -f $ac_dir/$ac_prog; then
2547 if test $ac_prog = install &&
2548 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2549 # AIX install. It has an incompatible calling convention.
2551 elif test $ac_prog = install &&
2552 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2553 # program-specific install script used by HP pwplus--don't use.
2556 ac_cv_path_install="$ac_dir/$ac_prog -c"
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL="$ac_cv_path_install"
2570 # As a last resort, use the slow shell script. We don't cache a
2571 # path for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the path is relative.
2574 INSTALL="$ac_install_sh"
2577 echo "$ac_t""$INSTALL" 1>&6
2579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580 # It thinks the first close brace ends the variable substitution.
2581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588 cat >> confdefs.h <<\EOF
2589 #define HAVE_MKVERSION 1
2597 *-*-aix*) if test -z "$CC" ; then
2598 case "$ol_with_threads" in
2599 auto | yes | posix) ol_aix_threads=yes ;;
2605 if test $ol_aix_threads = yes ; then
2606 if test -z "${CC}" ; then
2607 for ac_prog in cc_r xlc_r cc
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_word" >&5
2613 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2621 for ac_dir in $ac_dummy; do
2622 test -z "$ac_dir" && ac_dir=.
2623 if test -f $ac_dir/$ac_word; then
2624 ac_cv_prog_CC="$ac_prog"
2632 if test -n "$CC"; then
2633 echo "$ac_t""$CC" 1>&6
2635 echo "$ac_t""no" 1>&6
2638 test -n "$CC" && break
2642 if test "$CC" = cc ; then
2643 if test $ol_with_threads != auto ; then
2644 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2646 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2652 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2653 ol_with_threads=posix
2654 ol_cv_pthread_create=yes
2658 if test -z "${CC}"; then
2659 for ac_prog in cc gcc
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2673 for ac_dir in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir=.
2675 if test -f $ac_dir/$ac_word; then
2676 ac_cv_prog_CC="$ac_prog"
2684 if test -n "$CC"; then
2685 echo "$ac_t""$CC" 1>&6
2687 echo "$ac_t""no" 1>&6
2690 test -n "$CC" && break
2692 test -n "$CC" || CC="missing"
2695 if test "${CC}" = "missing" ; then
2696 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2700 if test -z "${AR}"; then
2701 for ac_prog in ar gar
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 if test -n "$AR"; then
2711 ac_cv_prog_AR="$AR" # Let the user override the test.
2713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2715 for ac_dir in $ac_dummy; do
2716 test -z "$ac_dir" && ac_dir=.
2717 if test -f $ac_dir/$ac_word; then
2718 ac_cv_prog_AR="$ac_prog"
2726 if test -n "$AR"; then
2727 echo "$ac_t""$AR" 1>&6
2729 echo "$ac_t""no" 1>&6
2732 test -n "$AR" && break
2734 test -n "$AR" || AR="missing"
2737 if test "${AR}" = "missing" ; then
2738 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2744 # Find the correct PATH separator. Usually this is `:', but
2745 # DJGPP uses `;' like DOS.
2746 if test "X${PATH_SEPARATOR+set}" != Xset; then
2747 UNAME=${UNAME-`uname 2>/dev/null`}
2749 *-DOS) lt_cv_sys_path_separator=';' ;;
2750 *) lt_cv_sys_path_separator=':' ;;
2752 PATH_SEPARATOR=$lt_cv_sys_path_separator
2755 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2756 echo "configure:2757: checking for Cygwin environment" >&5
2757 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2767 #define __CYGWIN__ __CYGWIN32__
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2784 echo "$ac_t""$ac_cv_cygwin" 1>&6
2786 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2787 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2788 echo "configure:2789: checking for mingw32 environment" >&5
2789 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2812 echo "$ac_t""$ac_cv_mingw32" 1>&6
2814 test "$ac_cv_mingw32" = yes && MINGW32=yes
2815 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2816 echo "configure:2817: checking for EMX OS/2 environment" >&5
2817 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2828 if { (eval echo configure:2829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2840 echo "$ac_t""$ac_cv_emxos2" 1>&6
2842 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2843 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2844 echo "configure:2845: checking how to run the C preprocessor" >&5
2845 # On Suns, sometimes $CPP names a directory.
2846 if test -n "$CPP" && test -d "$CPP"; then
2849 if test -z "$CPP"; then
2850 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 # This must be in double quotes, not single quotes, because CPP may get
2854 # substituted into the Makefile and "${CC-cc}" will confuse make.
2856 # On the NeXT, cc -E runs the code through the compiler's parser,
2857 # not just through cpp.
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 CPP="${CC-cc} -E -traditional-cpp"
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2882 { (eval echo configure:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2884 if test -z "$ac_err"; then
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 CPP="${CC-cc} -nologo -E"
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2899 { (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2901 if test -z "$ac_err"; then
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2915 ac_cv_prog_CPP="$CPP"
2917 CPP="$ac_cv_prog_CPP"
2919 ac_cv_prog_CPP="$CPP"
2921 echo "$ac_t""$CPP" 1>&6
2923 # Check whether --enable-fast-install or --disable-fast-install was given.
2924 if test "${enable_fast_install+set}" = set; then
2925 enableval="$enable_fast_install"
2926 p=${PACKAGE-default}
2928 yes) enable_fast_install=yes ;;
2929 no) enable_fast_install=no ;;
2931 enable_fast_install=no
2932 # Look at the argument we got. We use all the common list separators.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2934 for pkg in $enableval; do
2935 if test "X$pkg" = "X$p"; then
2936 enable_fast_install=yes
2943 enable_fast_install=yes
2946 # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2958 for ac_dir in $ac_dummy; do
2959 test -z "$ac_dir" && ac_dir=.
2960 if test -f $ac_dir/$ac_word; then
2969 if test -n "$CC"; then
2970 echo "$ac_t""$CC" 1>&6
2972 echo "$ac_t""no" 1>&6
2975 if test -z "$CC"; then
2976 # Extract the first word of "cc", so it can be a program name with args.
2977 set dummy cc; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2989 for ac_dir in $ac_dummy; do
2990 test -z "$ac_dir" && ac_dir=.
2991 if test -f $ac_dir/$ac_word; then
2992 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2993 ac_prog_rejected=yes
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3005 if test $# -gt 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 set dummy "$ac_dir/$ac_word" "$@"
3018 if test -n "$CC"; then
3019 echo "$ac_t""$CC" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 if test -z "$CC"; then
3025 case "`uname -s`" in
3026 *win32* | *WIN32* | *CYGWIN*)
3027 # Extract the first word of "cl", so it can be a program name with args.
3028 set dummy cl; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3039 for ac_dir in $ac_dummy; do
3040 test -z "$ac_dir" && ac_dir=.
3041 if test -f $ac_dir/$ac_word; then
3050 if test -n "$CC"; then
3051 echo "$ac_t""$CC" 1>&6
3053 echo "$ac_t""no" 1>&6
3058 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3061 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3062 echo "configure:3063: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3069 cross_compiling=$ac_cv_prog_cc_cross
3071 cat > conftest.$ac_ext << EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 ac_cv_prog_cc_works=yes
3080 # If we can't run a trivial program, we are probably using a cross compiler.
3081 if (./conftest; exit) 2>/dev/null; then
3082 ac_cv_prog_cc_cross=no
3084 ac_cv_prog_cc_cross=yes
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 ac_cv_prog_cc_works=no
3093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3097 cross_compiling=$ac_cv_prog_cc_cross
3099 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3100 if test $ac_cv_prog_cc_works = no; then
3101 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3104 echo "configure:3105: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3105 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3106 cross_compiling=$ac_cv_prog_cc_cross
3108 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3109 echo "configure:3110: checking whether we are using GNU C" >&5
3110 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.c <<EOF
3118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3125 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3127 if test $ac_cv_prog_gcc = yes; then
3133 ac_test_CFLAGS="${CFLAGS+set}"
3134 ac_save_CFLAGS="$CFLAGS"
3136 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3137 echo "configure:3138: checking whether ${CC-cc} accepts -g" >&5
3138 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 echo 'void f(){}' > conftest.c
3142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3152 if test "$ac_test_CFLAGS" = set; then
3153 CFLAGS="$ac_save_CFLAGS"
3154 elif test $ac_cv_prog_cc_g = yes; then
3155 if test "$GCC" = yes; then
3161 if test "$GCC" = yes; then
3168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3169 if test "${with_gnu_ld+set}" = set; then
3170 withval="$with_gnu_ld"
3171 test "$withval" = no || with_gnu_ld=yes
3177 if test "$GCC" = yes; then
3178 # Check if gcc -print-prog-name=ld gives a path.
3179 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3180 echo "configure:3181: checking for ld used by GCC" >&5
3183 # gcc leaves a trailing carriage return which upsets mingw
3184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3189 # Accept absolute paths.
3190 [\\/]* | [A-Za-z]:[\\/]*)
3191 re_direlt='/[^/][^/]*/\.\./'
3192 # Canonicalize the path of ld
3193 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3195 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3197 test -z "$LD" && LD="$ac_prog"
3200 # If it fails, then pretend we aren't using GCC.
3204 # If it is relative, then search for the first ld in PATH.
3208 elif test "$with_gnu_ld" = yes; then
3209 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3210 echo "configure:3211: checking for GNU ld" >&5
3212 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3213 echo "configure:3214: checking for non-GNU ld" >&5
3215 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 if test -z "$LD"; then
3219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3220 for ac_dir in $PATH; do
3221 test -z "$ac_dir" && ac_dir=.
3222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3223 lt_cv_path_LD="$ac_dir/$ac_prog"
3224 # Check to see if the program is GNU ld. I'd rather use --version,
3225 # but apparently some GNU ld's only accept -v.
3226 # Break only if it was the GNU/non-GNU ld that we prefer.
3227 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3228 test "$with_gnu_ld" != no && break
3230 test "$with_gnu_ld" != yes && break
3236 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3241 if test -n "$LD"; then
3242 echo "$ac_t""$LD" 1>&6
3244 echo "$ac_t""no" 1>&6
3246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3247 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3248 echo "configure:3249: checking if the linker ($LD) is GNU ld" >&5
3249 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3253 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3254 lt_cv_prog_gnu_ld=yes
3256 lt_cv_prog_gnu_ld=no
3260 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3261 with_gnu_ld=$lt_cv_prog_gnu_ld
3264 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3265 echo "configure:3266: checking for $LD option to reload object files" >&5
3266 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 lt_cv_ld_reload_flag='-r'
3272 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3273 reload_flag=$lt_cv_ld_reload_flag
3274 test -n "$reload_flag" && reload_flag=" $reload_flag"
3276 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3277 echo "configure:3278: checking for BSD-compatible nm" >&5
3278 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 if test -n "$NM"; then
3282 # Let the user override the test.
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3286 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3287 test -z "$ac_dir" && ac_dir=.
3288 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3289 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3290 # Check to see if the nm accepts a BSD-compat flag.
3291 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3292 # nm: unknown option "B" ignored
3293 # Tru64's nm complains that /dev/null is an invalid object file
3294 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3295 lt_cv_path_NM="$tmp_nm -B"
3297 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3298 lt_cv_path_NM="$tmp_nm -p"
3301 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3302 continue # so that we can try to find one that supports BSD flags
3307 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3312 echo "$ac_t""$NM" 1>&6
3314 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3315 echo "configure:3316: checking for a sed that does not truncate output" >&5
3316 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 # Loop through the user's path and test for sed and gsed.
3320 # Then use that list of sed's as ones to test for truncation.
3321 as_executable_p="test -f"
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_prog in sed gsed; do
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3330 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3336 # Create a temporary directory, and hook for its removal unless debugging.
3339 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3340 trap '{ (exit 1); exit 1; }' 1 2 13 15
3343 # Create a (secure) tmp directory for tmp files.
3346 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3347 test -n "$tmp" && test -d "$tmp"
3350 tmp=$TMPDIR/sed$$-$RANDOM
3351 (umask 077 && mkdir $tmp)
3354 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3355 { (exit 1); exit 1; }
3359 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3360 # along with /bin/sed that truncates output.
3361 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3362 test ! -f ${_sed} && break
3363 cat /dev/null > "$tmp/sed.in"
3365 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3366 # Check for GNU sed and select it if it is found.
3367 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3368 lt_cv_path_SED=${_sed}
3372 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3373 mv "$tmp/sed.tmp" "$tmp/sed.in"
3374 cp "$tmp/sed.in" "$tmp/sed.nl"
3375 echo >>"$tmp/sed.nl"
3376 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3377 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3378 # 40000 chars as input seems more than enough
3379 test $_count -gt 10 && break
3380 _count=`expr $_count + 1`
3381 if test $_count -gt $_max; then
3383 lt_cv_path_SED=$_sed
3391 if test "X$SED" != "X"; then
3396 echo "$ac_t""$SED" 1>&6
3398 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3399 echo "configure:3400: checking whether ln -s works" >&5
3400 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3404 if ln -s X conftestdata 2>/dev/null
3407 ac_cv_prog_LN_S="ln -s"
3412 LN_S="$ac_cv_prog_LN_S"
3413 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3414 echo "$ac_t""yes" 1>&6
3416 echo "$ac_t""no" 1>&6
3419 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3420 echo "configure:3421: checking how to recognise dependent libraries" >&5
3421 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 lt_cv_file_magic_cmd='$MAGIC_CMD'
3425 lt_cv_file_magic_test_file=
3426 lt_cv_deplibs_check_method='unknown'
3427 # Need to set the preceding variable on all platforms that support
3428 # interlibrary dependencies.
3429 # 'none' -- dependencies not supported.
3430 # `unknown' -- same as none, but documents that we really don't know.
3431 # 'pass_all' -- all dependencies passed with no checks.
3432 # 'test_compile' -- check by making test program.
3433 # 'file_magic [[regex]]' -- check by looking for files in library path
3434 # which responds to the $file_magic_cmd with a given egrep regex.
3435 # If you have `file' or equivalent on your system and you're not sure
3436 # whether `pass_all' will *always* work, you probably want this one.
3440 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_deplibs_check_method=pass_all
3448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3449 lt_cv_file_magic_cmd='/usr/bin/file -L'
3450 lt_cv_file_magic_test_file=/shlib/libc.so
3453 cygwin* | mingw* | pw32*)
3454 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3455 lt_cv_file_magic_cmd='$OBJDUMP -f'
3458 darwin* | rhapsody*)
3459 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3460 lt_cv_file_magic_cmd='/usr/bin/file -L'
3462 rhapsody* | darwin1.[012])
3463 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3466 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3472 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3475 # Not sure whether the presence of OpenBSD here was a mistake.
3476 # Let's accept both of them until this is cleared up.
3477 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3478 lt_cv_file_magic_cmd=/usr/bin/file
3479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3483 lt_cv_deplibs_check_method=pass_all
3488 lt_cv_deplibs_check_method=pass_all
3492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3493 lt_cv_file_magic_cmd=/usr/bin/file
3494 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3497 irix5* | irix6* | nonstopux*)
3499 irix5* | nonstopux*)
3500 # this will be overridden with pass_all, but let us keep it just in case
3501 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3505 *-32|*"-32 ") libmagic=32-bit;;
3506 *-n32|*"-n32 ") libmagic=N32;;
3507 *-64|*"-64 ") libmagic=64-bit;;
3508 *) libmagic=never-match;;
3510 # this will be overridden with pass_all, but let us keep it just in case
3511 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3514 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3515 lt_cv_deplibs_check_method=pass_all
3518 # This must be Linux ELF.
3521 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3522 lt_cv_deplibs_check_method=pass_all ;;
3524 # glibc up to 2.1.1 does not perform some relocations on ARM
3525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3527 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3531 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3532 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3534 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3550 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3555 lt_cv_deplibs_check_method=pass_all
3558 osf3* | osf4* | osf5*)
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3561 lt_cv_file_magic_test_file=/shlib/libc.so
3562 lt_cv_deplibs_check_method=pass_all
3566 lt_cv_deplibs_check_method=pass_all
3570 lt_cv_deplibs_check_method=pass_all
3571 lt_cv_file_magic_test_file=/lib/libc.so
3574 sysv5uw[78]* | sysv4*uw2*)
3575 lt_cv_deplibs_check_method=pass_all
3578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3579 case $host_vendor in
3581 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]'
3582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3585 lt_cv_deplibs_check_method=pass_all
3588 lt_cv_file_magic_cmd='/bin/file'
3589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3592 lt_cv_file_magic_cmd='/bin/file'
3593 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3594 lt_cv_file_magic_test_file=/lib/libc.so
3597 lt_cv_deplibs_check_method=pass_all
3605 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3606 file_magic_cmd=$lt_cv_file_magic_cmd
3607 deplibs_check_method=$lt_cv_deplibs_check_method
3609 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3610 echo "configure:3611: checking for object suffix" >&5
3611 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3615 echo 'int i = 1;' > conftest.$ac_ext
3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3617 for ac_file in conftest.*; do
3620 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3624 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3629 echo "$ac_t""$ac_cv_objext" 1>&6
3630 OBJEXT=$ac_cv_objext
3631 ac_objext=$ac_cv_objext
3636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3637 echo "configure:3638: checking for executable suffix" >&5
3638 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3645 echo 'int main () { return 0; }' > conftest.$ac_ext
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3648 for file in conftest.*; do
3650 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3664 echo "$ac_t""${ac_cv_exeext}" 1>&6
3667 if test $host != $build; then
3668 ac_tool_prefix=${host_alias}-
3676 # Check for command to grab the raw symbol name followed by C symbol from nm.
3677 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3678 echo "configure:3679: checking command to parse $NM output" >&5
3679 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3683 # These are sane defaults that work on at least a few old systems.
3684 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3686 # Character class describing NM global symbol codes.
3687 symcode='[BCDEGRST]'
3689 # Regexp to match symbols that can be accessed directly from C.
3690 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3692 # Transform the above into a raw symbol and a C symbol.
3693 symxfrm='\1 \2\3 \3'
3695 # Transform an extracted symbol line into a proper C declaration
3696 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3698 # Transform an extracted symbol line into symbol name and symbol address
3699 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'"
3701 # Define system-specific variables.
3706 cygwin* | mingw* | pw32*)
3707 symcode='[ABCDGISTW]'
3709 hpux*) # Its linker distinguishes data from code symbols
3710 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3711 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'"
3714 symcode='[BCDEGRST]'
3717 symcode='[BCDEGQRST]'
3727 # Handle CRLF in mingw tool chain
3731 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3735 # If we're using GNU nm, then use its standard symbol codes.
3736 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3737 symcode='[ABCDGISTW]'
3740 # Try without a prefix undercore, then with it.
3741 for ac_symprfx in "" "_"; do
3743 # Write the raw and C identifiers.
3744 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3746 # Check to see that the pipe works correctly.
3749 cat > conftest.$ac_ext <<EOF
3754 void nm_test_func(){}
3758 int main(){nm_test_var='a';nm_test_func();return(0);}
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 # Now try to grab the symbols.
3764 if { (eval echo configure:3765: \"$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
3765 # Try sorting and uniquifying the output.
3766 if sort "$nlist" | uniq > "$nlist"T; then
3767 mv -f "$nlist"T "$nlist"
3772 # Make sure that we snagged all the symbols we need.
3773 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3774 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3775 cat <<EOF > conftest.$ac_ext
3781 # Now generate the symbol file.
3782 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3784 cat <<EOF >> conftest.$ac_ext
3785 #if defined (__STDC__) && __STDC__
3786 # define lt_ptr void *
3788 # define lt_ptr char *
3792 /* The mapping between symbol names and symbols. */
3797 lt_preloaded_symbols[] =
3800 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3801 cat <<\EOF >> conftest.$ac_ext
3809 # Now try linking the two files.
3810 mv conftest.$ac_objext conftstm.$ac_objext
3812 save_CFLAGS="$CFLAGS"
3813 LIBS="conftstm.$ac_objext"
3814 CFLAGS="$CFLAGS$no_builtin_flag"
3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3819 CFLAGS="$save_CFLAGS"
3821 echo "cannot find nm_test_func in $nlist" >&5
3824 echo "cannot find nm_test_var in $nlist" >&5
3827 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3830 echo "$progname: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 rm -f conftest* conftst*
3835 # Do not use the global_symbol_pipe unless it works.
3836 if test "$pipe_works" = yes; then
3839 lt_cv_sys_global_symbol_pipe=
3845 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3847 global_symbol_to_cdecl=
3848 global_symbol_to_c_name_address=
3850 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3851 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3853 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3855 echo "$ac_t""failed" 1>&6
3857 echo "$ac_t""ok" 1>&6
3860 for ac_hdr in dlfcn.h
3862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3864 echo "configure:3865: checking for $ac_hdr" >&5
3865 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3874 { (eval echo configure:3875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3876 if test -z "$ac_err"; then
3878 eval "ac_cv_header_$ac_safe=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 eval "ac_cv_header_$ac_safe=no"
3888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3891 cat >> confdefs.h <<EOF
3892 #define $ac_tr_hdr 1
3896 echo "$ac_t""no" 1>&6
3905 # Only perform the check for file, if the check method requires it
3906 case $deplibs_check_method in
3908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3909 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
3910 echo "configure:3911: checking for ${ac_tool_prefix}file" >&5
3911 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3922 ac_save_MAGIC_CMD="$MAGIC_CMD"
3923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3924 ac_dummy="/usr/bin:$PATH"
3925 for ac_dir in $ac_dummy; do
3926 test -z "$ac_dir" && ac_dir=.
3927 if test -f $ac_dir/${ac_tool_prefix}file; then
3928 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3929 if test -n "$file_magic_test_file"; then
3930 case $deplibs_check_method in
3932 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3935 egrep "$file_magic_regex" > /dev/null; then
3940 *** Warning: the command libtool uses to detect shared libraries,
3941 *** $file_magic_cmd, produces output that libtool cannot recognize.
3942 *** The result is that libtool may fail to recognize shared libraries
3943 *** as such. This will affect the creation of libtool libraries that
3944 *** depend on shared libraries, but programs linked with such libtool
3945 *** libraries will work regardless of this problem. Nevertheless, you
3946 *** may want to report the problem to your system manager and/or to
3947 *** bug-libtool@gnu.org
3957 MAGIC_CMD="$ac_save_MAGIC_CMD"
3962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3963 if test -n "$MAGIC_CMD"; then
3964 echo "$ac_t""$MAGIC_CMD" 1>&6
3966 echo "$ac_t""no" 1>&6
3969 if test -z "$lt_cv_path_MAGIC_CMD"; then
3970 if test -n "$ac_tool_prefix"; then
3971 echo $ac_n "checking for file""... $ac_c" 1>&6
3972 echo "configure:3973: checking for file" >&5
3973 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3984 ac_save_MAGIC_CMD="$MAGIC_CMD"
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3986 ac_dummy="/usr/bin:$PATH"
3987 for ac_dir in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir=.
3989 if test -f $ac_dir/file; then
3990 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3991 if test -n "$file_magic_test_file"; then
3992 case $deplibs_check_method in
3994 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3997 egrep "$file_magic_regex" > /dev/null; then
4002 *** Warning: the command libtool uses to detect shared libraries,
4003 *** $file_magic_cmd, produces output that libtool cannot recognize.
4004 *** The result is that libtool may fail to recognize shared libraries
4005 *** as such. This will affect the creation of libtool libraries that
4006 *** depend on shared libraries, but programs linked with such libtool
4007 *** libraries will work regardless of this problem. Nevertheless, you
4008 *** may want to report the problem to your system manager and/or to
4009 *** bug-libtool@gnu.org
4019 MAGIC_CMD="$ac_save_MAGIC_CMD"
4024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4025 if test -n "$MAGIC_CMD"; then
4026 echo "$ac_t""$MAGIC_CMD" 1>&6
4028 echo "$ac_t""no" 1>&6
4040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4043 echo "configure:4044: checking for $ac_word" >&5
4044 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 if test -n "$RANLIB"; then
4048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4052 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4062 RANLIB="$ac_cv_prog_RANLIB"
4063 if test -n "$RANLIB"; then
4064 echo "$ac_t""$RANLIB" 1>&6
4066 echo "$ac_t""no" 1>&6
4070 if test -z "$ac_cv_prog_RANLIB"; then
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "ranlib", so it can be a program name with args.
4073 set dummy ranlib; ac_word=$2
4074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_word" >&5
4076 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4079 if test -n "$RANLIB"; then
4080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4084 for ac_dir in $ac_dummy; do
4085 test -z "$ac_dir" && ac_dir=.
4086 if test -f $ac_dir/$ac_word; then
4087 ac_cv_prog_RANLIB="ranlib"
4092 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4095 RANLIB="$ac_cv_prog_RANLIB"
4096 if test -n "$RANLIB"; then
4097 echo "$ac_t""$RANLIB" 1>&6
4099 echo "$ac_t""no" 1>&6
4107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4108 set dummy ${ac_tool_prefix}strip; ac_word=$2
4109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4110 echo "configure:4111: checking for $ac_word" >&5
4111 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 if test -n "$STRIP"; then
4115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4119 for ac_dir in $ac_dummy; do
4120 test -z "$ac_dir" && ac_dir=.
4121 if test -f $ac_dir/$ac_word; then
4122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4129 STRIP="$ac_cv_prog_STRIP"
4130 if test -n "$STRIP"; then
4131 echo "$ac_t""$STRIP" 1>&6
4133 echo "$ac_t""no" 1>&6
4137 if test -z "$ac_cv_prog_STRIP"; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "strip", so it can be a program name with args.
4140 set dummy strip; ac_word=$2
4141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4142 echo "configure:4143: checking for $ac_word" >&5
4143 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 if test -n "$STRIP"; then
4147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4151 for ac_dir in $ac_dummy; do
4152 test -z "$ac_dir" && ac_dir=.
4153 if test -f $ac_dir/$ac_word; then
4154 ac_cv_prog_STRIP="strip"
4159 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4162 STRIP="$ac_cv_prog_STRIP"
4163 if test -n "$STRIP"; then
4164 echo "$ac_t""$STRIP" 1>&6
4166 echo "$ac_t""no" 1>&6
4176 enable_win32_dll=yes
4178 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4179 if test "${enable_libtool_lock+set}" = set; then
4180 enableval="$enable_libtool_lock"
4184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4186 # Some flags need to be propagated to the compiler or linker for good
4190 # Find out which ABI we are using.
4191 echo '#line 4192 "configure"' > conftest.$ac_ext
4192 if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 case `/usr/bin/file conftest.$ac_objext` in
4209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4210 SAVE_CFLAGS="$CFLAGS"
4211 CFLAGS="$CFLAGS -belf"
4212 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4213 echo "configure:4214: checking whether the C compiler needs -belf" >&5
4214 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4223 cross_compiling=$ac_cv_prog_cc_cross
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 lt_cv_cc_needs_belf=yes
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 lt_cv_cc_needs_belf=no
4244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4248 cross_compiling=$ac_cv_prog_cc_cross
4252 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4255 CFLAGS="$SAVE_CFLAGS"
4259 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4260 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4263 echo "configure:4264: checking for $ac_word" >&5
4264 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 if test -n "$DLLTOOL"; then
4268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4272 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 if test -f $ac_dir/$ac_word; then
4275 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4282 DLLTOOL="$ac_cv_prog_DLLTOOL"
4283 if test -n "$DLLTOOL"; then
4284 echo "$ac_t""$DLLTOOL" 1>&6
4286 echo "$ac_t""no" 1>&6
4290 if test -z "$ac_cv_prog_DLLTOOL"; then
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "dlltool", so it can be a program name with args.
4293 set dummy dlltool; ac_word=$2
4294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_word" >&5
4296 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 if test -n "$DLLTOOL"; then
4300 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 if test -f $ac_dir/$ac_word; then
4307 ac_cv_prog_DLLTOOL="dlltool"
4312 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4315 DLLTOOL="$ac_cv_prog_DLLTOOL"
4316 if test -n "$DLLTOOL"; then
4317 echo "$ac_t""$DLLTOOL" 1>&6
4319 echo "$ac_t""no" 1>&6
4327 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}as; ac_word=$2
4329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_word" >&5
4331 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 if test -n "$AS"; then
4335 ac_cv_prog_AS="$AS" # Let the user override the test.
4337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4339 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f $ac_dir/$ac_word; then
4342 ac_cv_prog_AS="${ac_tool_prefix}as"
4350 if test -n "$AS"; then
4351 echo "$ac_t""$AS" 1>&6
4353 echo "$ac_t""no" 1>&6
4357 if test -z "$ac_cv_prog_AS"; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "as", so it can be a program name with args.
4360 set dummy as; ac_word=$2
4361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_word" >&5
4363 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 if test -n "$AS"; then
4367 ac_cv_prog_AS="$AS" # Let the user override the test.
4369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4371 for ac_dir in $ac_dummy; do
4372 test -z "$ac_dir" && ac_dir=.
4373 if test -f $ac_dir/$ac_word; then
4379 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4383 if test -n "$AS"; then
4384 echo "$ac_t""$AS" 1>&6
4386 echo "$ac_t""no" 1>&6
4394 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4397 echo "configure:4398: checking for $ac_word" >&5
4398 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 if test -n "$OBJDUMP"; then
4402 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4406 for ac_dir in $ac_dummy; do
4407 test -z "$ac_dir" && ac_dir=.
4408 if test -f $ac_dir/$ac_word; then
4409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4416 OBJDUMP="$ac_cv_prog_OBJDUMP"
4417 if test -n "$OBJDUMP"; then
4418 echo "$ac_t""$OBJDUMP" 1>&6
4420 echo "$ac_t""no" 1>&6
4424 if test -z "$ac_cv_prog_OBJDUMP"; then
4425 if test -n "$ac_tool_prefix"; then
4426 # Extract the first word of "objdump", so it can be a program name with args.
4427 set dummy objdump; ac_word=$2
4428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_word" >&5
4430 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 if test -n "$OBJDUMP"; then
4434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4438 for ac_dir in $ac_dummy; do
4439 test -z "$ac_dir" && ac_dir=.
4440 if test -f $ac_dir/$ac_word; then
4441 ac_cv_prog_OBJDUMP="objdump"
4446 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4449 OBJDUMP="$ac_cv_prog_OBJDUMP"
4450 if test -n "$OBJDUMP"; then
4451 echo "$ac_t""$OBJDUMP" 1>&6
4453 echo "$ac_t""no" 1>&6
4462 # recent cygwin and mingw systems supply a stub DllMain which the user
4463 # can override, but on older systems we have to supply one
4464 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4465 echo "configure:4466: checking if libtool should supply DllMain function" >&5
4466 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 lt_cv_need_dllmain=no
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 lt_cv_need_dllmain=yes
4490 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4493 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4494 # old mingw systems require "-dll" to link a DLL, while more recent ones
4496 SAVE_CFLAGS="$CFLAGS"
4497 CFLAGS="$CFLAGS -mdll"
4498 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4499 echo "configure:4500: checking how to link DLLs" >&5
4500 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 lt_cv_cc_dll_switch=-mdll
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 lt_cv_cc_dll_switch=-dll
4523 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4524 CFLAGS="$SAVE_CFLAGS" ;;
4525 *-*-cygwin* | *-*-pw32*)
4526 # cygwin systems need to pass --dll to the linker, and not link
4527 # crt.o which will require a WinMain@16 definition.
4528 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4534 # Sed substitution that helps us do robust quoting. It backslashifies
4535 # metacharacters that are still active within double-quoted strings.
4536 Xsed='sed -e s/^X//'
4537 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4539 # Same as above, but do not quote variable references.
4540 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4542 # Sed substitution to delay expansion of an escaped shell variable in a
4543 # double_quote_subst'ed string.
4544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4550 default_ofile=libtool
4551 can_build_shared=yes
4553 # All known linkers require a `.a' archive for static linking (except M$VC,
4554 # which needs '.lib').
4556 ltmain="$ac_aux_dir/ltmain.sh"
4557 ofile="$default_ofile"
4558 with_gnu_ld="$lt_cv_prog_gnu_ld"
4559 need_locks="$enable_libtool_lock"
4562 old_CFLAGS="$CFLAGS"
4564 # Set sane defaults for various variables
4565 test -z "$AR" && AR=ar
4566 test -z "$AR_FLAGS" && AR_FLAGS=cru
4567 test -z "$AS" && AS=as
4568 test -z "$CC" && CC=cc
4569 test -z "$DLLTOOL" && DLLTOOL=dlltool
4570 test -z "$LD" && LD=ld
4571 test -z "$LN_S" && LN_S="ln -s"
4572 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4573 test -z "$NM" && NM=nm
4574 test -z "$OBJDUMP" && OBJDUMP=objdump
4575 test -z "$RANLIB" && RANLIB=:
4576 test -z "$STRIP" && STRIP=:
4577 test -z "$ac_objext" && ac_objext=o
4579 if test x"$host" != x"$build"; then
4580 ac_tool_prefix=${host_alias}-
4585 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4588 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4593 # AIX sometimes has problems with the GCC collect2 program. For some
4594 # reason, if we set the COLLECT_NAMES environment variable, the problems
4595 # vanish in a puff of smoke.
4596 if test "X${COLLECT_NAMES+set}" != Xset; then
4598 export COLLECT_NAMES
4603 # Determine commands to create old-style static archives.
4604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4605 old_postinstall_cmds='chmod 644 $oldlib'
4606 old_postuninstall_cmds=
4608 if test -n "$RANLIB"; then
4611 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4614 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4620 # Allow CC to be a program name with arguments.
4624 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4625 echo "configure:4626: checking for objdir" >&5
4626 rm -f .libs 2>/dev/null
4627 mkdir .libs 2>/dev/null
4628 if test -d .libs; then
4631 # MS-DOS does not allow filenames that begin with a dot.
4634 rmdir .libs 2>/dev/null
4635 echo "$ac_t""$objdir" 1>&6
4638 # Check whether --with-pic or --without-pic was given.
4639 if test "${with_pic+set}" = set; then
4646 test -z "$pic_mode" && pic_mode=default
4648 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4649 # in isolation, and that seeing it set (from the cache) indicates that
4650 # the associated values are set (in the cache) correctly too.
4651 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $compiler option to produce PIC" >&5
4653 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4657 lt_cv_prog_cc_shlib=
4659 lt_cv_prog_cc_static=
4660 lt_cv_prog_cc_no_builtin=
4661 lt_cv_prog_cc_can_build_shared=$can_build_shared
4663 if test "$GCC" = yes; then
4664 lt_cv_prog_cc_wl='-Wl,'
4665 lt_cv_prog_cc_static='-static'
4669 # Below there is a dirty hack to force normal static linking with -ldl
4670 # The problem is because libdl dynamically linked with both libc and
4671 # libC (AIX C++ library), which obviously doesn't included in libraries
4672 # list by gcc. This cause undefined symbols with -static flags.
4673 # This hack allows C programs to be linked with "-static -ldl", but
4674 # not sure about C++ programs.
4675 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4678 # FIXME: we need at least 68020 code to build shared libraries, but
4679 # adding the `-m68020' flag to GCC prevents building anything better,
4681 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4684 # PIC is the default for these OSes.
4686 darwin* | rhapsody*)
4687 # PIC is the default on this platform
4688 # Common symbols not allowed in MH_DYLIB files
4689 lt_cv_prog_cc_pic='-fno-common'
4691 cygwin* | mingw* | pw32* | os2*)
4692 # This hack is so that the source file can tell whether it is being
4693 # built for inclusion in a dll (and should export symbols for example).
4694 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4697 if test -d /usr/nec; then
4698 lt_cv_prog_cc_pic=-Kconform_pic
4702 lt_cv_prog_cc_pic='-fPIC'
4706 # PORTME Check for PIC flags for the system compiler.
4708 aix3* | aix4* | aix5*)
4709 lt_cv_prog_cc_wl='-Wl,'
4710 # All AIX code is PIC.
4711 if test "$host_cpu" = ia64; then
4712 # AIX 5 now supports IA64 processor
4713 lt_cv_prog_cc_static='-Bstatic'
4715 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4719 hpux9* | hpux10* | hpux11*)
4720 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4721 lt_cv_prog_cc_wl='-Wl,'
4722 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4723 lt_cv_prog_cc_pic='+Z'
4726 irix5* | irix6* | nonstopux*)
4727 lt_cv_prog_cc_wl='-Wl,'
4728 lt_cv_prog_cc_static='-non_shared'
4729 # PIC (with -KPIC) is the default.
4732 cygwin* | mingw* | pw32* | os2*)
4733 # This hack is so that the source file can tell whether it is being
4734 # built for inclusion in a dll (and should export symbols for example).
4735 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4739 lt_cv_prog_cc_pic='-KPIC'
4740 lt_cv_prog_cc_static='-Bstatic'
4744 # XPLINK code is PIC by default
4747 osf3* | osf4* | osf5*)
4748 # All OSF/1 code is PIC.
4749 lt_cv_prog_cc_wl='-Wl,'
4750 lt_cv_prog_cc_static='-non_shared'
4754 lt_cv_prog_cc_pic='-Kpic'
4755 lt_cv_prog_cc_static='-dn'
4756 lt_cv_prog_cc_shlib='-belf'
4760 lt_cv_prog_cc_pic='-KPIC'
4761 lt_cv_prog_cc_static='-Bstatic'
4762 lt_cv_prog_cc_wl='-Wl,'
4766 lt_cv_prog_cc_pic='-PIC'
4767 lt_cv_prog_cc_static='-Bstatic'
4768 lt_cv_prog_cc_wl='-Qoption ld '
4771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4772 lt_cv_prog_cc_pic='-KPIC'
4773 lt_cv_prog_cc_static='-Bstatic'
4774 lt_cv_prog_cc_wl='-Wl,'
4778 lt_cv_prog_cc_pic='-pic'
4779 lt_cv_prog_cc_static='-Bstatic'
4783 if test -d /usr/nec ;then
4784 lt_cv_prog_cc_pic='-Kconform_pic'
4785 lt_cv_prog_cc_static='-Bstatic'
4790 lt_cv_prog_cc_can_build_shared=no
4797 if test -z "$lt_cv_prog_cc_pic"; then
4798 echo "$ac_t""none" 1>&6
4800 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4802 # Check to make sure the pic_flag actually works.
4803 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4804 echo "configure:4805: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4805 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 save_CFLAGS="$CFLAGS"
4809 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4818 if { (eval echo configure:4819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4821 hpux9* | hpux10* | hpux11*)
4822 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4823 # they create non-PIC objects. So, if there were any warnings, we
4824 # assume that PIC is not supported.
4825 if test -s conftest.err; then
4826 lt_cv_prog_cc_pic_works=no
4828 lt_cv_prog_cc_pic_works=yes
4832 lt_cv_prog_cc_pic_works=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 lt_cv_prog_cc_pic_works=no
4844 CFLAGS="$save_CFLAGS"
4849 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4851 lt_cv_prog_cc_can_build_shared=no
4853 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4856 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
4859 # Check for any special shared library compilation flags.
4860 if test -n "$lt_cv_prog_cc_shlib"; then
4861 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
4862 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4864 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
4865 lt_cv_prog_cc_can_build_shared=no
4869 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
4870 echo "configure:4871: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4871 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 lt_cv_prog_cc_static_works=no
4875 save_LDFLAGS="$LDFLAGS"
4876 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 lt_cv_prog_cc_static_works=yes
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4893 LDFLAGS="$save_LDFLAGS"
4898 # Belt *and* braces to stop my trousers falling down:
4899 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4900 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
4902 pic_flag="$lt_cv_prog_cc_pic"
4903 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4904 wl="$lt_cv_prog_cc_wl"
4905 link_static_flag="$lt_cv_prog_cc_static"
4906 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4907 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4910 # Check to see if options -o and -c are simultaneously supported by compiler
4911 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
4912 echo "configure:4913: checking if $compiler supports -c -o file.$ac_objext" >&5
4913 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4917 $rm -r conftest 2>/dev/null
4920 echo "int some_variable = 0;" > conftest.$ac_ext
4922 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4923 # that will create temporary files in the current directory regardless of
4924 # the output directory. Thus, making CWD read-only will cause this test
4925 # to fail, enabling locking or at least warning the user not to do parallel
4928 save_CFLAGS="$CFLAGS"
4929 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4932 # The compiler can only warn and ignore the option if not recognized
4933 # So say no if there are warnings
4934 if test -s out/conftest.err; then
4935 lt_cv_compiler_c_o=no
4937 lt_cv_compiler_c_o=yes
4940 # Append any errors to the config.log.
4941 cat out/conftest.err 1>&5
4942 lt_cv_compiler_c_o=no
4944 CFLAGS="$save_CFLAGS"
4950 $rm -r conftest 2>/dev/null
4954 compiler_c_o=$lt_cv_compiler_c_o
4955 echo "$ac_t""$compiler_c_o" 1>&6
4957 if test x"$compiler_c_o" = x"yes"; then
4958 # Check to see if we can write to a .lo
4959 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
4960 echo "configure:4961: checking if $compiler supports -c -o file.lo" >&5
4961 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4965 lt_cv_compiler_o_lo=no
4966 save_CFLAGS="$CFLAGS"
4967 CFLAGS="$CFLAGS -c -o conftest.lo"
4968 save_objext="$ac_objext"
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4975 int some_variable = 0;
4978 if { (eval echo configure:4979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4980 # The compiler can only warn and ignore the option if not recognized
4981 # So say no if there are warnings
4982 if test -s conftest.err; then
4983 lt_cv_compiler_o_lo=no
4985 lt_cv_compiler_o_lo=yes
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4993 ac_objext="$save_objext"
4994 CFLAGS="$save_CFLAGS"
4998 compiler_o_lo=$lt_cv_compiler_o_lo
4999 echo "$ac_t""$compiler_o_lo" 1>&6
5004 # Check to see if we can do hard links to lock some files if needed
5005 hard_links="nottested"
5006 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5007 # do not overwrite the value of need_locks provided by the user
5008 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5009 echo "configure:5010: checking if we can lock with hard links" >&5
5012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5014 ln conftest.a conftest.b 2>&5 || hard_links=no
5015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5016 echo "$ac_t""$hard_links" 1>&6
5017 if test "$hard_links" = no; then
5018 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5025 if test "$GCC" = yes; then
5026 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5027 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5028 echo "configure:5029: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5029 echo "int some_variable = 0;" > conftest.$ac_ext
5030 save_CFLAGS="$CFLAGS"
5031 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5032 compiler_rtti_exceptions=no
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5038 int some_variable = 0;
5041 if { (eval echo configure:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 # The compiler can only warn and ignore the option if not recognized
5044 # So say no if there are warnings
5045 if test -s conftest.err; then
5046 compiler_rtti_exceptions=no
5048 compiler_rtti_exceptions=yes
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5056 CFLAGS="$save_CFLAGS"
5057 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5059 if test "$compiler_rtti_exceptions" = "yes"; then
5060 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5062 no_builtin_flag=' -fno-builtin'
5066 # See if the linker supports building shared libraries.
5067 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5068 echo "configure:5069: checking whether the linker ($LD) supports shared libraries" >&5
5070 allow_undefined_flag=
5072 need_lib_prefix=unknown
5073 need_version=unknown
5074 # when you set need_version to no, make sure it does not cause -set_version
5075 # flags to be left without arguments
5077 archive_expsym_cmds=
5078 old_archive_from_new_cmds=
5079 old_archive_from_expsyms_cmds=
5080 export_dynamic_flag_spec=
5081 whole_archive_flag_spec=
5082 thread_safe_flag_spec=
5083 hardcode_into_libs=no
5084 hardcode_libdir_flag_spec=
5085 hardcode_libdir_separator=
5088 hardcode_shlibpath_var=unsupported
5090 link_all_deplibs=unknown
5091 always_export_symbols=no
5092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5093 # include_expsyms should be a list of space-separated symbols to be *always*
5094 # included in the symbol list
5096 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5097 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5098 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5099 # as well as any symbol that contains `d'.
5100 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5101 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5102 # platforms (ab)use it in PIC code, but their linkers get confused if
5103 # the symbol is explicitly referenced. Since portable code cannot
5104 # rely on this symbol name, it's probably fine to never include it in
5105 # preloaded symbol tables.
5106 extract_expsyms_cmds=
5109 cygwin* | mingw* | pw32*)
5110 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5111 # When not using gcc, we currently assume that we are using
5112 # Microsoft Visual C++.
5113 if test "$GCC" != yes; then
5123 if test "$with_gnu_ld" = yes; then
5124 # If archive_cmds runs LD, not CC, wlarc should be empty
5127 # See if GNU ld supports shared libraries.
5129 aix3* | aix4* | aix5*)
5130 # On AIX, the GNU linker is very broken
5131 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5135 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5136 *** to be unable to reliably create shared libraries on AIX.
5137 *** Therefore, libtool is disabling shared libraries support. If you
5138 *** really care for shared libraries, you may want to modify your PATH
5139 *** so that a non-GNU linker is found, and then restart.
5145 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)'
5146 hardcode_libdir_flag_spec='-L$libdir'
5147 hardcode_minus_L=yes
5149 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5150 # that the semantics of dynamic libraries on AmigaOS, at least up
5151 # to version 4, is to share data among multiple programs linked
5152 # with the same dynamic library. Since this doesn't match the
5153 # behavior of shared libraries on other platforms, we can use
5159 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5160 allow_undefined_flag=unsupported
5161 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5162 # support --undefined. This deserves some investigation. FIXME
5163 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5169 cygwin* | mingw* | pw32*)
5170 # hardcode_libdir_flag_spec is actually meaningless, as there is
5171 # no search path for DLLs.
5172 hardcode_libdir_flag_spec='-L$libdir'
5173 allow_undefined_flag=unsupported
5174 always_export_symbols=yes
5176 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5177 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5178 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5179 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5180 else $CC -o impgen impgen.c ; fi)~
5181 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5183 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5185 # cygwin and mingw dlls have different entry points and sets of symbols
5187 # FIXME: what about values for MSVC?
5188 dll_entry=__cygwin_dll_entry@12
5189 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5193 dll_entry=_DllMainCRTStartup@12
5194 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5198 # mingw and cygwin differ, and it's simplest to just exclude the union
5199 # of the two symbol sets.
5200 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5202 # recent cygwin and mingw systems supply a stub DllMain which the user
5203 # can override, but on older systems we have to supply one (in ltdll.c)
5204 if test "x$lt_cv_need_dllmain" = "xyes"; then
5205 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5206 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~
5207 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5213 # Extract the symbol export list from an `--export-all' def file,
5214 # then regenerate the def file from the symbol export list, so that
5215 # the compiled dll only exports the symbol export list.
5216 # Be careful not to strip the DATA tag left be newer dlltools.
5217 export_symbols_cmds="$ltdll_cmds"'
5218 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5219 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5221 # If the export-symbols file already is a .def file (1st line
5222 # is EXPORTS), use it as is.
5223 # If DATA tags from a recent dlltool are present, honour them!
5224 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5225 cp $export_symbols $output_objdir/$soname-def;
5227 echo EXPORTS > $output_objdir/$soname-def;
5229 cat $export_symbols | while read symbol; do
5232 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5233 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5234 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5236 _lt_hint=`expr 1 + \$_lt_hint`;
5240 $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~
5241 $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~
5242 $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~
5243 $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~
5244 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5249 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5252 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5253 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5258 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5263 *** create shared libraries on Solaris systems. Therefore, libtool
5264 *** is disabling shared libraries support. We urge you to upgrade GNU
5265 *** binutils to release 2.9.1 or newer. Another option is to modify
5266 *** your PATH or compiler configuration so that the native linker is
5267 *** used, and then restart.
5270 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5282 hardcode_shlibpath_var=no
5286 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5295 if test "$ld_shlibs" = yes; then
5296 runpath_var=LD_RUN_PATH
5297 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5298 export_dynamic_flag_spec='${wl}--export-dynamic'
5300 cygwin* | mingw* | pw32*)
5301 # dlltool doesn't understand --whole-archive et. al.
5302 whole_archive_flag_spec=
5305 # ancient GNU ld didn't support --whole-archive et. al.
5306 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5307 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5309 whole_archive_flag_spec=
5315 # PORTME fill in a description of your system's linker (not GNU ld)
5318 allow_undefined_flag=unsupported
5319 always_export_symbols=yes
5320 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'
5321 # Note: this linker hardcodes the directories in LIBPATH if there
5322 # are no directories specified by -L.
5323 hardcode_minus_L=yes
5324 if test "$GCC" = yes && test -z "$link_static_flag"; then
5325 # Neither direct hardcoding nor static linking is supported with a
5327 hardcode_direct=unsupported
5332 if test "$host_cpu" = ia64; then
5333 # On IA64, the linker does run time linking by default, so we don't
5334 # have to do anything special.
5335 aix_use_runtimelinking=no
5336 exp_sym_flag='-Bexport'
5339 aix_use_runtimelinking=no
5341 # Test if we are trying to use run time linking or normal
5342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5343 # need to do runtime linking.
5344 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5345 for ld_flag in $LDFLAGS; do
5348 aix_use_runtimelinking=yes
5355 exp_sym_flag='-bexport'
5356 no_entry_flag='-bnoentry'
5359 # When large executables or shared objects are built, AIX ld can
5360 # have problems creating the table of contents. If linking a library
5361 # or program results in "error TOC overflow" add -mminimal-toc to
5362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5367 hardcode_libdir_separator=':'
5368 if test "$GCC" = yes; then
5369 case $host_os in aix4.[012]|aix4.[012].*)
5370 collect2name=`${CC} -print-prog-name=collect2`
5371 if test -f "$collect2name" && \
5372 strings "$collect2name" | grep resolve_lib_name >/dev/null
5374 # We have reworked collect2
5377 # We have old collect2
5378 hardcode_direct=unsupported
5379 # It fails to find uninstalled libraries when the uninstalled
5380 # path is not listed in the libpath. Setting hardcode_minus_L
5381 # to unsupported forces relinking
5382 hardcode_minus_L=yes
5383 hardcode_libdir_flag_spec='-L$libdir'
5384 hardcode_libdir_separator=
5388 shared_flag='-shared'
5391 if test "$host_cpu" = ia64; then
5392 shared_flag='${wl}-G'
5394 if test "$aix_use_runtimelinking" = yes; then
5395 shared_flag='${wl}-G'
5397 shared_flag='${wl}-bM:SRE'
5402 # It seems that -bexpall can do strange things, so it is better to
5403 # generate a list of symbols to export.
5404 always_export_symbols=yes
5405 if test "$aix_use_runtimelinking" = yes; then
5406 # Warning - without using the other runtime loading flags (-brtl),
5407 # -berok will link without error, but may produce a broken library.
5408 allow_undefined_flag='-berok'
5409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5410 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"
5412 if test "$host_cpu" = ia64; then
5413 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5414 allow_undefined_flag="-z nodefs"
5415 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"
5417 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5418 # Warning - without using the other run time loading flags,
5419 # -berok will link without error, but may produce a broken library.
5420 allow_undefined_flag='${wl}-berok'
5421 # This is a bit strange, but is similar to how AIX traditionally builds
5422 # it's shared libraries.
5423 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'
5429 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)'
5430 hardcode_libdir_flag_spec='-L$libdir'
5431 hardcode_minus_L=yes
5432 # see comment about different semantics on the GNU ld section
5436 cygwin* | mingw* | pw32*)
5437 # When not using gcc, we currently assume that we are using
5438 # Microsoft Visual C++.
5439 # hardcode_libdir_flag_spec is actually meaningless, as there is
5440 # no search path for DLLs.
5441 hardcode_libdir_flag_spec=' '
5442 allow_undefined_flag=unsupported
5443 # Tell ltmain to make .lib files, not .a files.
5445 # FIXME: Setting linknames here is a bad hack.
5446 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5447 # The linker will automatically build a .lib file if we build a DLL.
5448 old_archive_from_new_cmds='true'
5449 # FIXME: Should let the user specify the lib program.
5450 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5451 fix_srcfile_path='`cygpath -w "$srcfile"`'
5454 darwin* | rhapsody*)
5456 rhapsody* | darwin1.[012])
5457 allow_undefined_flag='-undefined suppress'
5460 allow_undefined_flag='-flat_namespace -undefined suppress'
5463 # FIXME: Relying on posixy $() will cause problems for
5464 # cross-compilation, but unfortunately the echo tests do not
5465 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5466 # `"' quotes if we put them in here... so don't!
5467 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5468 # We need to add '_' to the symbols in $export_symbols first
5469 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5471 hardcode_shlibpath_var=no
5472 whole_archive_flag_spec='-all_load $convenience'
5479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5480 # support. Future versions do this automatically, but an explicit c++rt0.o
5481 # does not break anything, and helps significantly (at the cost of a little
5484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5485 hardcode_libdir_flag_spec='-R$libdir'
5487 hardcode_shlibpath_var=no
5490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5494 hardcode_minus_L=yes
5495 hardcode_shlibpath_var=no
5498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5500 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5501 hardcode_libdir_flag_spec='-R$libdir'
5503 hardcode_shlibpath_var=no
5506 hpux9* | hpux10* | hpux11*)
5508 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' ;;
5509 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5512 hardcode_libdir_separator=:
5514 hardcode_minus_L=yes # Not in the search PATH, but as the default
5515 # location of the library.
5516 export_dynamic_flag_spec='${wl}-E'
5519 irix5* | irix6* | nonstopux*)
5520 if test "$GCC" = yes; then
5521 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'
5522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5524 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'
5525 hardcode_libdir_flag_spec='-rpath $libdir'
5527 hardcode_libdir_separator=:
5528 link_all_deplibs=yes
5532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5537 hardcode_libdir_flag_spec='-R$libdir'
5539 hardcode_shlibpath_var=no
5543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5546 hardcode_libdir_separator=:
5547 hardcode_shlibpath_var=no
5552 hardcode_shlibpath_var=no
5553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5556 export_dynamic_flag_spec='${wl}-E'
5559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5561 hardcode_libdir_flag_spec='-R$libdir'
5564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5572 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5573 cp \$linknames \$output_objdir && linknames=''"
5574 export_dynamic_flag_spec="-Wl,DLL"
5578 hardcode_libdir_flag_spec='-L$libdir'
5579 hardcode_minus_L=yes
5580 allow_undefined_flag=unsupported
5581 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'
5582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5586 if test "$GCC" = yes; then
5587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5588 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'
5590 allow_undefined_flag=' -expect_unresolved \*'
5591 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'
5593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5594 hardcode_libdir_separator=:
5597 osf4* | osf5*) # as osf3* with the addition of -msym flag
5598 if test "$GCC" = yes; then
5599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5600 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'
5601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5603 allow_undefined_flag=' -expect_unresolved \*'
5604 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'
5605 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5606 $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'
5608 #Both c and cxx compiler support -rpath directly
5609 hardcode_libdir_flag_spec='-rpath $libdir'
5611 hardcode_libdir_separator=:
5615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616 hardcode_shlibpath_var=no
5617 runpath_var=LD_RUN_PATH
5618 hardcode_runpath_var=yes
5619 export_dynamic_flag_spec='${wl}-Bexport'
5623 # gcc --version < 3.0 without binutils cannot create self contained
5624 # shared libraries reliably, requiring libgcc.a to resolve some of
5625 # the object symbols generated in some cases. Libraries that use
5626 # assert need libgcc.a to resolve __eprintf, for example. Linking
5627 # a copy of libgcc.a into every shared library to guarantee resolving
5628 # such symbols causes other problems: According to Tim Van Holder
5629 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5630 # (to the application) exception stack for one thing.
5631 no_undefined_flag=' -z defs'
5632 if test "$GCC" = yes; then
5633 case `$CC --version 2>/dev/null` in
5637 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5638 *** create self contained shared libraries on Solaris systems, without
5639 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5640 *** -no-undefined support, which will at least allow you to build shared
5641 *** libraries. However, you may find that when you link such libraries
5642 *** into an application without using GCC, you have to manually add
5643 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5644 *** upgrade to a newer version of GCC. Another option is to rebuild your
5645 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5652 # $CC -shared without GNU ld will not create a library from C++
5653 # object files and a static libstdc++, better avoid it by now
5654 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5655 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5657 hardcode_libdir_flag_spec='-R$libdir'
5658 hardcode_shlibpath_var=no
5660 solaris2.[0-5] | solaris2.[0-5].*) ;;
5661 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5664 link_all_deplibs=yes
5668 if test "x$host_vendor" = xsequent; then
5669 # Use $CC to link under sequent, because it throws in some extra .o
5670 # files that make .init and .fini sections work.
5671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5675 hardcode_libdir_flag_spec='-L$libdir'
5677 hardcode_minus_L=yes
5678 hardcode_shlibpath_var=no
5682 case $host_vendor in
5684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5685 hardcode_direct=yes # is this really true???
5688 ## LD is ld it makes a PLAMLIB
5689 ## CC just makes a GrossModule.
5690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5691 reload_cmds='$CC -r -o $output$reload_objs'
5695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5699 runpath_var='LD_RUN_PATH'
5700 hardcode_shlibpath_var=no
5704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5705 hardcode_shlibpath_var=no
5706 export_dynamic_flag_spec='-Bexport'
5710 no_undefined_flag=' -z text'
5711 # $CC -shared without GNU ld will not create a library from C++
5712 # object files and a static libstdc++, better avoid it by now
5713 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5714 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5716 hardcode_libdir_flag_spec=
5717 hardcode_shlibpath_var=no
5718 runpath_var='LD_RUN_PATH'
5722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5723 hardcode_libdir_flag_spec='-L$libdir'
5724 hardcode_shlibpath_var=no
5728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5729 hardcode_libdir_flag_spec='-L$libdir'
5730 hardcode_shlibpath_var=no
5734 if test -d /usr/nec; then
5735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5736 hardcode_shlibpath_var=no
5737 runpath_var=LD_RUN_PATH
5738 hardcode_runpath_var=yes
5744 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5747 hardcode_shlibpath_var=no
5748 hardcode_runpath_var=yes
5749 runpath_var=LD_RUN_PATH
5752 sysv5uw7* | unixware7*)
5753 no_undefined_flag='${wl}-z ${wl}text'
5754 if test "$GCC" = yes; then
5755 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5757 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5759 runpath_var='LD_RUN_PATH'
5760 hardcode_shlibpath_var=no
5768 echo "$ac_t""$ld_shlibs" 1>&6
5769 test "$ld_shlibs" = no && can_build_shared=no
5771 # Check hardcoding attributes.
5772 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5773 echo "configure:5774: checking how to hardcode library paths into programs" >&5
5775 if test -n "$hardcode_libdir_flag_spec" || \
5776 test -n "$runpath_var"; then
5778 # We can hardcode non-existant directories.
5779 if test "$hardcode_direct" != no &&
5780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5781 # have to relink, otherwise we might link with an installed library
5782 # when we should be linking with a yet-to-be-installed one
5783 ## test "$hardcode_shlibpath_var" != no &&
5784 test "$hardcode_minus_L" != no; then
5785 # Linking always hardcodes the temporary library directory.
5786 hardcode_action=relink
5788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5789 hardcode_action=immediate
5792 # We cannot hardcode anything, or else we can only hardcode existing
5794 hardcode_action=unsupported
5796 echo "$ac_t""$hardcode_action" 1>&6
5800 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5801 echo "configure:5802: checking whether stripping libraries is possible" >&5
5802 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5803 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5804 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5805 echo "$ac_t""yes" 1>&6
5807 echo "$ac_t""no" 1>&6
5810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5811 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5813 # PORTME Fill in your ld.so characteristics
5814 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5815 echo "configure:5816: checking dynamic linker characteristics" >&5
5817 libname_spec='lib$name'
5824 shlibpath_overrides_runpath=unknown
5826 dynamic_linker="$host_os ld.so"
5827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5833 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5834 shlibpath_var=LIBPATH
5836 # AIX has no versioning support, so we append a major version to the name.
5837 soname_spec='${libname}${release}.so$major'
5844 hardcode_into_libs=yes
5845 if test "$host_cpu" = ia64; then
5846 # AIX 5 supports IA64
5847 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5848 shlibpath_var=LD_LIBRARY_PATH
5850 # With GCC up to 2.95.x, collect2 would create an import file
5851 # for dependence libraries. The import file would start with
5852 # the line `#! .'. This would cause the generated library to
5853 # depend on `.', always an invalid library. This was fixed in
5854 # development snapshots of GCC prior to 3.0.
5856 aix4 | aix4.[01] | aix4.[01].*)
5857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5859 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5866 # AIX (on Power*) has no versioning support, so currently we can
5867 # not hardcode correct soname into executable. Probably we can
5868 # add versioning support to collect2, so additional links can
5869 # be useful in future.
5870 if test "$aix_use_runtimelinking" = yes; then
5871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5872 # instead of lib<name>.a to let people know that these are not
5873 # typical AIX shared libraries.
5874 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5876 # We preserve .a as extension for shared libraries through AIX4.2
5877 # and later when we are not doing run time linking.
5878 library_names_spec='${libname}${release}.a $libname.a'
5879 soname_spec='${libname}${release}.so$major'
5881 shlibpath_var=LIBPATH
5883 hardcode_into_libs=yes
5887 library_names_spec='$libname.ixlibrary $libname.a'
5888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5889 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'
5893 library_names_spec='${libname}.so'
5894 dynamic_linker="$host_os ld.so"
5895 shlibpath_var=LIBRARY_PATH
5901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5902 soname_spec='${libname}${release}.so$major'
5903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5904 shlibpath_var=LD_LIBRARY_PATH
5905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5907 export_dynamic_flag_spec=-rdynamic
5908 # the default ld.so.conf also contains /usr/contrib/lib and
5909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5910 # libtool to hard-code these into programs
5913 cygwin* | mingw* | pw32*)
5914 version_type=windows
5917 case $GCC,$host_os in
5919 library_names_spec='$libname.dll.a'
5920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5921 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5922 dldir=$destdir/`dirname \$dlpath`~
5923 test -d \$dldir || mkdir -p \$dldir~
5924 $install_prog .libs/$dlname \$dldir/$dlname'
5925 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5926 dlpath=$dir/\$dldll~
5930 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5937 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5940 dynamic_linker='Win32 ld.exe'
5941 # FIXME: first we should search . and the directory the executable is in
5945 darwin* | rhapsody*)
5946 dynamic_linker="$host_os dyld"
5950 # FIXME: Relying on posixy $() will cause problems for
5951 # cross-compilation, but unfortunately the echo tests do not
5952 # yet detect zsh echo's removal of \ escapes.
5953 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)'
5954 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5955 shlibpath_overrides_runpath=yes
5956 shlibpath_var=DYLD_LIBRARY_PATH
5964 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5965 version_type=freebsd-$objformat
5966 case $version_type in
5968 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5973 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5977 shlibpath_var=LD_LIBRARY_PATH
5980 shlibpath_overrides_runpath=yes
5983 shlibpath_overrides_runpath=no
5984 hardcode_into_libs=yes
5993 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5994 soname_spec='${libname}${release}.so$major'
5995 shlibpath_var=LD_LIBRARY_PATH
5996 hardcode_into_libs=yes
5999 hpux9* | hpux10* | hpux11*)
6000 # Give a soname corresponding to the major version so that dld.sl refuses to
6001 # link against other versions.
6002 dynamic_linker="$host_os dld.sl"
6006 shlibpath_var=SHLIB_PATH
6007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6008 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6009 soname_spec='${libname}${release}.sl$major'
6010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6011 postinstall_cmds='chmod 555 $lib'
6014 irix5* | irix6* | nonstopux*)
6016 nonstopux*) version_type=nonstopux ;;
6017 *) version_type=irix ;;
6021 soname_spec='${libname}${release}.so$major'
6022 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6024 irix5* | nonstopux*)
6028 case $LD in # libtool.m4 will add one of these switches to LD
6029 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6030 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6031 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6032 *) libsuff= shlibsuff= libmagic=never-match;;
6036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6037 shlibpath_overrides_runpath=no
6038 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6039 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6042 # No shared lib support for Linux oldld, aout, or coff.
6043 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6047 # This must be Linux ELF.
6052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6053 soname_spec='${libname}${release}.so$major'
6054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6055 shlibpath_var=LD_LIBRARY_PATH
6056 shlibpath_overrides_runpath=no
6057 # This implies no fast_install, which is unacceptable.
6058 # Some rework will be needed to allow for fast_install
6059 # before this can be enabled.
6060 hardcode_into_libs=yes
6062 # We used to test for /lib/ld.so.1 and disable shared libraries on
6063 # powerpc, because MkLinux only supported shared libraries with the
6064 # GNU dynamic linker. Since this was broken with cross compilers,
6065 # most powerpc-linux boxes support dynamic linking these days and
6066 # people can always --disable-shared, the test was removed, and we
6067 # assume the GNU/Linux dynamic linker is in use.
6068 dynamic_linker='GNU/Linux ld.so'
6075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6076 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6078 dynamic_linker='NetBSD (a.out) ld.so'
6080 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6081 soname_spec='${libname}${release}.so$major'
6082 dynamic_linker='NetBSD ld.elf_so'
6084 shlibpath_var=LD_LIBRARY_PATH
6085 shlibpath_overrides_runpath=yes
6086 hardcode_into_libs=yes
6091 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6092 shlibpath_var=LD_LIBRARY_PATH
6093 shlibpath_overrides_runpath=yes
6100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6102 openbsd2.[89] | openbsd2.[89].*)
6103 shlibpath_overrides_runpath=no
6106 shlibpath_overrides_runpath=yes
6110 shlibpath_overrides_runpath=yes
6112 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6114 shlibpath_var=LD_LIBRARY_PATH
6120 shlibpath_overrides_runpath=yes
6121 shlibpath_var=LIBPATH
6122 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6123 # the library's exports are in libname.x; this is the file that must
6124 # actually be linked with to use a DLL.
6125 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6129 libname_spec='$name'
6131 library_names_spec='$libname.dll $libname.a'
6132 dynamic_linker='OS/2 ld.exe'
6133 shlibpath_var=LIBPATH
6136 osf3* | osf4* | osf5*)
6139 soname_spec='${libname}${release}.so$major'
6140 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6141 shlibpath_var=LD_LIBRARY_PATH
6142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6144 hardcode_into_libs=yes
6149 soname_spec='${libname}${release}.so$major'
6150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6151 shlibpath_var=LD_LIBRARY_PATH
6158 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6159 soname_spec='${libname}${release}.so$major'
6160 shlibpath_var=LD_LIBRARY_PATH
6161 shlibpath_overrides_runpath=yes
6162 hardcode_into_libs=yes
6163 # ldd complains unless libraries are executable
6164 postinstall_cmds='chmod +x $lib'
6169 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6171 shlibpath_var=LD_LIBRARY_PATH
6172 shlibpath_overrides_runpath=yes
6173 if test "$with_gnu_ld" = yes; then
6179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6182 soname_spec='${libname}${release}.so$major'
6183 shlibpath_var=LD_LIBRARY_PATH
6184 case $host_vendor in
6186 shlibpath_overrides_runpath=no
6188 export_dynamic_flag_spec='${wl}-Blargedynsym'
6189 runpath_var=LD_RUN_PATH
6197 shlibpath_overrides_runpath=no
6198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6205 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6206 soname_spec='${libname}${release}.so$major'
6207 shlibpath_var=LD_LIBRARY_PATH
6214 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6215 soname_spec='${libname}${release}.so$major'
6216 shlibpath_var=LD_LIBRARY_PATH
6220 if test -d /usr/nec ;then
6222 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6223 soname_spec='$libname.so.$major'
6224 shlibpath_var=LD_LIBRARY_PATH
6232 echo "$ac_t""$dynamic_linker" 1>&6
6233 test "$dynamic_linker" = no && can_build_shared=no
6235 # Report the final consequences.
6236 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6237 echo "configure:6238: checking if libtool supports shared libraries" >&5
6238 echo "$ac_t""$can_build_shared" 1>&6
6240 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6241 echo "configure:6242: checking whether to build shared libraries" >&5
6242 test "$can_build_shared" = "no" && enable_shared=no
6244 # On AIX, shared libraries and static libraries use the same namespace, and
6245 # are all built from PIC.
6248 test "$enable_shared" = yes && enable_static=no
6249 if test -n "$RANLIB"; then
6250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6251 postinstall_cmds='$RANLIB $lib'
6256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6257 test "$enable_shared" = yes && enable_static=no
6261 echo "$ac_t""$enable_shared" 1>&6
6263 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6264 echo "configure:6265: checking whether to build static libraries" >&5
6265 # Make sure either enable_shared or enable_static is yes.
6266 test "$enable_shared" = yes || enable_static=yes
6267 echo "$ac_t""$enable_static" 1>&6
6269 if test "$hardcode_action" = relink; then
6270 # Fast installation is not supported
6271 enable_fast_install=no
6272 elif test "$shlibpath_overrides_runpath" = yes ||
6273 test "$enable_shared" = no; then
6274 # Fast installation is not necessary
6275 enable_fast_install=needless
6278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6279 if test "$GCC" = yes; then
6280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6283 if test "x$enable_dlopen" != xyes; then
6284 enable_dlopen=unknown
6285 enable_dlopen_self=unknown
6286 enable_dlopen_self_static=unknown
6293 lt_cv_dlopen="load_add_on"
6295 lt_cv_dlopen_self=yes
6298 cygwin* | mingw* | pw32*)
6299 lt_cv_dlopen="LoadLibrary"
6304 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6305 echo "configure:6306: checking for dllload" >&5
6306 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char dllload(); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined (__stub_dllload) || defined (__stub___dllload)
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6336 eval "ac_cv_func_dllload=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 eval "ac_cv_func_dllload=no"
6346 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 lt_cv_dlopen="dllload"
6350 echo "$ac_t""no" 1>&6
6351 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6352 echo "configure:6353: checking for shl_load" >&5
6353 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char shl_load(); below. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 eval "ac_cv_func_shl_load=yes"
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 eval "ac_cv_func_shl_load=no"
6393 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 lt_cv_dlopen="shl_load"
6397 echo "$ac_t""no" 1>&6
6398 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6399 echo "configure:6400: checking for shl_load in -ldld" >&5
6400 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6401 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 ac_save_LIBS="$LIBS"
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420 eval "ac_cv_lib_$ac_lib_var=yes"
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 eval "ac_cv_lib_$ac_lib_var=no"
6428 LIBS="$ac_save_LIBS"
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6435 echo "$ac_t""no" 1>&6
6436 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6437 echo "configure:6438: checking for dlopen" >&5
6438 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char dlopen(); below. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6455 /* The GNU C library defines this for functions which it implements
6456 to always fail with ENOSYS. Some functions are actually named
6457 something starting with __ and the normal name is an alias. */
6458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 eval "ac_cv_func_dlopen=yes"
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 eval "ac_cv_func_dlopen=no"
6478 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6479 echo "$ac_t""yes" 1>&6
6480 lt_cv_dlopen="dlopen"
6482 echo "$ac_t""no" 1>&6
6483 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6484 echo "configure:6485: checking for dlopen in -ldl" >&5
6485 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 ac_save_LIBS="$LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 eval "ac_cv_lib_$ac_lib_var=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6510 eval "ac_cv_lib_$ac_lib_var=no"
6513 LIBS="$ac_save_LIBS"
6516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6520 echo "$ac_t""no" 1>&6
6521 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6522 echo "configure:6523: checking for dlopen in -lsvld" >&5
6523 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6524 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 ac_save_LIBS="$LIBS"
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 eval "ac_cv_lib_$ac_lib_var=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_lib_$ac_lib_var=no"
6551 LIBS="$ac_save_LIBS"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6558 echo "$ac_t""no" 1>&6
6559 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6560 echo "configure:6561: checking for dld_link in -ldld" >&5
6561 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6562 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6565 ac_save_LIBS="$LIBS"
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581 eval "ac_cv_lib_$ac_lib_var=yes"
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 eval "ac_cv_lib_$ac_lib_var=no"
6589 LIBS="$ac_save_LIBS"
6592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6596 echo "$ac_t""no" 1>&6
6620 if test "x$lt_cv_dlopen" != xno; then
6626 case $lt_cv_dlopen in
6628 save_CPPFLAGS="$CPPFLAGS"
6629 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6631 save_LDFLAGS="$LDFLAGS"
6632 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6635 LIBS="$lt_cv_dlopen_libs $LIBS"
6637 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6638 echo "configure:6639: checking whether a program can dlopen itself" >&5
6639 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 if test "$cross_compiling" = yes; then :
6643 lt_cv_dlopen_self=cross
6645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6646 lt_status=$lt_dlunknown
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6658 # define LT_DLGLOBAL RTLD_GLOBAL
6661 # define LT_DLGLOBAL DL_GLOBAL
6663 # define LT_DLGLOBAL 0
6667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6668 find out it does not work in some platform. */
6669 #ifndef LT_DLLAZY_OR_NOW
6671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6674 # define LT_DLLAZY_OR_NOW DL_LAZY
6677 # define LT_DLLAZY_OR_NOW RTLD_NOW
6680 # define LT_DLLAZY_OR_NOW DL_NOW
6682 # define LT_DLLAZY_OR_NOW 0
6690 extern "C" void exit (int);
6693 void fnord() { int i=42;}
6696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6697 int status = $lt_dlunknown;
6701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6703 /* dlclose (self); */
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6710 (./conftest; exit; ) 2>/dev/null
6713 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6714 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6715 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6718 # compilation failed
6719 lt_cv_dlopen_self=no
6727 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6729 if test "x$lt_cv_dlopen_self" = xyes; then
6730 LDFLAGS="$LDFLAGS $link_static_flag"
6731 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6732 echo "configure:6733: checking whether a statically linked program can dlopen itself" >&5
6733 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 if test "$cross_compiling" = yes; then :
6737 lt_cv_dlopen_self_static=cross
6739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6740 lt_status=$lt_dlunknown
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6752 # define LT_DLGLOBAL RTLD_GLOBAL
6755 # define LT_DLGLOBAL DL_GLOBAL
6757 # define LT_DLGLOBAL 0
6761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6762 find out it does not work in some platform. */
6763 #ifndef LT_DLLAZY_OR_NOW
6765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6768 # define LT_DLLAZY_OR_NOW DL_LAZY
6771 # define LT_DLLAZY_OR_NOW RTLD_NOW
6774 # define LT_DLLAZY_OR_NOW DL_NOW
6776 # define LT_DLLAZY_OR_NOW 0
6784 extern "C" void exit (int);
6787 void fnord() { int i=42;}
6790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6791 int status = $lt_dlunknown;
6795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6797 /* dlclose (self); */
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6804 (./conftest; exit; ) 2>/dev/null
6807 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6808 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6809 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6812 # compilation failed
6813 lt_cv_dlopen_self_static=no
6821 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6824 CPPFLAGS="$save_CPPFLAGS"
6825 LDFLAGS="$save_LDFLAGS"
6830 case $lt_cv_dlopen_self in
6831 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6832 *) enable_dlopen_self=unknown ;;
6835 case $lt_cv_dlopen_self_static in
6836 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6837 *) enable_dlopen_self_static=unknown ;;
6842 if test "$enable_shared" = yes && test "$GCC" = yes; then
6843 case $archive_cmds in
6845 # FIXME: we may have to deal with multi-command sequences.
6848 # Test whether the compiler implicitly links with -lc since on some
6849 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6850 # to ld, don't add -lc before -lgcc.
6851 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6852 echo "configure:6853: checking whether -lc should be explicitly linked in" >&5
6853 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6857 echo 'static int dummy;' > conftest.$ac_ext
6859 if { (eval echo configure:6860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6862 libobjs=conftest.$ac_objext
6864 wl=$lt_cv_prog_cc_wl
6870 save_allow_undefined_flag=$allow_undefined_flag
6871 allow_undefined_flag=
6872 if { (eval echo configure:6873: \"$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; }
6874 lt_cv_archive_cmds_need_lc=no
6876 lt_cv_archive_cmds_need_lc=yes
6878 allow_undefined_flag=$save_allow_undefined_flag
6880 cat conftest.err 1>&5
6884 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
6888 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6890 # The second clause should only fire when bootstrapping the
6891 # libtool distribution, otherwise you forgot to ship ltmain.sh
6892 # with your package, and you will get complaints that there are
6893 # no rules to generate ltmain.sh.
6894 if test -f "$ltmain"; then
6897 # If there is no Makefile yet, we rely on a make rule to execute
6898 # `config.status --recheck' to rerun these tests and create the
6899 # libtool script then.
6900 test -f Makefile && make "$ltmain"
6903 if test -f "$ltmain"; then
6904 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6907 echo creating $ofile
6909 # Now quote all the things that may contain metacharacters while being
6910 # careful not to overquote the AC_SUBSTed values. We take copies of the
6911 # variables and quote the copies for generation of the libtool script.
6912 for var in echo old_CC old_CFLAGS SED \
6913 AR AR_FLAGS CC LD LN_S NM SHELL \
6914 reload_flag reload_cmds wl \
6915 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6916 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6917 library_names_spec soname_spec \
6918 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6919 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6920 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6921 old_striplib striplib file_magic_cmd export_symbols_cmds \
6922 deplibs_check_method allow_undefined_flag no_undefined_flag \
6923 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6924 global_symbol_to_c_name_address \
6925 hardcode_libdir_flag_spec hardcode_libdir_separator \
6926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6927 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6930 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6931 old_postinstall_cmds | old_postuninstall_cmds | \
6932 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6933 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6934 postinstall_cmds | postuninstall_cmds | \
6935 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6936 # Double-quote double-evaled strings.
6937 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6945 cat <<__EOF__ > "${ofile}T"
6948 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6949 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6950 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6952 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6953 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6955 # This program is free software; you can redistribute it and/or modify
6956 # it under the terms of the GNU General Public License as published by
6957 # the Free Software Foundation; either version 2 of the License, or
6958 # (at your option) any later version.
6960 # This program is distributed in the hope that it will be useful, but
6961 # WITHOUT ANY WARRANTY; without even the implied warranty of
6962 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6963 # General Public License for more details.
6965 # You should have received a copy of the GNU General Public License
6966 # along with this program; if not, write to the Free Software
6967 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6969 # As a special exception to the GNU General Public License, if you
6970 # distribute this file as part of a program that contains a
6971 # configuration script generated by Autoconf, you may include it under
6972 # the same distribution terms that you use for the rest of that program.
6974 # A sed that does not truncate output.
6977 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6978 Xsed="${SED} -e s/^X//"
6980 # The HP-UX ksh and POSIX shell print the target directory to stdout
6982 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6984 # ### BEGIN LIBTOOL CONFIG
6986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6988 # Shell to use when invoking shell scripts.
6991 # Whether or not to build shared libraries.
6992 build_libtool_libs=$enable_shared
6994 # Whether or not to build static libraries.
6995 build_old_libs=$enable_static
6997 # Whether or not to add -lc for building shared libraries.
6998 build_libtool_need_lc=$need_lc
7000 # Whether or not to optimize for fast installation.
7001 fast_install=$enable_fast_install
7004 host_alias=$host_alias
7007 # An echo program that does not interpret backslashes.
7012 AR_FLAGS=$lt_AR_FLAGS
7014 # The default C compiler.
7017 # Is the compiler the GNU C compiler?
7020 # The linker used to build libraries.
7023 # Whether we need hard or soft links.
7026 # A BSD-compatible nm program.
7029 # A symbol stripping program
7032 # Used to examine libraries when file_magic_cmd begins "file"
7033 MAGIC_CMD=$MAGIC_CMD
7035 # Used on cygwin: DLL creation program.
7038 # Used on cygwin: object dumper.
7041 # Used on cygwin: assembler.
7044 # The name of the directory that contains temporary libtool files.
7047 # How to create reloadable object files.
7048 reload_flag=$lt_reload_flag
7049 reload_cmds=$lt_reload_cmds
7051 # How to pass a linker flag through the compiler.
7054 # Object file suffix (normally "o").
7057 # Old archive suffix (normally "a").
7060 # Executable file suffix (normally "").
7063 # Additional compiler flags for building library objects.
7064 pic_flag=$lt_pic_flag
7067 # Does compiler simultaneously support -c and -o options?
7068 compiler_c_o=$lt_compiler_c_o
7070 # Can we write directly to a .lo ?
7071 compiler_o_lo=$lt_compiler_o_lo
7073 # Must we lock files when doing compilation ?
7074 need_locks=$lt_need_locks
7076 # Do we need the lib prefix for modules?
7077 need_lib_prefix=$need_lib_prefix
7079 # Do we need a version for libraries?
7080 need_version=$need_version
7082 # Whether dlopen is supported.
7083 dlopen_support=$enable_dlopen
7085 # Whether dlopen of programs is supported.
7086 dlopen_self=$enable_dlopen_self
7088 # Whether dlopen of statically linked programs is supported.
7089 dlopen_self_static=$enable_dlopen_self_static
7091 # Compiler flag to prevent dynamic linking.
7092 link_static_flag=$lt_link_static_flag
7094 # Compiler flag to turn off builtin functions.
7095 no_builtin_flag=$lt_no_builtin_flag
7097 # Compiler flag to allow reflexive dlopens.
7098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7100 # Compiler flag to generate shared objects directly from archives.
7101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7103 # Compiler flag to generate thread-safe objects.
7104 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7106 # Library versioning type.
7107 version_type=$version_type
7109 # Format of library name prefix.
7110 libname_spec=$lt_libname_spec
7112 # List of archive names. First name is the real one, the rest are links.
7113 # The last name is the one that the linker finds with -lNAME.
7114 library_names_spec=$lt_library_names_spec
7116 # The coded name of the library, if different from the real name.
7117 soname_spec=$lt_soname_spec
7119 # Commands used to build and install an old-style archive.
7121 old_archive_cmds=$lt_old_archive_cmds
7122 old_postinstall_cmds=$lt_old_postinstall_cmds
7123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7125 # Create an old-style archive from a shared archive.
7126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7128 # Create a temporary old-style archive to link instead of a shared archive.
7129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7131 # Commands used to build and install a shared archive.
7132 archive_cmds=$lt_archive_cmds
7133 archive_expsym_cmds=$lt_archive_expsym_cmds
7134 postinstall_cmds=$lt_postinstall_cmds
7135 postuninstall_cmds=$lt_postuninstall_cmds
7137 # Commands to strip libraries.
7138 old_striplib=$lt_old_striplib
7139 striplib=$lt_striplib
7141 # Method to check whether dependent libraries are shared objects.
7142 deplibs_check_method=$lt_deplibs_check_method
7144 # Command to use when deplibs_check_method == file_magic.
7145 file_magic_cmd=$lt_file_magic_cmd
7147 # Flag that allows shared libraries with undefined symbols to be built.
7148 allow_undefined_flag=$lt_allow_undefined_flag
7150 # Flag that forces no undefined symbols.
7151 no_undefined_flag=$lt_no_undefined_flag
7153 # Commands used to finish a libtool library installation in a directory.
7154 finish_cmds=$lt_finish_cmds
7156 # Same as above, but a single script fragment to be evaled but not shown.
7157 finish_eval=$lt_finish_eval
7159 # Take the output of nm and produce a listing of raw symbols and C names.
7160 global_symbol_pipe=$lt_global_symbol_pipe
7162 # Transform the output of nm in a proper C declaration
7163 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7165 # Transform the output of nm in a C name address pair
7166 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7168 # This is the shared library runtime path variable.
7169 runpath_var=$runpath_var
7171 # This is the shared library path variable.
7172 shlibpath_var=$shlibpath_var
7174 # Is shlibpath searched before the hard-coded library search path?
7175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7177 # How to hardcode a shared library path into an executable.
7178 hardcode_action=$hardcode_action
7180 # Whether we should hardcode library paths into libraries.
7181 hardcode_into_libs=$hardcode_into_libs
7183 # Flag to hardcode \$libdir into a binary during linking.
7184 # This must work even if \$libdir does not exist.
7185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7187 # Whether we need a single -rpath flag with a separated argument.
7188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7190 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7192 hardcode_direct=$hardcode_direct
7194 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7196 hardcode_minus_L=$hardcode_minus_L
7198 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7199 # the resulting binary.
7200 hardcode_shlibpath_var=$hardcode_shlibpath_var
7202 # Variables whose values should be saved in libtool wrapper scripts and
7203 # restored at relink time.
7204 variables_saved_for_relink="$variables_saved_for_relink"
7206 # Whether libtool must link a program against all its dependency libraries.
7207 link_all_deplibs=$link_all_deplibs
7209 # Compile-time system search path for libraries
7210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7212 # Run-time system search path for libraries
7213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7215 # Fix the shell variable \$srcfile for the compiler.
7216 fix_srcfile_path="$fix_srcfile_path"
7218 # Set to yes if exported symbols are required.
7219 always_export_symbols=$always_export_symbols
7221 # The commands to list exported symbols.
7222 export_symbols_cmds=$lt_export_symbols_cmds
7224 # The commands to extract the exported symbol list from a shared archive.
7225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7227 # Symbols that should not be listed in the preloaded symbols.
7228 exclude_expsyms=$lt_exclude_expsyms
7230 # Symbols that must always be exported.
7231 include_expsyms=$lt_include_expsyms
7233 # ### END LIBTOOL CONFIG
7239 cat <<\EOF >> "${ofile}T"
7241 # AIX sometimes has problems with the GCC collect2 program. For some
7242 # reason, if we set the COLLECT_NAMES environment variable, the problems
7243 # vanish in a puff of smoke.
7244 if test "X${COLLECT_NAMES+set}" != Xset; then
7246 export COLLECT_NAMES
7253 cygwin* | mingw* | pw32* | os2*)
7254 cat <<'EOF' >> "${ofile}T"
7255 # This is a source program that is used to create dlls on Windows
7256 # Don't remove nor modify the starting and closing comments
7257 # /* ltdll.c starts here */
7258 # #define WIN32_LEAN_AND_MEAN
7259 # #include <windows.h>
7260 # #undef WIN32_LEAN_AND_MEAN
7261 # #include <stdio.h>
7263 # #ifndef __CYGWIN__
7264 # # ifdef __CYGWIN32__
7265 # # define __CYGWIN__ __CYGWIN32__
7269 # #ifdef __cplusplus
7272 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7273 # #ifdef __cplusplus
7278 # #include <cygwin/cygwin_dll.h>
7279 # DECLARE_CYGWIN_DLL( DllMain );
7281 # HINSTANCE __hDllInstance_base;
7284 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7286 # __hDllInstance_base = hInst;
7289 # /* ltdll.c ends here */
7290 # This is a source program that is used to create import libraries
7291 # on Windows for dlls which lack them. Don't remove nor modify the
7292 # starting and closing comments
7293 # /* impgen.c starts here */
7294 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7296 # This file is part of GNU libtool.
7298 # This program is free software; you can redistribute it and/or modify
7299 # it under the terms of the GNU General Public License as published by
7300 # the Free Software Foundation; either version 2 of the License, or
7301 # (at your option) any later version.
7303 # This program is distributed in the hope that it will be useful,
7304 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7305 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7306 # GNU General Public License for more details.
7308 # You should have received a copy of the GNU General Public License
7309 # along with this program; if not, write to the Free Software
7310 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7313 # #include <stdio.h> /* for printf() */
7314 # #include <unistd.h> /* for open(), lseek(), read() */
7315 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7316 # #include <string.h> /* for strdup() */
7318 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7320 # #define O_BINARY 0
7323 # static unsigned int
7324 # pe_get16 (fd, offset)
7328 # unsigned char b[2];
7329 # lseek (fd, offset, SEEK_SET);
7331 # return b[0] + (b[1]<<8);
7334 # static unsigned int
7335 # pe_get32 (fd, offset)
7339 # unsigned char b[4];
7340 # lseek (fd, offset, SEEK_SET);
7342 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7345 # static unsigned int
7349 # unsigned char *b = ptr;
7350 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7359 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7360 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7361 # unsigned long name_rvas, nexp;
7362 # unsigned char *expdata, *erva;
7363 # char *filename, *dll_name;
7365 # filename = argv[1];
7367 # dll = open(filename, O_RDONLY|O_BINARY);
7371 # dll_name = filename;
7373 # for (i=0; filename[i]; i++)
7374 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7375 # dll_name = filename + i +1;
7377 # pe_header_offset = pe_get32 (dll, 0x3c);
7378 # opthdr_ofs = pe_header_offset + 4 + 20;
7379 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7381 # if (num_entries < 1) /* no exports */
7384 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7385 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7386 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7387 # secptr = (pe_header_offset + 4 + 20 +
7388 # pe_get16 (dll, pe_header_offset + 4 + 16));
7391 # for (i = 0; i < nsections; i++)
7394 # unsigned long secptr1 = secptr + 40 * i;
7395 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7396 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7397 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7398 # lseek(dll, secptr1, SEEK_SET);
7399 # read(dll, sname, 8);
7400 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7402 # expptr = fptr + (export_rva - vaddr);
7403 # if (export_rva + export_size > vaddr + vsize)
7404 # export_size = vsize - (export_rva - vaddr);
7409 # expdata = (unsigned char*)malloc(export_size);
7410 # lseek (dll, expptr, SEEK_SET);
7411 # read (dll, expdata, export_size);
7412 # erva = expdata - export_rva;
7414 # nexp = pe_as32 (expdata+24);
7415 # name_rvas = pe_as32 (expdata+32);
7417 # printf ("EXPORTS\n");
7418 # for (i = 0; i<nexp; i++)
7420 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7421 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7426 # /* impgen.c ends here */
7432 # We use sed instead of cat because bash on DJGPP gets confused if
7433 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7434 # text mode, it properly converts lines to CR/LF. This bash problem
7435 # is reportedly fixed, but why not run on old versions too?
7436 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7438 mv -f "${ofile}T" "$ofile" || \
7439 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7447 # This can be used to rebuild libtool when needed
7448 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7450 # Always use our own libtool.
7451 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7453 # Prevent multiple expansion
7457 # test for ln hardlink support
7458 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7459 echo "configure:7460: checking whether ln works" >&5
7460 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7463 rm -f conftest.src conftest.dst
7464 echo "conftest" > conftest.src
7465 if ln conftest.src conftest.dst 2>/dev/null
7467 ol_cv_prog_LN_H="ln"
7469 ol_cv_prog_LN_H="cp"
7471 rm -f conftest.src conftest.dst
7474 LN_H="$ol_cv_prog_LN_H"
7475 if test "$ol_cv_prog_LN_H" = "ln"; then
7476 echo "$ac_t""yes" 1>&6
7478 echo "$ac_t""no" 1>&6
7481 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7482 echo "configure:7483: checking whether ln -s works" >&5
7483 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7487 if ln -s X conftestdata 2>/dev/null
7490 ac_cv_prog_LN_S="ln -s"
7495 LN_S="$ac_cv_prog_LN_S"
7496 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7497 echo "$ac_t""yes" 1>&6
7499 echo "$ac_t""no" 1>&6
7504 if test $ol_enable_perl != no ; then
7505 # Extract the first word of "perl", so it can be a program name with args.
7506 set dummy perl; ac_word=$2
7507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7508 echo "configure:7509: checking for $ac_word" >&5
7509 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7514 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7517 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7522 for ac_dir in $ac_dummy; do
7523 test -z "$ac_dir" && ac_dir=.
7524 if test -f $ac_dir/$ac_word; then
7525 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7530 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7534 PERLBIN="$ac_cv_path_PERLBIN"
7535 if test -n "$PERLBIN"; then
7536 echo "$ac_t""$PERLBIN" 1>&6
7538 echo "$ac_t""no" 1>&6
7542 if test "no$PERLBIN" = "no" ; then
7543 if test $ol_enable_perl = yes ; then
7544 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7548 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7549 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7551 if test x"$ol_enable_perl" = "xyes" ; then
7552 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7554 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7560 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7561 echo "configure:7562: checking how to run the C preprocessor" >&5
7562 # On Suns, sometimes $CPP names a directory.
7563 if test -n "$CPP" && test -d "$CPP"; then
7566 if test -z "$CPP"; then
7567 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 # This must be in double quotes, not single quotes, because CPP may get
7571 # substituted into the Makefile and "${CC-cc}" will confuse make.
7573 # On the NeXT, cc -E runs the code through the compiler's parser,
7574 # not just through cpp.
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7582 { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7584 if test -z "$ac_err"; then
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7591 CPP="${CC-cc} -E -traditional-cpp"
7592 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7599 { (eval echo configure:7600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7601 if test -z "$ac_err"; then
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 CPP="${CC-cc} -nologo -E"
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7616 { (eval echo configure:7617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7618 if test -z "$ac_err"; then
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7632 ac_cv_prog_CPP="$CPP"
7634 CPP="$ac_cv_prog_CPP"
7636 ac_cv_prog_CPP="$CPP"
7638 echo "$ac_t""$CPP" 1>&6
7642 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7643 echo "configure:7644: checking for Cygwin environment" >&5
7644 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7654 #define __CYGWIN__ __CYGWIN32__
7659 if { (eval echo configure:7660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7671 echo "$ac_t""$ac_cv_cygwin" 1>&6
7673 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7674 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7675 echo "configure:7676: checking for mingw32 environment" >&5
7676 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7687 if { (eval echo configure:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7699 echo "$ac_t""$ac_cv_mingw32" 1>&6
7701 test "$ac_cv_mingw32" = yes && MINGW32=yes
7705 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7706 echo "configure:7707: checking for executable suffix" >&5
7707 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7710 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7714 echo 'int main () { return 0; }' > conftest.$ac_ext
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7717 for file in conftest.*; do
7719 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7720 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7724 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7727 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7732 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7733 echo "$ac_t""${ac_cv_exeext}" 1>&6
7736 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7737 echo "configure:7738: checking for object suffix" >&5
7738 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7742 echo 'int i = 1;' > conftest.$ac_ext
7743 if { (eval echo configure:7744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7744 for ac_file in conftest.*; do
7747 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7751 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7756 echo "$ac_t""$ac_cv_objext" 1>&6
7757 OBJEXT=$ac_cv_objext
7758 ac_objext=$ac_cv_objext
7761 cat >> confdefs.h <<EOF
7762 #define EXEEXT "${EXEEXT}"
7766 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7767 echo "configure:7768: checking for be_app in -lbe" >&5
7768 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7769 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7772 ac_save_LIBS="$LIBS"
7773 LIBS="-lbe -lroot -lnet $LIBS"
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* Override any gcc2 internal prototype to avoid an error. */
7778 /* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7788 eval "ac_cv_lib_$ac_lib_var=yes"
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7793 eval "ac_cv_lib_$ac_lib_var=no"
7796 LIBS="$ac_save_LIBS"
7799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7800 echo "$ac_t""yes" 1>&6
7801 LIBS="$LIBS -lbe -lroot -lnet"
7803 echo "$ac_t""no" 1>&6
7811 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7812 echo "configure:7813: checking for ${CC-cc} option to accept ANSI C" >&5
7813 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 am_cv_prog_cc_stdc=no
7818 # Don't try gcc -ansi; that turns off useful extensions and
7819 # breaks some systems' header files.
7820 # AIX -qlanglvl=ansi
7821 # Ultrix and OSF/1 -std1
7822 # HP-UX 10.20 and later -Ae
7823 # HP-UX older versions -Aa -D_HPUX_SOURCE
7824 # SVR4 -Xc -D__EXTENSIONS__
7825 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7827 CC="$ac_save_CC $ac_arg"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7833 #include <sys/types.h>
7834 #include <sys/stat.h>
7835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7836 struct buf { int x; };
7837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7838 static char *e (p, i)
7844 static char *f (char * (*g) (char **, int), char **p, ...)
7849 s = g (p, va_arg (v,int));
7853 int test (int i, double x);
7854 struct s1 {int (*f) (int a);};
7855 struct s2 {int (*f) (double a);};
7856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7866 if { (eval echo configure:7867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7868 am_cv_prog_cc_stdc="$ac_arg"; break
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7879 if test -z "$am_cv_prog_cc_stdc"; then
7880 echo "$ac_t""none needed" 1>&6
7882 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
7884 case "x$am_cv_prog_cc_stdc" in
7886 *) CC="$CC $am_cv_prog_cc_stdc" ;;
7889 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
7890 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
7893 # test for make depend flag
7896 if test -z "${MKDEP}"; then
7898 if test -z "${MKDEP_FLAGS}"; then
7899 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
7900 echo "configure:7901: checking for ${OL_MKDEP} depend flag" >&5
7901 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7906 for flag in "-M" "-xM"; do
7907 cat > conftest.c <<EOF
7910 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
7911 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
7913 if test ! -f conftest."${ac_object}" ; then
7915 OL_MKDEP_FLAGS="$flag"
7924 echo "$ac_t""$ol_cv_mkdep" 1>&6
7927 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7932 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7937 if test "${ol_cv_mkdep}" = no ; then
7938 # this will soon become an error
7939 echo "configure: warning: do not know how to generate dependencies" 1>&2
7942 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
7943 echo "configure:7944: checking for afopen in -ls" >&5
7944 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
7945 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7948 ac_save_LIBS="$LIBS"
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 /* Override any gcc2 internal prototype to avoid an error. */
7954 /* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 eval "ac_cv_lib_$ac_lib_var=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_lib_$ac_lib_var=no"
7972 LIBS="$ac_save_LIBS"
7975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7979 cat >> confdefs.h <<\EOF
7980 #define HAVE_AIX_SECURITY 1
7985 echo "$ac_t""no" 1>&6
7991 ac_cv_func_getopt=no
7992 cat >> confdefs.h <<\EOF
7993 #define BOTH_STRINGS_H 1
8000 if test $ol_enable_modules != no ; then
8001 for ac_hdr in ltdl.h
8003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8005 echo "configure:8006: checking for $ac_hdr" >&5
8006 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8019 eval "ac_cv_header_$ac_safe=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 eval "ac_cv_header_$ac_safe=no"
8029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8032 cat >> confdefs.h <<EOF
8033 #define $ac_tr_hdr 1
8037 echo "$ac_t""no" 1>&6
8042 if test $ac_cv_header_ltdl_h = no ; then
8043 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8046 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8047 echo "configure:8048: checking for lt_dlinit in -lltdl" >&5
8048 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_save_LIBS="$LIBS"
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8076 LIBS="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8083 cat >> confdefs.h <<\EOF
8084 #define HAVE_LIBLTDL 1
8089 echo "$ac_t""no" 1>&6
8093 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8094 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8099 for i in $Backends; do
8100 eval "ol_tmp=\$ol_enable_$i"
8101 if test $ol_tmp = mod ; then
8102 echo "configure: warning: building static $i backend" 1>&2
8103 eval "ol_enable_$i=yes"
8106 for i in $Overlays; do
8107 eval "ol_tmp=\$ol_enable_$i"
8108 if test $ol_tmp = mod ; then
8109 echo "configure: warning: building static $i overlay" 1>&2
8110 eval "ol_enable_$i=yes"
8116 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8117 echo "configure:8118: checking for EBCDIC" >&5
8118 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8122 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure"
8124 #include "confdefs.h"
8127 #include <__ASCII__/generate_error.h>
8131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8132 { (eval echo configure:8133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8134 if test -z "$ac_err"; then
8136 ol_cv_cpp_ebcdic=yes
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8147 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8148 if test $ol_cv_cpp_ebcdic = yes ; then
8149 cat >> confdefs.h <<\EOF
8150 #define HAVE_EBCDIC 1
8155 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8156 echo "configure:8157: checking for ANSI C header files" >&5
8157 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8160 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8169 { (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8171 if test -z "$ac_err"; then
8173 ol_cv_header_stdc=yes
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 ol_cv_header_stdc=no
8183 if test $ol_cv_header_stdc = yes; then
8184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8191 egrep "memchr" >/dev/null 2>&1; then
8195 ol_cv_header_stdc=no
8201 if test $ol_cv_header_stdc = yes; then
8202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209 egrep "free" >/dev/null 2>&1; then
8213 ol_cv_header_stdc=no
8219 if test $ol_cv_header_stdc = yes; then
8220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8221 if test "$cross_compiling" = yes; then
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8232 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8233 || ('j' <= (c) && (c) <= 'r') \
8234 || ('s' <= (c) && (c) <= 'z'))
8235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8238 int main () { int i; for (i = 0; i < 256; i++)
8239 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 ol_cv_header_stdc=no
8258 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8259 if test $ol_cv_header_stdc = yes; then
8260 cat >> confdefs.h <<\EOF
8261 #define STDC_HEADERS 1
8265 ac_cv_header_stdc=disable
8268 if test $ol_cv_header_stdc != yes; then
8269 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8276 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_hdr that defines DIR" >&5
8278 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 #include <sys/types.h>
8290 if { (eval echo configure:8291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8292 eval "ac_cv_header_dirent_$ac_safe=yes"
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8297 eval "ac_cv_header_dirent_$ac_safe=no"
8301 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8302 echo "$ac_t""yes" 1>&6
8303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8304 cat >> confdefs.h <<EOF
8305 #define $ac_tr_hdr 1
8307 ac_header_dirent=$ac_hdr; break
8309 echo "$ac_t""no" 1>&6
8312 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8313 if test $ac_header_dirent = dirent.h; then
8314 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8315 echo "configure:8316: checking for opendir in -ldir" >&5
8316 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8317 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8320 ac_save_LIBS="$LIBS"
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 eval "ac_cv_lib_$ac_lib_var=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_lib_$ac_lib_var=no"
8344 LIBS="$ac_save_LIBS"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8348 echo "$ac_t""yes" 1>&6
8351 echo "$ac_t""no" 1>&6
8355 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8356 echo "configure:8357: checking for opendir in -lx" >&5
8357 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8361 ac_save_LIBS="$LIBS"
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 eval "ac_cv_lib_$ac_lib_var=yes"
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8382 eval "ac_cv_lib_$ac_lib_var=no"
8385 LIBS="$ac_save_LIBS"
8388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8392 echo "$ac_t""no" 1>&6
8397 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8398 echo "configure:8399: checking for sys/wait.h that is POSIX.1 compatible" >&5
8399 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8400 echo $ac_n "(cached) $ac_c" 1>&6
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 #include <sys/types.h>
8406 #include <sys/wait.h>
8408 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8411 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8416 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8419 if { (eval echo configure:8420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8421 ac_cv_header_sys_wait_h=yes
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 ac_cv_header_sys_wait_h=no
8431 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8432 if test $ac_cv_header_sys_wait_h = yes; then
8433 cat >> confdefs.h <<\EOF
8434 #define HAVE_SYS_WAIT_H 1
8439 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8440 echo "configure:8441: checking POSIX termios" >&5
8441 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 #include <sys/types.h>
8449 #include <termios.h>
8451 /* SunOS 4.0.3 has termios.h but not the library calls. */
8455 if { (eval echo configure:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8457 am_cv_sys_posix_termios=yes
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8462 am_cv_sys_posix_termios=no
8467 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8470 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8471 echo "configure:8472: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8472 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8477 gwinsz_in_termios_h=no
8478 if test $am_cv_sys_posix_termios = yes; then
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 #include <sys/types.h>
8483 # include <termios.h>
8489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8490 egrep "yes" >/dev/null 2>&1; then
8492 gwinsz_in_termios_h=yes
8498 if test $gwinsz_in_termios_h = no; then
8499 cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8502 #include <sys/types.h>
8503 # include <sys/ioctl.h>
8509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8510 egrep "yes" >/dev/null 2>&1; then
8512 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8520 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8521 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8522 cat >> confdefs.h <<\EOF
8523 #define GWINSZ_IN_SYS_IOCTL 1
8528 if test $am_cv_sys_posix_termios = yes ; then
8529 cat >> confdefs.h <<\EOF
8530 #define HAVE_POSIX_TERMIOS 1
8586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8588 echo "configure:8589: checking for $ac_hdr" >&5
8589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8598 { (eval echo configure:8599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8600 if test -z "$ac_err"; then
8602 eval "ac_cv_header_$ac_safe=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_header_$ac_safe=no"
8612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_hdr 1
8620 echo "$ac_t""no" 1>&6
8627 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8628 echo "configure:8629: checking for sigset in -lV3" >&5
8629 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8630 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8633 ac_save_LIBS="$LIBS"
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8649 eval "ac_cv_lib_$ac_lib_var=yes"
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8654 eval "ac_cv_lib_$ac_lib_var=no"
8657 LIBS="$ac_save_LIBS"
8660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8662 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8664 cat >> confdefs.h <<EOF
8665 #define $ac_tr_lib 1
8671 echo "$ac_t""no" 1>&6
8675 if test "$ac_cv_header_winsock_h" = yes; then
8676 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8677 echo "configure:8678: checking for winsock" >&5
8678 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8682 for curlib in ws2_32 wsock32; do
8683 LIBS="$LIBS -l$curlib"
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <winsock.h>
8692 select(0,NULL,NULL,NULL,NULL);
8694 gethostname(NULL,0);
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8709 if test $ol_cv_winsock = yes; then
8710 cat >> confdefs.h <<\EOF
8711 #define HAVE_WINSOCK 1
8714 ac_cv_func_socket=yes
8715 ac_cv_func_select=yes
8716 ac_cv_func_closesocket=yes
8717 ac_cv_func_gethostname=yes
8718 if test $curlib = ws2_32; then
8719 ol_cv_winsock=winsock2
8720 cat >> confdefs.h <<\EOF
8721 #define HAVE_WINSOCK2 1
8731 echo "$ac_t""$ol_cv_winsock" 1>&6
8735 echo $ac_n "checking for socket""... $ac_c" 1>&6
8736 echo "configure:8737: checking for socket" >&5
8737 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 /* System header to define __stub macros and hopefully few prototypes,
8744 which can conflict with char socket(); below. */
8746 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8754 /* The GNU C library defines this for functions which it implements
8755 to always fail with ENOSYS. Some functions are actually named
8756 something starting with __ and the normal name is an alias. */
8757 #if defined (__stub_socket) || defined (__stub___socket)
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767 eval "ac_cv_func_socket=yes"
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 eval "ac_cv_func_socket=no"
8777 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8778 echo "$ac_t""yes" 1>&6
8781 echo "$ac_t""no" 1>&6
8783 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8784 echo "configure:8785: checking for main in -lsocket" >&5
8785 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8789 ac_save_LIBS="$LIBS"
8790 LIBS="-lsocket $LIBS"
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8801 eval "ac_cv_lib_$ac_lib_var=yes"
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8806 eval "ac_cv_lib_$ac_lib_var=no"
8809 LIBS="$ac_save_LIBS"
8812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8813 echo "$ac_t""yes" 1>&6
8814 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8816 cat >> confdefs.h <<EOF
8817 #define $ac_tr_lib 1
8820 LIBS="-lsocket $LIBS"
8823 echo "$ac_t""no" 1>&6
8826 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8827 echo "configure:8828: checking for main in -lnet" >&5
8828 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8832 ac_save_LIBS="$LIBS"
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8842 if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 eval "ac_cv_lib_$ac_lib_var=yes"
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8849 eval "ac_cv_lib_$ac_lib_var=no"
8852 LIBS="$ac_save_LIBS"
8855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8856 echo "$ac_t""yes" 1>&6
8857 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8859 cat >> confdefs.h <<EOF
8860 #define $ac_tr_lib 1
8866 echo "$ac_t""no" 1>&6
8869 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
8870 echo "configure:8871: checking for main in -lnsl_s" >&5
8871 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
8872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 ac_save_LIBS="$LIBS"
8876 LIBS="-lnsl_s $LIBS"
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8885 if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 eval "ac_cv_lib_$ac_lib_var=yes"
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8892 eval "ac_cv_lib_$ac_lib_var=no"
8895 LIBS="$ac_save_LIBS"
8898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8902 cat >> confdefs.h <<EOF
8903 #define $ac_tr_lib 1
8906 LIBS="-lnsl_s $LIBS"
8909 echo "$ac_t""no" 1>&6
8912 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8913 echo "configure:8914: checking for main in -lnsl" >&5
8914 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
8915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8918 ac_save_LIBS="$LIBS"
8920 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 eval "ac_cv_lib_$ac_lib_var=yes"
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 eval "ac_cv_lib_$ac_lib_var=no"
8938 LIBS="$ac_save_LIBS"
8941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_lib 1
8952 echo "$ac_t""no" 1>&6
8955 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8956 echo "configure:8957: checking for socket in -linet" >&5
8957 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
8958 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8961 ac_save_LIBS="$LIBS"
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8975 if { (eval echo configure:8976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8977 eval "ac_cv_lib_$ac_lib_var=yes"
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8982 eval "ac_cv_lib_$ac_lib_var=no"
8985 LIBS="$ac_save_LIBS"
8988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8989 echo "$ac_t""yes" 1>&6
8990 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8992 cat >> confdefs.h <<EOF
8993 #define $ac_tr_lib 1
8999 echo "$ac_t""no" 1>&6
9002 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9003 echo "configure:9004: checking for main in -lgen" >&5
9004 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9008 ac_save_LIBS="$LIBS"
9010 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9020 eval "ac_cv_lib_$ac_lib_var=yes"
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9025 eval "ac_cv_lib_$ac_lib_var=no"
9028 LIBS="$ac_save_LIBS"
9031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9035 cat >> confdefs.h <<EOF
9036 #define $ac_tr_lib 1
9042 echo "$ac_t""no" 1>&6
9049 echo $ac_n "checking for select""... $ac_c" 1>&6
9050 echo "configure:9051: checking for select" >&5
9051 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 /* System header to define __stub macros and hopefully few prototypes,
9058 which can conflict with char select(); below. */
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_select) || defined (__stub___select)
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9081 eval "ac_cv_func_select=yes"
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 eval "ac_cv_func_select=no"
9091 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9095 echo "$ac_t""no" 1>&6
9096 { echo "configure: error: select() required." 1>&2; exit 1; }
9100 if test "${ac_cv_header_winsock_h}" != yes; then
9101 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9102 echo "configure:9103: checking types of arguments for select()" >&5
9103 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9106 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9109 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9112 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9113 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9114 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 #ifdef HAVE_SYS_TYPES_H
9119 #include <sys/types.h>
9121 #ifdef HAVE_SYS_TIME_H
9122 #include <sys/time.h>
9124 #ifdef HAVE_SYS_SELECT_H
9125 #include <sys/select.h>
9127 #ifdef HAVE_SYS_SOCKET_H
9128 #include <sys/socket.h>
9130 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);
9135 if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9137 ac_not_found=no ; break 3
9139 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9154 if test "$ac_not_found" = yes; then
9155 ac_cv_func_select_arg1=int
9156 ac_cv_func_select_arg234='int *'
9157 ac_cv_func_select_arg5='struct timeval *'
9159 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9160 cat >> confdefs.h <<EOF
9161 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9164 cat >> confdefs.h <<EOF
9165 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9168 cat >> confdefs.h <<EOF
9169 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9176 for ac_hdr in regex.h
9178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9180 echo "configure:9181: checking for $ac_hdr" >&5
9181 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9182 echo $ac_n "(cached) $ac_c" 1>&6
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9192 if test -z "$ac_err"; then
9194 eval "ac_cv_header_$ac_safe=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_header_$ac_safe=no"
9204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9207 cat >> confdefs.h <<EOF
9208 #define $ac_tr_hdr 1
9212 echo "$ac_t""no" 1>&6
9216 if test "$ac_cv_header_regex_h" != yes ; then
9217 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9220 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9221 echo "configure:9222: checking for library containing regfree" >&5
9222 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9225 ac_func_search_save_LIBS="$LIBS"
9226 ac_cv_search_regfree="no"
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 /* Override any gcc2 internal prototype to avoid an error. */
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9239 if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9241 ac_cv_search_regfree="none required"
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9247 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9252 /* Override any gcc2 internal prototype to avoid an error. */
9253 /* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9263 ac_cv_search_regfree="-l$ac_lib"
9266 echo "configure: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9271 LIBS="$ac_func_search_save_LIBS"
9274 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9275 if test "$ac_cv_search_regfree" != "no"; then
9276 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9279 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9283 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9284 echo "configure:9285: checking for compatible POSIX regex" >&5
9285 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 if test "$cross_compiling" = yes; then
9290 ol_cv_c_posix_regex=cross
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9296 #include <sys/types.h>
9298 static char *pattern, *string;
9306 if(regcomp(&re, pattern, 0)) {
9310 string = "ALL MATCH";
9312 rc = regexec(&re, string, 0, (void*)0, 0);
9319 if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9321 ol_cv_c_posix_regex=yes
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9326 ol_cv_c_posix_regex=no
9333 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9335 if test "$ol_cv_c_posix_regex" = no ; then
9336 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9341 for ac_hdr in sys/uuid.h
9343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9345 echo "configure:9346: checking for $ac_hdr" >&5
9346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9347 echo $ac_n "(cached) $ac_c" 1>&6
9349 cat > conftest.$ac_ext <<EOF
9350 #line 9351 "configure"
9351 #include "confdefs.h"
9354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9355 { (eval echo configure:9356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9357 if test -z "$ac_err"; then
9359 eval "ac_cv_header_$ac_safe=yes"
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9365 eval "ac_cv_header_$ac_safe=no"
9369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9370 echo "$ac_t""yes" 1>&6
9371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9372 cat >> confdefs.h <<EOF
9373 #define $ac_tr_hdr 1
9377 echo "$ac_t""no" 1>&6
9381 if test $ac_cv_header_sys_uuid_h = yes ; then
9384 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9385 echo "configure:9386: checking for library containing uuid_to_str" >&5
9386 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9389 ac_func_search_save_LIBS="$LIBS"
9390 ac_cv_search_uuid_to_str="no"
9391 cat > conftest.$ac_ext <<EOF
9392 #line 9393 "configure"
9393 #include "confdefs.h"
9394 /* Override any gcc2 internal prototype to avoid an error. */
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9405 ac_cv_search_uuid_to_str="none required"
9407 echo "configure: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9411 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 /* We use char because int might match the return type of a gcc2
9418 builtin and then its argument prototype would still apply. */
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427 ac_cv_search_uuid_to_str="-l$ac_lib"
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9435 LIBS="$ac_func_search_save_LIBS"
9438 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9439 if test "$ac_cv_search_uuid_to_str" != "no"; then
9440 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9447 if test have_uuid = yes ; then
9448 cat >> confdefs.h <<\EOF
9449 #define HAVE_UUID_TO_STR 1
9453 test "$ac_cv_search_uuid_to_str" = "none required" || \
9454 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9458 if test $have_uuid = no ; then
9459 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9460 echo "configure:9461: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9462 LIBS="$LIBS -lrpcrt4"
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9467 int __stdcall UuidCreate(void *);
9468 int __stdcall UuidToStringA(void *,void **);
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9487 if test $need_rpcrt = yes; then
9488 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9491 echo "$ac_t""$need_rpcrt" 1>&6
9495 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9496 echo "configure:9497: checking for res_query" >&5
9497 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9500 cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9503 /* System header to define __stub macros and hopefully few prototypes,
9504 which can conflict with char res_query(); below. */
9506 /* Override any gcc2 internal prototype to avoid an error. */
9507 /* We use char because int might match the return type of a gcc2
9508 builtin and then its argument prototype would still apply. */
9514 /* The GNU C library defines this for functions which it implements
9515 to always fail with ENOSYS. Some functions are actually named
9516 something starting with __ and the normal name is an alias. */
9517 #if defined (__stub_res_query) || defined (__stub___res_query)
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9527 eval "ac_cv_func_res_query=yes"
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9532 eval "ac_cv_func_res_query=no"
9537 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9538 echo "$ac_t""yes" 1>&6
9541 echo "$ac_t""no" 1>&6
9544 if test $ac_cv_func_res_query = no ; then
9545 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9546 echo "configure:9547: checking for __res_query" >&5
9547 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char __res_query(); below. */
9556 /* Override any gcc2 internal prototype to avoid an error. */
9557 /* We use char because int might match the return type of a gcc2
9558 builtin and then its argument prototype would still apply. */
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined (__stub___res_query) || defined (__stub_____res_query)
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9577 eval "ac_cv_func___res_query=yes"
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9582 eval "ac_cv_func___res_query=no"
9587 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9588 echo "$ac_t""yes" 1>&6
9591 echo "$ac_t""no" 1>&6
9594 ac_cv_func_res_query=$ac_cv_func___res_query
9597 if test $ac_cv_func_res_query = no ; then
9598 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9599 echo "configure:9600: checking for res_query in -lbind" >&5
9600 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9601 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9604 ac_save_LIBS="$LIBS"
9606 cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 /* Override any gcc2 internal prototype to avoid an error. */
9610 /* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9618 if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9620 eval "ac_cv_lib_$ac_lib_var=yes"
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9625 eval "ac_cv_lib_$ac_lib_var=no"
9628 LIBS="$ac_save_LIBS"
9631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9632 echo "$ac_t""yes" 1>&6
9633 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9635 cat >> confdefs.h <<EOF
9636 #define $ac_tr_lib 1
9642 echo "$ac_t""no" 1>&6
9645 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9648 if test $ac_cv_func_res_query = no ; then
9649 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9650 echo "configure:9651: checking for __res_query in -lbind" >&5
9651 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9655 ac_save_LIBS="$LIBS"
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671 eval "ac_cv_lib_$ac_lib_var=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 eval "ac_cv_lib_$ac_lib_var=no"
9679 LIBS="$ac_save_LIBS"
9682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9683 echo "$ac_t""yes" 1>&6
9684 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9686 cat >> confdefs.h <<EOF
9687 #define $ac_tr_lib 1
9693 echo "$ac_t""no" 1>&6
9696 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9699 if test $ac_cv_func_res_query = no ; then
9700 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9701 echo "configure:9702: checking for res_query in -lresolv" >&5
9702 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9703 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9706 ac_save_LIBS="$LIBS"
9707 LIBS="-lresolv $LIBS"
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722 eval "ac_cv_lib_$ac_lib_var=yes"
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 eval "ac_cv_lib_$ac_lib_var=no"
9730 LIBS="$ac_save_LIBS"
9733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9734 echo "$ac_t""yes" 1>&6
9735 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9737 cat >> confdefs.h <<EOF
9738 #define $ac_tr_lib 1
9741 LIBS="-lresolv $LIBS"
9744 echo "$ac_t""no" 1>&6
9747 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9750 if test $ac_cv_func_res_query = no ; then
9751 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9752 echo "configure:9753: checking for __res_query in -lresolv" >&5
9753 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9757 ac_save_LIBS="$LIBS"
9758 LIBS="-lresolv $LIBS"
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 /* Override any gcc2 internal prototype to avoid an error. */
9763 /* We use char because int might match the return type of a gcc2
9764 builtin and then its argument prototype would still apply. */
9771 if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9773 eval "ac_cv_lib_$ac_lib_var=yes"
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9778 eval "ac_cv_lib_$ac_lib_var=no"
9781 LIBS="$ac_save_LIBS"
9784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9785 echo "$ac_t""yes" 1>&6
9786 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9788 cat >> confdefs.h <<EOF
9789 #define $ac_tr_lib 1
9792 LIBS="-lresolv $LIBS"
9795 echo "$ac_t""no" 1>&6
9798 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9801 if test "$ac_cv_func_res_query" = yes ; then
9802 cat >> confdefs.h <<\EOF
9803 #define HAVE_RES_QUERY 1
9807 if test $ol_enable_dnssrv != no ; then
9812 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9813 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9816 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9819 echo "configure:9820: checking for $ac_func" >&5
9820 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char $ac_func(); below. */
9829 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9837 /* The GNU C library defines this for functions which it implements
9838 to always fail with ENOSYS. Some functions are actually named
9839 something starting with __ and the normal name is an alias. */
9840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9850 eval "ac_cv_func_$ac_func=yes"
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9855 eval "ac_cv_func_$ac_func=no"
9860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9861 echo "$ac_t""yes" 1>&6
9862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9863 cat >> confdefs.h <<EOF
9864 #define $ac_tr_func 1
9868 echo "$ac_t""no" 1>&6
9874 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
9875 if test $ol_enable_ipv6 = yes ; then
9876 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
9878 elif test $ol_enable_ipv6 != no ; then
9879 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
9880 echo "configure:9881: checking INET6_ADDRSTRLEN" >&5
9881 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
9882 echo $ac_n "(cached) $ac_c" 1>&6
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9889 # include <netinet/in.h>
9890 # ifdef INET6_ADDRSTRLEN
9891 __has_inet6_addrstrlen__;
9895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9896 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
9898 ol_cv_inet6_addrstrlen=yes
9901 ol_cv_inet6_addrstrlen=no
9907 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
9910 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
9911 echo "configure:9912: checking struct sockaddr_storage" >&5
9912 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9920 #include <sys/types.h>
9921 #include <sys/socket.h>
9925 struct sockaddr_storage ss;
9929 if { (eval echo configure:9930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9931 ol_cv_struct_sockaddr_storage=yes
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9936 ol_cv_struct_sockaddr_storage=no
9941 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
9943 if test $ol_cv_inet6_addrstrlen = yes \
9944 -a $ol_cv_struct_sockaddr_storage = yes ; then
9946 elif test $ol_enable_ipv6 = yes \
9947 -a $ol_cv_inet6_addrstrlen = no ; then
9948 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
9949 elif test $ol_enable_ipv6 = yes \
9950 -a $ol_cv_struct_sockaddr_storage = no ; then
9951 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
9955 if test $ol_enable_local != no ; then
9956 for ac_hdr in sys/un.h
9958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9960 echo "configure:9961: checking for $ac_hdr" >&5
9961 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9970 { (eval echo configure:9971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9972 if test -z "$ac_err"; then
9974 eval "ac_cv_header_$ac_safe=yes"
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9980 eval "ac_cv_header_$ac_safe=no"
9984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9987 cat >> confdefs.h <<EOF
9988 #define $ac_tr_hdr 1
9992 echo "$ac_t""no" 1>&6
9997 if test $ol_enable_local = auto ; then
9998 ol_enable_local=$ac_cv_header_sys_un_h
9999 elif test $ac_cv_header_sys_un_h = no ; then
10000 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10008 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10009 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10010 -o $ol_with_kerberos = k425 ; then
10012 for ac_hdr in krb5.h
10014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10016 echo "configure:10017: checking for $ac_hdr" >&5
10017 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10022 "configure"
10022 #include "confdefs.h"
10025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10026 { (eval echo configure:10027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10028 if test -z "$ac_err"; then
10030 eval "ac_cv_header_$ac_safe=yes"
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10036 eval "ac_cv_header_$ac_safe=no"
10040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10041 echo "$ac_t""yes" 1>&6
10042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10043 cat >> confdefs.h <<EOF
10044 #define $ac_tr_hdr 1
10048 echo "$ac_t""no" 1>&6
10053 if test $ac_cv_header_krb5_h = yes ; then
10054 for ac_hdr in heim_err.h
10056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10058 echo "configure:10059: checking for $ac_hdr" >&5
10059 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10068 { (eval echo configure:10069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10070 if test -z "$ac_err"; then
10072 eval "ac_cv_header_$ac_safe=yes"
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10078 eval "ac_cv_header_$ac_safe=no"
10082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10083 echo "$ac_t""yes" 1>&6
10084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10085 cat >> confdefs.h <<EOF
10086 #define $ac_tr_hdr 1
10090 echo "$ac_t""no" 1>&6
10094 if test $ac_cv_header_heim_err_h = yes ; then
10100 if test $krb5_impl = mit; then
10101 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10102 echo "configure:10103: checking for main in -lk5crypto" >&5
10103 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10105 echo $ac_n "(cached) $ac_c" 1>&6
10107 ac_save_LIBS="$LIBS"
10108 LIBS="-lk5crypto $LIBS"
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10119 eval "ac_cv_lib_$ac_lib_var=yes"
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 eval "ac_cv_lib_$ac_lib_var=no"
10127 LIBS="$ac_save_LIBS"
10130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10131 echo "$ac_t""yes" 1>&6
10132 krb5crypto=k5crypto
10134 echo "$ac_t""no" 1>&6
10139 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10140 echo "configure:10141: checking for main in -lkrb5" >&5
10141 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10145 ac_save_LIBS="$LIBS"
10146 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10155 if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157 eval "ac_cv_lib_$ac_lib_var=yes"
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10162 eval "ac_cv_lib_$ac_lib_var=no"
10165 LIBS="$ac_save_LIBS"
10168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6
10171 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10173 echo "$ac_t""no" 1>&6
10178 elif test $krb5_impl = heimdal; then
10179 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10180 echo "configure:10181: checking for main in -ldes" >&5
10181 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10185 ac_save_LIBS="$LIBS"
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10197 eval "ac_cv_lib_$ac_lib_var=yes"
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10202 eval "ac_cv_lib_$ac_lib_var=no"
10205 LIBS="$ac_save_LIBS"
10208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10212 echo "$ac_t""no" 1>&6
10217 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10218 echo "configure:10219: checking for main in -lkrb5" >&5
10219 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10220 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10221 echo $ac_n "(cached) $ac_c" 1>&6
10223 ac_save_LIBS="$LIBS"
10224 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10225 cat > conftest.$ac_ext <<EOF
10226 #line 10227 "configure"
10227 #include "confdefs.h"
10233 if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10235 eval "ac_cv_lib_$ac_lib_var=yes"
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10240 eval "ac_cv_lib_$ac_lib_var=no"
10243 LIBS="$ac_save_LIBS"
10246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10247 echo "$ac_t""yes" 1>&6
10249 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10251 echo "$ac_t""no" 1>&6
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_HEIMDAL_KERBEROS 1
10263 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10266 if test $have_krb5 = yes ; then
10269 cat >> confdefs.h <<\EOF
10270 #define HAVE_KRB5 1
10274 if test $ol_with_kerberos = k5only ; then
10275 ol_with_kerberos=found
10278 elif test $ol_with_kerberos != auto ; then
10279 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10285 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10286 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10288 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10292 echo "configure:10293: checking for $ac_hdr" >&5
10293 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10302 { (eval echo configure:10303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10304 if test -z "$ac_err"; then
10306 eval "ac_cv_header_$ac_safe=yes"
10309 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10312 eval "ac_cv_header_$ac_safe=no"
10316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10319 cat >> confdefs.h <<EOF
10320 #define $ac_tr_hdr 1
10324 echo "$ac_t""no" 1>&6
10329 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10330 if test $krb5_impl = mit; then
10331 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10332 echo "configure:10333: checking for main in -lkrb4" >&5
10333 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10337 ac_save_LIBS="$LIBS"
10338 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10349 eval "ac_cv_lib_$ac_lib_var=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_lib_$ac_lib_var=no"
10357 LIBS="$ac_save_LIBS"
10360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10363 KRB4_LIBS="-lkrb4 -ldes425"
10365 echo "$ac_t""no" 1>&6
10370 elif test $krb5_impl = heimdal; then
10371 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10372 echo "configure:10373: checking for main in -lkrb4" >&5
10373 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10377 ac_save_LIBS="$LIBS"
10378 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10387 if { (eval echo configure:10388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 eval "ac_cv_lib_$ac_lib_var=yes"
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10394 eval "ac_cv_lib_$ac_lib_var=no"
10397 LIBS="$ac_save_LIBS"
10400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10401 echo "$ac_t""yes" 1>&6
10405 echo "$ac_t""no" 1>&6
10412 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10415 if test $have_k425 = yes ; then
10416 ol_with_kerberos=found
10419 cat >> confdefs.h <<\EOF
10420 #define HAVE_KRB425 1
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_KRB4 1
10428 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10429 echo "configure:10430: checking for des_debug in Kerberos libraries" >&5
10430 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10435 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10436 cat > conftest.$ac_ext <<EOF
10437 #line 10438 "configure"
10438 #include "confdefs.h"
10440 #include <kerberosIV/krb.h>
10441 #include <kerberosIV/des.h>
10442 extern int des_debug;
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10452 ol_cv_var_des_debug=yes
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10457 ol_cv_var_des_debug=no
10464 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10466 if test $ol_cv_var_des_debug = yes ; then
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_DES_DEBUG 1
10478 if test $ol_link_krb5 = yes ; then
10479 ol_with_kerberos=found
10482 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10483 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10485 for ac_hdr in krb.h des.h krb-archaeology.h
10487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10489 echo "configure:10490: checking for $ac_hdr" >&5
10490 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10499 { (eval echo configure:10500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10501 if test -z "$ac_err"; then
10503 eval "ac_cv_header_$ac_safe=yes"
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10509 eval "ac_cv_header_$ac_safe=no"
10513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10514 echo "$ac_t""yes" 1>&6
10515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10516 cat >> confdefs.h <<EOF
10517 #define $ac_tr_hdr 1
10521 echo "$ac_t""no" 1>&6
10526 if test $ac_cv_header_krb_h = yes ; then
10527 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10528 echo "configure:10529: checking for main in -lkrb" >&5
10529 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10533 ac_save_LIBS="$LIBS"
10534 LIBS="-lkrb -ldes $LIBS"
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10545 eval "ac_cv_lib_$ac_lib_var=yes"
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10550 eval "ac_cv_lib_$ac_lib_var=no"
10553 LIBS="$ac_save_LIBS"
10556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10557 echo "$ac_t""yes" 1>&6
10560 echo "$ac_t""no" 1>&6
10565 if test $have_k4 = yes ; then
10566 ol_with_kerberos=found
10569 cat >> confdefs.h <<\EOF
10570 #define HAVE_KRB4 1
10574 KRB4_LIBS="-lkrb -ldes"
10576 if test $ac_cv_header_krb_archaeology_h = yes ; then
10577 cat >> confdefs.h <<\EOF
10578 #define HAVE_KTH_KERBEROS 1
10586 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10589 elif test $ol_enable_kbind = yes ; then
10590 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10593 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_KERBEROS 1
10599 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10600 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10604 if test $ol_with_tls != no ; then
10605 for ac_hdr in openssl/ssl.h ssl.h
10607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10609 echo "configure:10610: checking for $ac_hdr" >&5
10610 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10619 { (eval echo configure:10620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10621 if test -z "$ac_err"; then
10623 eval "ac_cv_header_$ac_safe=yes"
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10629 eval "ac_cv_header_$ac_safe=no"
10633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10634 echo "$ac_t""yes" 1>&6
10635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10636 cat >> confdefs.h <<EOF
10637 #define $ac_tr_hdr 1
10641 echo "$ac_t""no" 1>&6
10646 if test $ac_cv_header_openssl_ssl_h = yes \
10647 -o $ac_cv_header_ssl_h = yes ; then
10648 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10649 echo "configure:10650: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10650 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10654 ac_save_LIBS="$LIBS"
10655 LIBS="-lssl -lcrypto $LIBS"
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 /* We use char because int might match the return type of a gcc2
10661 builtin and then its argument prototype would still apply. */
10662 char SSLeay_add_ssl_algorithms();
10665 SSLeay_add_ssl_algorithms()
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10670 eval "ac_cv_lib_$ac_lib_var=yes"
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 eval "ac_cv_lib_$ac_lib_var=no"
10678 LIBS="$ac_save_LIBS"
10681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10682 echo "$ac_t""yes" 1>&6
10686 echo "$ac_t""no" 1>&6
10691 if test $have_ssleay = no ; then
10692 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10693 echo "configure:10694: checking for SSL_library_init in -lssl" >&5
10694 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10696 echo $ac_n "(cached) $ac_c" 1>&6
10698 ac_save_LIBS="$LIBS"
10699 LIBS="-lssl -lcrypto $LIBS"
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 /* Override any gcc2 internal prototype to avoid an error. */
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10706 char SSL_library_init();
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10714 eval "ac_cv_lib_$ac_lib_var=yes"
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10719 eval "ac_cv_lib_$ac_lib_var=no"
10722 LIBS="$ac_save_LIBS"
10725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10726 echo "$ac_t""yes" 1>&6
10730 echo "$ac_t""no" 1>&6
10736 if test $have_ssleay = no ; then
10737 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10738 echo "configure:10739: checking for ssl3_accept in -lssl" >&5
10739 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10743 ac_save_LIBS="$LIBS"
10744 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10751 char ssl3_accept();
10757 if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10759 eval "ac_cv_lib_$ac_lib_var=yes"
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10764 eval "ac_cv_lib_$ac_lib_var=no"
10767 LIBS="$ac_save_LIBS"
10770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10771 echo "$ac_t""yes" 1>&6
10775 echo "$ac_t""no" 1>&6
10781 if test $have_ssleay = yes ; then
10785 cat >> confdefs.h <<\EOF
10786 #define HAVE_SSLEAY 1
10790 if test $need_rsaref = yes; then
10791 cat >> confdefs.h <<\EOF
10792 #define HAVE_RSAREF 1
10796 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10798 TLS_LIBS="-lssl -lcrypto"
10804 echo "configure: warning: TLS data protection not supported!" 1>&2
10808 if test $ol_link_tls = yes ; then
10809 cat >> confdefs.h <<\EOF
10815 elif test $ol_with_tls = auto ; then
10816 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10817 echo "configure: warning: TLS data protection not supported!" 1>&2
10819 elif test $ol_with_tls != no ; then
10820 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10823 if test $ol_enable_lmpasswd != no; then
10824 if test $ol_link_tls != yes ; then
10825 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10828 cat >> confdefs.h <<\EOF
10829 #define SLAPD_LMHASH 1
10836 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10837 -o $ol_with_threads = nt ; then
10840 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10841 echo "configure:10842: checking for _beginthread" >&5
10842 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10843 echo $ac_n "(cached) $ac_c" 1>&6
10845 cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10848 /* System header to define __stub macros and hopefully few prototypes,
10849 which can conflict with char _beginthread(); below. */
10850 #include <assert.h>
10851 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char _beginthread();
10859 /* The GNU C library defines this for functions which it implements
10860 to always fail with ENOSYS. Some functions are actually named
10861 something starting with __ and the normal name is an alias. */
10862 #if defined (__stub__beginthread) || defined (__stub____beginthread)
10870 if { (eval echo configure:10871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10872 eval "ac_cv_func__beginthread=yes"
10874 echo "configure: failed program was:" >&5
10875 cat conftest.$ac_ext >&5
10877 eval "ac_cv_func__beginthread=no"
10882 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
10883 echo "$ac_t""yes" 1>&6
10886 echo "$ac_t""no" 1>&6
10890 if test $ac_cv_func__beginthread = yes ; then
10891 cat >> confdefs.h <<\EOF
10892 #define HAVE_NT_THREADS 1
10895 ol_cv_nt_threads=yes
10899 if test "$ol_cv_nt_threads" = yes ; then
10901 ol_with_threads=found
10902 ol_with_yielding_select=yes
10904 cat >> confdefs.h <<\EOF
10905 #define HAVE_NT_SERVICE_MANAGER 1
10908 cat >> confdefs.h <<\EOF
10909 #define HAVE_NT_EVENT_LOG 1
10914 if test $ol_with_threads = nt ; then
10915 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
10919 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10920 -o $ol_with_threads = posix ; then
10922 for ac_hdr in pthread.h
10924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10926 echo "configure:10927: checking for $ac_hdr" >&5
10927 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10928 echo $ac_n "(cached) $ac_c" 1>&6
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10936 { (eval echo configure:10937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10938 if test -z "$ac_err"; then
10940 eval "ac_cv_header_$ac_safe=yes"
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10946 eval "ac_cv_header_$ac_safe=no"
10950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10951 echo "$ac_t""yes" 1>&6
10952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10953 cat >> confdefs.h <<EOF
10954 #define $ac_tr_hdr 1
10958 echo "$ac_t""no" 1>&6
10963 if test $ac_cv_header_pthread_h = yes ; then
10964 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
10965 echo "configure:10966: checking POSIX thread version" >&5
10966 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10974 # include <pthread.h>
10978 int i = PTHREAD_CREATE_JOINABLE;
10982 if { (eval echo configure:10983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10985 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10988 #include <pthread.h>
10990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10991 egrep "pthread_detach" >/dev/null 2>&1; then
10993 ol_cv_pthread_version=10
10996 ol_cv_pthread_version=8
11001 echo "configure: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11009 # include <pthread.h>
11010 # ifdef PTHREAD_CREATE_UNDETACHED
11015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11016 egrep "draft7" >/dev/null 2>&1; then
11018 ol_cv_pthread_version=7
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11025 #include <pthread.h>
11027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11028 egrep "pthread_attr_init" >/dev/null 2>&1; then
11030 ol_cv_pthread_version=6
11034 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure"
11036 #include "confdefs.h"
11038 # include <pthread.h>
11039 #ifdef PTHREAD_MUTEX_INITIALIZER
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045 egrep "draft5" >/dev/null 2>&1; then
11047 ol_cv_pthread_version=5
11050 ol_cv_pthread_version=4
11065 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11068 if test $ol_cv_pthread_version != 0 ; then
11069 cat >> confdefs.h <<EOF
11070 #define HAVE_PTHREADS $ol_cv_pthread_version
11074 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11077 # consider threads found
11078 ol_with_threads=found
11081 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11082 echo "configure:11083: checking for LinuxThreads pthread.h" >&5
11083 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 #include <pthread.h>
11091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11092 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11094 ol_cv_header_linux_threads=yes
11097 ol_cv_header_linux_threads=no
11104 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11105 if test $ol_cv_header_linux_threads = yes; then
11106 cat >> confdefs.h <<\EOF
11107 #define HAVE_LINUX_THREADS 1
11113 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11114 echo "configure:11115: checking for GNU Pth pthread.h" >&5
11115 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121 #include <pthread.h>
11122 #ifdef _POSIX_THREAD_IS_GNU_PTH
11127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11128 egrep "__gnu_pth__" >/dev/null 2>&1; then
11130 ol_cv_header_gnu_pth_pthread_h=yes
11133 ol_cv_header_gnu_pth_pthread_h=no
11140 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11143 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11144 for ac_hdr in sched.h
11146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11148 echo "configure:11149: checking for $ac_hdr" >&5
11149 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11158 { (eval echo configure:11159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11160 if test -z "$ac_err"; then
11162 eval "ac_cv_header_$ac_safe=yes"
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11168 eval "ac_cv_header_$ac_safe=no"
11172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11173 echo "$ac_t""yes" 1>&6
11174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11175 cat >> confdefs.h <<EOF
11176 #define $ac_tr_hdr 1
11180 echo "$ac_t""no" 1>&6
11187 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11188 echo "configure:11189: checking for pthread_create in default libraries" >&5
11189 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11193 if test "$cross_compiling" = yes; then
11194 cat > conftest.$ac_ext <<EOF
11195 #line 11196 "configure"
11196 #include "confdefs.h"
11197 /* pthread test headers */
11198 #include <pthread.h>
11199 #if HAVE_PTHREADS < 7
11203 #define NULL (void*)0
11206 static void *task(p)
11209 return (void *) (p == NULL);
11214 /* pthread test function */
11215 #ifndef PTHREAD_CREATE_DETACHED
11216 #define PTHREAD_CREATE_DETACHED 1
11220 int detach = PTHREAD_CREATE_DETACHED;
11222 #if HAVE_PTHREADS > 4
11223 /* Final pthreads */
11224 pthread_attr_t attr;
11226 status = pthread_attr_init(&attr);
11227 if( status ) return status;
11229 #if HAVE_PTHREADS < 7
11230 status = pthread_attr_setdetachstate(&attr, &detach);
11231 if( status < 0 ) status = errno;
11233 status = pthread_attr_setdetachstate(&attr, detach);
11235 if( status ) return status;
11236 status = pthread_create( &t, &attr, task, NULL );
11237 #if HAVE_PTHREADS < 7
11238 if( status < 0 ) status = errno;
11240 if( status ) return status;
11242 /* Draft 4 pthreads */
11243 status = pthread_create( &t, pthread_attr_default, task, NULL );
11244 if( status ) return errno;
11246 /* give thread a chance to complete */
11247 /* it should remain joinable and hence detachable */
11250 status = pthread_detach( &t );
11251 if( status ) return errno;
11254 #ifdef HAVE_LINUX_THREADS
11255 pthread_kill_other_threads_np();
11262 if { (eval echo configure:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11264 ol_cv_pthread_create=yes
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11269 ol_cv_pthread_create=no
11273 cat > conftest.$ac_ext <<EOF
11274 #line 11275 "configure"
11275 #include "confdefs.h"
11276 /* pthread test headers */
11277 #include <pthread.h>
11278 #if HAVE_PTHREADS < 7
11282 #define NULL (void*)0
11285 static void *task(p)
11288 return (void *) (p == NULL);
11292 int main(argc, argv)
11297 /* pthread test function */
11298 #ifndef PTHREAD_CREATE_DETACHED
11299 #define PTHREAD_CREATE_DETACHED 1
11303 int detach = PTHREAD_CREATE_DETACHED;
11305 #if HAVE_PTHREADS > 4
11306 /* Final pthreads */
11307 pthread_attr_t attr;
11309 status = pthread_attr_init(&attr);
11310 if( status ) return status;
11312 #if HAVE_PTHREADS < 7
11313 status = pthread_attr_setdetachstate(&attr, &detach);
11314 if( status < 0 ) status = errno;
11316 status = pthread_attr_setdetachstate(&attr, detach);
11318 if( status ) return status;
11319 status = pthread_create( &t, &attr, task, NULL );
11320 #if HAVE_PTHREADS < 7
11321 if( status < 0 ) status = errno;
11323 if( status ) return status;
11325 /* Draft 4 pthreads */
11326 status = pthread_create( &t, pthread_attr_default, task, NULL );
11327 if( status ) return errno;
11329 /* give thread a chance to complete */
11330 /* it should remain joinable and hence detachable */
11333 status = pthread_detach( &t );
11334 if( status ) return errno;
11337 #ifdef HAVE_LINUX_THREADS
11338 pthread_kill_other_threads_np();
11346 if { (eval echo configure:11347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11348 ol_cv_pthread_create=yes
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11353 ol_cv_pthread_create=no
11360 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11362 if test $ol_cv_pthread_create != no ; then
11363 ol_link_threads=posix
11364 ol_link_pthreads=""
11367 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11368 if test "$ol_link_threads" = no ; then
11370 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11371 echo "configure:11372: checking for pthread link with -kthread" >&5
11372 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11378 LIBS="-kthread $LIBS"
11380 if test "$cross_compiling" = yes; then
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 /* pthread test headers */
11385 #include <pthread.h>
11386 #if HAVE_PTHREADS < 7
11390 #define NULL (void*)0
11393 static void *task(p)
11396 return (void *) (p == NULL);
11401 /* pthread test function */
11402 #ifndef PTHREAD_CREATE_DETACHED
11403 #define PTHREAD_CREATE_DETACHED 1
11407 int detach = PTHREAD_CREATE_DETACHED;
11409 #if HAVE_PTHREADS > 4
11410 /* Final pthreads */
11411 pthread_attr_t attr;
11413 status = pthread_attr_init(&attr);
11414 if( status ) return status;
11416 #if HAVE_PTHREADS < 7
11417 status = pthread_attr_setdetachstate(&attr, &detach);
11418 if( status < 0 ) status = errno;
11420 status = pthread_attr_setdetachstate(&attr, detach);
11422 if( status ) return status;
11423 status = pthread_create( &t, &attr, task, NULL );
11424 #if HAVE_PTHREADS < 7
11425 if( status < 0 ) status = errno;
11427 if( status ) return status;
11429 /* Draft 4 pthreads */
11430 status = pthread_create( &t, pthread_attr_default, task, NULL );
11431 if( status ) return errno;
11433 /* give thread a chance to complete */
11434 /* it should remain joinable and hence detachable */
11437 status = pthread_detach( &t );
11438 if( status ) return errno;
11441 #ifdef HAVE_LINUX_THREADS
11442 pthread_kill_other_threads_np();
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 ol_cv_pthread_kthread=yes
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 ol_cv_pthread_kthread=no
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 /* pthread test headers */
11464 #include <pthread.h>
11465 #if HAVE_PTHREADS < 7
11469 #define NULL (void*)0
11472 static void *task(p)
11475 return (void *) (p == NULL);
11479 int main(argc, argv)
11484 /* pthread test function */
11485 #ifndef PTHREAD_CREATE_DETACHED
11486 #define PTHREAD_CREATE_DETACHED 1
11490 int detach = PTHREAD_CREATE_DETACHED;
11492 #if HAVE_PTHREADS > 4
11493 /* Final pthreads */
11494 pthread_attr_t attr;
11496 status = pthread_attr_init(&attr);
11497 if( status ) return status;
11499 #if HAVE_PTHREADS < 7
11500 status = pthread_attr_setdetachstate(&attr, &detach);
11501 if( status < 0 ) status = errno;
11503 status = pthread_attr_setdetachstate(&attr, detach);
11505 if( status ) return status;
11506 status = pthread_create( &t, &attr, task, NULL );
11507 #if HAVE_PTHREADS < 7
11508 if( status < 0 ) status = errno;
11510 if( status ) return status;
11512 /* Draft 4 pthreads */
11513 status = pthread_create( &t, pthread_attr_default, task, NULL );
11514 if( status ) return errno;
11516 /* give thread a chance to complete */
11517 /* it should remain joinable and hence detachable */
11520 status = pthread_detach( &t );
11521 if( status ) return errno;
11524 #ifdef HAVE_LINUX_THREADS
11525 pthread_kill_other_threads_np();
11533 if { (eval echo configure:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11535 ol_cv_pthread_kthread=yes
11537 echo "configure: failed program was:" >&5
11538 cat conftest.$ac_ext >&5
11540 ol_cv_pthread_kthread=no
11551 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11553 if test $ol_cv_pthread_kthread = yes ; then
11554 ol_link_pthreads="-kthread"
11555 ol_link_threads=posix
11559 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11560 if test "$ol_link_threads" = no ; then
11562 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11563 echo "configure:11564: checking for pthread link with -pthread" >&5
11564 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11570 LIBS="-pthread $LIBS"
11572 if test "$cross_compiling" = yes; then
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 /* pthread test headers */
11577 #include <pthread.h>
11578 #if HAVE_PTHREADS < 7
11582 #define NULL (void*)0
11585 static void *task(p)
11588 return (void *) (p == NULL);
11593 /* pthread test function */
11594 #ifndef PTHREAD_CREATE_DETACHED
11595 #define PTHREAD_CREATE_DETACHED 1
11599 int detach = PTHREAD_CREATE_DETACHED;
11601 #if HAVE_PTHREADS > 4
11602 /* Final pthreads */
11603 pthread_attr_t attr;
11605 status = pthread_attr_init(&attr);
11606 if( status ) return status;
11608 #if HAVE_PTHREADS < 7
11609 status = pthread_attr_setdetachstate(&attr, &detach);
11610 if( status < 0 ) status = errno;
11612 status = pthread_attr_setdetachstate(&attr, detach);
11614 if( status ) return status;
11615 status = pthread_create( &t, &attr, task, NULL );
11616 #if HAVE_PTHREADS < 7
11617 if( status < 0 ) status = errno;
11619 if( status ) return status;
11621 /* Draft 4 pthreads */
11622 status = pthread_create( &t, pthread_attr_default, task, NULL );
11623 if( status ) return errno;
11625 /* give thread a chance to complete */
11626 /* it should remain joinable and hence detachable */
11629 status = pthread_detach( &t );
11630 if( status ) return errno;
11633 #ifdef HAVE_LINUX_THREADS
11634 pthread_kill_other_threads_np();
11641 if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11643 ol_cv_pthread_pthread=yes
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11648 ol_cv_pthread_pthread=no
11652 cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11655 /* pthread test headers */
11656 #include <pthread.h>
11657 #if HAVE_PTHREADS < 7
11661 #define NULL (void*)0
11664 static void *task(p)
11667 return (void *) (p == NULL);
11671 int main(argc, argv)
11676 /* pthread test function */
11677 #ifndef PTHREAD_CREATE_DETACHED
11678 #define PTHREAD_CREATE_DETACHED 1
11682 int detach = PTHREAD_CREATE_DETACHED;
11684 #if HAVE_PTHREADS > 4
11685 /* Final pthreads */
11686 pthread_attr_t attr;
11688 status = pthread_attr_init(&attr);
11689 if( status ) return status;
11691 #if HAVE_PTHREADS < 7
11692 status = pthread_attr_setdetachstate(&attr, &detach);
11693 if( status < 0 ) status = errno;
11695 status = pthread_attr_setdetachstate(&attr, detach);
11697 if( status ) return status;
11698 status = pthread_create( &t, &attr, task, NULL );
11699 #if HAVE_PTHREADS < 7
11700 if( status < 0 ) status = errno;
11702 if( status ) return status;
11704 /* Draft 4 pthreads */
11705 status = pthread_create( &t, pthread_attr_default, task, NULL );
11706 if( status ) return errno;
11708 /* give thread a chance to complete */
11709 /* it should remain joinable and hence detachable */
11712 status = pthread_detach( &t );
11713 if( status ) return errno;
11716 #ifdef HAVE_LINUX_THREADS
11717 pthread_kill_other_threads_np();
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11727 ol_cv_pthread_pthread=yes
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11732 ol_cv_pthread_pthread=no
11743 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11745 if test $ol_cv_pthread_pthread = yes ; then
11746 ol_link_pthreads="-pthread"
11747 ol_link_threads=posix
11751 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11752 if test "$ol_link_threads" = no ; then
11754 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11755 echo "configure:11756: checking for pthread link with -pthreads" >&5
11756 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11757 echo $ac_n "(cached) $ac_c" 1>&6
11762 LIBS="-pthreads $LIBS"
11764 if test "$cross_compiling" = yes; then
11765 cat > conftest.$ac_ext <<EOF
11766 #line 11767 "configure"
11767 #include "confdefs.h"
11768 /* pthread test headers */
11769 #include <pthread.h>
11770 #if HAVE_PTHREADS < 7
11774 #define NULL (void*)0
11777 static void *task(p)
11780 return (void *) (p == NULL);
11785 /* pthread test function */
11786 #ifndef PTHREAD_CREATE_DETACHED
11787 #define PTHREAD_CREATE_DETACHED 1
11791 int detach = PTHREAD_CREATE_DETACHED;
11793 #if HAVE_PTHREADS > 4
11794 /* Final pthreads */
11795 pthread_attr_t attr;
11797 status = pthread_attr_init(&attr);
11798 if( status ) return status;
11800 #if HAVE_PTHREADS < 7
11801 status = pthread_attr_setdetachstate(&attr, &detach);
11802 if( status < 0 ) status = errno;
11804 status = pthread_attr_setdetachstate(&attr, detach);
11806 if( status ) return status;
11807 status = pthread_create( &t, &attr, task, NULL );
11808 #if HAVE_PTHREADS < 7
11809 if( status < 0 ) status = errno;
11811 if( status ) return status;
11813 /* Draft 4 pthreads */
11814 status = pthread_create( &t, pthread_attr_default, task, NULL );
11815 if( status ) return errno;
11817 /* give thread a chance to complete */
11818 /* it should remain joinable and hence detachable */
11821 status = pthread_detach( &t );
11822 if( status ) return errno;
11825 #ifdef HAVE_LINUX_THREADS
11826 pthread_kill_other_threads_np();
11833 if { (eval echo configure:11834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11835 ol_cv_pthread_pthreads=yes
11837 echo "configure: failed program was:" >&5
11838 cat conftest.$ac_ext >&5
11840 ol_cv_pthread_pthreads=no
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 /* pthread test headers */
11848 #include <pthread.h>
11849 #if HAVE_PTHREADS < 7
11853 #define NULL (void*)0
11856 static void *task(p)
11859 return (void *) (p == NULL);
11863 int main(argc, argv)
11868 /* pthread test function */
11869 #ifndef PTHREAD_CREATE_DETACHED
11870 #define PTHREAD_CREATE_DETACHED 1
11874 int detach = PTHREAD_CREATE_DETACHED;
11876 #if HAVE_PTHREADS > 4
11877 /* Final pthreads */
11878 pthread_attr_t attr;
11880 status = pthread_attr_init(&attr);
11881 if( status ) return status;
11883 #if HAVE_PTHREADS < 7
11884 status = pthread_attr_setdetachstate(&attr, &detach);
11885 if( status < 0 ) status = errno;
11887 status = pthread_attr_setdetachstate(&attr, detach);
11889 if( status ) return status;
11890 status = pthread_create( &t, &attr, task, NULL );
11891 #if HAVE_PTHREADS < 7
11892 if( status < 0 ) status = errno;
11894 if( status ) return status;
11896 /* Draft 4 pthreads */
11897 status = pthread_create( &t, pthread_attr_default, task, NULL );
11898 if( status ) return errno;
11900 /* give thread a chance to complete */
11901 /* it should remain joinable and hence detachable */
11904 status = pthread_detach( &t );
11905 if( status ) return errno;
11908 #ifdef HAVE_LINUX_THREADS
11909 pthread_kill_other_threads_np();
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11919 ol_cv_pthread_pthreads=yes
11921 echo "configure: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11924 ol_cv_pthread_pthreads=no
11935 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
11937 if test $ol_cv_pthread_pthreads = yes ; then
11938 ol_link_pthreads="-pthreads"
11939 ol_link_threads=posix
11943 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11944 if test "$ol_link_threads" = no ; then
11946 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
11947 echo "configure:11948: checking for pthread link with -mthreads" >&5
11948 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
11949 echo $ac_n "(cached) $ac_c" 1>&6
11954 LIBS="-mthreads $LIBS"
11956 if test "$cross_compiling" = yes; then
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11960 /* pthread test headers */
11961 #include <pthread.h>
11962 #if HAVE_PTHREADS < 7
11966 #define NULL (void*)0
11969 static void *task(p)
11972 return (void *) (p == NULL);
11977 /* pthread test function */
11978 #ifndef PTHREAD_CREATE_DETACHED
11979 #define PTHREAD_CREATE_DETACHED 1
11983 int detach = PTHREAD_CREATE_DETACHED;
11985 #if HAVE_PTHREADS > 4
11986 /* Final pthreads */
11987 pthread_attr_t attr;
11989 status = pthread_attr_init(&attr);
11990 if( status ) return status;
11992 #if HAVE_PTHREADS < 7
11993 status = pthread_attr_setdetachstate(&attr, &detach);
11994 if( status < 0 ) status = errno;
11996 status = pthread_attr_setdetachstate(&attr, detach);
11998 if( status ) return status;
11999 status = pthread_create( &t, &attr, task, NULL );
12000 #if HAVE_PTHREADS < 7
12001 if( status < 0 ) status = errno;
12003 if( status ) return status;
12005 /* Draft 4 pthreads */
12006 status = pthread_create( &t, pthread_attr_default, task, NULL );
12007 if( status ) return errno;
12009 /* give thread a chance to complete */
12010 /* it should remain joinable and hence detachable */
12013 status = pthread_detach( &t );
12014 if( status ) return errno;
12017 #ifdef HAVE_LINUX_THREADS
12018 pthread_kill_other_threads_np();
12025 if { (eval echo configure:12026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12027 ol_cv_pthread_mthreads=yes
12029 echo "configure: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12032 ol_cv_pthread_mthreads=no
12036 cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 /* pthread test headers */
12040 #include <pthread.h>
12041 #if HAVE_PTHREADS < 7
12045 #define NULL (void*)0
12048 static void *task(p)
12051 return (void *) (p == NULL);
12055 int main(argc, argv)
12060 /* pthread test function */
12061 #ifndef PTHREAD_CREATE_DETACHED
12062 #define PTHREAD_CREATE_DETACHED 1
12066 int detach = PTHREAD_CREATE_DETACHED;
12068 #if HAVE_PTHREADS > 4
12069 /* Final pthreads */
12070 pthread_attr_t attr;
12072 status = pthread_attr_init(&attr);
12073 if( status ) return status;
12075 #if HAVE_PTHREADS < 7
12076 status = pthread_attr_setdetachstate(&attr, &detach);
12077 if( status < 0 ) status = errno;
12079 status = pthread_attr_setdetachstate(&attr, detach);
12081 if( status ) return status;
12082 status = pthread_create( &t, &attr, task, NULL );
12083 #if HAVE_PTHREADS < 7
12084 if( status < 0 ) status = errno;
12086 if( status ) return status;
12088 /* Draft 4 pthreads */
12089 status = pthread_create( &t, pthread_attr_default, task, NULL );
12090 if( status ) return errno;
12092 /* give thread a chance to complete */
12093 /* it should remain joinable and hence detachable */
12096 status = pthread_detach( &t );
12097 if( status ) return errno;
12100 #ifdef HAVE_LINUX_THREADS
12101 pthread_kill_other_threads_np();
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12111 ol_cv_pthread_mthreads=yes
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12116 ol_cv_pthread_mthreads=no
12127 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12129 if test $ol_cv_pthread_mthreads = yes ; then
12130 ol_link_pthreads="-mthreads"
12131 ol_link_threads=posix
12135 # Pthread try link: -thread (ol_cv_pthread_thread)
12136 if test "$ol_link_threads" = no ; then
12138 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12139 echo "configure:12140: checking for pthread link with -thread" >&5
12140 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12141 echo $ac_n "(cached) $ac_c" 1>&6
12146 LIBS="-thread $LIBS"
12148 if test "$cross_compiling" = yes; then
12149 cat > conftest.$ac_ext <<EOF
12150 #line 12151 "configure"
12151 #include "confdefs.h"
12152 /* pthread test headers */
12153 #include <pthread.h>
12154 #if HAVE_PTHREADS < 7
12158 #define NULL (void*)0
12161 static void *task(p)
12164 return (void *) (p == NULL);
12169 /* pthread test function */
12170 #ifndef PTHREAD_CREATE_DETACHED
12171 #define PTHREAD_CREATE_DETACHED 1
12175 int detach = PTHREAD_CREATE_DETACHED;
12177 #if HAVE_PTHREADS > 4
12178 /* Final pthreads */
12179 pthread_attr_t attr;
12181 status = pthread_attr_init(&attr);
12182 if( status ) return status;
12184 #if HAVE_PTHREADS < 7
12185 status = pthread_attr_setdetachstate(&attr, &detach);
12186 if( status < 0 ) status = errno;
12188 status = pthread_attr_setdetachstate(&attr, detach);
12190 if( status ) return status;
12191 status = pthread_create( &t, &attr, task, NULL );
12192 #if HAVE_PTHREADS < 7
12193 if( status < 0 ) status = errno;
12195 if( status ) return status;
12197 /* Draft 4 pthreads */
12198 status = pthread_create( &t, pthread_attr_default, task, NULL );
12199 if( status ) return errno;
12201 /* give thread a chance to complete */
12202 /* it should remain joinable and hence detachable */
12205 status = pthread_detach( &t );
12206 if( status ) return errno;
12209 #ifdef HAVE_LINUX_THREADS
12210 pthread_kill_other_threads_np();
12217 if { (eval echo configure:12218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12219 ol_cv_pthread_thread=yes
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12224 ol_cv_pthread_thread=no
12228 cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231 /* pthread test headers */
12232 #include <pthread.h>
12233 #if HAVE_PTHREADS < 7
12237 #define NULL (void*)0
12240 static void *task(p)
12243 return (void *) (p == NULL);
12247 int main(argc, argv)
12252 /* pthread test function */
12253 #ifndef PTHREAD_CREATE_DETACHED
12254 #define PTHREAD_CREATE_DETACHED 1
12258 int detach = PTHREAD_CREATE_DETACHED;
12260 #if HAVE_PTHREADS > 4
12261 /* Final pthreads */
12262 pthread_attr_t attr;
12264 status = pthread_attr_init(&attr);
12265 if( status ) return status;
12267 #if HAVE_PTHREADS < 7
12268 status = pthread_attr_setdetachstate(&attr, &detach);
12269 if( status < 0 ) status = errno;
12271 status = pthread_attr_setdetachstate(&attr, detach);
12273 if( status ) return status;
12274 status = pthread_create( &t, &attr, task, NULL );
12275 #if HAVE_PTHREADS < 7
12276 if( status < 0 ) status = errno;
12278 if( status ) return status;
12280 /* Draft 4 pthreads */
12281 status = pthread_create( &t, pthread_attr_default, task, NULL );
12282 if( status ) return errno;
12284 /* give thread a chance to complete */
12285 /* it should remain joinable and hence detachable */
12288 status = pthread_detach( &t );
12289 if( status ) return errno;
12292 #ifdef HAVE_LINUX_THREADS
12293 pthread_kill_other_threads_np();
12301 if { (eval echo configure:12302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12303 ol_cv_pthread_thread=yes
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12308 ol_cv_pthread_thread=no
12319 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12321 if test $ol_cv_pthread_thread = yes ; then
12322 ol_link_pthreads="-thread"
12323 ol_link_threads=posix
12328 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12329 if test "$ol_link_threads" = no ; then
12330 # try -lpthread -lmach -lexc -lc_r
12331 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12332 echo "configure:12333: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12333 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12334 echo $ac_n "(cached) $ac_c" 1>&6
12339 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12341 if test "$cross_compiling" = yes; then
12342 cat > conftest.$ac_ext <<EOF
12343 #line 12344 "configure"
12344 #include "confdefs.h"
12345 /* pthread test headers */
12346 #include <pthread.h>
12347 #if HAVE_PTHREADS < 7
12351 #define NULL (void*)0
12354 static void *task(p)
12357 return (void *) (p == NULL);
12362 /* pthread test function */
12363 #ifndef PTHREAD_CREATE_DETACHED
12364 #define PTHREAD_CREATE_DETACHED 1
12368 int detach = PTHREAD_CREATE_DETACHED;
12370 #if HAVE_PTHREADS > 4
12371 /* Final pthreads */
12372 pthread_attr_t attr;
12374 status = pthread_attr_init(&attr);
12375 if( status ) return status;
12377 #if HAVE_PTHREADS < 7
12378 status = pthread_attr_setdetachstate(&attr, &detach);
12379 if( status < 0 ) status = errno;
12381 status = pthread_attr_setdetachstate(&attr, detach);
12383 if( status ) return status;
12384 status = pthread_create( &t, &attr, task, NULL );
12385 #if HAVE_PTHREADS < 7
12386 if( status < 0 ) status = errno;
12388 if( status ) return status;
12390 /* Draft 4 pthreads */
12391 status = pthread_create( &t, pthread_attr_default, task, NULL );
12392 if( status ) return errno;
12394 /* give thread a chance to complete */
12395 /* it should remain joinable and hence detachable */
12398 status = pthread_detach( &t );
12399 if( status ) return errno;
12402 #ifdef HAVE_LINUX_THREADS
12403 pthread_kill_other_threads_np();
12410 if { (eval echo configure:12411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12412 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12417 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 /* pthread test headers */
12425 #include <pthread.h>
12426 #if HAVE_PTHREADS < 7
12430 #define NULL (void*)0
12433 static void *task(p)
12436 return (void *) (p == NULL);
12440 int main(argc, argv)
12445 /* pthread test function */
12446 #ifndef PTHREAD_CREATE_DETACHED
12447 #define PTHREAD_CREATE_DETACHED 1
12451 int detach = PTHREAD_CREATE_DETACHED;
12453 #if HAVE_PTHREADS > 4
12454 /* Final pthreads */
12455 pthread_attr_t attr;
12457 status = pthread_attr_init(&attr);
12458 if( status ) return status;
12460 #if HAVE_PTHREADS < 7
12461 status = pthread_attr_setdetachstate(&attr, &detach);
12462 if( status < 0 ) status = errno;
12464 status = pthread_attr_setdetachstate(&attr, detach);
12466 if( status ) return status;
12467 status = pthread_create( &t, &attr, task, NULL );
12468 #if HAVE_PTHREADS < 7
12469 if( status < 0 ) status = errno;
12471 if( status ) return status;
12473 /* Draft 4 pthreads */
12474 status = pthread_create( &t, pthread_attr_default, task, NULL );
12475 if( status ) return errno;
12477 /* give thread a chance to complete */
12478 /* it should remain joinable and hence detachable */
12481 status = pthread_detach( &t );
12482 if( status ) return errno;
12485 #ifdef HAVE_LINUX_THREADS
12486 pthread_kill_other_threads_np();
12494 if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12496 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12498 echo "configure: failed program was:" >&5
12499 cat conftest.$ac_ext >&5
12501 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12512 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12514 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12515 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12516 ol_link_threads=posix
12520 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12521 if test "$ol_link_threads" = no ; then
12522 # try -lpthread -lmach -lexc
12523 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12524 echo "configure:12525: checking for pthread link with -lpthread -lmach -lexc" >&5
12525 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12526 echo $ac_n "(cached) $ac_c" 1>&6
12531 LIBS="-lpthread -lmach -lexc $LIBS"
12533 if test "$cross_compiling" = yes; then
12534 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure"
12536 #include "confdefs.h"
12537 /* pthread test headers */
12538 #include <pthread.h>
12539 #if HAVE_PTHREADS < 7
12543 #define NULL (void*)0
12546 static void *task(p)
12549 return (void *) (p == NULL);
12554 /* pthread test function */
12555 #ifndef PTHREAD_CREATE_DETACHED
12556 #define PTHREAD_CREATE_DETACHED 1
12560 int detach = PTHREAD_CREATE_DETACHED;
12562 #if HAVE_PTHREADS > 4
12563 /* Final pthreads */
12564 pthread_attr_t attr;
12566 status = pthread_attr_init(&attr);
12567 if( status ) return status;
12569 #if HAVE_PTHREADS < 7
12570 status = pthread_attr_setdetachstate(&attr, &detach);
12571 if( status < 0 ) status = errno;
12573 status = pthread_attr_setdetachstate(&attr, detach);
12575 if( status ) return status;
12576 status = pthread_create( &t, &attr, task, NULL );
12577 #if HAVE_PTHREADS < 7
12578 if( status < 0 ) status = errno;
12580 if( status ) return status;
12582 /* Draft 4 pthreads */
12583 status = pthread_create( &t, pthread_attr_default, task, NULL );
12584 if( status ) return errno;
12586 /* give thread a chance to complete */
12587 /* it should remain joinable and hence detachable */
12590 status = pthread_detach( &t );
12591 if( status ) return errno;
12594 #ifdef HAVE_LINUX_THREADS
12595 pthread_kill_other_threads_np();
12602 if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604 ol_cv_pthread_lpthread_lmach_lexc=yes
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12609 ol_cv_pthread_lpthread_lmach_lexc=no
12613 cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12616 /* pthread test headers */
12617 #include <pthread.h>
12618 #if HAVE_PTHREADS < 7
12622 #define NULL (void*)0
12625 static void *task(p)
12628 return (void *) (p == NULL);
12632 int main(argc, argv)
12637 /* pthread test function */
12638 #ifndef PTHREAD_CREATE_DETACHED
12639 #define PTHREAD_CREATE_DETACHED 1
12643 int detach = PTHREAD_CREATE_DETACHED;
12645 #if HAVE_PTHREADS > 4
12646 /* Final pthreads */
12647 pthread_attr_t attr;
12649 status = pthread_attr_init(&attr);
12650 if( status ) return status;
12652 #if HAVE_PTHREADS < 7
12653 status = pthread_attr_setdetachstate(&attr, &detach);
12654 if( status < 0 ) status = errno;
12656 status = pthread_attr_setdetachstate(&attr, detach);
12658 if( status ) return status;
12659 status = pthread_create( &t, &attr, task, NULL );
12660 #if HAVE_PTHREADS < 7
12661 if( status < 0 ) status = errno;
12663 if( status ) return status;
12665 /* Draft 4 pthreads */
12666 status = pthread_create( &t, pthread_attr_default, task, NULL );
12667 if( status ) return errno;
12669 /* give thread a chance to complete */
12670 /* it should remain joinable and hence detachable */
12673 status = pthread_detach( &t );
12674 if( status ) return errno;
12677 #ifdef HAVE_LINUX_THREADS
12678 pthread_kill_other_threads_np();
12686 if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12688 ol_cv_pthread_lpthread_lmach_lexc=yes
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12693 ol_cv_pthread_lpthread_lmach_lexc=no
12704 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12706 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12707 ol_link_pthreads="-lpthread -lmach -lexc"
12708 ol_link_threads=posix
12713 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12714 if test "$ol_link_threads" = no ; then
12715 # try -lpthread -Wl,-woff,85
12716 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12717 echo "configure:12718: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12718 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12719 echo $ac_n "(cached) $ac_c" 1>&6
12724 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12726 if test "$cross_compiling" = yes; then
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 /* pthread test headers */
12731 #include <pthread.h>
12732 #if HAVE_PTHREADS < 7
12736 #define NULL (void*)0
12739 static void *task(p)
12742 return (void *) (p == NULL);
12747 /* pthread test function */
12748 #ifndef PTHREAD_CREATE_DETACHED
12749 #define PTHREAD_CREATE_DETACHED 1
12753 int detach = PTHREAD_CREATE_DETACHED;
12755 #if HAVE_PTHREADS > 4
12756 /* Final pthreads */
12757 pthread_attr_t attr;
12759 status = pthread_attr_init(&attr);
12760 if( status ) return status;
12762 #if HAVE_PTHREADS < 7
12763 status = pthread_attr_setdetachstate(&attr, &detach);
12764 if( status < 0 ) status = errno;
12766 status = pthread_attr_setdetachstate(&attr, detach);
12768 if( status ) return status;
12769 status = pthread_create( &t, &attr, task, NULL );
12770 #if HAVE_PTHREADS < 7
12771 if( status < 0 ) status = errno;
12773 if( status ) return status;
12775 /* Draft 4 pthreads */
12776 status = pthread_create( &t, pthread_attr_default, task, NULL );
12777 if( status ) return errno;
12779 /* give thread a chance to complete */
12780 /* it should remain joinable and hence detachable */
12783 status = pthread_detach( &t );
12784 if( status ) return errno;
12787 #ifdef HAVE_LINUX_THREADS
12788 pthread_kill_other_threads_np();
12795 if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12797 ol_cv_pthread_lib_lpthread_woff=yes
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12802 ol_cv_pthread_lib_lpthread_woff=no
12806 cat > conftest.$ac_ext <<EOF
12807 #line 12808 "configure"
12808 #include "confdefs.h"
12809 /* pthread test headers */
12810 #include <pthread.h>
12811 #if HAVE_PTHREADS < 7
12815 #define NULL (void*)0
12818 static void *task(p)
12821 return (void *) (p == NULL);
12825 int main(argc, argv)
12830 /* pthread test function */
12831 #ifndef PTHREAD_CREATE_DETACHED
12832 #define PTHREAD_CREATE_DETACHED 1
12836 int detach = PTHREAD_CREATE_DETACHED;
12838 #if HAVE_PTHREADS > 4
12839 /* Final pthreads */
12840 pthread_attr_t attr;
12842 status = pthread_attr_init(&attr);
12843 if( status ) return status;
12845 #if HAVE_PTHREADS < 7
12846 status = pthread_attr_setdetachstate(&attr, &detach);
12847 if( status < 0 ) status = errno;
12849 status = pthread_attr_setdetachstate(&attr, detach);
12851 if( status ) return status;
12852 status = pthread_create( &t, &attr, task, NULL );
12853 #if HAVE_PTHREADS < 7
12854 if( status < 0 ) status = errno;
12856 if( status ) return status;
12858 /* Draft 4 pthreads */
12859 status = pthread_create( &t, pthread_attr_default, task, NULL );
12860 if( status ) return errno;
12862 /* give thread a chance to complete */
12863 /* it should remain joinable and hence detachable */
12866 status = pthread_detach( &t );
12867 if( status ) return errno;
12870 #ifdef HAVE_LINUX_THREADS
12871 pthread_kill_other_threads_np();
12879 if { (eval echo configure:12880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12881 ol_cv_pthread_lib_lpthread_woff=yes
12883 echo "configure: failed program was:" >&5
12884 cat conftest.$ac_ext >&5
12886 ol_cv_pthread_lib_lpthread_woff=no
12897 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
12899 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12900 ol_link_pthreads="-lpthread -Wl,-woff,85"
12901 ol_link_threads=posix
12906 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12907 if test "$ol_link_threads" = no ; then
12909 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
12910 echo "configure:12911: checking for pthread link with -lpthread" >&5
12911 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
12912 echo $ac_n "(cached) $ac_c" 1>&6
12917 LIBS="-lpthread $LIBS"
12919 if test "$cross_compiling" = yes; then
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 /* pthread test headers */
12924 #include <pthread.h>
12925 #if HAVE_PTHREADS < 7
12929 #define NULL (void*)0
12932 static void *task(p)
12935 return (void *) (p == NULL);
12940 /* pthread test function */
12941 #ifndef PTHREAD_CREATE_DETACHED
12942 #define PTHREAD_CREATE_DETACHED 1
12946 int detach = PTHREAD_CREATE_DETACHED;
12948 #if HAVE_PTHREADS > 4
12949 /* Final pthreads */
12950 pthread_attr_t attr;
12952 status = pthread_attr_init(&attr);
12953 if( status ) return status;
12955 #if HAVE_PTHREADS < 7
12956 status = pthread_attr_setdetachstate(&attr, &detach);
12957 if( status < 0 ) status = errno;
12959 status = pthread_attr_setdetachstate(&attr, detach);
12961 if( status ) return status;
12962 status = pthread_create( &t, &attr, task, NULL );
12963 #if HAVE_PTHREADS < 7
12964 if( status < 0 ) status = errno;
12966 if( status ) return status;
12968 /* Draft 4 pthreads */
12969 status = pthread_create( &t, pthread_attr_default, task, NULL );
12970 if( status ) return errno;
12972 /* give thread a chance to complete */
12973 /* it should remain joinable and hence detachable */
12976 status = pthread_detach( &t );
12977 if( status ) return errno;
12980 #ifdef HAVE_LINUX_THREADS
12981 pthread_kill_other_threads_np();
12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12990 ol_cv_pthread_lpthread=yes
12992 echo "configure: failed program was:" >&5
12993 cat conftest.$ac_ext >&5
12995 ol_cv_pthread_lpthread=no
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002 /* pthread test headers */
13003 #include <pthread.h>
13004 #if HAVE_PTHREADS < 7
13008 #define NULL (void*)0
13011 static void *task(p)
13014 return (void *) (p == NULL);
13018 int main(argc, argv)
13023 /* pthread test function */
13024 #ifndef PTHREAD_CREATE_DETACHED
13025 #define PTHREAD_CREATE_DETACHED 1
13029 int detach = PTHREAD_CREATE_DETACHED;
13031 #if HAVE_PTHREADS > 4
13032 /* Final pthreads */
13033 pthread_attr_t attr;
13035 status = pthread_attr_init(&attr);
13036 if( status ) return status;
13038 #if HAVE_PTHREADS < 7
13039 status = pthread_attr_setdetachstate(&attr, &detach);
13040 if( status < 0 ) status = errno;
13042 status = pthread_attr_setdetachstate(&attr, detach);
13044 if( status ) return status;
13045 status = pthread_create( &t, &attr, task, NULL );
13046 #if HAVE_PTHREADS < 7
13047 if( status < 0 ) status = errno;
13049 if( status ) return status;
13051 /* Draft 4 pthreads */
13052 status = pthread_create( &t, pthread_attr_default, task, NULL );
13053 if( status ) return errno;
13055 /* give thread a chance to complete */
13056 /* it should remain joinable and hence detachable */
13059 status = pthread_detach( &t );
13060 if( status ) return errno;
13063 #ifdef HAVE_LINUX_THREADS
13064 pthread_kill_other_threads_np();
13072 if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13074 ol_cv_pthread_lpthread=yes
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13079 ol_cv_pthread_lpthread=no
13090 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13092 if test $ol_cv_pthread_lpthread = yes ; then
13093 ol_link_pthreads="-lpthread"
13094 ol_link_threads=posix
13098 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13099 if test "$ol_link_threads" = no ; then
13101 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13102 echo "configure:13103: checking for pthread link with -lc_r" >&5
13103 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13104 echo $ac_n "(cached) $ac_c" 1>&6
13111 if test "$cross_compiling" = yes; then
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13115 /* pthread test headers */
13116 #include <pthread.h>
13117 #if HAVE_PTHREADS < 7
13121 #define NULL (void*)0
13124 static void *task(p)
13127 return (void *) (p == NULL);
13132 /* pthread test function */
13133 #ifndef PTHREAD_CREATE_DETACHED
13134 #define PTHREAD_CREATE_DETACHED 1
13138 int detach = PTHREAD_CREATE_DETACHED;
13140 #if HAVE_PTHREADS > 4
13141 /* Final pthreads */
13142 pthread_attr_t attr;
13144 status = pthread_attr_init(&attr);
13145 if( status ) return status;
13147 #if HAVE_PTHREADS < 7
13148 status = pthread_attr_setdetachstate(&attr, &detach);
13149 if( status < 0 ) status = errno;
13151 status = pthread_attr_setdetachstate(&attr, detach);
13153 if( status ) return status;
13154 status = pthread_create( &t, &attr, task, NULL );
13155 #if HAVE_PTHREADS < 7
13156 if( status < 0 ) status = errno;
13158 if( status ) return status;
13160 /* Draft 4 pthreads */
13161 status = pthread_create( &t, pthread_attr_default, task, NULL );
13162 if( status ) return errno;
13164 /* give thread a chance to complete */
13165 /* it should remain joinable and hence detachable */
13168 status = pthread_detach( &t );
13169 if( status ) return errno;
13172 #ifdef HAVE_LINUX_THREADS
13173 pthread_kill_other_threads_np();
13180 if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 ol_cv_pthread_lc_r=yes
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 ol_cv_pthread_lc_r=no
13191 cat > conftest.$ac_ext <<EOF
13192 #line 13193 "configure"
13193 #include "confdefs.h"
13194 /* pthread test headers */
13195 #include <pthread.h>
13196 #if HAVE_PTHREADS < 7
13200 #define NULL (void*)0
13203 static void *task(p)
13206 return (void *) (p == NULL);
13210 int main(argc, argv)
13215 /* pthread test function */
13216 #ifndef PTHREAD_CREATE_DETACHED
13217 #define PTHREAD_CREATE_DETACHED 1
13221 int detach = PTHREAD_CREATE_DETACHED;
13223 #if HAVE_PTHREADS > 4
13224 /* Final pthreads */
13225 pthread_attr_t attr;
13227 status = pthread_attr_init(&attr);
13228 if( status ) return status;
13230 #if HAVE_PTHREADS < 7
13231 status = pthread_attr_setdetachstate(&attr, &detach);
13232 if( status < 0 ) status = errno;
13234 status = pthread_attr_setdetachstate(&attr, detach);
13236 if( status ) return status;
13237 status = pthread_create( &t, &attr, task, NULL );
13238 #if HAVE_PTHREADS < 7
13239 if( status < 0 ) status = errno;
13241 if( status ) return status;
13243 /* Draft 4 pthreads */
13244 status = pthread_create( &t, pthread_attr_default, task, NULL );
13245 if( status ) return errno;
13247 /* give thread a chance to complete */
13248 /* it should remain joinable and hence detachable */
13251 status = pthread_detach( &t );
13252 if( status ) return errno;
13255 #ifdef HAVE_LINUX_THREADS
13256 pthread_kill_other_threads_np();
13264 if { (eval echo configure:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13266 ol_cv_pthread_lc_r=yes
13268 echo "configure: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13271 ol_cv_pthread_lc_r=no
13282 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13284 if test $ol_cv_pthread_lc_r = yes ; then
13285 ol_link_pthreads="-lc_r"
13286 ol_link_threads=posix
13291 # Pthread try link: -threads (ol_cv_pthread_threads)
13292 if test "$ol_link_threads" = no ; then
13294 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13295 echo "configure:13296: checking for pthread link with -threads" >&5
13296 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13297 echo $ac_n "(cached) $ac_c" 1>&6
13302 LIBS="-threads $LIBS"
13304 if test "$cross_compiling" = yes; then
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 /* pthread test headers */
13309 #include <pthread.h>
13310 #if HAVE_PTHREADS < 7
13314 #define NULL (void*)0
13317 static void *task(p)
13320 return (void *) (p == NULL);
13325 /* pthread test function */
13326 #ifndef PTHREAD_CREATE_DETACHED
13327 #define PTHREAD_CREATE_DETACHED 1
13331 int detach = PTHREAD_CREATE_DETACHED;
13333 #if HAVE_PTHREADS > 4
13334 /* Final pthreads */
13335 pthread_attr_t attr;
13337 status = pthread_attr_init(&attr);
13338 if( status ) return status;
13340 #if HAVE_PTHREADS < 7
13341 status = pthread_attr_setdetachstate(&attr, &detach);
13342 if( status < 0 ) status = errno;
13344 status = pthread_attr_setdetachstate(&attr, detach);
13346 if( status ) return status;
13347 status = pthread_create( &t, &attr, task, NULL );
13348 #if HAVE_PTHREADS < 7
13349 if( status < 0 ) status = errno;
13351 if( status ) return status;
13353 /* Draft 4 pthreads */
13354 status = pthread_create( &t, pthread_attr_default, task, NULL );
13355 if( status ) return errno;
13357 /* give thread a chance to complete */
13358 /* it should remain joinable and hence detachable */
13361 status = pthread_detach( &t );
13362 if( status ) return errno;
13365 #ifdef HAVE_LINUX_THREADS
13366 pthread_kill_other_threads_np();
13373 if { (eval echo configure:13374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13375 ol_cv_pthread_threads=yes
13377 echo "configure: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13380 ol_cv_pthread_threads=no
13384 cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13387 /* pthread test headers */
13388 #include <pthread.h>
13389 #if HAVE_PTHREADS < 7
13393 #define NULL (void*)0
13396 static void *task(p)
13399 return (void *) (p == NULL);
13403 int main(argc, argv)
13408 /* pthread test function */
13409 #ifndef PTHREAD_CREATE_DETACHED
13410 #define PTHREAD_CREATE_DETACHED 1
13414 int detach = PTHREAD_CREATE_DETACHED;
13416 #if HAVE_PTHREADS > 4
13417 /* Final pthreads */
13418 pthread_attr_t attr;
13420 status = pthread_attr_init(&attr);
13421 if( status ) return status;
13423 #if HAVE_PTHREADS < 7
13424 status = pthread_attr_setdetachstate(&attr, &detach);
13425 if( status < 0 ) status = errno;
13427 status = pthread_attr_setdetachstate(&attr, detach);
13429 if( status ) return status;
13430 status = pthread_create( &t, &attr, task, NULL );
13431 #if HAVE_PTHREADS < 7
13432 if( status < 0 ) status = errno;
13434 if( status ) return status;
13436 /* Draft 4 pthreads */
13437 status = pthread_create( &t, pthread_attr_default, task, NULL );
13438 if( status ) return errno;
13440 /* give thread a chance to complete */
13441 /* it should remain joinable and hence detachable */
13444 status = pthread_detach( &t );
13445 if( status ) return errno;
13448 #ifdef HAVE_LINUX_THREADS
13449 pthread_kill_other_threads_np();
13457 if { (eval echo configure:13458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13459 ol_cv_pthread_threads=yes
13461 echo "configure: failed program was:" >&5
13462 cat conftest.$ac_ext >&5
13464 ol_cv_pthread_threads=no
13475 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13477 if test $ol_cv_pthread_threads = yes ; then
13478 ol_link_pthreads="-threads"
13479 ol_link_threads=posix
13484 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13485 if test "$ol_link_threads" = no ; then
13486 # try -lpthreads -lmach -lexc -lc_r
13487 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13488 echo "configure:13489: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13489 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13490 echo $ac_n "(cached) $ac_c" 1>&6
13495 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13497 if test "$cross_compiling" = yes; then
13498 cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* pthread test headers */
13502 #include <pthread.h>
13503 #if HAVE_PTHREADS < 7
13507 #define NULL (void*)0
13510 static void *task(p)
13513 return (void *) (p == NULL);
13518 /* pthread test function */
13519 #ifndef PTHREAD_CREATE_DETACHED
13520 #define PTHREAD_CREATE_DETACHED 1
13524 int detach = PTHREAD_CREATE_DETACHED;
13526 #if HAVE_PTHREADS > 4
13527 /* Final pthreads */
13528 pthread_attr_t attr;
13530 status = pthread_attr_init(&attr);
13531 if( status ) return status;
13533 #if HAVE_PTHREADS < 7
13534 status = pthread_attr_setdetachstate(&attr, &detach);
13535 if( status < 0 ) status = errno;
13537 status = pthread_attr_setdetachstate(&attr, detach);
13539 if( status ) return status;
13540 status = pthread_create( &t, &attr, task, NULL );
13541 #if HAVE_PTHREADS < 7
13542 if( status < 0 ) status = errno;
13544 if( status ) return status;
13546 /* Draft 4 pthreads */
13547 status = pthread_create( &t, pthread_attr_default, task, NULL );
13548 if( status ) return errno;
13550 /* give thread a chance to complete */
13551 /* it should remain joinable and hence detachable */
13554 status = pthread_detach( &t );
13555 if( status ) return errno;
13558 #ifdef HAVE_LINUX_THREADS
13559 pthread_kill_other_threads_np();
13566 if { (eval echo configure:13567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13568 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13570 echo "configure: failed program was:" >&5
13571 cat conftest.$ac_ext >&5
13573 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13577 cat > conftest.$ac_ext <<EOF
13578 #line 13579 "configure"
13579 #include "confdefs.h"
13580 /* pthread test headers */
13581 #include <pthread.h>
13582 #if HAVE_PTHREADS < 7
13586 #define NULL (void*)0
13589 static void *task(p)
13592 return (void *) (p == NULL);
13596 int main(argc, argv)
13601 /* pthread test function */
13602 #ifndef PTHREAD_CREATE_DETACHED
13603 #define PTHREAD_CREATE_DETACHED 1
13607 int detach = PTHREAD_CREATE_DETACHED;
13609 #if HAVE_PTHREADS > 4
13610 /* Final pthreads */
13611 pthread_attr_t attr;
13613 status = pthread_attr_init(&attr);
13614 if( status ) return status;
13616 #if HAVE_PTHREADS < 7
13617 status = pthread_attr_setdetachstate(&attr, &detach);
13618 if( status < 0 ) status = errno;
13620 status = pthread_attr_setdetachstate(&attr, detach);
13622 if( status ) return status;
13623 status = pthread_create( &t, &attr, task, NULL );
13624 #if HAVE_PTHREADS < 7
13625 if( status < 0 ) status = errno;
13627 if( status ) return status;
13629 /* Draft 4 pthreads */
13630 status = pthread_create( &t, pthread_attr_default, task, NULL );
13631 if( status ) return errno;
13633 /* give thread a chance to complete */
13634 /* it should remain joinable and hence detachable */
13637 status = pthread_detach( &t );
13638 if( status ) return errno;
13641 #ifdef HAVE_LINUX_THREADS
13642 pthread_kill_other_threads_np();
13650 if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13652 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13657 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13668 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13670 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13671 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13672 ol_link_threads=posix
13676 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13677 if test "$ol_link_threads" = no ; then
13678 # try -lpthreads -lmach -lexc
13679 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13680 echo "configure:13681: checking for pthread link with -lpthreads -lmach -lexc" >&5
13681 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13687 LIBS="-lpthreads -lmach -lexc $LIBS"
13689 if test "$cross_compiling" = yes; then
13690 cat > conftest.$ac_ext <<EOF
13691 #line 13692 "configure"
13692 #include "confdefs.h"
13693 /* pthread test headers */
13694 #include <pthread.h>
13695 #if HAVE_PTHREADS < 7
13699 #define NULL (void*)0
13702 static void *task(p)
13705 return (void *) (p == NULL);
13710 /* pthread test function */
13711 #ifndef PTHREAD_CREATE_DETACHED
13712 #define PTHREAD_CREATE_DETACHED 1
13716 int detach = PTHREAD_CREATE_DETACHED;
13718 #if HAVE_PTHREADS > 4
13719 /* Final pthreads */
13720 pthread_attr_t attr;
13722 status = pthread_attr_init(&attr);
13723 if( status ) return status;
13725 #if HAVE_PTHREADS < 7
13726 status = pthread_attr_setdetachstate(&attr, &detach);
13727 if( status < 0 ) status = errno;
13729 status = pthread_attr_setdetachstate(&attr, detach);
13731 if( status ) return status;
13732 status = pthread_create( &t, &attr, task, NULL );
13733 #if HAVE_PTHREADS < 7
13734 if( status < 0 ) status = errno;
13736 if( status ) return status;
13738 /* Draft 4 pthreads */
13739 status = pthread_create( &t, pthread_attr_default, task, NULL );
13740 if( status ) return errno;
13742 /* give thread a chance to complete */
13743 /* it should remain joinable and hence detachable */
13746 status = pthread_detach( &t );
13747 if( status ) return errno;
13750 #ifdef HAVE_LINUX_THREADS
13751 pthread_kill_other_threads_np();
13758 if { (eval echo configure:13759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13760 ol_cv_pthread_lpthreads_lmach_lexc=yes
13762 echo "configure: failed program was:" >&5
13763 cat conftest.$ac_ext >&5
13765 ol_cv_pthread_lpthreads_lmach_lexc=no
13769 cat > conftest.$ac_ext <<EOF
13770 #line 13771 "configure"
13771 #include "confdefs.h"
13772 /* pthread test headers */
13773 #include <pthread.h>
13774 #if HAVE_PTHREADS < 7
13778 #define NULL (void*)0
13781 static void *task(p)
13784 return (void *) (p == NULL);
13788 int main(argc, argv)
13793 /* pthread test function */
13794 #ifndef PTHREAD_CREATE_DETACHED
13795 #define PTHREAD_CREATE_DETACHED 1
13799 int detach = PTHREAD_CREATE_DETACHED;
13801 #if HAVE_PTHREADS > 4
13802 /* Final pthreads */
13803 pthread_attr_t attr;
13805 status = pthread_attr_init(&attr);
13806 if( status ) return status;
13808 #if HAVE_PTHREADS < 7
13809 status = pthread_attr_setdetachstate(&attr, &detach);
13810 if( status < 0 ) status = errno;
13812 status = pthread_attr_setdetachstate(&attr, detach);
13814 if( status ) return status;
13815 status = pthread_create( &t, &attr, task, NULL );
13816 #if HAVE_PTHREADS < 7
13817 if( status < 0 ) status = errno;
13819 if( status ) return status;
13821 /* Draft 4 pthreads */
13822 status = pthread_create( &t, pthread_attr_default, task, NULL );
13823 if( status ) return errno;
13825 /* give thread a chance to complete */
13826 /* it should remain joinable and hence detachable */
13829 status = pthread_detach( &t );
13830 if( status ) return errno;
13833 #ifdef HAVE_LINUX_THREADS
13834 pthread_kill_other_threads_np();
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13844 ol_cv_pthread_lpthreads_lmach_lexc=yes
13846 echo "configure: failed program was:" >&5
13847 cat conftest.$ac_ext >&5
13849 ol_cv_pthread_lpthreads_lmach_lexc=no
13860 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
13862 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13863 ol_link_pthreads="-lpthreads -lmach -lexc"
13864 ol_link_threads=posix
13868 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13869 if test "$ol_link_threads" = no ; then
13870 # try -lpthreads -lexc
13871 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
13872 echo "configure:13873: checking for pthread link with -lpthreads -lexc" >&5
13873 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
13874 echo $ac_n "(cached) $ac_c" 1>&6
13879 LIBS="-lpthreads -lexc $LIBS"
13881 if test "$cross_compiling" = yes; then
13882 cat > conftest.$ac_ext <<EOF
13883 #line 13884 "configure"
13884 #include "confdefs.h"
13885 /* pthread test headers */
13886 #include <pthread.h>
13887 #if HAVE_PTHREADS < 7
13891 #define NULL (void*)0
13894 static void *task(p)
13897 return (void *) (p == NULL);
13902 /* pthread test function */
13903 #ifndef PTHREAD_CREATE_DETACHED
13904 #define PTHREAD_CREATE_DETACHED 1
13908 int detach = PTHREAD_CREATE_DETACHED;
13910 #if HAVE_PTHREADS > 4
13911 /* Final pthreads */
13912 pthread_attr_t attr;
13914 status = pthread_attr_init(&attr);
13915 if( status ) return status;
13917 #if HAVE_PTHREADS < 7
13918 status = pthread_attr_setdetachstate(&attr, &detach);
13919 if( status < 0 ) status = errno;
13921 status = pthread_attr_setdetachstate(&attr, detach);
13923 if( status ) return status;
13924 status = pthread_create( &t, &attr, task, NULL );
13925 #if HAVE_PTHREADS < 7
13926 if( status < 0 ) status = errno;
13928 if( status ) return status;
13930 /* Draft 4 pthreads */
13931 status = pthread_create( &t, pthread_attr_default, task, NULL );
13932 if( status ) return errno;
13934 /* give thread a chance to complete */
13935 /* it should remain joinable and hence detachable */
13938 status = pthread_detach( &t );
13939 if( status ) return errno;
13942 #ifdef HAVE_LINUX_THREADS
13943 pthread_kill_other_threads_np();
13950 if { (eval echo configure:13951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13952 ol_cv_pthread_lpthreads_lexc=yes
13954 echo "configure: failed program was:" >&5
13955 cat conftest.$ac_ext >&5
13957 ol_cv_pthread_lpthreads_lexc=no
13961 cat > conftest.$ac_ext <<EOF
13962 #line 13963 "configure"
13963 #include "confdefs.h"
13964 /* pthread test headers */
13965 #include <pthread.h>
13966 #if HAVE_PTHREADS < 7
13970 #define NULL (void*)0
13973 static void *task(p)
13976 return (void *) (p == NULL);
13980 int main(argc, argv)
13985 /* pthread test function */
13986 #ifndef PTHREAD_CREATE_DETACHED
13987 #define PTHREAD_CREATE_DETACHED 1
13991 int detach = PTHREAD_CREATE_DETACHED;
13993 #if HAVE_PTHREADS > 4
13994 /* Final pthreads */
13995 pthread_attr_t attr;
13997 status = pthread_attr_init(&attr);
13998 if( status ) return status;
14000 #if HAVE_PTHREADS < 7
14001 status = pthread_attr_setdetachstate(&attr, &detach);
14002 if( status < 0 ) status = errno;
14004 status = pthread_attr_setdetachstate(&attr, detach);
14006 if( status ) return status;
14007 status = pthread_create( &t, &attr, task, NULL );
14008 #if HAVE_PTHREADS < 7
14009 if( status < 0 ) status = errno;
14011 if( status ) return status;
14013 /* Draft 4 pthreads */
14014 status = pthread_create( &t, pthread_attr_default, task, NULL );
14015 if( status ) return errno;
14017 /* give thread a chance to complete */
14018 /* it should remain joinable and hence detachable */
14021 status = pthread_detach( &t );
14022 if( status ) return errno;
14025 #ifdef HAVE_LINUX_THREADS
14026 pthread_kill_other_threads_np();
14034 if { (eval echo configure:14035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14036 ol_cv_pthread_lpthreads_lexc=yes
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14041 ol_cv_pthread_lpthreads_lexc=no
14052 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14054 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14055 ol_link_pthreads="-lpthreads -lexc"
14056 ol_link_threads=posix
14061 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14062 if test "$ol_link_threads" = no ; then
14064 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14065 echo "configure:14066: checking for pthread link with -lpthreads" >&5
14066 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14067 echo $ac_n "(cached) $ac_c" 1>&6
14072 LIBS="-lpthreads $LIBS"
14074 if test "$cross_compiling" = yes; then
14075 cat > conftest.$ac_ext <<EOF
14076 #line 14077 "configure"
14077 #include "confdefs.h"
14078 /* pthread test headers */
14079 #include <pthread.h>
14080 #if HAVE_PTHREADS < 7
14084 #define NULL (void*)0
14087 static void *task(p)
14090 return (void *) (p == NULL);
14095 /* pthread test function */
14096 #ifndef PTHREAD_CREATE_DETACHED
14097 #define PTHREAD_CREATE_DETACHED 1
14101 int detach = PTHREAD_CREATE_DETACHED;
14103 #if HAVE_PTHREADS > 4
14104 /* Final pthreads */
14105 pthread_attr_t attr;
14107 status = pthread_attr_init(&attr);
14108 if( status ) return status;
14110 #if HAVE_PTHREADS < 7
14111 status = pthread_attr_setdetachstate(&attr, &detach);
14112 if( status < 0 ) status = errno;
14114 status = pthread_attr_setdetachstate(&attr, detach);
14116 if( status ) return status;
14117 status = pthread_create( &t, &attr, task, NULL );
14118 #if HAVE_PTHREADS < 7
14119 if( status < 0 ) status = errno;
14121 if( status ) return status;
14123 /* Draft 4 pthreads */
14124 status = pthread_create( &t, pthread_attr_default, task, NULL );
14125 if( status ) return errno;
14127 /* give thread a chance to complete */
14128 /* it should remain joinable and hence detachable */
14131 status = pthread_detach( &t );
14132 if( status ) return errno;
14135 #ifdef HAVE_LINUX_THREADS
14136 pthread_kill_other_threads_np();
14143 if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14145 ol_cv_pthread_lib_lpthreads=yes
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14150 ol_cv_pthread_lib_lpthreads=no
14154 cat > conftest.$ac_ext <<EOF
14155 #line 14156 "configure"
14156 #include "confdefs.h"
14157 /* pthread test headers */
14158 #include <pthread.h>
14159 #if HAVE_PTHREADS < 7
14163 #define NULL (void*)0
14166 static void *task(p)
14169 return (void *) (p == NULL);
14173 int main(argc, argv)
14178 /* pthread test function */
14179 #ifndef PTHREAD_CREATE_DETACHED
14180 #define PTHREAD_CREATE_DETACHED 1
14184 int detach = PTHREAD_CREATE_DETACHED;
14186 #if HAVE_PTHREADS > 4
14187 /* Final pthreads */
14188 pthread_attr_t attr;
14190 status = pthread_attr_init(&attr);
14191 if( status ) return status;
14193 #if HAVE_PTHREADS < 7
14194 status = pthread_attr_setdetachstate(&attr, &detach);
14195 if( status < 0 ) status = errno;
14197 status = pthread_attr_setdetachstate(&attr, detach);
14199 if( status ) return status;
14200 status = pthread_create( &t, &attr, task, NULL );
14201 #if HAVE_PTHREADS < 7
14202 if( status < 0 ) status = errno;
14204 if( status ) return status;
14206 /* Draft 4 pthreads */
14207 status = pthread_create( &t, pthread_attr_default, task, NULL );
14208 if( status ) return errno;
14210 /* give thread a chance to complete */
14211 /* it should remain joinable and hence detachable */
14214 status = pthread_detach( &t );
14215 if( status ) return errno;
14218 #ifdef HAVE_LINUX_THREADS
14219 pthread_kill_other_threads_np();
14227 if { (eval echo configure:14228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14229 ol_cv_pthread_lib_lpthreads=yes
14231 echo "configure: failed program was:" >&5
14232 cat conftest.$ac_ext >&5
14234 ol_cv_pthread_lib_lpthreads=no
14245 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14247 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14248 ol_link_pthreads="-lpthreads"
14249 ol_link_threads=posix
14254 if test $ol_link_threads != no ; then
14255 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14257 save_CPPFLAGS="$CPPFLAGS"
14259 LIBS="$LTHREAD_LIBS $LIBS"
14261 for ac_func in sched_yield pthread_yield thr_yield
14263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14264 echo "configure:14265: checking for $ac_func" >&5
14265 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14266 echo $ac_n "(cached) $ac_c" 1>&6
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271 /* System header to define __stub macros and hopefully few prototypes,
14272 which can conflict with char $ac_func(); below. */
14273 #include <assert.h>
14274 /* Override any gcc2 internal prototype to avoid an error. */
14275 /* We use char because int might match the return type of a gcc2
14276 builtin and then its argument prototype would still apply. */
14282 /* The GNU C library defines this for functions which it implements
14283 to always fail with ENOSYS. Some functions are actually named
14284 something starting with __ and the normal name is an alias. */
14285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14293 if { (eval echo configure:14294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14295 eval "ac_cv_func_$ac_func=yes"
14297 echo "configure: failed program was:" >&5
14298 cat conftest.$ac_ext >&5
14300 eval "ac_cv_func_$ac_func=no"
14305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14306 echo "$ac_t""yes" 1>&6
14307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14308 cat >> confdefs.h <<EOF
14309 #define $ac_tr_func 1
14313 echo "$ac_t""no" 1>&6
14318 if test $ac_cv_func_sched_yield = no -a \
14319 $ac_cv_func_pthread_yield = no -a \
14320 $ac_cv_func_thr_yield = no ; then
14321 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14322 echo "configure:14323: checking for sched_yield in -lrt" >&5
14323 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14325 echo $ac_n "(cached) $ac_c" 1>&6
14327 ac_save_LIBS="$LIBS"
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 /* Override any gcc2 internal prototype to avoid an error. */
14333 /* We use char because int might match the return type of a gcc2
14334 builtin and then its argument prototype would still apply. */
14335 char sched_yield();
14341 if { (eval echo configure:14342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14343 eval "ac_cv_lib_$ac_lib_var=yes"
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14348 eval "ac_cv_lib_$ac_lib_var=no"
14351 LIBS="$ac_save_LIBS"
14354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14355 echo "$ac_t""yes" 1>&6
14356 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14357 cat >> confdefs.h <<\EOF
14358 #define HAVE_SCHED_YIELD 1
14361 ac_cv_func_sched_yield=yes
14363 echo "$ac_t""no" 1>&6
14364 ac_cv_func_sched_yield=no
14368 if test $ac_cv_func_sched_yield = no -a \
14369 $ac_cv_func_pthread_yield = no -a \
14370 "$ac_cv_func_thr_yield" = no ; then
14371 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14374 for ac_func in pthread_kill pthread_rwlock_destroy
14376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14377 echo "configure:14378: checking for $ac_func" >&5
14378 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14379 echo $ac_n "(cached) $ac_c" 1>&6
14381 cat > conftest.$ac_ext <<EOF
14382 #line 14383 "configure"
14383 #include "confdefs.h"
14384 /* System header to define __stub macros and hopefully few prototypes,
14385 which can conflict with char $ac_func(); below. */
14386 #include <assert.h>
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 /* We use char because int might match the return type of a gcc2
14389 builtin and then its argument prototype would still apply. */
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14406 if { (eval echo configure:14407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14408 eval "ac_cv_func_$ac_func=yes"
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14413 eval "ac_cv_func_$ac_func=no"
14418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14419 echo "$ac_t""yes" 1>&6
14420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14421 cat >> confdefs.h <<EOF
14422 #define $ac_tr_func 1
14426 echo "$ac_t""no" 1>&6
14431 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14432 echo "configure:14433: checking for pthread_detach with <pthread.h>" >&5
14433 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14434 echo $ac_n "(cached) $ac_c" 1>&6
14437 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14441 #include <pthread.h>
14443 #define NULL (void*)0
14447 pthread_detach(NULL);
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452 ol_cv_func_pthread_detach=yes
14454 echo "configure: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14457 ol_cv_func_pthread_detach=no
14463 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14465 if test $ol_cv_func_pthread_detach = no ; then
14466 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14469 cat >> confdefs.h <<\EOF
14470 #define HAVE_PTHREAD_DETACH 1
14475 pthread_setconcurrency \
14476 pthread_getconcurrency \
14477 thr_setconcurrency \
14478 thr_getconcurrency \
14481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14482 echo "configure:14483: checking for $ac_func" >&5
14483 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14484 echo $ac_n "(cached) $ac_c" 1>&6
14486 cat > conftest.$ac_ext <<EOF
14487 #line 14488 "configure"
14488 #include "confdefs.h"
14489 /* System header to define __stub macros and hopefully few prototypes,
14490 which can conflict with char $ac_func(); below. */
14491 #include <assert.h>
14492 /* Override any gcc2 internal prototype to avoid an error. */
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14500 /* The GNU C library defines this for functions which it implements
14501 to always fail with ENOSYS. Some functions are actually named
14502 something starting with __ and the normal name is an alias. */
14503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14511 if { (eval echo configure:14512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14513 eval "ac_cv_func_$ac_func=yes"
14515 echo "configure: failed program was:" >&5
14516 cat conftest.$ac_ext >&5
14518 eval "ac_cv_func_$ac_func=no"
14523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14524 echo "$ac_t""yes" 1>&6
14525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14526 cat >> confdefs.h <<EOF
14527 #define $ac_tr_func 1
14531 echo "$ac_t""no" 1>&6
14537 for ac_func in pthread_kill_other_threads_np
14539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14540 echo "configure:14541: checking for $ac_func" >&5
14541 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
14544 cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 /* System header to define __stub macros and hopefully few prototypes,
14548 which can conflict with char $ac_func(); below. */
14549 #include <assert.h>
14550 /* Override any gcc2 internal prototype to avoid an error. */
14551 /* We use char because int might match the return type of a gcc2
14552 builtin and then its argument prototype would still apply. */
14558 /* The GNU C library defines this for functions which it implements
14559 to always fail with ENOSYS. Some functions are actually named
14560 something starting with __ and the normal name is an alias. */
14561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14569 if { (eval echo configure:14570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14571 eval "ac_cv_func_$ac_func=yes"
14573 echo "configure: failed program was:" >&5
14574 cat conftest.$ac_ext >&5
14576 eval "ac_cv_func_$ac_func=no"
14581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14582 echo "$ac_t""yes" 1>&6
14583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14584 cat >> confdefs.h <<EOF
14585 #define $ac_tr_func 1
14589 echo "$ac_t""no" 1>&6
14593 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14594 echo "configure:14595: checking for LinuxThreads implementation" >&5
14595 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14596 echo $ac_n "(cached) $ac_c" 1>&6
14598 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14601 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14606 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14607 echo "configure:14608: checking for LinuxThreads consistency" >&5
14608 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14612 if test $ol_cv_header_linux_threads = yes -a \
14613 $ol_cv_sys_linux_threads = yes; then
14614 ol_cv_linux_threads=yes
14615 elif test $ol_cv_header_linux_threads = no -a \
14616 $ol_cv_sys_linux_threads = no; then
14617 ol_cv_linux_threads=no
14619 ol_cv_linux_threads=error
14624 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14627 if test $ol_cv_linux_threads = error; then
14628 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14631 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14632 echo "configure:14633: checking if pthread_create() works" >&5
14633 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14634 echo $ac_n "(cached) $ac_c" 1>&6
14637 if test "$cross_compiling" = yes; then
14638 ol_cv_pthread_create_works=yes
14640 cat > conftest.$ac_ext <<EOF
14641 #line 14642 "configure"
14642 #include "confdefs.h"
14643 /* pthread test headers */
14644 #include <pthread.h>
14645 #if HAVE_PTHREADS < 7
14649 #define NULL (void*)0
14652 static void *task(p)
14655 return (void *) (p == NULL);
14659 int main(argc, argv)
14664 /* pthread test function */
14665 #ifndef PTHREAD_CREATE_DETACHED
14666 #define PTHREAD_CREATE_DETACHED 1
14670 int detach = PTHREAD_CREATE_DETACHED;
14672 #if HAVE_PTHREADS > 4
14673 /* Final pthreads */
14674 pthread_attr_t attr;
14676 status = pthread_attr_init(&attr);
14677 if( status ) return status;
14679 #if HAVE_PTHREADS < 7
14680 status = pthread_attr_setdetachstate(&attr, &detach);
14681 if( status < 0 ) status = errno;
14683 status = pthread_attr_setdetachstate(&attr, detach);
14685 if( status ) return status;
14686 status = pthread_create( &t, &attr, task, NULL );
14687 #if HAVE_PTHREADS < 7
14688 if( status < 0 ) status = errno;
14690 if( status ) return status;
14692 /* Draft 4 pthreads */
14693 status = pthread_create( &t, pthread_attr_default, task, NULL );
14694 if( status ) return errno;
14696 /* give thread a chance to complete */
14697 /* it should remain joinable and hence detachable */
14700 status = pthread_detach( &t );
14701 if( status ) return errno;
14704 #ifdef HAVE_LINUX_THREADS
14705 pthread_kill_other_threads_np();
14713 if { (eval echo configure:14714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14715 ol_cv_pthread_create_works=yes
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14720 ol_cv_pthread_create_works=no
14727 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14729 if test $ol_cv_pthread_create_works = no ; then
14730 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14733 if test $ol_with_yielding_select = auto ; then
14734 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14735 echo "configure:14736: checking if select yields when using pthreads" >&5
14736 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
14740 if test "$cross_compiling" = yes; then
14741 ol_cv_pthread_select_yields=cross
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14747 #include <sys/types.h>
14748 #include <sys/time.h>
14749 #include <unistd.h>
14750 #include <pthread.h>
14752 #define NULL (void*) 0
14755 static int fildes[2];
14757 static void *task(p)
14769 FD_SET(fildes[0], &rfds);
14771 /* we're not interested in any fds */
14772 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14779 exit(0); /* if we exit here, the select blocked the whole process */
14782 int main(argc, argv)
14788 /* create a pipe to select */
14789 if(pipe(&fildes[0])) {
14794 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14795 (void) pthread_setconcurrency(2);
14797 #ifdef HAVE_THR_SETCONCURRENCY
14798 /* Set Solaris LWP concurrency to 2 */
14799 thr_setconcurrency(2);
14803 #if HAVE_PTHREADS < 6
14804 pthread_create(&t, pthread_attr_default, task, NULL);
14806 pthread_create(&t, NULL, task, NULL);
14809 /* make sure task runs first */
14812 #elif defined( HAVE_SCHED_YIELD )
14814 #elif defined( HAVE_PTHREAD_YIELD )
14821 if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14823 ol_cv_pthread_select_yields=no
14825 echo "configure: failed program was:" >&5
14826 cat conftest.$ac_ext >&5
14828 ol_cv_pthread_select_yields=yes
14835 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14837 if test $ol_cv_pthread_select_yields = cross ; then
14838 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14841 if test $ol_cv_pthread_select_yields = yes ; then
14842 ol_with_yielding_select=yes
14846 CPPFLAGS="$save_CPPFLAGS"
14849 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
14853 if test $ol_with_threads = posix ; then
14854 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
14858 if test $ol_with_threads = auto -o $ol_with_threads = yes \
14859 -o $ol_with_threads = mach ; then
14861 for ac_hdr in mach/cthreads.h cthreads.h
14863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14865 echo "configure:14866: checking for $ac_hdr" >&5
14866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14867 echo $ac_n "(cached) $ac_c" 1>&6
14869 cat > conftest.$ac_ext <<EOF
14870 #line 14871 "configure"
14871 #include "confdefs.h"
14874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14875 { (eval echo configure:14876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14877 if test -z "$ac_err"; then
14879 eval "ac_cv_header_$ac_safe=yes"
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14885 eval "ac_cv_header_$ac_safe=no"
14889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14890 echo "$ac_t""yes" 1>&6
14891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14892 cat >> confdefs.h <<EOF
14893 #define $ac_tr_hdr 1
14897 echo "$ac_t""no" 1>&6
14901 if test $ac_cv_header_mach_cthreads_h = yes ; then
14902 ol_with_threads=found
14904 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
14905 echo "configure:14906: checking for cthread_fork" >&5
14906 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
14907 echo $ac_n "(cached) $ac_c" 1>&6
14909 cat > conftest.$ac_ext <<EOF
14910 #line 14911 "configure"
14911 #include "confdefs.h"
14912 /* System header to define __stub macros and hopefully few prototypes,
14913 which can conflict with char cthread_fork(); below. */
14914 #include <assert.h>
14915 /* Override any gcc2 internal prototype to avoid an error. */
14916 /* We use char because int might match the return type of a gcc2
14917 builtin and then its argument prototype would still apply. */
14918 char cthread_fork();
14923 /* The GNU C library defines this for functions which it implements
14924 to always fail with ENOSYS. Some functions are actually named
14925 something starting with __ and the normal name is an alias. */
14926 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
14934 if { (eval echo configure:14935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14936 eval "ac_cv_func_cthread_fork=yes"
14938 echo "configure: failed program was:" >&5
14939 cat conftest.$ac_ext >&5
14941 eval "ac_cv_func_cthread_fork=no"
14946 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
14947 echo "$ac_t""yes" 1>&6
14948 ol_link_threads=yes
14950 echo "$ac_t""no" 1>&6
14954 if test $ol_link_threads = no ; then
14955 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
14956 echo "configure:14957: checking for cthread_fork with -all_load" >&5
14957 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
14958 echo $ac_n "(cached) $ac_c" 1>&6
14962 LIBS="-all_load $LIBS"
14963 cat > conftest.$ac_ext <<EOF
14964 #line 14965 "configure"
14965 #include "confdefs.h"
14966 #include <mach/cthreads.h>
14969 cthread_fork((void *)0, (void *)0);
14973 if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14975 ol_cv_cthread_all_load=yes
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14980 ol_cv_cthread_all_load=no
14987 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
14989 if test $ol_cv_cthread_all_load = yes ; then
14990 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14991 ol_link_threads=mach
14992 ol_with_threads=found
14996 elif test $ac_cv_header_cthreads_h = yes ; then
14998 ol_with_threads=found
15001 LIBS="$LIBS -lthreads"
15002 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15003 echo "configure:15004: checking for cthread_fork" >&5
15004 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15005 echo $ac_n "(cached) $ac_c" 1>&6
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 /* System header to define __stub macros and hopefully few prototypes,
15011 which can conflict with char cthread_fork(); below. */
15012 #include <assert.h>
15013 /* Override any gcc2 internal prototype to avoid an error. */
15014 /* We use char because int might match the return type of a gcc2
15015 builtin and then its argument prototype would still apply. */
15016 char cthread_fork();
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15034 eval "ac_cv_func_cthread_fork=yes"
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15039 eval "ac_cv_func_cthread_fork=no"
15044 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15045 echo "$ac_t""yes" 1>&6
15046 ol_link_threads=yes
15048 echo "$ac_t""no" 1>&6
15053 if test $ol_link_threads = yes ; then
15054 LTHREAD_LIBS="-lthreads"
15055 ol_link_threads=mach
15056 ol_with_threads=found
15058 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15061 elif test $ol_with_threads = mach ; then
15062 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15065 if test $ol_link_threads = mach ; then
15066 cat >> confdefs.h <<\EOF
15067 #define HAVE_MACH_CTHREADS 1
15070 elif test $ol_with_threads = found ; then
15071 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15075 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15076 -o $ol_with_threads = pth ; then
15078 for ac_hdr in pth.h
15080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15082 echo "configure:15083: checking for $ac_hdr" >&5
15083 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15084 echo $ac_n "(cached) $ac_c" 1>&6
15086 cat > conftest.$ac_ext <<EOF
15087 #line 15088 "configure"
15088 #include "confdefs.h"
15091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15092 { (eval echo configure:15093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15094 if test -z "$ac_err"; then
15096 eval "ac_cv_header_$ac_safe=yes"
15099 echo "configure: failed program was:" >&5
15100 cat conftest.$ac_ext >&5
15102 eval "ac_cv_header_$ac_safe=no"
15106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15107 echo "$ac_t""yes" 1>&6
15108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15109 cat >> confdefs.h <<EOF
15110 #define $ac_tr_hdr 1
15114 echo "$ac_t""no" 1>&6
15119 if test $ac_cv_header_pth_h = yes ; then
15120 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15121 echo "configure:15122: checking for pth_version in -lpth" >&5
15122 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15123 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15124 echo $ac_n "(cached) $ac_c" 1>&6
15126 ac_save_LIBS="$LIBS"
15128 cat > conftest.$ac_ext <<EOF
15129 #line 15130 "configure"
15130 #include "confdefs.h"
15131 /* Override any gcc2 internal prototype to avoid an error. */
15132 /* We use char because int might match the return type of a gcc2
15133 builtin and then its argument prototype would still apply. */
15134 char pth_version();
15140 if { (eval echo configure:15141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15142 eval "ac_cv_lib_$ac_lib_var=yes"
15144 echo "configure: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15147 eval "ac_cv_lib_$ac_lib_var=no"
15150 LIBS="$ac_save_LIBS"
15153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15154 echo "$ac_t""yes" 1>&6
15157 echo "$ac_t""no" 1>&6
15162 if test $have_pth = yes ; then
15163 cat >> confdefs.h <<\EOF
15164 #define HAVE_GNU_PTH 1
15167 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15168 ol_link_threads=pth
15169 ol_with_threads=found
15171 if test $ol_with_yielding_select = auto ; then
15172 ol_with_yielding_select=yes
15178 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15179 -o $ol_with_threads = lwp ; then
15181 for ac_hdr in thread.h synch.h
15183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15185 echo "configure:15186: checking for $ac_hdr" >&5
15186 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15187 echo $ac_n "(cached) $ac_c" 1>&6
15189 cat > conftest.$ac_ext <<EOF
15190 #line 15191 "configure"
15191 #include "confdefs.h"
15194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15195 { (eval echo configure:15196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15197 if test -z "$ac_err"; then
15199 eval "ac_cv_header_$ac_safe=yes"
15202 echo "configure: failed program was:" >&5
15203 cat conftest.$ac_ext >&5
15205 eval "ac_cv_header_$ac_safe=no"
15209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15212 cat >> confdefs.h <<EOF
15213 #define $ac_tr_hdr 1
15217 echo "$ac_t""no" 1>&6
15221 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15222 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15223 echo "configure:15224: checking for thr_create in -lthread" >&5
15224 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15225 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15226 echo $ac_n "(cached) $ac_c" 1>&6
15228 ac_save_LIBS="$LIBS"
15229 LIBS="-lthread $LIBS"
15230 cat > conftest.$ac_ext <<EOF
15231 #line 15232 "configure"
15232 #include "confdefs.h"
15233 /* Override any gcc2 internal prototype to avoid an error. */
15234 /* We use char because int might match the return type of a gcc2
15235 builtin and then its argument prototype would still apply. */
15242 if { (eval echo configure:15243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15244 eval "ac_cv_lib_$ac_lib_var=yes"
15246 echo "configure: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15249 eval "ac_cv_lib_$ac_lib_var=no"
15252 LIBS="$ac_save_LIBS"
15255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15256 echo "$ac_t""yes" 1>&6
15259 echo "$ac_t""no" 1>&6
15264 if test $have_thr = yes ; then
15265 cat >> confdefs.h <<\EOF
15269 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15270 ol_link_threads=thr
15272 if test $ol_with_yielding_select = auto ; then
15273 ol_with_yielding_select=yes
15277 thr_setconcurrency \
15278 thr_getconcurrency \
15281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15282 echo "configure:15283: checking for $ac_func" >&5
15283 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15284 echo $ac_n "(cached) $ac_c" 1>&6
15286 cat > conftest.$ac_ext <<EOF
15287 #line 15288 "configure"
15288 #include "confdefs.h"
15289 /* System header to define __stub macros and hopefully few prototypes,
15290 which can conflict with char $ac_func(); below. */
15291 #include <assert.h>
15292 /* Override any gcc2 internal prototype to avoid an error. */
15293 /* We use char because int might match the return type of a gcc2
15294 builtin and then its argument prototype would still apply. */
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15311 if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15313 eval "ac_cv_func_$ac_func=yes"
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15318 eval "ac_cv_func_$ac_func=no"
15323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15324 echo "$ac_t""yes" 1>&6
15325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15326 cat >> confdefs.h <<EOF
15327 #define $ac_tr_func 1
15331 echo "$ac_t""no" 1>&6
15338 for ac_hdr in lwp/lwp.h
15340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15342 echo "configure:15343: checking for $ac_hdr" >&5
15343 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15344 echo $ac_n "(cached) $ac_c" 1>&6
15346 cat > conftest.$ac_ext <<EOF
15347 #line 15348 "configure"
15348 #include "confdefs.h"
15351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15352 { (eval echo configure:15353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15354 if test -z "$ac_err"; then
15356 eval "ac_cv_header_$ac_safe=yes"
15359 echo "configure: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15362 eval "ac_cv_header_$ac_safe=no"
15366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15367 echo "$ac_t""yes" 1>&6
15368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15369 cat >> confdefs.h <<EOF
15370 #define $ac_tr_hdr 1
15374 echo "$ac_t""no" 1>&6
15378 if test $ac_cv_header_lwp_lwp_h = yes ; then
15379 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15380 echo "configure:15381: checking for lwp_create in -llwp" >&5
15381 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15382 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15383 echo $ac_n "(cached) $ac_c" 1>&6
15385 ac_save_LIBS="$LIBS"
15387 cat > conftest.$ac_ext <<EOF
15388 #line 15389 "configure"
15389 #include "confdefs.h"
15390 /* Override any gcc2 internal prototype to avoid an error. */
15391 /* We use char because int might match the return type of a gcc2
15392 builtin and then its argument prototype would still apply. */
15399 if { (eval echo configure:15400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15401 eval "ac_cv_lib_$ac_lib_var=yes"
15403 echo "configure: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15406 eval "ac_cv_lib_$ac_lib_var=no"
15409 LIBS="$ac_save_LIBS"
15412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15413 echo "$ac_t""yes" 1>&6
15416 echo "$ac_t""no" 1>&6
15421 if test $have_lwp = yes ; then
15422 cat >> confdefs.h <<\EOF
15426 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15427 ol_link_threads=lwp
15429 if test $ol_with_yielding_select = auto ; then
15430 ol_with_yielding_select=no
15436 if test $ol_with_yielding_select = yes ; then
15437 cat >> confdefs.h <<\EOF
15438 #define HAVE_YIELDING_SELECT 1
15443 if test $ol_with_threads = manual ; then
15444 ol_link_threads=yes
15446 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15448 for ac_hdr in pthread.h sched.h
15450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15452 echo "configure:15453: checking for $ac_hdr" >&5
15453 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15456 cat > conftest.$ac_ext <<EOF
15457 #line 15458 "configure"
15458 #include "confdefs.h"
15461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15462 { (eval echo configure:15463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15464 if test -z "$ac_err"; then
15466 eval "ac_cv_header_$ac_safe=yes"
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15472 eval "ac_cv_header_$ac_safe=no"
15476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15477 echo "$ac_t""yes" 1>&6
15478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15479 cat >> confdefs.h <<EOF
15480 #define $ac_tr_hdr 1
15484 echo "$ac_t""no" 1>&6
15488 for ac_func in sched_yield pthread_yield
15490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15491 echo "configure:15492: checking for $ac_func" >&5
15492 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15495 cat > conftest.$ac_ext <<EOF
15496 #line 15497 "configure"
15497 #include "confdefs.h"
15498 /* System header to define __stub macros and hopefully few prototypes,
15499 which can conflict with char $ac_func(); below. */
15500 #include <assert.h>
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 /* We use char because int might match the return type of a gcc2
15503 builtin and then its argument prototype would still apply. */
15509 /* The GNU C library defines this for functions which it implements
15510 to always fail with ENOSYS. Some functions are actually named
15511 something starting with __ and the normal name is an alias. */
15512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15520 if { (eval echo configure:15521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15522 eval "ac_cv_func_$ac_func=yes"
15524 echo "configure: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15527 eval "ac_cv_func_$ac_func=no"
15532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15533 echo "$ac_t""yes" 1>&6
15534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15535 cat >> confdefs.h <<EOF
15536 #define $ac_tr_func 1
15540 echo "$ac_t""no" 1>&6
15545 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15546 echo "configure:15547: checking for LinuxThreads pthread.h" >&5
15547 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
15550 cat > conftest.$ac_ext <<EOF
15551 #line 15552 "configure"
15552 #include "confdefs.h"
15553 #include <pthread.h>
15555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15556 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15558 ol_cv_header_linux_threads=yes
15561 ol_cv_header_linux_threads=no
15568 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15569 if test $ol_cv_header_linux_threads = yes; then
15570 cat >> confdefs.h <<\EOF
15571 #define HAVE_LINUX_THREADS 1
15577 for ac_hdr in mach/cthreads.h
15579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15581 echo "configure:15582: checking for $ac_hdr" >&5
15582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15583 echo $ac_n "(cached) $ac_c" 1>&6
15585 cat > conftest.$ac_ext <<EOF
15586 #line 15587 "configure"
15587 #include "confdefs.h"
15590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15591 { (eval echo configure:15592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15593 if test -z "$ac_err"; then
15595 eval "ac_cv_header_$ac_safe=yes"
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15601 eval "ac_cv_header_$ac_safe=no"
15605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15606 echo "$ac_t""yes" 1>&6
15607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15608 cat >> confdefs.h <<EOF
15609 #define $ac_tr_hdr 1
15613 echo "$ac_t""no" 1>&6
15617 for ac_hdr in lwp/lwp.h
15619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15621 echo "configure:15622: checking for $ac_hdr" >&5
15622 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15623 echo $ac_n "(cached) $ac_c" 1>&6
15625 cat > conftest.$ac_ext <<EOF
15626 #line 15627 "configure"
15627 #include "confdefs.h"
15630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15631 { (eval echo configure:15632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15633 if test -z "$ac_err"; then
15635 eval "ac_cv_header_$ac_safe=yes"
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15641 eval "ac_cv_header_$ac_safe=no"
15645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15646 echo "$ac_t""yes" 1>&6
15647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15648 cat >> confdefs.h <<EOF
15649 #define $ac_tr_hdr 1
15653 echo "$ac_t""no" 1>&6
15657 for ac_hdr in thread.h synch.h
15659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15661 echo "configure:15662: checking for $ac_hdr" >&5
15662 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15663 echo $ac_n "(cached) $ac_c" 1>&6
15665 cat > conftest.$ac_ext <<EOF
15666 #line 15667 "configure"
15667 #include "confdefs.h"
15670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15671 { (eval echo configure:15672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15673 if test -z "$ac_err"; then
15675 eval "ac_cv_header_$ac_safe=yes"
15678 echo "configure: failed program was:" >&5
15679 cat conftest.$ac_ext >&5
15681 eval "ac_cv_header_$ac_safe=no"
15685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15686 echo "$ac_t""yes" 1>&6
15687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15688 cat >> confdefs.h <<EOF
15689 #define $ac_tr_hdr 1
15693 echo "$ac_t""no" 1>&6
15699 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15700 cat >> confdefs.h <<\EOF
15701 #define REENTRANT 1
15704 cat >> confdefs.h <<\EOF
15705 #define _REENTRANT 1
15708 cat >> confdefs.h <<\EOF
15709 #define THREAD_SAFE 1
15712 cat >> confdefs.h <<\EOF
15713 #define _THREAD_SAFE 1
15716 cat >> confdefs.h <<\EOF
15717 #define THREADSAFE 1
15720 cat >> confdefs.h <<\EOF
15721 #define _THREADSAFE 1
15724 cat >> confdefs.h <<\EOF
15725 #define _SGI_MP_SOURCE 1
15729 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15730 echo "configure:15731: checking for thread specific errno" >&5
15731 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15732 echo $ac_n "(cached) $ac_c" 1>&6
15735 cat > conftest.$ac_ext <<EOF
15736 #line 15737 "configure"
15737 #include "confdefs.h"
15743 if { (eval echo configure:15744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15745 ol_cv_errno_thread_specific=yes
15747 echo "configure: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15750 ol_cv_errno_thread_specific=no
15756 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15758 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15759 echo "configure:15760: checking for thread specific h_errno" >&5
15760 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15761 echo $ac_n "(cached) $ac_c" 1>&6
15764 cat > conftest.$ac_ext <<EOF
15765 #line 15766 "configure"
15766 #include "confdefs.h"
15772 if { (eval echo configure:15773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15774 ol_cv_h_errno_thread_specific=yes
15776 echo "configure: failed program was:" >&5
15777 cat conftest.$ac_ext >&5
15779 ol_cv_h_errno_thread_specific=no
15785 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15787 if test $ol_cv_errno_thread_specific != yes \
15788 -o $ol_cv_h_errno_thread_specific != yes ; then
15789 LIBS="$LTHREAD_LIBS $LIBS"
15795 if test $ol_link_threads = no ; then
15796 if test $ol_with_threads = yes ; then
15797 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15800 if test $ol_with_threads = auto ; then
15801 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15805 cat >> confdefs.h <<\EOF
15806 #define NO_THREADS 1
15812 if test $ol_link_threads != no ; then
15813 cat >> confdefs.h <<\EOF
15814 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15821 gethostbyname_r gethostbyaddr_r \
15824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15825 echo "configure:15826: checking for $ac_func" >&5
15826 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15827 echo $ac_n "(cached) $ac_c" 1>&6
15829 cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832 /* System header to define __stub macros and hopefully few prototypes,
15833 which can conflict with char $ac_func(); below. */
15834 #include <assert.h>
15835 /* Override any gcc2 internal prototype to avoid an error. */
15836 /* We use char because int might match the return type of a gcc2
15837 builtin and then its argument prototype would still apply. */
15843 /* The GNU C library defines this for functions which it implements
15844 to always fail with ENOSYS. Some functions are actually named
15845 something starting with __ and the normal name is an alias. */
15846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15854 if { (eval echo configure:15855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856 eval "ac_cv_func_$ac_func=yes"
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15861 eval "ac_cv_func_$ac_func=no"
15866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15869 cat >> confdefs.h <<EOF
15870 #define $ac_tr_func 1
15874 echo "$ac_t""no" 1>&6
15879 if test "$ac_cv_func_ctime_r" = no ; then
15880 ol_cv_func_ctime_r_nargs=0
15882 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
15883 echo "configure:15884: checking number of arguments of ctime_r" >&5
15884 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
15885 echo $ac_n "(cached) $ac_c" 1>&6
15887 cat > conftest.$ac_ext <<EOF
15888 #line 15889 "configure"
15889 #include "confdefs.h"
15892 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
15895 if { (eval echo configure:15896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15897 ol_cv_func_ctime_r_nargs3=yes
15899 echo "configure: failed program was:" >&5
15900 cat conftest.$ac_ext >&5
15902 ol_cv_func_ctime_r_nargs3=no
15906 cat > conftest.$ac_ext <<EOF
15907 #line 15908 "configure"
15908 #include "confdefs.h"
15911 time_t ti; char *buffer; ctime_r(&ti,buffer);
15914 if { (eval echo configure:15915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15916 ol_cv_func_ctime_r_nargs2=yes
15918 echo "configure: failed program was:" >&5
15919 cat conftest.$ac_ext >&5
15921 ol_cv_func_ctime_r_nargs2=no
15925 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
15926 $ol_cv_func_ctime_r_nargs2 = no ; then
15928 ol_cv_func_ctime_r_nargs=3
15930 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
15931 $ol_cv_func_ctime_r_nargs2 = yes ; then
15933 ol_cv_func_ctime_r_nargs=2
15936 ol_cv_func_ctime_r_nargs=0
15941 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
15943 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
15944 cat >> confdefs.h <<EOF
15945 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
15952 if test "$ac_cv_func_gethostbyname_r" = yes ; then
15953 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
15954 echo "configure:15955: checking number of arguments of gethostbyname_r" >&5
15955 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
15956 echo $ac_n "(cached) $ac_c" 1>&6
15958 cat > conftest.$ac_ext <<EOF
15959 #line 15960 "configure"
15960 #include "confdefs.h"
15961 #include <sys/types.h>
15962 #include <sys/socket.h>
15963 #include <netinet/in.h>
15965 #define BUFSIZE (sizeof(struct hostent)+10)
15967 struct hostent hent; char buffer[BUFSIZE];
15968 int bufsize=BUFSIZE;int h_errno;
15969 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
15970 buffer, bufsize, &h_errno);
15973 if { (eval echo configure:15974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15975 ol_cv_func_gethostbyname_r_nargs5=yes
15977 echo "configure: failed program was:" >&5
15978 cat conftest.$ac_ext >&5
15980 ol_cv_func_gethostbyname_r_nargs5=no
15984 cat > conftest.$ac_ext <<EOF
15985 #line 15986 "configure"
15986 #include "confdefs.h"
15987 #include <sys/types.h>
15988 #include <sys/socket.h>
15989 #include <netinet/in.h>
15991 #define BUFSIZE (sizeof(struct hostent)+10)
15993 struct hostent hent;struct hostent *rhent;
15994 char buffer[BUFSIZE];
15995 int bufsize=BUFSIZE;int h_errno;
15996 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16000 if { (eval echo configure:16001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16002 ol_cv_func_gethostbyname_r_nargs6=yes
16004 echo "configure: failed program was:" >&5
16005 cat conftest.$ac_ext >&5
16007 ol_cv_func_gethostbyname_r_nargs6=no
16011 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16012 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16014 ol_cv_func_gethostbyname_r_nargs=5
16016 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16017 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16019 ol_cv_func_gethostbyname_r_nargs=6
16022 ol_cv_func_gethostbyname_r_nargs=0
16027 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16028 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16029 cat >> confdefs.h <<EOF
16030 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16036 ol_cv_func_gethostbyname_r_nargs=0
16039 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16040 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16041 echo "configure:16042: checking number of arguments of gethostbyaddr_r" >&5
16042 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16043 echo $ac_n "(cached) $ac_c" 1>&6
16045 cat > conftest.$ac_ext <<EOF
16046 #line 16047 "configure"
16047 #include "confdefs.h"
16048 #include <sys/types.h>
16049 #include <sys/socket.h>
16050 #include <netinet/in.h>
16052 #define BUFSIZE (sizeof(struct hostent)+10)
16054 struct hostent hent; char buffer[BUFSIZE];
16055 struct in_addr add;
16056 size_t alen=sizeof(struct in_addr);
16057 int bufsize=BUFSIZE;int h_errno;
16058 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16059 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16062 if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16064 ol_cv_func_gethostbyaddr_r_nargs7=yes
16066 echo "configure: failed program was:" >&5
16067 cat conftest.$ac_ext >&5
16069 ol_cv_func_gethostbyaddr_r_nargs7=no
16073 cat > conftest.$ac_ext <<EOF
16074 #line 16075 "configure"
16075 #include "confdefs.h"
16076 #include <sys/types.h>
16077 #include <sys/socket.h>
16078 #include <netinet/in.h>
16080 #define BUFSIZE (sizeof(struct hostent)+10)
16082 struct hostent hent;
16083 struct hostent *rhent; char buffer[BUFSIZE];
16084 struct in_addr add;
16085 size_t alen=sizeof(struct in_addr);
16086 int bufsize=BUFSIZE;int h_errno;
16087 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16088 alen, AF_INET, &hent, buffer, bufsize,
16092 if { (eval echo configure:16093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16094 ol_cv_func_gethostbyaddr_r_nargs8=yes
16096 echo "configure: failed program was:" >&5
16097 cat conftest.$ac_ext >&5
16099 ol_cv_func_gethostbyaddr_r_nargs8=no
16103 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16104 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16106 ol_cv_func_gethostbyaddr_r_nargs=7
16108 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16109 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16111 ol_cv_func_gethostbyaddr_r_nargs=8
16114 ol_cv_func_gethostbyaddr_r_nargs=0
16119 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16120 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16121 cat >> confdefs.h <<EOF
16122 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16128 ol_cv_func_gethostbyaddr_r_nargs=0
16133 if test $ol_with_ldbm_api = auto \
16134 -o $ol_with_ldbm_api = berkeley \
16135 -o $ol_with_ldbm_api = bcompat ; then
16137 if test $ol_with_ldbm_api = bcompat; then \
16138 for ac_hdr in db_185.h db.h
16140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16142 echo "configure:16143: checking for $ac_hdr" >&5
16143 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16144 echo $ac_n "(cached) $ac_c" 1>&6
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16152 { (eval echo configure:16153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16154 if test -z "$ac_err"; then
16156 eval "ac_cv_header_$ac_safe=yes"
16159 echo "configure: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16162 eval "ac_cv_header_$ac_safe=no"
16166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16167 echo "$ac_t""yes" 1>&6
16168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16169 cat >> confdefs.h <<EOF
16170 #define $ac_tr_hdr 1
16174 echo "$ac_t""no" 1>&6
16178 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16179 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16180 echo "configure:16181: checking if Berkeley DB header compatibility" >&5
16181 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16182 echo $ac_n "(cached) $ac_c" 1>&6
16185 cat > conftest.$ac_ext <<EOF
16186 #line 16187 "configure"
16187 #include "confdefs.h"
16190 # include <db_185.h>
16195 /* this check could be improved */
16196 #ifndef DB_VERSION_MAJOR
16197 # define DB_VERSION_MAJOR 1
16200 #if DB_VERSION_MAJOR == 1
16205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16206 egrep "__db_version_1" >/dev/null 2>&1; then
16208 ol_cv_header_db1=yes
16211 ol_cv_header_db1=no
16217 echo "$ac_t""$ol_cv_header_db1" 1>&6
16219 if test $ol_cv_header_db1 = yes ; then
16221 if test $ol_cv_lib_db = no ; then
16222 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16223 echo "configure:16224: checking for Berkeley DB link (default)" >&5
16224 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16225 echo $ac_n "(cached) $ac_c" 1>&6
16230 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16232 cat > conftest.$ac_ext <<EOF
16233 #line 16234 "configure"
16234 #include "confdefs.h"
16236 #ifdef HAVE_DB_185_H
16237 # include <db_185.h>
16242 #ifndef DB_VERSION_MAJOR
16243 # define DB_VERSION_MAJOR 1
16247 #define NULL ((void*)0)
16252 #if DB_VERSION_MAJOR > 1
16255 int major, minor, patch;
16257 version = db_version( &major, &minor, &patch );
16259 if( major != DB_VERSION_MAJOR ||
16260 minor < DB_VERSION_MINOR )
16262 printf("Berkeley DB version mismatch\n"
16263 "\texpected: %s\n\tgot: %s\n",
16264 DB_VERSION_STRING, version);
16270 #if DB_VERSION_MAJOR > 2
16271 db_env_create( NULL, 0 );
16272 #elif DB_VERSION_MAJOR > 1
16273 db_appexit( NULL );
16275 (void) dbopen( NULL, 0, 0, 0, NULL);
16280 if { (eval echo configure:16281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16284 echo "configure: failed program was:" >&5
16285 cat conftest.$ac_ext >&5
16295 echo "$ac_t""$ol_cv_db_none" 1>&6
16297 if test $ol_cv_db_none = yes ; then
16302 if test $ol_cv_lib_db = no ; then
16303 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16304 echo "configure:16305: checking for Berkeley DB link (-ldb42)" >&5
16305 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16311 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16313 cat > conftest.$ac_ext <<EOF
16314 #line 16315 "configure"
16315 #include "confdefs.h"
16317 #ifdef HAVE_DB_185_H
16318 # include <db_185.h>
16323 #ifndef DB_VERSION_MAJOR
16324 # define DB_VERSION_MAJOR 1
16328 #define NULL ((void*)0)
16333 #if DB_VERSION_MAJOR > 1
16336 int major, minor, patch;
16338 version = db_version( &major, &minor, &patch );
16340 if( major != DB_VERSION_MAJOR ||
16341 minor < DB_VERSION_MINOR )
16343 printf("Berkeley DB version mismatch\n"
16344 "\texpected: %s\n\tgot: %s\n",
16345 DB_VERSION_STRING, version);
16351 #if DB_VERSION_MAJOR > 2
16352 db_env_create( NULL, 0 );
16353 #elif DB_VERSION_MAJOR > 1
16354 db_appexit( NULL );
16356 (void) dbopen( NULL, 0, 0, 0, NULL);
16361 if { (eval echo configure:16362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16365 echo "configure: failed program was:" >&5
16366 cat conftest.$ac_ext >&5
16376 echo "$ac_t""$ol_cv_db_db42" 1>&6
16378 if test $ol_cv_db_db42 = yes ; then
16379 ol_cv_lib_db=-ldb42
16383 if test $ol_cv_lib_db = no ; then
16384 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16385 echo "configure:16386: checking for Berkeley DB link (-ldb-42)" >&5
16386 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16387 echo $ac_n "(cached) $ac_c" 1>&6
16392 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16394 cat > conftest.$ac_ext <<EOF
16395 #line 16396 "configure"
16396 #include "confdefs.h"
16398 #ifdef HAVE_DB_185_H
16399 # include <db_185.h>
16404 #ifndef DB_VERSION_MAJOR
16405 # define DB_VERSION_MAJOR 1
16409 #define NULL ((void*)0)
16414 #if DB_VERSION_MAJOR > 1
16417 int major, minor, patch;
16419 version = db_version( &major, &minor, &patch );
16421 if( major != DB_VERSION_MAJOR ||
16422 minor < DB_VERSION_MINOR )
16424 printf("Berkeley DB version mismatch\n"
16425 "\texpected: %s\n\tgot: %s\n",
16426 DB_VERSION_STRING, version);
16432 #if DB_VERSION_MAJOR > 2
16433 db_env_create( NULL, 0 );
16434 #elif DB_VERSION_MAJOR > 1
16435 db_appexit( NULL );
16437 (void) dbopen( NULL, 0, 0, 0, NULL);
16442 if { (eval echo configure:16443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16446 echo "configure: failed program was:" >&5
16447 cat conftest.$ac_ext >&5
16457 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16459 if test $ol_cv_db_db_42 = yes ; then
16460 ol_cv_lib_db=-ldb-42
16464 if test $ol_cv_lib_db = no ; then
16465 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16466 echo "configure:16467: checking for Berkeley DB link (-ldb-4.2)" >&5
16467 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16468 echo $ac_n "(cached) $ac_c" 1>&6
16473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16475 cat > conftest.$ac_ext <<EOF
16476 #line 16477 "configure"
16477 #include "confdefs.h"
16479 #ifdef HAVE_DB_185_H
16480 # include <db_185.h>
16485 #ifndef DB_VERSION_MAJOR
16486 # define DB_VERSION_MAJOR 1
16490 #define NULL ((void*)0)
16495 #if DB_VERSION_MAJOR > 1
16498 int major, minor, patch;
16500 version = db_version( &major, &minor, &patch );
16502 if( major != DB_VERSION_MAJOR ||
16503 minor < DB_VERSION_MINOR )
16505 printf("Berkeley DB version mismatch\n"
16506 "\texpected: %s\n\tgot: %s\n",
16507 DB_VERSION_STRING, version);
16513 #if DB_VERSION_MAJOR > 2
16514 db_env_create( NULL, 0 );
16515 #elif DB_VERSION_MAJOR > 1
16516 db_appexit( NULL );
16518 (void) dbopen( NULL, 0, 0, 0, NULL);
16523 if { (eval echo configure:16524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16525 ol_cv_db_db_4_dot_2=yes
16527 echo "configure: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16530 ol_cv_db_db_4_dot_2=no
16538 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16540 if test $ol_cv_db_db_4_dot_2 = yes ; then
16541 ol_cv_lib_db=-ldb-4.2
16545 if test $ol_cv_lib_db = no ; then
16546 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16547 echo "configure:16548: checking for Berkeley DB link (-ldb-4-2)" >&5
16548 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16549 echo $ac_n "(cached) $ac_c" 1>&6
16554 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16556 cat > conftest.$ac_ext <<EOF
16557 #line 16558 "configure"
16558 #include "confdefs.h"
16560 #ifdef HAVE_DB_185_H
16561 # include <db_185.h>
16566 #ifndef DB_VERSION_MAJOR
16567 # define DB_VERSION_MAJOR 1
16571 #define NULL ((void*)0)
16576 #if DB_VERSION_MAJOR > 1
16579 int major, minor, patch;
16581 version = db_version( &major, &minor, &patch );
16583 if( major != DB_VERSION_MAJOR ||
16584 minor < DB_VERSION_MINOR )
16586 printf("Berkeley DB version mismatch\n"
16587 "\texpected: %s\n\tgot: %s\n",
16588 DB_VERSION_STRING, version);
16594 #if DB_VERSION_MAJOR > 2
16595 db_env_create( NULL, 0 );
16596 #elif DB_VERSION_MAJOR > 1
16597 db_appexit( NULL );
16599 (void) dbopen( NULL, 0, 0, 0, NULL);
16604 if { (eval echo configure:16605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16606 ol_cv_db_db_4_2=yes
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16619 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16621 if test $ol_cv_db_db_4_2 = yes ; then
16622 ol_cv_lib_db=-ldb-4-2
16626 if test $ol_cv_lib_db = no ; then
16627 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16628 echo "configure:16629: checking for Berkeley DB link (-ldb-4)" >&5
16629 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16635 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16637 cat > conftest.$ac_ext <<EOF
16638 #line 16639 "configure"
16639 #include "confdefs.h"
16641 #ifdef HAVE_DB_185_H
16642 # include <db_185.h>
16647 #ifndef DB_VERSION_MAJOR
16648 # define DB_VERSION_MAJOR 1
16652 #define NULL ((void*)0)
16657 #if DB_VERSION_MAJOR > 1
16660 int major, minor, patch;
16662 version = db_version( &major, &minor, &patch );
16664 if( major != DB_VERSION_MAJOR ||
16665 minor < DB_VERSION_MINOR )
16667 printf("Berkeley DB version mismatch\n"
16668 "\texpected: %s\n\tgot: %s\n",
16669 DB_VERSION_STRING, version);
16675 #if DB_VERSION_MAJOR > 2
16676 db_env_create( NULL, 0 );
16677 #elif DB_VERSION_MAJOR > 1
16678 db_appexit( NULL );
16680 (void) dbopen( NULL, 0, 0, 0, NULL);
16685 if { (eval echo configure:16686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16689 echo "configure: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16700 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16702 if test $ol_cv_db_db_4 = yes ; then
16703 ol_cv_lib_db=-ldb-4
16707 if test $ol_cv_lib_db = no ; then
16708 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16709 echo "configure:16710: checking for Berkeley DB link (-ldb4)" >&5
16710 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16711 echo $ac_n "(cached) $ac_c" 1>&6
16716 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16718 cat > conftest.$ac_ext <<EOF
16719 #line 16720 "configure"
16720 #include "confdefs.h"
16722 #ifdef HAVE_DB_185_H
16723 # include <db_185.h>
16728 #ifndef DB_VERSION_MAJOR
16729 # define DB_VERSION_MAJOR 1
16733 #define NULL ((void*)0)
16738 #if DB_VERSION_MAJOR > 1
16741 int major, minor, patch;
16743 version = db_version( &major, &minor, &patch );
16745 if( major != DB_VERSION_MAJOR ||
16746 minor < DB_VERSION_MINOR )
16748 printf("Berkeley DB version mismatch\n"
16749 "\texpected: %s\n\tgot: %s\n",
16750 DB_VERSION_STRING, version);
16756 #if DB_VERSION_MAJOR > 2
16757 db_env_create( NULL, 0 );
16758 #elif DB_VERSION_MAJOR > 1
16759 db_appexit( NULL );
16761 (void) dbopen( NULL, 0, 0, 0, NULL);
16766 if { (eval echo configure:16767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16770 echo "configure: failed program was:" >&5
16771 cat conftest.$ac_ext >&5
16781 echo "$ac_t""$ol_cv_db_db4" 1>&6
16783 if test $ol_cv_db_db4 = yes ; then
16788 if test $ol_cv_lib_db = no ; then
16789 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16790 echo "configure:16791: checking for Berkeley DB link (-ldb)" >&5
16791 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16792 echo $ac_n "(cached) $ac_c" 1>&6
16797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16799 cat > conftest.$ac_ext <<EOF
16800 #line 16801 "configure"
16801 #include "confdefs.h"
16803 #ifdef HAVE_DB_185_H
16804 # include <db_185.h>
16809 #ifndef DB_VERSION_MAJOR
16810 # define DB_VERSION_MAJOR 1
16814 #define NULL ((void*)0)
16819 #if DB_VERSION_MAJOR > 1
16822 int major, minor, patch;
16824 version = db_version( &major, &minor, &patch );
16826 if( major != DB_VERSION_MAJOR ||
16827 minor < DB_VERSION_MINOR )
16829 printf("Berkeley DB version mismatch\n"
16830 "\texpected: %s\n\tgot: %s\n",
16831 DB_VERSION_STRING, version);
16837 #if DB_VERSION_MAJOR > 2
16838 db_env_create( NULL, 0 );
16839 #elif DB_VERSION_MAJOR > 1
16840 db_appexit( NULL );
16842 (void) dbopen( NULL, 0, 0, 0, NULL);
16847 if { (eval echo configure:16848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16851 echo "configure: failed program was:" >&5
16852 cat conftest.$ac_ext >&5
16862 echo "$ac_t""$ol_cv_db_db" 1>&6
16864 if test $ol_cv_db_db = yes ; then
16869 if test $ol_cv_lib_db = no ; then
16870 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16871 echo "configure:16872: checking for Berkeley DB link (-ldb41)" >&5
16872 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16873 echo $ac_n "(cached) $ac_c" 1>&6
16878 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16880 cat > conftest.$ac_ext <<EOF
16881 #line 16882 "configure"
16882 #include "confdefs.h"
16884 #ifdef HAVE_DB_185_H
16885 # include <db_185.h>
16890 #ifndef DB_VERSION_MAJOR
16891 # define DB_VERSION_MAJOR 1
16895 #define NULL ((void*)0)
16900 #if DB_VERSION_MAJOR > 1
16903 int major, minor, patch;
16905 version = db_version( &major, &minor, &patch );
16907 if( major != DB_VERSION_MAJOR ||
16908 minor < DB_VERSION_MINOR )
16910 printf("Berkeley DB version mismatch\n"
16911 "\texpected: %s\n\tgot: %s\n",
16912 DB_VERSION_STRING, version);
16918 #if DB_VERSION_MAJOR > 2
16919 db_env_create( NULL, 0 );
16920 #elif DB_VERSION_MAJOR > 1
16921 db_appexit( NULL );
16923 (void) dbopen( NULL, 0, 0, 0, NULL);
16928 if { (eval echo configure:16929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16932 echo "configure: failed program was:" >&5
16933 cat conftest.$ac_ext >&5
16943 echo "$ac_t""$ol_cv_db_db41" 1>&6
16945 if test $ol_cv_db_db41 = yes ; then
16946 ol_cv_lib_db=-ldb41
16950 if test $ol_cv_lib_db = no ; then
16951 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16952 echo "configure:16953: checking for Berkeley DB link (-ldb-41)" >&5
16953 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16954 echo $ac_n "(cached) $ac_c" 1>&6
16959 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16961 cat > conftest.$ac_ext <<EOF
16962 #line 16963 "configure"
16963 #include "confdefs.h"
16965 #ifdef HAVE_DB_185_H
16966 # include <db_185.h>
16971 #ifndef DB_VERSION_MAJOR
16972 # define DB_VERSION_MAJOR 1
16976 #define NULL ((void*)0)
16981 #if DB_VERSION_MAJOR > 1
16984 int major, minor, patch;
16986 version = db_version( &major, &minor, &patch );
16988 if( major != DB_VERSION_MAJOR ||
16989 minor < DB_VERSION_MINOR )
16991 printf("Berkeley DB version mismatch\n"
16992 "\texpected: %s\n\tgot: %s\n",
16993 DB_VERSION_STRING, version);
16999 #if DB_VERSION_MAJOR > 2
17000 db_env_create( NULL, 0 );
17001 #elif DB_VERSION_MAJOR > 1
17002 db_appexit( NULL );
17004 (void) dbopen( NULL, 0, 0, 0, NULL);
17009 if { (eval echo configure:17010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17013 echo "configure: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17024 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17026 if test $ol_cv_db_db_41 = yes ; then
17027 ol_cv_lib_db=-ldb-41
17031 if test $ol_cv_lib_db = no ; then
17032 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17033 echo "configure:17034: checking for Berkeley DB link (-ldb-4.1)" >&5
17034 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17035 echo $ac_n "(cached) $ac_c" 1>&6
17040 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17042 cat > conftest.$ac_ext <<EOF
17043 #line 17044 "configure"
17044 #include "confdefs.h"
17046 #ifdef HAVE_DB_185_H
17047 # include <db_185.h>
17052 #ifndef DB_VERSION_MAJOR
17053 # define DB_VERSION_MAJOR 1
17057 #define NULL ((void*)0)
17062 #if DB_VERSION_MAJOR > 1
17065 int major, minor, patch;
17067 version = db_version( &major, &minor, &patch );
17069 if( major != DB_VERSION_MAJOR ||
17070 minor < DB_VERSION_MINOR )
17072 printf("Berkeley DB version mismatch\n"
17073 "\texpected: %s\n\tgot: %s\n",
17074 DB_VERSION_STRING, version);
17080 #if DB_VERSION_MAJOR > 2
17081 db_env_create( NULL, 0 );
17082 #elif DB_VERSION_MAJOR > 1
17083 db_appexit( NULL );
17085 (void) dbopen( NULL, 0, 0, 0, NULL);
17090 if { (eval echo configure:17091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17092 ol_cv_db_db_4_dot_1=yes
17094 echo "configure: failed program was:" >&5
17095 cat conftest.$ac_ext >&5
17097 ol_cv_db_db_4_dot_1=no
17105 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17107 if test $ol_cv_db_db_4_dot_1 = yes ; then
17108 ol_cv_lib_db=-ldb-4.1
17112 if test $ol_cv_lib_db = no ; then
17113 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17114 echo "configure:17115: checking for Berkeley DB link (-ldb-4-1)" >&5
17115 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17116 echo $ac_n "(cached) $ac_c" 1>&6
17121 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17123 cat > conftest.$ac_ext <<EOF
17124 #line 17125 "configure"
17125 #include "confdefs.h"
17127 #ifdef HAVE_DB_185_H
17128 # include <db_185.h>
17133 #ifndef DB_VERSION_MAJOR
17134 # define DB_VERSION_MAJOR 1
17138 #define NULL ((void*)0)
17143 #if DB_VERSION_MAJOR > 1
17146 int major, minor, patch;
17148 version = db_version( &major, &minor, &patch );
17150 if( major != DB_VERSION_MAJOR ||
17151 minor < DB_VERSION_MINOR )
17153 printf("Berkeley DB version mismatch\n"
17154 "\texpected: %s\n\tgot: %s\n",
17155 DB_VERSION_STRING, version);
17161 #if DB_VERSION_MAJOR > 2
17162 db_env_create( NULL, 0 );
17163 #elif DB_VERSION_MAJOR > 1
17164 db_appexit( NULL );
17166 (void) dbopen( NULL, 0, 0, 0, NULL);
17171 if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17173 ol_cv_db_db_4_1=yes
17175 echo "configure: failed program was:" >&5
17176 cat conftest.$ac_ext >&5
17186 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17188 if test $ol_cv_db_db_4_1 = yes ; then
17189 ol_cv_lib_db=-ldb-4-1
17193 if test $ol_cv_lib_db = no ; then
17194 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17195 echo "configure:17196: checking for Berkeley DB link (-ldb3)" >&5
17196 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17197 echo $ac_n "(cached) $ac_c" 1>&6
17202 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17204 cat > conftest.$ac_ext <<EOF
17205 #line 17206 "configure"
17206 #include "confdefs.h"
17208 #ifdef HAVE_DB_185_H
17209 # include <db_185.h>
17214 #ifndef DB_VERSION_MAJOR
17215 # define DB_VERSION_MAJOR 1
17219 #define NULL ((void*)0)
17224 #if DB_VERSION_MAJOR > 1
17227 int major, minor, patch;
17229 version = db_version( &major, &minor, &patch );
17231 if( major != DB_VERSION_MAJOR ||
17232 minor < DB_VERSION_MINOR )
17234 printf("Berkeley DB version mismatch\n"
17235 "\texpected: %s\n\tgot: %s\n",
17236 DB_VERSION_STRING, version);
17242 #if DB_VERSION_MAJOR > 2
17243 db_env_create( NULL, 0 );
17244 #elif DB_VERSION_MAJOR > 1
17245 db_appexit( NULL );
17247 (void) dbopen( NULL, 0, 0, 0, NULL);
17252 if { (eval echo configure:17253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17256 echo "configure: failed program was:" >&5
17257 cat conftest.$ac_ext >&5
17267 echo "$ac_t""$ol_cv_db_db3" 1>&6
17269 if test $ol_cv_db_db3 = yes ; then
17274 if test $ol_cv_lib_db = no ; then
17275 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17276 echo "configure:17277: checking for Berkeley DB link (-ldb-3)" >&5
17277 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17278 echo $ac_n "(cached) $ac_c" 1>&6
17283 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17285 cat > conftest.$ac_ext <<EOF
17286 #line 17287 "configure"
17287 #include "confdefs.h"
17289 #ifdef HAVE_DB_185_H
17290 # include <db_185.h>
17295 #ifndef DB_VERSION_MAJOR
17296 # define DB_VERSION_MAJOR 1
17300 #define NULL ((void*)0)
17305 #if DB_VERSION_MAJOR > 1
17308 int major, minor, patch;
17310 version = db_version( &major, &minor, &patch );
17312 if( major != DB_VERSION_MAJOR ||
17313 minor < DB_VERSION_MINOR )
17315 printf("Berkeley DB version mismatch\n"
17316 "\texpected: %s\n\tgot: %s\n",
17317 DB_VERSION_STRING, version);
17323 #if DB_VERSION_MAJOR > 2
17324 db_env_create( NULL, 0 );
17325 #elif DB_VERSION_MAJOR > 1
17326 db_appexit( NULL );
17328 (void) dbopen( NULL, 0, 0, 0, NULL);
17333 if { (eval echo configure:17334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17337 echo "configure: failed program was:" >&5
17338 cat conftest.$ac_ext >&5
17348 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17350 if test $ol_cv_db_db_3 = yes ; then
17351 ol_cv_lib_db=-ldb-3
17355 if test $ol_cv_lib_db = no ; then
17356 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17357 echo "configure:17358: checking for Berkeley DB link (-ldb2)" >&5
17358 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17359 echo $ac_n "(cached) $ac_c" 1>&6
17364 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17366 cat > conftest.$ac_ext <<EOF
17367 #line 17368 "configure"
17368 #include "confdefs.h"
17370 #ifdef HAVE_DB_185_H
17371 # include <db_185.h>
17376 #ifndef DB_VERSION_MAJOR
17377 # define DB_VERSION_MAJOR 1
17381 #define NULL ((void*)0)
17386 #if DB_VERSION_MAJOR > 1
17389 int major, minor, patch;
17391 version = db_version( &major, &minor, &patch );
17393 if( major != DB_VERSION_MAJOR ||
17394 minor < DB_VERSION_MINOR )
17396 printf("Berkeley DB version mismatch\n"
17397 "\texpected: %s\n\tgot: %s\n",
17398 DB_VERSION_STRING, version);
17404 #if DB_VERSION_MAJOR > 2
17405 db_env_create( NULL, 0 );
17406 #elif DB_VERSION_MAJOR > 1
17407 db_appexit( NULL );
17409 (void) dbopen( NULL, 0, 0, 0, NULL);
17414 if { (eval echo configure:17415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17418 echo "configure: failed program was:" >&5
17419 cat conftest.$ac_ext >&5
17429 echo "$ac_t""$ol_cv_db_db2" 1>&6
17431 if test $ol_cv_db_db2 = yes ; then
17436 if test $ol_cv_lib_db = no ; then
17437 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17438 echo "configure:17439: checking for Berkeley DB link (-ldb-2)" >&5
17439 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17440 echo $ac_n "(cached) $ac_c" 1>&6
17445 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17447 cat > conftest.$ac_ext <<EOF
17448 #line 17449 "configure"
17449 #include "confdefs.h"
17451 #ifdef HAVE_DB_185_H
17452 # include <db_185.h>
17457 #ifndef DB_VERSION_MAJOR
17458 # define DB_VERSION_MAJOR 1
17462 #define NULL ((void*)0)
17467 #if DB_VERSION_MAJOR > 1
17470 int major, minor, patch;
17472 version = db_version( &major, &minor, &patch );
17474 if( major != DB_VERSION_MAJOR ||
17475 minor < DB_VERSION_MINOR )
17477 printf("Berkeley DB version mismatch\n"
17478 "\texpected: %s\n\tgot: %s\n",
17479 DB_VERSION_STRING, version);
17485 #if DB_VERSION_MAJOR > 2
17486 db_env_create( NULL, 0 );
17487 #elif DB_VERSION_MAJOR > 1
17488 db_appexit( NULL );
17490 (void) dbopen( NULL, 0, 0, 0, NULL);
17495 if { (eval echo configure:17496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17499 echo "configure: failed program was:" >&5
17500 cat conftest.$ac_ext >&5
17510 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17512 if test $ol_cv_db_db_2 = yes ; then
17513 ol_cv_lib_db=-ldb-2
17517 if test $ol_cv_lib_db = no ; then
17518 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17519 echo "configure:17520: checking for Berkeley DB link (-ldb1)" >&5
17520 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17521 echo $ac_n "(cached) $ac_c" 1>&6
17526 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17528 cat > conftest.$ac_ext <<EOF
17529 #line 17530 "configure"
17530 #include "confdefs.h"
17532 #ifdef HAVE_DB_185_H
17533 # include <db_185.h>
17538 #ifndef DB_VERSION_MAJOR
17539 # define DB_VERSION_MAJOR 1
17543 #define NULL ((void*)0)
17548 #if DB_VERSION_MAJOR > 1
17551 int major, minor, patch;
17553 version = db_version( &major, &minor, &patch );
17555 if( major != DB_VERSION_MAJOR ||
17556 minor < DB_VERSION_MINOR )
17558 printf("Berkeley DB version mismatch\n"
17559 "\texpected: %s\n\tgot: %s\n",
17560 DB_VERSION_STRING, version);
17566 #if DB_VERSION_MAJOR > 2
17567 db_env_create( NULL, 0 );
17568 #elif DB_VERSION_MAJOR > 1
17569 db_appexit( NULL );
17571 (void) dbopen( NULL, 0, 0, 0, NULL);
17576 if { (eval echo configure:17577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17580 echo "configure: failed program was:" >&5
17581 cat conftest.$ac_ext >&5
17591 echo "$ac_t""$ol_cv_db_db1" 1>&6
17593 if test $ol_cv_db_db1 = yes ; then
17598 if test $ol_cv_lib_db = no ; then
17599 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17600 echo "configure:17601: checking for Berkeley DB link (-ldb-1)" >&5
17601 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17602 echo $ac_n "(cached) $ac_c" 1>&6
17607 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17609 cat > conftest.$ac_ext <<EOF
17610 #line 17611 "configure"
17611 #include "confdefs.h"
17613 #ifdef HAVE_DB_185_H
17614 # include <db_185.h>
17619 #ifndef DB_VERSION_MAJOR
17620 # define DB_VERSION_MAJOR 1
17624 #define NULL ((void*)0)
17629 #if DB_VERSION_MAJOR > 1
17632 int major, minor, patch;
17634 version = db_version( &major, &minor, &patch );
17636 if( major != DB_VERSION_MAJOR ||
17637 minor < DB_VERSION_MINOR )
17639 printf("Berkeley DB version mismatch\n"
17640 "\texpected: %s\n\tgot: %s\n",
17641 DB_VERSION_STRING, version);
17647 #if DB_VERSION_MAJOR > 2
17648 db_env_create( NULL, 0 );
17649 #elif DB_VERSION_MAJOR > 1
17650 db_appexit( NULL );
17652 (void) dbopen( NULL, 0, 0, 0, NULL);
17657 if { (eval echo configure:17658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17661 echo "configure: failed program was:" >&5
17662 cat conftest.$ac_ext >&5
17672 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17674 if test $ol_cv_db_db_1 = yes ; then
17675 ol_cv_lib_db=-ldb-1
17680 if test "$ol_cv_lib_db" != no ; then
17681 ol_cv_berkeley_db=yes
17687 ol_cv_berkeley_db=no
17690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17692 echo "configure:17693: checking for $ac_hdr" >&5
17693 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17694 echo $ac_n "(cached) $ac_c" 1>&6
17696 cat > conftest.$ac_ext <<EOF
17697 #line 17698 "configure"
17698 #include "confdefs.h"
17701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17702 { (eval echo configure:17703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17704 if test -z "$ac_err"; then
17706 eval "ac_cv_header_$ac_safe=yes"
17709 echo "configure: failed program was:" >&5
17710 cat conftest.$ac_ext >&5
17712 eval "ac_cv_header_$ac_safe=no"
17716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17717 echo "$ac_t""yes" 1>&6
17718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17719 cat >> confdefs.h <<EOF
17720 #define $ac_tr_hdr 1
17724 echo "$ac_t""no" 1>&6
17728 if test $ac_cv_header_db_h = yes; then
17730 if test $ol_cv_lib_db = no ; then
17731 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17732 echo "configure:17733: checking for Berkeley DB link (default)" >&5
17733 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17734 echo $ac_n "(cached) $ac_c" 1>&6
17739 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17741 cat > conftest.$ac_ext <<EOF
17742 #line 17743 "configure"
17743 #include "confdefs.h"
17745 #ifdef HAVE_DB_185_H
17746 # include <db_185.h>
17751 #ifndef DB_VERSION_MAJOR
17752 # define DB_VERSION_MAJOR 1
17756 #define NULL ((void*)0)
17761 #if DB_VERSION_MAJOR > 1
17764 int major, minor, patch;
17766 version = db_version( &major, &minor, &patch );
17768 if( major != DB_VERSION_MAJOR ||
17769 minor < DB_VERSION_MINOR )
17771 printf("Berkeley DB version mismatch\n"
17772 "\texpected: %s\n\tgot: %s\n",
17773 DB_VERSION_STRING, version);
17779 #if DB_VERSION_MAJOR > 2
17780 db_env_create( NULL, 0 );
17781 #elif DB_VERSION_MAJOR > 1
17782 db_appexit( NULL );
17784 (void) dbopen( NULL, 0, 0, 0, NULL);
17789 if { (eval echo configure:17790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17793 echo "configure: failed program was:" >&5
17794 cat conftest.$ac_ext >&5
17804 echo "$ac_t""$ol_cv_db_none" 1>&6
17806 if test $ol_cv_db_none = yes ; then
17811 if test $ol_cv_lib_db = no ; then
17812 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17813 echo "configure:17814: checking for Berkeley DB link (-ldb42)" >&5
17814 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17815 echo $ac_n "(cached) $ac_c" 1>&6
17820 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17822 cat > conftest.$ac_ext <<EOF
17823 #line 17824 "configure"
17824 #include "confdefs.h"
17826 #ifdef HAVE_DB_185_H
17827 # include <db_185.h>
17832 #ifndef DB_VERSION_MAJOR
17833 # define DB_VERSION_MAJOR 1
17837 #define NULL ((void*)0)
17842 #if DB_VERSION_MAJOR > 1
17845 int major, minor, patch;
17847 version = db_version( &major, &minor, &patch );
17849 if( major != DB_VERSION_MAJOR ||
17850 minor < DB_VERSION_MINOR )
17852 printf("Berkeley DB version mismatch\n"
17853 "\texpected: %s\n\tgot: %s\n",
17854 DB_VERSION_STRING, version);
17860 #if DB_VERSION_MAJOR > 2
17861 db_env_create( NULL, 0 );
17862 #elif DB_VERSION_MAJOR > 1
17863 db_appexit( NULL );
17865 (void) dbopen( NULL, 0, 0, 0, NULL);
17870 if { (eval echo configure:17871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17874 echo "configure: failed program was:" >&5
17875 cat conftest.$ac_ext >&5
17885 echo "$ac_t""$ol_cv_db_db42" 1>&6
17887 if test $ol_cv_db_db42 = yes ; then
17888 ol_cv_lib_db=-ldb42
17892 if test $ol_cv_lib_db = no ; then
17893 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17894 echo "configure:17895: checking for Berkeley DB link (-ldb-42)" >&5
17895 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17896 echo $ac_n "(cached) $ac_c" 1>&6
17901 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17903 cat > conftest.$ac_ext <<EOF
17904 #line 17905 "configure"
17905 #include "confdefs.h"
17907 #ifdef HAVE_DB_185_H
17908 # include <db_185.h>
17913 #ifndef DB_VERSION_MAJOR
17914 # define DB_VERSION_MAJOR 1
17918 #define NULL ((void*)0)
17923 #if DB_VERSION_MAJOR > 1
17926 int major, minor, patch;
17928 version = db_version( &major, &minor, &patch );
17930 if( major != DB_VERSION_MAJOR ||
17931 minor < DB_VERSION_MINOR )
17933 printf("Berkeley DB version mismatch\n"
17934 "\texpected: %s\n\tgot: %s\n",
17935 DB_VERSION_STRING, version);
17941 #if DB_VERSION_MAJOR > 2
17942 db_env_create( NULL, 0 );
17943 #elif DB_VERSION_MAJOR > 1
17944 db_appexit( NULL );
17946 (void) dbopen( NULL, 0, 0, 0, NULL);
17951 if { (eval echo configure:17952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17955 echo "configure: failed program was:" >&5
17956 cat conftest.$ac_ext >&5
17966 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17968 if test $ol_cv_db_db_42 = yes ; then
17969 ol_cv_lib_db=-ldb-42
17973 if test $ol_cv_lib_db = no ; then
17974 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17975 echo "configure:17976: checking for Berkeley DB link (-ldb-4.2)" >&5
17976 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17977 echo $ac_n "(cached) $ac_c" 1>&6
17982 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17984 cat > conftest.$ac_ext <<EOF
17985 #line 17986 "configure"
17986 #include "confdefs.h"
17988 #ifdef HAVE_DB_185_H
17989 # include <db_185.h>
17994 #ifndef DB_VERSION_MAJOR
17995 # define DB_VERSION_MAJOR 1
17999 #define NULL ((void*)0)
18004 #if DB_VERSION_MAJOR > 1
18007 int major, minor, patch;
18009 version = db_version( &major, &minor, &patch );
18011 if( major != DB_VERSION_MAJOR ||
18012 minor < DB_VERSION_MINOR )
18014 printf("Berkeley DB version mismatch\n"
18015 "\texpected: %s\n\tgot: %s\n",
18016 DB_VERSION_STRING, version);
18022 #if DB_VERSION_MAJOR > 2
18023 db_env_create( NULL, 0 );
18024 #elif DB_VERSION_MAJOR > 1
18025 db_appexit( NULL );
18027 (void) dbopen( NULL, 0, 0, 0, NULL);
18032 if { (eval echo configure:18033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18034 ol_cv_db_db_4_dot_2=yes
18036 echo "configure: failed program was:" >&5
18037 cat conftest.$ac_ext >&5
18039 ol_cv_db_db_4_dot_2=no
18047 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18049 if test $ol_cv_db_db_4_dot_2 = yes ; then
18050 ol_cv_lib_db=-ldb-4.2
18054 if test $ol_cv_lib_db = no ; then
18055 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18056 echo "configure:18057: checking for Berkeley DB link (-ldb-4-2)" >&5
18057 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18058 echo $ac_n "(cached) $ac_c" 1>&6
18063 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18065 cat > conftest.$ac_ext <<EOF
18066 #line 18067 "configure"
18067 #include "confdefs.h"
18069 #ifdef HAVE_DB_185_H
18070 # include <db_185.h>
18075 #ifndef DB_VERSION_MAJOR
18076 # define DB_VERSION_MAJOR 1
18080 #define NULL ((void*)0)
18085 #if DB_VERSION_MAJOR > 1
18088 int major, minor, patch;
18090 version = db_version( &major, &minor, &patch );
18092 if( major != DB_VERSION_MAJOR ||
18093 minor < DB_VERSION_MINOR )
18095 printf("Berkeley DB version mismatch\n"
18096 "\texpected: %s\n\tgot: %s\n",
18097 DB_VERSION_STRING, version);
18103 #if DB_VERSION_MAJOR > 2
18104 db_env_create( NULL, 0 );
18105 #elif DB_VERSION_MAJOR > 1
18106 db_appexit( NULL );
18108 (void) dbopen( NULL, 0, 0, 0, NULL);
18113 if { (eval echo configure:18114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18115 ol_cv_db_db_4_2=yes
18117 echo "configure: failed program was:" >&5
18118 cat conftest.$ac_ext >&5
18128 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18130 if test $ol_cv_db_db_4_2 = yes ; then
18131 ol_cv_lib_db=-ldb-4-2
18135 if test $ol_cv_lib_db = no ; then
18136 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18137 echo "configure:18138: checking for Berkeley DB link (-ldb-4)" >&5
18138 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18139 echo $ac_n "(cached) $ac_c" 1>&6
18144 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18146 cat > conftest.$ac_ext <<EOF
18147 #line 18148 "configure"
18148 #include "confdefs.h"
18150 #ifdef HAVE_DB_185_H
18151 # include <db_185.h>
18156 #ifndef DB_VERSION_MAJOR
18157 # define DB_VERSION_MAJOR 1
18161 #define NULL ((void*)0)
18166 #if DB_VERSION_MAJOR > 1
18169 int major, minor, patch;
18171 version = db_version( &major, &minor, &patch );
18173 if( major != DB_VERSION_MAJOR ||
18174 minor < DB_VERSION_MINOR )
18176 printf("Berkeley DB version mismatch\n"
18177 "\texpected: %s\n\tgot: %s\n",
18178 DB_VERSION_STRING, version);
18184 #if DB_VERSION_MAJOR > 2
18185 db_env_create( NULL, 0 );
18186 #elif DB_VERSION_MAJOR > 1
18187 db_appexit( NULL );
18189 (void) dbopen( NULL, 0, 0, 0, NULL);
18194 if { (eval echo configure:18195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18198 echo "configure: failed program was:" >&5
18199 cat conftest.$ac_ext >&5
18209 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18211 if test $ol_cv_db_db_4 = yes ; then
18212 ol_cv_lib_db=-ldb-4
18216 if test $ol_cv_lib_db = no ; then
18217 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18218 echo "configure:18219: checking for Berkeley DB link (-ldb4)" >&5
18219 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18220 echo $ac_n "(cached) $ac_c" 1>&6
18225 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18227 cat > conftest.$ac_ext <<EOF
18228 #line 18229 "configure"
18229 #include "confdefs.h"
18231 #ifdef HAVE_DB_185_H
18232 # include <db_185.h>
18237 #ifndef DB_VERSION_MAJOR
18238 # define DB_VERSION_MAJOR 1
18242 #define NULL ((void*)0)
18247 #if DB_VERSION_MAJOR > 1
18250 int major, minor, patch;
18252 version = db_version( &major, &minor, &patch );
18254 if( major != DB_VERSION_MAJOR ||
18255 minor < DB_VERSION_MINOR )
18257 printf("Berkeley DB version mismatch\n"
18258 "\texpected: %s\n\tgot: %s\n",
18259 DB_VERSION_STRING, version);
18265 #if DB_VERSION_MAJOR > 2
18266 db_env_create( NULL, 0 );
18267 #elif DB_VERSION_MAJOR > 1
18268 db_appexit( NULL );
18270 (void) dbopen( NULL, 0, 0, 0, NULL);
18275 if { (eval echo configure:18276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18279 echo "configure: failed program was:" >&5
18280 cat conftest.$ac_ext >&5
18290 echo "$ac_t""$ol_cv_db_db4" 1>&6
18292 if test $ol_cv_db_db4 = yes ; then
18297 if test $ol_cv_lib_db = no ; then
18298 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18299 echo "configure:18300: checking for Berkeley DB link (-ldb)" >&5
18300 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18301 echo $ac_n "(cached) $ac_c" 1>&6
18306 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18308 cat > conftest.$ac_ext <<EOF
18309 #line 18310 "configure"
18310 #include "confdefs.h"
18312 #ifdef HAVE_DB_185_H
18313 # include <db_185.h>
18318 #ifndef DB_VERSION_MAJOR
18319 # define DB_VERSION_MAJOR 1
18323 #define NULL ((void*)0)
18328 #if DB_VERSION_MAJOR > 1
18331 int major, minor, patch;
18333 version = db_version( &major, &minor, &patch );
18335 if( major != DB_VERSION_MAJOR ||
18336 minor < DB_VERSION_MINOR )
18338 printf("Berkeley DB version mismatch\n"
18339 "\texpected: %s\n\tgot: %s\n",
18340 DB_VERSION_STRING, version);
18346 #if DB_VERSION_MAJOR > 2
18347 db_env_create( NULL, 0 );
18348 #elif DB_VERSION_MAJOR > 1
18349 db_appexit( NULL );
18351 (void) dbopen( NULL, 0, 0, 0, NULL);
18356 if { (eval echo configure:18357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18360 echo "configure: failed program was:" >&5
18361 cat conftest.$ac_ext >&5
18371 echo "$ac_t""$ol_cv_db_db" 1>&6
18373 if test $ol_cv_db_db = yes ; then
18378 if test $ol_cv_lib_db = no ; then
18379 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18380 echo "configure:18381: checking for Berkeley DB link (-ldb41)" >&5
18381 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18382 echo $ac_n "(cached) $ac_c" 1>&6
18387 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18389 cat > conftest.$ac_ext <<EOF
18390 #line 18391 "configure"
18391 #include "confdefs.h"
18393 #ifdef HAVE_DB_185_H
18394 # include <db_185.h>
18399 #ifndef DB_VERSION_MAJOR
18400 # define DB_VERSION_MAJOR 1
18404 #define NULL ((void*)0)
18409 #if DB_VERSION_MAJOR > 1
18412 int major, minor, patch;
18414 version = db_version( &major, &minor, &patch );
18416 if( major != DB_VERSION_MAJOR ||
18417 minor < DB_VERSION_MINOR )
18419 printf("Berkeley DB version mismatch\n"
18420 "\texpected: %s\n\tgot: %s\n",
18421 DB_VERSION_STRING, version);
18427 #if DB_VERSION_MAJOR > 2
18428 db_env_create( NULL, 0 );
18429 #elif DB_VERSION_MAJOR > 1
18430 db_appexit( NULL );
18432 (void) dbopen( NULL, 0, 0, 0, NULL);
18437 if { (eval echo configure:18438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18441 echo "configure: failed program was:" >&5
18442 cat conftest.$ac_ext >&5
18452 echo "$ac_t""$ol_cv_db_db41" 1>&6
18454 if test $ol_cv_db_db41 = yes ; then
18455 ol_cv_lib_db=-ldb41
18459 if test $ol_cv_lib_db = no ; then
18460 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18461 echo "configure:18462: checking for Berkeley DB link (-ldb-41)" >&5
18462 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
18468 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18470 cat > conftest.$ac_ext <<EOF
18471 #line 18472 "configure"
18472 #include "confdefs.h"
18474 #ifdef HAVE_DB_185_H
18475 # include <db_185.h>
18480 #ifndef DB_VERSION_MAJOR
18481 # define DB_VERSION_MAJOR 1
18485 #define NULL ((void*)0)
18490 #if DB_VERSION_MAJOR > 1
18493 int major, minor, patch;
18495 version = db_version( &major, &minor, &patch );
18497 if( major != DB_VERSION_MAJOR ||
18498 minor < DB_VERSION_MINOR )
18500 printf("Berkeley DB version mismatch\n"
18501 "\texpected: %s\n\tgot: %s\n",
18502 DB_VERSION_STRING, version);
18508 #if DB_VERSION_MAJOR > 2
18509 db_env_create( NULL, 0 );
18510 #elif DB_VERSION_MAJOR > 1
18511 db_appexit( NULL );
18513 (void) dbopen( NULL, 0, 0, 0, NULL);
18518 if { (eval echo configure:18519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18522 echo "configure: failed program was:" >&5
18523 cat conftest.$ac_ext >&5
18533 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18535 if test $ol_cv_db_db_41 = yes ; then
18536 ol_cv_lib_db=-ldb-41
18540 if test $ol_cv_lib_db = no ; then
18541 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18542 echo "configure:18543: checking for Berkeley DB link (-ldb-4.1)" >&5
18543 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18544 echo $ac_n "(cached) $ac_c" 1>&6
18549 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18551 cat > conftest.$ac_ext <<EOF
18552 #line 18553 "configure"
18553 #include "confdefs.h"
18555 #ifdef HAVE_DB_185_H
18556 # include <db_185.h>
18561 #ifndef DB_VERSION_MAJOR
18562 # define DB_VERSION_MAJOR 1
18566 #define NULL ((void*)0)
18571 #if DB_VERSION_MAJOR > 1
18574 int major, minor, patch;
18576 version = db_version( &major, &minor, &patch );
18578 if( major != DB_VERSION_MAJOR ||
18579 minor < DB_VERSION_MINOR )
18581 printf("Berkeley DB version mismatch\n"
18582 "\texpected: %s\n\tgot: %s\n",
18583 DB_VERSION_STRING, version);
18589 #if DB_VERSION_MAJOR > 2
18590 db_env_create( NULL, 0 );
18591 #elif DB_VERSION_MAJOR > 1
18592 db_appexit( NULL );
18594 (void) dbopen( NULL, 0, 0, 0, NULL);
18599 if { (eval echo configure:18600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18601 ol_cv_db_db_4_dot_1=yes
18603 echo "configure: failed program was:" >&5
18604 cat conftest.$ac_ext >&5
18606 ol_cv_db_db_4_dot_1=no
18614 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18616 if test $ol_cv_db_db_4_dot_1 = yes ; then
18617 ol_cv_lib_db=-ldb-4.1
18621 if test $ol_cv_lib_db = no ; then
18622 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18623 echo "configure:18624: checking for Berkeley DB link (-ldb-4-1)" >&5
18624 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18625 echo $ac_n "(cached) $ac_c" 1>&6
18630 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18632 cat > conftest.$ac_ext <<EOF
18633 #line 18634 "configure"
18634 #include "confdefs.h"
18636 #ifdef HAVE_DB_185_H
18637 # include <db_185.h>
18642 #ifndef DB_VERSION_MAJOR
18643 # define DB_VERSION_MAJOR 1
18647 #define NULL ((void*)0)
18652 #if DB_VERSION_MAJOR > 1
18655 int major, minor, patch;
18657 version = db_version( &major, &minor, &patch );
18659 if( major != DB_VERSION_MAJOR ||
18660 minor < DB_VERSION_MINOR )
18662 printf("Berkeley DB version mismatch\n"
18663 "\texpected: %s\n\tgot: %s\n",
18664 DB_VERSION_STRING, version);
18670 #if DB_VERSION_MAJOR > 2
18671 db_env_create( NULL, 0 );
18672 #elif DB_VERSION_MAJOR > 1
18673 db_appexit( NULL );
18675 (void) dbopen( NULL, 0, 0, 0, NULL);
18680 if { (eval echo configure:18681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18682 ol_cv_db_db_4_1=yes
18684 echo "configure: failed program was:" >&5
18685 cat conftest.$ac_ext >&5
18695 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18697 if test $ol_cv_db_db_4_1 = yes ; then
18698 ol_cv_lib_db=-ldb-4-1
18702 if test $ol_cv_lib_db = no ; then
18703 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18704 echo "configure:18705: checking for Berkeley DB link (-ldb3)" >&5
18705 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18706 echo $ac_n "(cached) $ac_c" 1>&6
18711 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18713 cat > conftest.$ac_ext <<EOF
18714 #line 18715 "configure"
18715 #include "confdefs.h"
18717 #ifdef HAVE_DB_185_H
18718 # include <db_185.h>
18723 #ifndef DB_VERSION_MAJOR
18724 # define DB_VERSION_MAJOR 1
18728 #define NULL ((void*)0)
18733 #if DB_VERSION_MAJOR > 1
18736 int major, minor, patch;
18738 version = db_version( &major, &minor, &patch );
18740 if( major != DB_VERSION_MAJOR ||
18741 minor < DB_VERSION_MINOR )
18743 printf("Berkeley DB version mismatch\n"
18744 "\texpected: %s\n\tgot: %s\n",
18745 DB_VERSION_STRING, version);
18751 #if DB_VERSION_MAJOR > 2
18752 db_env_create( NULL, 0 );
18753 #elif DB_VERSION_MAJOR > 1
18754 db_appexit( NULL );
18756 (void) dbopen( NULL, 0, 0, 0, NULL);
18761 if { (eval echo configure:18762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18765 echo "configure: failed program was:" >&5
18766 cat conftest.$ac_ext >&5
18776 echo "$ac_t""$ol_cv_db_db3" 1>&6
18778 if test $ol_cv_db_db3 = yes ; then
18783 if test $ol_cv_lib_db = no ; then
18784 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18785 echo "configure:18786: checking for Berkeley DB link (-ldb-3)" >&5
18786 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18787 echo $ac_n "(cached) $ac_c" 1>&6
18792 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18794 cat > conftest.$ac_ext <<EOF
18795 #line 18796 "configure"
18796 #include "confdefs.h"
18798 #ifdef HAVE_DB_185_H
18799 # include <db_185.h>
18804 #ifndef DB_VERSION_MAJOR
18805 # define DB_VERSION_MAJOR 1
18809 #define NULL ((void*)0)
18814 #if DB_VERSION_MAJOR > 1
18817 int major, minor, patch;
18819 version = db_version( &major, &minor, &patch );
18821 if( major != DB_VERSION_MAJOR ||
18822 minor < DB_VERSION_MINOR )
18824 printf("Berkeley DB version mismatch\n"
18825 "\texpected: %s\n\tgot: %s\n",
18826 DB_VERSION_STRING, version);
18832 #if DB_VERSION_MAJOR > 2
18833 db_env_create( NULL, 0 );
18834 #elif DB_VERSION_MAJOR > 1
18835 db_appexit( NULL );
18837 (void) dbopen( NULL, 0, 0, 0, NULL);
18842 if { (eval echo configure:18843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18846 echo "configure: failed program was:" >&5
18847 cat conftest.$ac_ext >&5
18857 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18859 if test $ol_cv_db_db_3 = yes ; then
18860 ol_cv_lib_db=-ldb-3
18864 if test $ol_cv_lib_db = no ; then
18865 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18866 echo "configure:18867: checking for Berkeley DB link (-ldb2)" >&5
18867 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18868 echo $ac_n "(cached) $ac_c" 1>&6
18873 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18875 cat > conftest.$ac_ext <<EOF
18876 #line 18877 "configure"
18877 #include "confdefs.h"
18879 #ifdef HAVE_DB_185_H
18880 # include <db_185.h>
18885 #ifndef DB_VERSION_MAJOR
18886 # define DB_VERSION_MAJOR 1
18890 #define NULL ((void*)0)
18895 #if DB_VERSION_MAJOR > 1
18898 int major, minor, patch;
18900 version = db_version( &major, &minor, &patch );
18902 if( major != DB_VERSION_MAJOR ||
18903 minor < DB_VERSION_MINOR )
18905 printf("Berkeley DB version mismatch\n"
18906 "\texpected: %s\n\tgot: %s\n",
18907 DB_VERSION_STRING, version);
18913 #if DB_VERSION_MAJOR > 2
18914 db_env_create( NULL, 0 );
18915 #elif DB_VERSION_MAJOR > 1
18916 db_appexit( NULL );
18918 (void) dbopen( NULL, 0, 0, 0, NULL);
18923 if { (eval echo configure:18924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18927 echo "configure: failed program was:" >&5
18928 cat conftest.$ac_ext >&5
18938 echo "$ac_t""$ol_cv_db_db2" 1>&6
18940 if test $ol_cv_db_db2 = yes ; then
18945 if test $ol_cv_lib_db = no ; then
18946 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18947 echo "configure:18948: checking for Berkeley DB link (-ldb-2)" >&5
18948 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18949 echo $ac_n "(cached) $ac_c" 1>&6
18954 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18956 cat > conftest.$ac_ext <<EOF
18957 #line 18958 "configure"
18958 #include "confdefs.h"
18960 #ifdef HAVE_DB_185_H
18961 # include <db_185.h>
18966 #ifndef DB_VERSION_MAJOR
18967 # define DB_VERSION_MAJOR 1
18971 #define NULL ((void*)0)
18976 #if DB_VERSION_MAJOR > 1
18979 int major, minor, patch;
18981 version = db_version( &major, &minor, &patch );
18983 if( major != DB_VERSION_MAJOR ||
18984 minor < DB_VERSION_MINOR )
18986 printf("Berkeley DB version mismatch\n"
18987 "\texpected: %s\n\tgot: %s\n",
18988 DB_VERSION_STRING, version);
18994 #if DB_VERSION_MAJOR > 2
18995 db_env_create( NULL, 0 );
18996 #elif DB_VERSION_MAJOR > 1
18997 db_appexit( NULL );
18999 (void) dbopen( NULL, 0, 0, 0, NULL);
19004 if { (eval echo configure:19005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19008 echo "configure: failed program was:" >&5
19009 cat conftest.$ac_ext >&5
19019 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19021 if test $ol_cv_db_db_2 = yes ; then
19022 ol_cv_lib_db=-ldb-2
19026 if test $ol_cv_lib_db = no ; then
19027 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19028 echo "configure:19029: checking for Berkeley DB link (-ldb1)" >&5
19029 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19030 echo $ac_n "(cached) $ac_c" 1>&6
19035 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19037 cat > conftest.$ac_ext <<EOF
19038 #line 19039 "configure"
19039 #include "confdefs.h"
19041 #ifdef HAVE_DB_185_H
19042 # include <db_185.h>
19047 #ifndef DB_VERSION_MAJOR
19048 # define DB_VERSION_MAJOR 1
19052 #define NULL ((void*)0)
19057 #if DB_VERSION_MAJOR > 1
19060 int major, minor, patch;
19062 version = db_version( &major, &minor, &patch );
19064 if( major != DB_VERSION_MAJOR ||
19065 minor < DB_VERSION_MINOR )
19067 printf("Berkeley DB version mismatch\n"
19068 "\texpected: %s\n\tgot: %s\n",
19069 DB_VERSION_STRING, version);
19075 #if DB_VERSION_MAJOR > 2
19076 db_env_create( NULL, 0 );
19077 #elif DB_VERSION_MAJOR > 1
19078 db_appexit( NULL );
19080 (void) dbopen( NULL, 0, 0, 0, NULL);
19085 if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19089 echo "configure: failed program was:" >&5
19090 cat conftest.$ac_ext >&5
19100 echo "$ac_t""$ol_cv_db_db1" 1>&6
19102 if test $ol_cv_db_db1 = yes ; then
19107 if test $ol_cv_lib_db = no ; then
19108 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19109 echo "configure:19110: checking for Berkeley DB link (-ldb-1)" >&5
19110 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19111 echo $ac_n "(cached) $ac_c" 1>&6
19116 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19118 cat > conftest.$ac_ext <<EOF
19119 #line 19120 "configure"
19120 #include "confdefs.h"
19122 #ifdef HAVE_DB_185_H
19123 # include <db_185.h>
19128 #ifndef DB_VERSION_MAJOR
19129 # define DB_VERSION_MAJOR 1
19133 #define NULL ((void*)0)
19138 #if DB_VERSION_MAJOR > 1
19141 int major, minor, patch;
19143 version = db_version( &major, &minor, &patch );
19145 if( major != DB_VERSION_MAJOR ||
19146 minor < DB_VERSION_MINOR )
19148 printf("Berkeley DB version mismatch\n"
19149 "\texpected: %s\n\tgot: %s\n",
19150 DB_VERSION_STRING, version);
19156 #if DB_VERSION_MAJOR > 2
19157 db_env_create( NULL, 0 );
19158 #elif DB_VERSION_MAJOR > 1
19159 db_appexit( NULL );
19161 (void) dbopen( NULL, 0, 0, 0, NULL);
19166 if { (eval echo configure:19167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19170 echo "configure: failed program was:" >&5
19171 cat conftest.$ac_ext >&5
19181 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19183 if test $ol_cv_db_db_1 = yes ; then
19184 ol_cv_lib_db=-ldb-1
19189 if test "$ol_cv_lib_db" != no ; then
19190 ol_cv_berkeley_db=yes
19191 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19192 echo "configure:19193: checking for Berkeley DB thread support" >&5
19193 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19194 echo $ac_n "(cached) $ac_c" 1>&6
19198 LIBS="$LTHREAD_LIBS $LIBS"
19199 if test $ol_cv_lib_db != yes ; then
19200 LIBS="$ol_cv_lib_db $LIBS"
19203 if test "$cross_compiling" = yes; then
19204 ol_cv_berkeley_db_thread=cross
19206 cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19210 #ifdef HAVE_DB_185_H
19216 #define NULL ((void *)0)
19221 u_int32_t flags = DB_CREATE |
19227 #if DB_VERSION_MAJOR > 2
19228 DB_ENV *env = NULL;
19230 rc = db_env_create( &env, 0 );
19232 flags |= DB_INIT_MPOOL;
19233 #ifdef DB_MPOOL_PRIVATE
19234 flags |= DB_MPOOL_PRIVATE;
19238 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19242 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19243 rc = env->open( env, NULL, flags, 0 );
19245 rc = env->open( env, NULL, NULL, flags, 0 );
19249 rc = env->close( env, 0 );
19253 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19259 memset( &env, '\0', sizeof(env) );
19261 rc = db_appinit( NULL, NULL, &env, flags );
19264 db_appexit( &env );
19267 unlink("__db_mpool.share");
19268 unlink("__db_lock.share");
19274 if { (eval echo configure:19275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19276 ol_cv_berkeley_db_thread=yes
19278 echo "configure: failed program was:" >&5
19279 cat conftest.$ac_ext >&5
19281 ol_cv_berkeley_db_thread=no
19291 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19293 if test $ol_cv_berkeley_db_thread != no ; then
19294 cat >> confdefs.h <<\EOF
19295 #define HAVE_BERKELEY_DB_THREAD 1
19305 if test $ol_cv_berkeley_db != no ; then
19306 cat >> confdefs.h <<\EOF
19307 #define HAVE_BERKELEY_DB 1
19311 ol_link_ldbm=berkeley
19312 ol_with_ldbm_api=berkeley
19314 if test $ol_with_ldbm_type = hash ; then
19315 cat >> confdefs.h <<\EOF
19316 #define LDBM_USE_DBHASH 1
19320 cat >> confdefs.h <<\EOF
19321 #define LDBM_USE_DBBTREE 1
19326 if test $ol_cv_lib_db != yes ; then
19327 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19332 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19333 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19334 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19335 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19336 echo "configure:19337: checking Berkeley DB version for BDB backend" >&5
19337 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19338 echo $ac_n "(cached) $ac_c" 1>&6
19341 cat > conftest.$ac_ext <<EOF
19342 #line 19343 "configure"
19343 #include "confdefs.h"
19347 /* this check could be improved */
19348 #ifndef DB_VERSION_MAJOR
19349 # define DB_VERSION_MAJOR 1
19351 #ifndef DB_VERSION_MINOR
19352 # define DB_VERSION_MINOR 0
19355 /* require 4.2 or later */
19356 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19357 __db_version_compat
19361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19362 egrep "__db_version_compat" >/dev/null 2>&1; then
19364 ol_cv_bdb_compat=yes
19367 ol_cv_bdb_compat=no
19373 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19376 if test $ol_cv_bdb_compat = yes ; then
19378 elif test $ol_enable_bdb = yes ; then
19379 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19384 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19385 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19388 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19389 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19390 ol_with_ldbm_api=none
19393 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19394 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19395 echo "configure:19396: checking for MDBM library" >&5
19396 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19397 echo $ac_n "(cached) $ac_c" 1>&6
19400 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19401 echo "configure:19402: checking for mdbm_set_chain" >&5
19402 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19403 echo $ac_n "(cached) $ac_c" 1>&6
19405 cat > conftest.$ac_ext <<EOF
19406 #line 19407 "configure"
19407 #include "confdefs.h"
19408 /* System header to define __stub macros and hopefully few prototypes,
19409 which can conflict with char mdbm_set_chain(); below. */
19410 #include <assert.h>
19411 /* Override any gcc2 internal prototype to avoid an error. */
19412 /* We use char because int might match the return type of a gcc2
19413 builtin and then its argument prototype would still apply. */
19414 char mdbm_set_chain();
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19425 f = mdbm_set_chain;
19430 if { (eval echo configure:19431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19432 eval "ac_cv_func_mdbm_set_chain=yes"
19434 echo "configure: failed program was:" >&5
19435 cat conftest.$ac_ext >&5
19437 eval "ac_cv_func_mdbm_set_chain=no"
19442 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19443 echo "$ac_t""yes" 1>&6
19446 echo "$ac_t""no" 1>&6
19448 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19449 echo "configure:19450: checking for mdbm_set_chain in -lmdbm" >&5
19450 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19451 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19452 echo $ac_n "(cached) $ac_c" 1>&6
19454 ac_save_LIBS="$LIBS"
19455 LIBS="-lmdbm $LIBS"
19456 cat > conftest.$ac_ext <<EOF
19457 #line 19458 "configure"
19458 #include "confdefs.h"
19459 /* Override any gcc2 internal prototype to avoid an error. */
19460 /* We use char because int might match the return type of a gcc2
19461 builtin and then its argument prototype would still apply. */
19462 char mdbm_set_chain();
19468 if { (eval echo configure:19469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19470 eval "ac_cv_lib_$ac_lib_var=yes"
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19475 eval "ac_cv_lib_$ac_lib_var=no"
19478 LIBS="$ac_save_LIBS"
19481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19482 echo "$ac_t""yes" 1>&6
19483 ol_cv_lib_mdbm=-lmdbm
19485 echo "$ac_t""no" 1>&6
19496 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19499 for ac_hdr in mdbm.h
19501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19503 echo "configure:19504: checking for $ac_hdr" >&5
19504 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19505 echo $ac_n "(cached) $ac_c" 1>&6
19507 cat > conftest.$ac_ext <<EOF
19508 #line 19509 "configure"
19509 #include "confdefs.h"
19512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19513 { (eval echo configure:19514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19515 if test -z "$ac_err"; then
19517 eval "ac_cv_header_$ac_safe=yes"
19520 echo "configure: failed program was:" >&5
19521 cat conftest.$ac_ext >&5
19523 eval "ac_cv_header_$ac_safe=no"
19527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19528 echo "$ac_t""yes" 1>&6
19529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19530 cat >> confdefs.h <<EOF
19531 #define $ac_tr_hdr 1
19535 echo "$ac_t""no" 1>&6
19539 echo $ac_n "checking for db""... $ac_c" 1>&6
19540 echo "configure:19541: checking for db" >&5
19541 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19542 echo $ac_n "(cached) $ac_c" 1>&6
19545 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19553 echo "$ac_t""$ol_cv_mdbm" 1>&6
19554 if test $ol_cv_mdbm = yes ; then
19555 cat >> confdefs.h <<\EOF
19556 #define HAVE_MDBM 1
19562 if test $ol_cv_mdbm = yes ; then
19564 ol_with_ldbm_api=mdbm
19565 if test $ol_cv_lib_mdbm != yes ; then
19566 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19571 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19572 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19573 echo "configure:19574: checking for GDBM library" >&5
19574 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19575 echo $ac_n "(cached) $ac_c" 1>&6
19578 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19579 echo "configure:19580: checking for gdbm_open" >&5
19580 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19581 echo $ac_n "(cached) $ac_c" 1>&6
19583 cat > conftest.$ac_ext <<EOF
19584 #line 19585 "configure"
19585 #include "confdefs.h"
19586 /* System header to define __stub macros and hopefully few prototypes,
19587 which can conflict with char gdbm_open(); below. */
19588 #include <assert.h>
19589 /* Override any gcc2 internal prototype to avoid an error. */
19590 /* We use char because int might match the return type of a gcc2
19591 builtin and then its argument prototype would still apply. */
19597 /* The GNU C library defines this for functions which it implements
19598 to always fail with ENOSYS. Some functions are actually named
19599 something starting with __ and the normal name is an alias. */
19600 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19608 if { (eval echo configure:19609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19610 eval "ac_cv_func_gdbm_open=yes"
19612 echo "configure: failed program was:" >&5
19613 cat conftest.$ac_ext >&5
19615 eval "ac_cv_func_gdbm_open=no"
19620 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19621 echo "$ac_t""yes" 1>&6
19624 echo "$ac_t""no" 1>&6
19626 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19627 echo "configure:19628: checking for gdbm_open in -lgdbm" >&5
19628 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19630 echo $ac_n "(cached) $ac_c" 1>&6
19632 ac_save_LIBS="$LIBS"
19633 LIBS="-lgdbm $LIBS"
19634 cat > conftest.$ac_ext <<EOF
19635 #line 19636 "configure"
19636 #include "confdefs.h"
19637 /* Override any gcc2 internal prototype to avoid an error. */
19638 /* We use char because int might match the return type of a gcc2
19639 builtin and then its argument prototype would still apply. */
19646 if { (eval echo configure:19647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19648 eval "ac_cv_lib_$ac_lib_var=yes"
19650 echo "configure: failed program was:" >&5
19651 cat conftest.$ac_ext >&5
19653 eval "ac_cv_lib_$ac_lib_var=no"
19656 LIBS="$ac_save_LIBS"
19659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19660 echo "$ac_t""yes" 1>&6
19661 ol_cv_lib_gdbm=-lgdbm
19663 echo "$ac_t""no" 1>&6
19674 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19677 for ac_hdr in gdbm.h
19679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19681 echo "configure:19682: checking for $ac_hdr" >&5
19682 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19683 echo $ac_n "(cached) $ac_c" 1>&6
19685 cat > conftest.$ac_ext <<EOF
19686 #line 19687 "configure"
19687 #include "confdefs.h"
19690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19691 { (eval echo configure:19692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19693 if test -z "$ac_err"; then
19695 eval "ac_cv_header_$ac_safe=yes"
19698 echo "configure: failed program was:" >&5
19699 cat conftest.$ac_ext >&5
19701 eval "ac_cv_header_$ac_safe=no"
19705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19706 echo "$ac_t""yes" 1>&6
19707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19708 cat >> confdefs.h <<EOF
19709 #define $ac_tr_hdr 1
19713 echo "$ac_t""no" 1>&6
19717 echo $ac_n "checking for db""... $ac_c" 1>&6
19718 echo "configure:19719: checking for db" >&5
19719 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19720 echo $ac_n "(cached) $ac_c" 1>&6
19723 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19731 echo "$ac_t""$ol_cv_gdbm" 1>&6
19732 if test $ol_cv_gdbm = yes ; then
19733 cat >> confdefs.h <<\EOF
19734 #define HAVE_GDBM 1
19740 if test $ol_cv_gdbm = yes ; then
19742 ol_with_ldbm_api=gdbm
19744 if test $ol_cv_lib_gdbm != yes ; then
19745 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19750 if test $ol_with_ldbm_api = ndbm ; then
19751 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19752 echo "configure:19753: checking for NDBM library" >&5
19753 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19754 echo $ac_n "(cached) $ac_c" 1>&6
19757 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19758 echo "configure:19759: checking for dbm_open" >&5
19759 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19760 echo $ac_n "(cached) $ac_c" 1>&6
19762 cat > conftest.$ac_ext <<EOF
19763 #line 19764 "configure"
19764 #include "confdefs.h"
19765 /* System header to define __stub macros and hopefully few prototypes,
19766 which can conflict with char dbm_open(); below. */
19767 #include <assert.h>
19768 /* Override any gcc2 internal prototype to avoid an error. */
19769 /* We use char because int might match the return type of a gcc2
19770 builtin and then its argument prototype would still apply. */
19776 /* The GNU C library defines this for functions which it implements
19777 to always fail with ENOSYS. Some functions are actually named
19778 something starting with __ and the normal name is an alias. */
19779 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19787 if { (eval echo configure:19788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19789 eval "ac_cv_func_dbm_open=yes"
19791 echo "configure: failed program was:" >&5
19792 cat conftest.$ac_ext >&5
19794 eval "ac_cv_func_dbm_open=no"
19799 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19800 echo "$ac_t""yes" 1>&6
19803 echo "$ac_t""no" 1>&6
19805 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19806 echo "configure:19807: checking for dbm_open in -lndbm" >&5
19807 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19809 echo $ac_n "(cached) $ac_c" 1>&6
19811 ac_save_LIBS="$LIBS"
19812 LIBS="-lndbm $LIBS"
19813 cat > conftest.$ac_ext <<EOF
19814 #line 19815 "configure"
19815 #include "confdefs.h"
19816 /* Override any gcc2 internal prototype to avoid an error. */
19817 /* We use char because int might match the return type of a gcc2
19818 builtin and then its argument prototype would still apply. */
19825 if { (eval echo configure:19826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19827 eval "ac_cv_lib_$ac_lib_var=yes"
19829 echo "configure: failed program was:" >&5
19830 cat conftest.$ac_ext >&5
19832 eval "ac_cv_lib_$ac_lib_var=no"
19835 LIBS="$ac_save_LIBS"
19838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19839 echo "$ac_t""yes" 1>&6
19840 ol_cv_lib_ndbm=-lndbm
19842 echo "$ac_t""no" 1>&6
19844 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19845 echo "configure:19846: checking for dbm_open in -ldbm" >&5
19846 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19848 echo $ac_n "(cached) $ac_c" 1>&6
19850 ac_save_LIBS="$LIBS"
19852 cat > conftest.$ac_ext <<EOF
19853 #line 19854 "configure"
19854 #include "confdefs.h"
19855 /* Override any gcc2 internal prototype to avoid an error. */
19856 /* We use char because int might match the return type of a gcc2
19857 builtin and then its argument prototype would still apply. */
19864 if { (eval echo configure:19865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19866 eval "ac_cv_lib_$ac_lib_var=yes"
19868 echo "configure: failed program was:" >&5
19869 cat conftest.$ac_ext >&5
19871 eval "ac_cv_lib_$ac_lib_var=no"
19874 LIBS="$ac_save_LIBS"
19877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19878 echo "$ac_t""yes" 1>&6
19879 ol_cv_lib_ndbm=-ldbm
19881 echo "$ac_t""no" 1>&6
19894 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19897 for ac_hdr in ndbm.h
19899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19901 echo "configure:19902: checking for $ac_hdr" >&5
19902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19903 echo $ac_n "(cached) $ac_c" 1>&6
19905 cat > conftest.$ac_ext <<EOF
19906 #line 19907 "configure"
19907 #include "confdefs.h"
19910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19911 { (eval echo configure:19912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19913 if test -z "$ac_err"; then
19915 eval "ac_cv_header_$ac_safe=yes"
19918 echo "configure: failed program was:" >&5
19919 cat conftest.$ac_ext >&5
19921 eval "ac_cv_header_$ac_safe=no"
19925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19926 echo "$ac_t""yes" 1>&6
19927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19928 cat >> confdefs.h <<EOF
19929 #define $ac_tr_hdr 1
19933 echo "$ac_t""no" 1>&6
19937 echo $ac_n "checking for db""... $ac_c" 1>&6
19938 echo "configure:19939: checking for db" >&5
19939 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19940 echo $ac_n "(cached) $ac_c" 1>&6
19943 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19951 echo "$ac_t""$ol_cv_ndbm" 1>&6
19952 if test $ol_cv_ndbm = yes ; then
19953 cat >> confdefs.h <<\EOF
19954 #define HAVE_NDBM 1
19960 if test $ol_cv_ndbm = yes ; then
19962 ol_with_ldbm_api=ndbm
19964 if test $ol_cv_lib_ndbm != yes ; then
19965 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19970 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19971 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19972 if test $ol_enable_ldbm = yes ; then
19973 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19976 echo "configure: warning: disabling LDBM" 1>&2
19981 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19982 BUILD_LIBS_DYNAMIC=shared
19983 cat >> confdefs.h <<\EOF
19984 #define LDAP_LIBS_DYNAMIC 1
19989 BUILD_LIBS_DYNAMIC=static
19993 if test $ol_enable_wrappers != no ; then
19994 for ac_hdr in tcpd.h
19996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19998 echo "configure:19999: checking for $ac_hdr" >&5
19999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20000 echo $ac_n "(cached) $ac_c" 1>&6
20002 cat > conftest.$ac_ext <<EOF
20003 #line 20004 "configure"
20004 #include "confdefs.h"
20007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20008 { (eval echo configure:20009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20010 if test -z "$ac_err"; then
20012 eval "ac_cv_header_$ac_safe=yes"
20015 echo "configure: failed program was:" >&5
20016 cat conftest.$ac_ext >&5
20018 eval "ac_cv_header_$ac_safe=no"
20022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20023 echo "$ac_t""yes" 1>&6
20024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20025 cat >> confdefs.h <<EOF
20026 #define $ac_tr_hdr 1
20029 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20030 echo "configure:20031: checking for TCP wrappers library" >&5
20032 LIBS="$LIBS -lwrap"
20033 cat > conftest.$ac_ext <<EOF
20034 #line 20035 "configure"
20035 #include "confdefs.h"
20038 int allow_severity = 0;
20039 int deny_severity = 0;
20041 struct request_info *req;
20049 if { (eval echo configure:20050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20051 echo "$ac_t""-lwrap" 1>&6
20055 echo "configure: failed program was:" >&5
20056 cat conftest.$ac_ext >&5
20060 cat > conftest.$ac_ext <<EOF
20061 #line 20062 "configure"
20062 #include "confdefs.h"
20065 int allow_severity = 0;
20066 int deny_severity = 0;
20068 struct request_info *req;
20076 if { (eval echo configure:20077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20078 echo "$ac_t""-lwrap -lnsl" 1>&6
20080 LIBS="$save_LIBS -lnsl"
20082 echo "configure: failed program was:" >&5
20083 cat conftest.$ac_ext >&5
20086 echo "$ac_t""no" 1>&6
20094 echo "$ac_t""no" 1>&6
20100 if test $have_wrappers = yes ; then
20101 cat >> confdefs.h <<\EOF
20102 #define HAVE_TCPD 1
20106 elif test $ol_enable_wrappers = yes ; then
20107 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20109 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20114 if test $ol_enable_syslog != no ; then
20115 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20116 echo "configure:20117: checking for openlog" >&5
20117 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20118 echo $ac_n "(cached) $ac_c" 1>&6
20120 cat > conftest.$ac_ext <<EOF
20121 #line 20122 "configure"
20122 #include "confdefs.h"
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char openlog(); below. */
20125 #include <assert.h>
20126 /* Override any gcc2 internal prototype to avoid an error. */
20127 /* We use char because int might match the return type of a gcc2
20128 builtin and then its argument prototype would still apply. */
20134 /* The GNU C library defines this for functions which it implements
20135 to always fail with ENOSYS. Some functions are actually named
20136 something starting with __ and the normal name is an alias. */
20137 #if defined (__stub_openlog) || defined (__stub___openlog)
20145 if { (eval echo configure:20146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20147 eval "ac_cv_func_openlog=yes"
20149 echo "configure: failed program was:" >&5
20150 cat conftest.$ac_ext >&5
20152 eval "ac_cv_func_openlog=no"
20157 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20158 echo "$ac_t""yes" 1>&6
20161 echo "$ac_t""no" 1>&6
20164 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20165 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20167 ol_enable_syslog=$ac_cv_func_openlog
20172 if test $ol_enable_sql != no ; then
20173 for ac_hdr in sql.h sqlext.h
20175 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20177 echo "configure:20178: checking for $ac_hdr" >&5
20178 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20179 echo $ac_n "(cached) $ac_c" 1>&6
20181 cat > conftest.$ac_ext <<EOF
20182 #line 20183 "configure"
20183 #include "confdefs.h"
20186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20187 { (eval echo configure:20188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20189 if test -z "$ac_err"; then
20191 eval "ac_cv_header_$ac_safe=yes"
20194 echo "configure: failed program was:" >&5
20195 cat conftest.$ac_ext >&5
20197 eval "ac_cv_header_$ac_safe=no"
20201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20202 echo "$ac_t""yes" 1>&6
20203 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20204 cat >> confdefs.h <<EOF
20205 #define $ac_tr_hdr 1
20209 echo "$ac_t""no" 1>&6
20210 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20216 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20217 echo "configure:20218: checking for SQLDriverConnect in -liodbc" >&5
20218 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20220 echo $ac_n "(cached) $ac_c" 1>&6
20222 ac_save_LIBS="$LIBS"
20223 LIBS="-liodbc $LIBS"
20224 cat > conftest.$ac_ext <<EOF
20225 #line 20226 "configure"
20226 #include "confdefs.h"
20227 /* Override any gcc2 internal prototype to avoid an error. */
20228 /* We use char because int might match the return type of a gcc2
20229 builtin and then its argument prototype would still apply. */
20230 char SQLDriverConnect();
20236 if { (eval echo configure:20237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20238 eval "ac_cv_lib_$ac_lib_var=yes"
20240 echo "configure: failed program was:" >&5
20241 cat conftest.$ac_ext >&5
20243 eval "ac_cv_lib_$ac_lib_var=no"
20246 LIBS="$ac_save_LIBS"
20249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20250 echo "$ac_t""yes" 1>&6
20253 echo "$ac_t""no" 1>&6
20257 if test $have_iodbc = yes ; then
20258 ol_link_sql="-liodbc"
20260 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20261 echo "configure:20262: checking for SQLDriverConnect in -lodbc" >&5
20262 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20263 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20264 echo $ac_n "(cached) $ac_c" 1>&6
20266 ac_save_LIBS="$LIBS"
20267 LIBS="-lodbc $LIBS"
20268 cat > conftest.$ac_ext <<EOF
20269 #line 20270 "configure"
20270 #include "confdefs.h"
20271 /* Override any gcc2 internal prototype to avoid an error. */
20272 /* We use char because int might match the return type of a gcc2
20273 builtin and then its argument prototype would still apply. */
20274 char SQLDriverConnect();
20280 if { (eval echo configure:20281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20282 eval "ac_cv_lib_$ac_lib_var=yes"
20284 echo "configure: failed program was:" >&5
20285 cat conftest.$ac_ext >&5
20287 eval "ac_cv_lib_$ac_lib_var=no"
20290 LIBS="$ac_save_LIBS"
20293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20294 echo "$ac_t""yes" 1>&6
20297 echo "$ac_t""no" 1>&6
20301 if test $have_odbc = yes ; then
20302 ol_link_sql="-lodbc"
20306 if test $ol_link_sql != no ; then
20307 SLAPD_SQL_LIBS="$ol_link_sql"
20309 elif test $ol_enable_sql != auto ; then
20310 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20316 if test $ol_with_cyrus_sasl != no ; then
20317 for ac_hdr in sasl/sasl.h sasl.h
20319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20321 echo "configure:20322: checking for $ac_hdr" >&5
20322 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20323 echo $ac_n "(cached) $ac_c" 1>&6
20325 cat > conftest.$ac_ext <<EOF
20326 #line 20327 "configure"
20327 #include "confdefs.h"
20330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20331 { (eval echo configure:20332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20333 if test -z "$ac_err"; then
20335 eval "ac_cv_header_$ac_safe=yes"
20338 echo "configure: failed program was:" >&5
20339 cat conftest.$ac_ext >&5
20341 eval "ac_cv_header_$ac_safe=no"
20345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20346 echo "$ac_t""yes" 1>&6
20347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20348 cat >> confdefs.h <<EOF
20349 #define $ac_tr_hdr 1
20353 echo "$ac_t""no" 1>&6
20358 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20359 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20360 echo "configure:20361: checking for sasl_client_init in -lsasl2" >&5
20361 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20363 echo $ac_n "(cached) $ac_c" 1>&6
20365 ac_save_LIBS="$LIBS"
20366 LIBS="-lsasl2 $LIBS"
20367 cat > conftest.$ac_ext <<EOF
20368 #line 20369 "configure"
20369 #include "confdefs.h"
20370 /* Override any gcc2 internal prototype to avoid an error. */
20371 /* We use char because int might match the return type of a gcc2
20372 builtin and then its argument prototype would still apply. */
20373 char sasl_client_init();
20379 if { (eval echo configure:20380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20381 eval "ac_cv_lib_$ac_lib_var=yes"
20383 echo "configure: failed program was:" >&5
20384 cat conftest.$ac_ext >&5
20386 eval "ac_cv_lib_$ac_lib_var=no"
20389 LIBS="$ac_save_LIBS"
20392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20393 echo "$ac_t""yes" 1>&6
20394 ol_link_sasl="-lsasl2"
20396 echo "$ac_t""no" 1>&6
20397 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20398 echo "configure:20399: checking for sasl_client_init in -lsasl" >&5
20399 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20401 echo $ac_n "(cached) $ac_c" 1>&6
20403 ac_save_LIBS="$LIBS"
20404 LIBS="-lsasl $LIBS"
20405 cat > conftest.$ac_ext <<EOF
20406 #line 20407 "configure"
20407 #include "confdefs.h"
20408 /* Override any gcc2 internal prototype to avoid an error. */
20409 /* We use char because int might match the return type of a gcc2
20410 builtin and then its argument prototype would still apply. */
20411 char sasl_client_init();
20417 if { (eval echo configure:20418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20419 eval "ac_cv_lib_$ac_lib_var=yes"
20421 echo "configure: failed program was:" >&5
20422 cat conftest.$ac_ext >&5
20424 eval "ac_cv_lib_$ac_lib_var=no"
20427 LIBS="$ac_save_LIBS"
20430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20431 echo "$ac_t""yes" 1>&6
20432 ol_link_sasl="-lsasl"
20434 echo "$ac_t""no" 1>&6
20441 if test $ol_link_sasl = no ; then
20442 if test $ol_with_cyrus_sasl != auto ; then
20443 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20445 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20446 echo "configure: warning: SASL authentication not supported!" 1>&2
20447 if test $ol_link_tls = no ; then
20448 echo "configure: warning: Strong authentication not supported!" 1>&2
20452 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20453 echo "configure:20454: checking Cyrus SASL library version" >&5
20454 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20455 echo $ac_n "(cached) $ac_c" 1>&6
20458 cat > conftest.$ac_ext <<EOF
20459 #line 20460 "configure"
20460 #include "confdefs.h"
20462 #ifdef HAVE_SASL_SASL_H
20463 #include <sasl/sasl.h>
20468 /* Require 2.1.15+ */
20469 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20470 char *__sasl_compat = "2.2+ or better okay (we guess)";
20471 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20472 && SASL_VERSION_STEP >=15
20473 char *__sasl_compat = "2.1.15+ or better okay";
20477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20478 egrep "__sasl_compat" >/dev/null 2>&1; then
20480 ol_cv_sasl_compat=yes
20483 ol_cv_sasl_compat=no
20489 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20491 if test $ol_cv_sasl_compat = no ; then
20493 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20496 cat >> confdefs.h <<\EOF
20497 #define HAVE_CYRUS_SASL 1
20500 SASL_LIBS="$ol_link_sasl"
20501 if test $ol_enable_spasswd != no ; then
20502 ol_link_spasswd=yes
20505 ac_save_LIBS="$LIBS"
20506 LIBS="$LIBS $ol_link_sasl"
20507 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20508 echo "configure:20509: checking for sasl_version" >&5
20509 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20510 echo $ac_n "(cached) $ac_c" 1>&6
20512 cat > conftest.$ac_ext <<EOF
20513 #line 20514 "configure"
20514 #include "confdefs.h"
20515 /* System header to define __stub macros and hopefully few prototypes,
20516 which can conflict with char sasl_version(); below. */
20517 #include <assert.h>
20518 /* Override any gcc2 internal prototype to avoid an error. */
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20521 char sasl_version();
20526 /* The GNU C library defines this for functions which it implements
20527 to always fail with ENOSYS. Some functions are actually named
20528 something starting with __ and the normal name is an alias. */
20529 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20537 if { (eval echo configure:20538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20539 eval "ac_cv_func_sasl_version=yes"
20541 echo "configure: failed program was:" >&5
20542 cat conftest.$ac_ext >&5
20544 eval "ac_cv_func_sasl_version=no"
20549 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20550 echo "$ac_t""yes" 1>&6
20551 cat >> confdefs.h <<\EOF
20552 #define HAVE_SASL_VERSION 1
20556 echo "$ac_t""no" 1>&6
20559 LIBS="$ac_save_LIBS"
20563 echo "configure: warning: SASL authentication not supported!" 1>&2
20564 if test $ol_link_tls = no ; then
20565 echo "configure: warning: Strong authentication not supported!" 1>&2
20569 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20571 if test -r /dev/urandom ; then
20572 dev="/dev/urandom";
20573 elif test -r /idev/urandom ; then
20574 dev="/idev/urandom";
20575 elif test -r /dev/srandom ; then
20576 dev="/dev/srandom";
20577 elif test -r /dev/random ; then
20579 elif test -r /idev/random ; then
20580 dev="/idev/random";
20583 if test $dev != no ; then
20584 cat >> confdefs.h <<EOF
20585 #define URANDOM_DEVICE "$dev"
20592 if test $ol_with_fetch != no ; then
20594 LIBS="-lfetch -lcom_err $LIBS"
20595 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20596 echo "configure:20597: checking fetch(3) library" >&5
20597 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20598 echo $ac_n "(cached) $ac_c" 1>&6
20601 cat > conftest.$ac_ext <<EOF
20602 #line 20603 "configure"
20603 #include "confdefs.h"
20605 #include <sys/param.h>
20609 struct url *u = fetchParseURL("file:///");
20612 if { (eval echo configure:20613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20614 ol_cv_lib_fetch=yes
20616 echo "configure: failed program was:" >&5
20617 cat conftest.$ac_ext >&5
20624 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20626 if test $ol_cv_lib_fetch != no ; then
20627 ol_link_fetch="-lfetch -lcom_err"
20628 cat >> confdefs.h <<\EOF
20629 #define HAVE_FETCH 1
20635 if test $ol_cv_lib_fetch != no ; then
20636 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20637 ol_link_fetch=freebsd
20639 elif test $ol_with_fetch != auto ; then
20640 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20644 if test $ol_enable_crypt != no ; then
20646 LIBS="$TLS_LIBS $LIBS"
20648 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20649 echo "configure:20650: checking for crypt" >&5
20650 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20651 echo $ac_n "(cached) $ac_c" 1>&6
20653 cat > conftest.$ac_ext <<EOF
20654 #line 20655 "configure"
20655 #include "confdefs.h"
20656 /* System header to define __stub macros and hopefully few prototypes,
20657 which can conflict with char crypt(); below. */
20658 #include <assert.h>
20659 /* Override any gcc2 internal prototype to avoid an error. */
20660 /* We use char because int might match the return type of a gcc2
20661 builtin and then its argument prototype would still apply. */
20667 /* The GNU C library defines this for functions which it implements
20668 to always fail with ENOSYS. Some functions are actually named
20669 something starting with __ and the normal name is an alias. */
20670 #if defined (__stub_crypt) || defined (__stub___crypt)
20678 if { (eval echo configure:20679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20680 eval "ac_cv_func_crypt=yes"
20682 echo "configure: failed program was:" >&5
20683 cat conftest.$ac_ext >&5
20685 eval "ac_cv_func_crypt=no"
20690 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20691 echo "$ac_t""yes" 1>&6
20694 echo "$ac_t""no" 1>&6
20697 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20698 echo "configure:20699: checking for crypt in -lcrypt" >&5
20699 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20700 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20701 echo $ac_n "(cached) $ac_c" 1>&6
20703 ac_save_LIBS="$LIBS"
20704 LIBS="-lcrypt $LIBS"
20705 cat > conftest.$ac_ext <<EOF
20706 #line 20707 "configure"
20707 #include "confdefs.h"
20708 /* Override any gcc2 internal prototype to avoid an error. */
20709 /* We use char because int might match the return type of a gcc2
20710 builtin and then its argument prototype would still apply. */
20717 if { (eval echo configure:20718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20719 eval "ac_cv_lib_$ac_lib_var=yes"
20721 echo "configure: failed program was:" >&5
20722 cat conftest.$ac_ext >&5
20724 eval "ac_cv_lib_$ac_lib_var=no"
20727 LIBS="$ac_save_LIBS"
20730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20731 echo "$ac_t""yes" 1>&6
20732 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20735 echo "$ac_t""no" 1>&6
20744 if test $have_crypt = yes ; then
20745 cat >> confdefs.h <<\EOF
20746 #define HAVE_CRYPT 1
20750 echo "configure: warning: could not find crypt" 1>&2
20751 if test $ol_enable_crypt = yes ; then
20752 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
20755 echo "configure: warning: disabling crypt support" 1>&2
20760 if test $ol_enable_proctitle != no ; then
20761 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20762 echo "configure:20763: checking for setproctitle" >&5
20763 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20764 echo $ac_n "(cached) $ac_c" 1>&6
20766 cat > conftest.$ac_ext <<EOF
20767 #line 20768 "configure"
20768 #include "confdefs.h"
20769 /* System header to define __stub macros and hopefully few prototypes,
20770 which can conflict with char setproctitle(); below. */
20771 #include <assert.h>
20772 /* Override any gcc2 internal prototype to avoid an error. */
20773 /* We use char because int might match the return type of a gcc2
20774 builtin and then its argument prototype would still apply. */
20775 char setproctitle();
20780 /* The GNU C library defines this for functions which it implements
20781 to always fail with ENOSYS. Some functions are actually named
20782 something starting with __ and the normal name is an alias. */
20783 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20791 if { (eval echo configure:20792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20793 eval "ac_cv_func_setproctitle=yes"
20795 echo "configure: failed program was:" >&5
20796 cat conftest.$ac_ext >&5
20798 eval "ac_cv_func_setproctitle=no"
20803 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20804 echo "$ac_t""yes" 1>&6
20805 have_setproctitle=yes
20807 echo "$ac_t""no" 1>&6
20809 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20810 echo "configure:20811: checking for setproctitle in -lutil" >&5
20811 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20813 echo $ac_n "(cached) $ac_c" 1>&6
20815 ac_save_LIBS="$LIBS"
20816 LIBS="-lutil $LIBS"
20817 cat > conftest.$ac_ext <<EOF
20818 #line 20819 "configure"
20819 #include "confdefs.h"
20820 /* Override any gcc2 internal prototype to avoid an error. */
20821 /* We use char because int might match the return type of a gcc2
20822 builtin and then its argument prototype would still apply. */
20823 char setproctitle();
20829 if { (eval echo configure:20830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20831 eval "ac_cv_lib_$ac_lib_var=yes"
20833 echo "configure: failed program was:" >&5
20834 cat conftest.$ac_ext >&5
20836 eval "ac_cv_lib_$ac_lib_var=no"
20839 LIBS="$ac_save_LIBS"
20842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20843 echo "$ac_t""yes" 1>&6
20844 have_setproctitle=yes
20845 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20847 echo "$ac_t""no" 1>&6
20848 have_setproctitle=no
20849 LIBOBJS="$LIBOBJS setproctitle.o"
20850 LIBSRCS="$LIBSRCS setproctitle.c"
20856 if test $have_setproctitle = yes ; then
20857 cat >> confdefs.h <<\EOF
20858 #define HAVE_SETPROCTITLE 1
20864 if test $ol_enable_slp != no ; then
20865 for ac_hdr in slp.h
20867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20869 echo "configure:20870: checking for $ac_hdr" >&5
20870 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20871 echo $ac_n "(cached) $ac_c" 1>&6
20873 cat > conftest.$ac_ext <<EOF
20874 #line 20875 "configure"
20875 #include "confdefs.h"
20878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20879 { (eval echo configure:20880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20881 if test -z "$ac_err"; then
20883 eval "ac_cv_header_$ac_safe=yes"
20886 echo "configure: failed program was:" >&5
20887 cat conftest.$ac_ext >&5
20889 eval "ac_cv_header_$ac_safe=no"
20893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20894 echo "$ac_t""yes" 1>&6
20895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20896 cat >> confdefs.h <<EOF
20897 #define $ac_tr_hdr 1
20901 echo "$ac_t""no" 1>&6
20906 if test $ac_cv_header_slp_h = yes ; then
20907 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20908 echo "configure:20909: checking for SLPOpen in -lslp" >&5
20909 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20910 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20911 echo $ac_n "(cached) $ac_c" 1>&6
20913 ac_save_LIBS="$LIBS"
20915 cat > conftest.$ac_ext <<EOF
20916 #line 20917 "configure"
20917 #include "confdefs.h"
20918 /* Override any gcc2 internal prototype to avoid an error. */
20919 /* We use char because int might match the return type of a gcc2
20920 builtin and then its argument prototype would still apply. */
20927 if { (eval echo configure:20928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20929 eval "ac_cv_lib_$ac_lib_var=yes"
20931 echo "configure: failed program was:" >&5
20932 cat conftest.$ac_ext >&5
20934 eval "ac_cv_lib_$ac_lib_var=no"
20937 LIBS="$ac_save_LIBS"
20940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20941 echo "$ac_t""yes" 1>&6
20944 echo "$ac_t""no" 1>&6
20948 if test $have_slp = yes ; then
20949 cat >> confdefs.h <<\EOF
20953 SLAPD_SLP_LIBS=-lslp
20956 elif test $ol_enable_slp = yes ; then
20957 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20962 echo $ac_n "checking long long""... $ac_c" 1>&6
20963 echo "configure:20964: checking long long" >&5
20964 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
20965 echo $ac_n "(cached) $ac_c" 1>&6
20968 cat > conftest.$ac_ext <<EOF
20969 #line 20970 "configure"
20970 #include "confdefs.h"
20976 if { (eval echo configure:20977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20978 ol_cv_type_long_long=yes
20980 echo "configure: failed program was:" >&5
20981 cat conftest.$ac_ext >&5
20983 ol_cv_type_long_long=no
20988 echo "$ac_t""$ol_cv_type_long_long" 1>&6
20989 if test $ol_cv_type_long_long = yes; then
20990 cat >> confdefs.h <<\EOF
20991 #define HAVE_LONG_LONG 1
20996 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20997 echo "configure:20998: checking for ANSI C header files" >&5
20998 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20999 echo $ac_n "(cached) $ac_c" 1>&6
21001 cat > conftest.$ac_ext <<EOF
21002 #line 21003 "configure"
21003 #include "confdefs.h"
21004 #include <stdlib.h>
21005 #include <stdarg.h>
21006 #include <string.h>
21009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21010 { (eval echo configure:21011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21012 if test -z "$ac_err"; then
21014 ac_cv_header_stdc=yes
21017 echo "configure: failed program was:" >&5
21018 cat conftest.$ac_ext >&5
21020 ac_cv_header_stdc=no
21024 if test $ac_cv_header_stdc = yes; then
21025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21026 cat > conftest.$ac_ext <<EOF
21027 #line 21028 "configure"
21028 #include "confdefs.h"
21029 #include <string.h>
21031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21032 egrep "memchr" >/dev/null 2>&1; then
21036 ac_cv_header_stdc=no
21042 if test $ac_cv_header_stdc = yes; then
21043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21044 cat > conftest.$ac_ext <<EOF
21045 #line 21046 "configure"
21046 #include "confdefs.h"
21047 #include <stdlib.h>
21049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21050 egrep "free" >/dev/null 2>&1; then
21054 ac_cv_header_stdc=no
21060 if test $ac_cv_header_stdc = yes; then
21061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21062 if test "$cross_compiling" = yes; then
21065 cat > conftest.$ac_ext <<EOF
21066 #line 21067 "configure"
21067 #include "confdefs.h"
21069 #if ((' ' & 0x0FF) == 0x020)
21070 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21071 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21073 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21074 || ('j' <= (c) && (c) <= 'r') \
21075 || ('s' <= (c) && (c) <= 'z'))
21076 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21079 int main () { int i; for (i = 0; i < 256; i++)
21080 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21084 if { (eval echo configure:21085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21088 echo "configure: failed program was:" >&5
21089 cat conftest.$ac_ext >&5
21091 ac_cv_header_stdc=no
21099 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21100 if test $ac_cv_header_stdc = yes; then
21101 cat >> confdefs.h <<\EOF
21102 #define STDC_HEADERS 1
21107 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21108 echo "configure:21109: checking for mode_t" >&5
21109 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21110 echo $ac_n "(cached) $ac_c" 1>&6
21112 cat > conftest.$ac_ext <<EOF
21113 #line 21114 "configure"
21114 #include "confdefs.h"
21115 #include <sys/types.h>
21117 #include <stdlib.h>
21118 #include <stddef.h>
21122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21123 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21125 eval "ac_cv_type_mode_t=yes"
21128 eval "ac_cv_type_mode_t=no"
21133 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21134 echo "$ac_t""yes" 1>&6
21136 echo "$ac_t""no" 1>&6
21137 cat >> confdefs.h <<EOF
21143 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21144 echo "configure:21145: checking for off_t" >&5
21145 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21146 echo $ac_n "(cached) $ac_c" 1>&6
21148 cat > conftest.$ac_ext <<EOF
21149 #line 21150 "configure"
21150 #include "confdefs.h"
21151 #include <sys/types.h>
21153 #include <stdlib.h>
21154 #include <stddef.h>
21158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21159 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21161 eval "ac_cv_type_off_t=yes"
21164 eval "ac_cv_type_off_t=no"
21169 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21170 echo "$ac_t""yes" 1>&6
21172 echo "$ac_t""no" 1>&6
21173 cat >> confdefs.h <<EOF
21179 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21180 echo "configure:21181: checking for pid_t" >&5
21181 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21182 echo $ac_n "(cached) $ac_c" 1>&6
21184 cat > conftest.$ac_ext <<EOF
21185 #line 21186 "configure"
21186 #include "confdefs.h"
21187 #include <sys/types.h>
21189 #include <stdlib.h>
21190 #include <stddef.h>
21194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21195 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21197 eval "ac_cv_type_pid_t=yes"
21200 eval "ac_cv_type_pid_t=no"
21205 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21206 echo "$ac_t""yes" 1>&6
21208 echo "$ac_t""no" 1>&6
21209 cat >> confdefs.h <<EOF
21215 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21216 echo "configure:21217: checking for ptrdiff_t" >&5
21217 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21218 echo $ac_n "(cached) $ac_c" 1>&6
21220 cat > conftest.$ac_ext <<EOF
21221 #line 21222 "configure"
21222 #include "confdefs.h"
21223 #include <stddef.h>
21228 if { (eval echo configure:21229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21230 am_cv_type_ptrdiff_t=yes
21232 echo "configure: failed program was:" >&5
21233 cat conftest.$ac_ext >&5
21235 am_cv_type_ptrdiff_t=no
21240 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21241 if test $am_cv_type_ptrdiff_t = yes; then
21242 cat >> confdefs.h <<\EOF
21243 #define HAVE_PTRDIFF_T 1
21248 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21249 echo "configure:21250: checking return type of signal handlers" >&5
21250 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21251 echo $ac_n "(cached) $ac_c" 1>&6
21253 cat > conftest.$ac_ext <<EOF
21254 #line 21255 "configure"
21255 #include "confdefs.h"
21256 #include <sys/types.h>
21257 #include <signal.h>
21262 extern "C" void (*signal (int, void (*)(int)))(int);
21264 void (*signal ()) ();
21271 if { (eval echo configure:21272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21273 ac_cv_type_signal=void
21275 echo "configure: failed program was:" >&5
21276 cat conftest.$ac_ext >&5
21278 ac_cv_type_signal=int
21283 echo "$ac_t""$ac_cv_type_signal" 1>&6
21284 cat >> confdefs.h <<EOF
21285 #define RETSIGTYPE $ac_cv_type_signal
21289 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21290 echo "configure:21291: checking for size_t" >&5
21291 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21292 echo $ac_n "(cached) $ac_c" 1>&6
21294 cat > conftest.$ac_ext <<EOF
21295 #line 21296 "configure"
21296 #include "confdefs.h"
21297 #include <sys/types.h>
21299 #include <stdlib.h>
21300 #include <stddef.h>
21304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21305 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21307 eval "ac_cv_type_size_t=yes"
21310 eval "ac_cv_type_size_t=no"
21315 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21316 echo "$ac_t""yes" 1>&6
21318 echo "$ac_t""no" 1>&6
21319 cat >> confdefs.h <<EOF
21320 #define size_t unsigned
21326 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21327 echo "configure:21328: checking for ssize_t" >&5
21328 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21329 echo $ac_n "(cached) $ac_c" 1>&6
21331 cat > conftest.$ac_ext <<EOF
21332 #line 21333 "configure"
21333 #include "confdefs.h"
21334 #include <sys/types.h>
21336 #include <stdlib.h>
21337 #include <stddef.h>
21341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21342 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21344 eval "ac_cv_type_ssize_t=yes"
21347 eval "ac_cv_type_ssize_t=no"
21352 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21353 echo "$ac_t""yes" 1>&6
21355 echo "$ac_t""no" 1>&6
21356 cat >> confdefs.h <<EOF
21357 #define ssize_t signed int
21362 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21363 echo "configure:21364: checking for caddr_t" >&5
21364 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21365 echo $ac_n "(cached) $ac_c" 1>&6
21367 cat > conftest.$ac_ext <<EOF
21368 #line 21369 "configure"
21369 #include "confdefs.h"
21370 #include <sys/types.h>
21372 #include <stdlib.h>
21373 #include <stddef.h>
21377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21378 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21380 eval "ac_cv_type_caddr_t=yes"
21383 eval "ac_cv_type_caddr_t=no"
21388 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21389 echo "$ac_t""yes" 1>&6
21391 echo "$ac_t""no" 1>&6
21392 cat >> confdefs.h <<EOF
21393 #define caddr_t char *
21399 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21400 echo "configure:21401: checking for socklen_t" >&5
21401 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21402 echo $ac_n "(cached) $ac_c" 1>&6
21404 cat > conftest.$ac_ext <<EOF
21405 #line 21406 "configure"
21406 #include "confdefs.h"
21408 #ifdef HAVE_SYS_TYPES_H
21409 #include <sys/types.h>
21411 #ifdef HAVE_SYS_SOCKET_H
21412 #include <sys/socket.h>
21419 if { (eval echo configure:21420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21421 ol_cv_type_socklen_t=yes
21423 echo "configure: failed program was:" >&5
21424 cat conftest.$ac_ext >&5
21426 ol_cv_type_socklen_t=no
21431 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21432 if test $ol_cv_type_socklen_t = no; then
21433 cat >> confdefs.h <<\EOF
21434 #define socklen_t int
21439 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21440 echo "configure:21441: checking for member st_blksize in aggregate type struct stat" >&5
21441 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21442 echo $ac_n "(cached) $ac_c" 1>&6
21444 cat > conftest.$ac_ext <<EOF
21445 #line 21446 "configure"
21446 #include "confdefs.h"
21447 #include <sys/types.h>
21448 #include <sys/stat.h>
21450 struct stat foo; foo.st_blksize;
21453 if { (eval echo configure:21454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21455 ac_cv_c_struct_member_st_blksize=yes
21457 echo "configure: failed program was:" >&5
21458 cat conftest.$ac_ext >&5
21460 ac_cv_c_struct_member_st_blksize=no
21465 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21466 st_blksize="$ac_cv_c_struct_member_st_blksize"
21467 if test $ac_cv_c_struct_member_st_blksize = yes; then
21468 cat >> confdefs.h <<\EOF
21469 #define HAVE_ST_BLKSIZE 1
21474 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21475 echo "configure:21476: checking whether time.h and sys/time.h may both be included" >&5
21476 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21477 echo $ac_n "(cached) $ac_c" 1>&6
21479 cat > conftest.$ac_ext <<EOF
21480 #line 21481 "configure"
21481 #include "confdefs.h"
21482 #include <sys/types.h>
21483 #include <sys/time.h>
21489 if { (eval echo configure:21490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21491 ac_cv_header_time=yes
21493 echo "configure: failed program was:" >&5
21494 cat conftest.$ac_ext >&5
21496 ac_cv_header_time=no
21501 echo "$ac_t""$ac_cv_header_time" 1>&6
21502 if test $ac_cv_header_time = yes; then
21503 cat >> confdefs.h <<\EOF
21504 #define TIME_WITH_SYS_TIME 1
21509 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21510 echo "configure:21511: checking whether struct tm is in sys/time.h or time.h" >&5
21511 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21512 echo $ac_n "(cached) $ac_c" 1>&6
21514 cat > conftest.$ac_ext <<EOF
21515 #line 21516 "configure"
21516 #include "confdefs.h"
21517 #include <sys/types.h>
21520 struct tm *tp; tp->tm_sec;
21523 if { (eval echo configure:21524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21525 ac_cv_struct_tm=time.h
21527 echo "configure: failed program was:" >&5
21528 cat conftest.$ac_ext >&5
21530 ac_cv_struct_tm=sys/time.h
21535 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21536 if test $ac_cv_struct_tm = sys/time.h; then
21537 cat >> confdefs.h <<\EOF
21538 #define TM_IN_SYS_TIME 1
21543 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21544 echo "configure:21545: checking for uid_t in sys/types.h" >&5
21545 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21546 echo $ac_n "(cached) $ac_c" 1>&6
21548 cat > conftest.$ac_ext <<EOF
21549 #line 21550 "configure"
21550 #include "confdefs.h"
21551 #include <sys/types.h>
21553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21554 egrep "uid_t" >/dev/null 2>&1; then
21556 ac_cv_type_uid_t=yes
21559 ac_cv_type_uid_t=no
21565 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21566 if test $ac_cv_type_uid_t = no; then
21567 cat >> confdefs.h <<\EOF
21571 cat >> confdefs.h <<\EOF
21577 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21578 echo "configure:21579: checking for sig_atomic_t" >&5
21579 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21580 echo $ac_n "(cached) $ac_c" 1>&6
21582 cat > conftest.$ac_ext <<EOF
21583 #line 21584 "configure"
21584 #include "confdefs.h"
21585 #include <signal.h>
21587 sig_atomic_t atomic;
21590 if { (eval echo configure:21591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21592 ol_cv_type_sig_atomic_t=yes
21594 echo "configure: failed program was:" >&5
21595 cat conftest.$ac_ext >&5
21597 ol_cv_type_sig_atomic_t=no
21602 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21603 if test $ol_cv_type_sig_atomic_t = no; then
21604 cat >> confdefs.h <<\EOF
21605 #define sig_atomic_t int
21612 # test for pw_gecos in struct passwd
21613 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21614 echo "configure:21615: checking struct passwd for pw_gecos" >&5
21615 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21616 echo $ac_n "(cached) $ac_c" 1>&6
21619 cat > conftest.$ac_ext <<EOF
21620 #line 21621 "configure"
21621 #include "confdefs.h"
21626 pwd.pw_gecos = pwd.pw_name;
21630 if { (eval echo configure:21631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21632 ol_cv_struct_passwd_pw_gecos=yes
21634 echo "configure: failed program was:" >&5
21635 cat conftest.$ac_ext >&5
21637 ol_cv_struct_passwd_pw_gecos=no
21642 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21643 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21644 cat >> confdefs.h <<\EOF
21645 #define HAVE_PW_GECOS 1
21650 # test for pw_passwd in struct passwd
21651 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21652 echo "configure:21653: checking struct passwd for pw_passwd" >&5
21653 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21654 echo $ac_n "(cached) $ac_c" 1>&6
21657 cat > conftest.$ac_ext <<EOF
21658 #line 21659 "configure"
21659 #include "confdefs.h"
21664 pwd.pw_passwd = pwd.pw_name;
21668 if { (eval echo configure:21669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21670 ol_cv_struct_passwd_pw_passwd=yes
21672 echo "configure: failed program was:" >&5
21673 cat conftest.$ac_ext >&5
21675 ol_cv_struct_passwd_pw_passwd=no
21680 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21681 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21682 cat >> confdefs.h <<\EOF
21683 #define HAVE_PW_PASSWD 1
21689 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21690 echo "configure:21691: checking if toupper() requires islower()" >&5
21691 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21692 echo $ac_n "(cached) $ac_c" 1>&6
21695 if test "$cross_compiling" = yes; then
21696 ol_cv_c_upper_lower=safe
21698 cat > conftest.$ac_ext <<EOF
21699 #line 21700 "configure"
21700 #include "confdefs.h"
21705 if ('C' == toupper('C'))
21711 if { (eval echo configure:21712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21713 ol_cv_c_upper_lower=no
21715 echo "configure: failed program was:" >&5
21716 cat conftest.$ac_ext >&5
21718 ol_cv_c_upper_lower=yes
21725 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21726 if test $ol_cv_c_upper_lower != no ; then
21727 cat >> confdefs.h <<\EOF
21728 #define C_UPPER_LOWER 1
21733 echo $ac_n "checking for working const""... $ac_c" 1>&6
21734 echo "configure:21735: checking for working const" >&5
21735 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21736 echo $ac_n "(cached) $ac_c" 1>&6
21738 cat > conftest.$ac_ext <<EOF
21739 #line 21740 "configure"
21740 #include "confdefs.h"
21744 /* Ultrix mips cc rejects this. */
21745 typedef int charset[2]; const charset x;
21746 /* SunOS 4.1.1 cc rejects this. */
21747 char const *const *ccp;
21749 /* NEC SVR4.0.2 mips cc rejects this. */
21750 struct point {int x, y;};
21751 static struct point const zero = {0,0};
21752 /* AIX XL C 1.02.0.0 rejects this.
21753 It does not let you subtract one const X* pointer from another in an arm
21754 of an if-expression whose if-part is not a constant expression */
21755 const char *g = "string";
21756 ccp = &g + (g ? g-g : 0);
21757 /* HPUX 7.0 cc rejects these. */
21760 ccp = (char const *const *) p;
21761 { /* SCO 3.2v4 cc rejects this. */
21763 char const *s = 0 ? (char *) 0 : (char const *) 0;
21767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21768 int x[] = {25, 17};
21769 const int *foo = &x[0];
21772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21773 typedef const int *iptr;
21777 { /* AIX XL C 1.02.0.0 rejects this saying
21778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21779 struct s { int j; const int *ap[3]; };
21780 struct s *b; b->j = 5;
21782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21783 const int foo = 10;
21788 if { (eval echo configure:21789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21792 echo "configure: failed program was:" >&5
21793 cat conftest.$ac_ext >&5
21800 echo "$ac_t""$ac_cv_c_const" 1>&6
21801 if test $ac_cv_c_const = no; then
21802 cat >> confdefs.h <<\EOF
21808 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21809 echo "configure:21810: checking if compiler understands volatile" >&5
21810 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21811 echo $ac_n "(cached) $ac_c" 1>&6
21813 cat > conftest.$ac_ext <<EOF
21814 #line 21815 "configure"
21815 #include "confdefs.h"
21818 volatile int a; int * volatile b = x ? &y : &z;
21819 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21823 if { (eval echo configure:21824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21825 ol_cv_c_volatile=yes
21827 echo "configure: failed program was:" >&5
21828 cat conftest.$ac_ext >&5
21830 ol_cv_c_volatile=no
21835 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21836 if test $ol_cv_c_volatile = yes; then
21839 cat >> confdefs.h <<\EOF
21846 if test $cross_compiling = yes ; then
21847 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
21848 cat >> confdefs.h <<\EOF
21849 #define CROSS_COMPILING 1
21853 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21854 echo "configure:21855: checking whether byte ordering is bigendian" >&5
21855 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21856 echo $ac_n "(cached) $ac_c" 1>&6
21858 ac_cv_c_bigendian=unknown
21859 # See if sys/param.h defines the BYTE_ORDER macro.
21860 cat > conftest.$ac_ext <<EOF
21861 #line 21862 "configure"
21862 #include "confdefs.h"
21863 #include <sys/types.h>
21864 #include <sys/param.h>
21867 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21868 bogus endian macros
21872 if { (eval echo configure:21873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21874 # It does; now see whether it defined to BIG_ENDIAN or not.
21875 cat > conftest.$ac_ext <<EOF
21876 #line 21877 "configure"
21877 #include "confdefs.h"
21878 #include <sys/types.h>
21879 #include <sys/param.h>
21882 #if BYTE_ORDER != BIG_ENDIAN
21887 if { (eval echo configure:21888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21889 ac_cv_c_bigendian=yes
21891 echo "configure: failed program was:" >&5
21892 cat conftest.$ac_ext >&5
21894 ac_cv_c_bigendian=no
21898 echo "configure: failed program was:" >&5
21899 cat conftest.$ac_ext >&5
21902 if test $ac_cv_c_bigendian = unknown; then
21903 if test "$cross_compiling" = yes; then
21904 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21906 cat > conftest.$ac_ext <<EOF
21907 #line 21908 "configure"
21908 #include "confdefs.h"
21910 /* Are we little or big endian? From Harbison&Steele. */
21914 char c[sizeof (long)];
21917 exit (u.c[sizeof (long) - 1] == 1);
21920 if { (eval echo configure:21921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21922 ac_cv_c_bigendian=no
21924 echo "configure: failed program was:" >&5
21925 cat conftest.$ac_ext >&5
21927 ac_cv_c_bigendian=yes
21935 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21936 if test $ac_cv_c_bigendian = yes; then
21937 cat >> confdefs.h <<\EOF
21938 #define WORDS_BIGENDIAN 1
21945 echo $ac_n "checking size of short""... $ac_c" 1>&6
21946 echo "configure:21947: checking size of short" >&5
21947 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21948 echo $ac_n "(cached) $ac_c" 1>&6
21950 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21951 cat > conftest.$ac_ext <<EOF
21952 #line 21953 "configure"
21953 #include "confdefs.h"
21954 #include "confdefs.h"
21955 #include <stdlib.h>
21956 #include <sys/types.h>
21960 switch (0) case 0: case (sizeof (short) == $ac_size):;
21963 if { (eval echo configure:21964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21965 ac_cv_sizeof_short=$ac_size
21967 echo "configure: failed program was:" >&5
21968 cat conftest.$ac_ext >&5
21971 if test x$ac_cv_sizeof_short != x ; then break; fi
21976 if test x$ac_cv_sizeof_short = x ; then
21977 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21979 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21980 cat >> confdefs.h <<EOF
21981 #define SIZEOF_SHORT $ac_cv_sizeof_short
21985 echo $ac_n "checking size of int""... $ac_c" 1>&6
21986 echo "configure:21987: checking size of int" >&5
21987 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21988 echo $ac_n "(cached) $ac_c" 1>&6
21990 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21991 cat > conftest.$ac_ext <<EOF
21992 #line 21993 "configure"
21993 #include "confdefs.h"
21994 #include "confdefs.h"
21995 #include <stdlib.h>
21996 #include <sys/types.h>
22000 switch (0) case 0: case (sizeof (int) == $ac_size):;
22003 if { (eval echo configure:22004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22005 ac_cv_sizeof_int=$ac_size
22007 echo "configure: failed program was:" >&5
22008 cat conftest.$ac_ext >&5
22011 if test x$ac_cv_sizeof_int != x ; then break; fi
22016 if test x$ac_cv_sizeof_int = x ; then
22017 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22019 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22020 cat >> confdefs.h <<EOF
22021 #define SIZEOF_INT $ac_cv_sizeof_int
22025 echo $ac_n "checking size of long""... $ac_c" 1>&6
22026 echo "configure:22027: checking size of long" >&5
22027 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22028 echo $ac_n "(cached) $ac_c" 1>&6
22030 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22031 cat > conftest.$ac_ext <<EOF
22032 #line 22033 "configure"
22033 #include "confdefs.h"
22034 #include "confdefs.h"
22035 #include <stdlib.h>
22036 #include <sys/types.h>
22040 switch (0) case 0: case (sizeof (long) == $ac_size):;
22043 if { (eval echo configure:22044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22045 ac_cv_sizeof_long=$ac_size
22047 echo "configure: failed program was:" >&5
22048 cat conftest.$ac_ext >&5
22051 if test x$ac_cv_sizeof_long != x ; then break; fi
22056 if test x$ac_cv_sizeof_long = x ; then
22057 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22059 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22060 cat >> confdefs.h <<EOF
22061 #define SIZEOF_LONG $ac_cv_sizeof_long
22065 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22066 echo "configure:22067: checking size of wchar_t" >&5
22067 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22068 echo $ac_n "(cached) $ac_c" 1>&6
22070 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22071 cat > conftest.$ac_ext <<EOF
22072 #line 22073 "configure"
22073 #include "confdefs.h"
22074 #include "confdefs.h"
22075 #include <stdlib.h>
22076 #include <sys/types.h>
22080 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22083 if { (eval echo configure:22084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22085 ac_cv_sizeof_wchar_t=$ac_size
22087 echo "configure: failed program was:" >&5
22088 cat conftest.$ac_ext >&5
22091 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22096 if test x$ac_cv_sizeof_wchar_t = x ; then
22097 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22099 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22100 cat >> confdefs.h <<EOF
22101 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22106 if test "$ac_cv_sizeof_int" -lt 4 ; then
22107 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22109 cat >> confdefs.h <<\EOF
22110 #define LBER_INT_T long
22114 cat >> confdefs.h <<\EOF
22115 #define LBER_INT_T int
22120 cat >> confdefs.h <<\EOF
22121 #define LBER_LEN_T long
22124 cat >> confdefs.h <<\EOF
22125 #define LBER_SOCKET_T int
22128 cat >> confdefs.h <<\EOF
22129 #define LBER_TAG_T long
22133 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22134 echo "configure:22135: checking for 8-bit clean memcmp" >&5
22135 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22136 echo $ac_n "(cached) $ac_c" 1>&6
22138 if test "$cross_compiling" = yes; then
22139 ac_cv_func_memcmp_clean=no
22141 cat > conftest.$ac_ext <<EOF
22142 #line 22143 "configure"
22143 #include "confdefs.h"
22147 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22148 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22152 if { (eval echo configure:22153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22154 ac_cv_func_memcmp_clean=yes
22156 echo "configure: failed program was:" >&5
22157 cat conftest.$ac_ext >&5
22159 ac_cv_func_memcmp_clean=no
22166 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22167 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22169 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22170 echo "configure:22171: checking for strftime" >&5
22171 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22172 echo $ac_n "(cached) $ac_c" 1>&6
22174 cat > conftest.$ac_ext <<EOF
22175 #line 22176 "configure"
22176 #include "confdefs.h"
22177 /* System header to define __stub macros and hopefully few prototypes,
22178 which can conflict with char strftime(); below. */
22179 #include <assert.h>
22180 /* Override any gcc2 internal prototype to avoid an error. */
22181 /* We use char because int might match the return type of a gcc2
22182 builtin and then its argument prototype would still apply. */
22188 /* The GNU C library defines this for functions which it implements
22189 to always fail with ENOSYS. Some functions are actually named
22190 something starting with __ and the normal name is an alias. */
22191 #if defined (__stub_strftime) || defined (__stub___strftime)
22199 if { (eval echo configure:22200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22201 eval "ac_cv_func_strftime=yes"
22203 echo "configure: failed program was:" >&5
22204 cat conftest.$ac_ext >&5
22206 eval "ac_cv_func_strftime=no"
22211 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22212 echo "$ac_t""yes" 1>&6
22213 cat >> confdefs.h <<\EOF
22214 #define HAVE_STRFTIME 1
22218 echo "$ac_t""no" 1>&6
22219 # strftime is in -lintl on SCO UNIX.
22220 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22221 echo "configure:22222: checking for strftime in -lintl" >&5
22222 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22224 echo $ac_n "(cached) $ac_c" 1>&6
22226 ac_save_LIBS="$LIBS"
22227 LIBS="-lintl $LIBS"
22228 cat > conftest.$ac_ext <<EOF
22229 #line 22230 "configure"
22230 #include "confdefs.h"
22231 /* Override any gcc2 internal prototype to avoid an error. */
22232 /* We use char because int might match the return type of a gcc2
22233 builtin and then its argument prototype would still apply. */
22240 if { (eval echo configure:22241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22242 eval "ac_cv_lib_$ac_lib_var=yes"
22244 echo "configure: failed program was:" >&5
22245 cat conftest.$ac_ext >&5
22247 eval "ac_cv_lib_$ac_lib_var=no"
22250 LIBS="$ac_save_LIBS"
22253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22254 echo "$ac_t""yes" 1>&6
22255 cat >> confdefs.h <<\EOF
22256 #define HAVE_STRFTIME 1
22259 LIBS="-lintl $LIBS"
22261 echo "$ac_t""no" 1>&6
22267 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22268 echo "configure:22269: checking for inet_aton()" >&5
22269 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22270 echo $ac_n "(cached) $ac_c" 1>&6
22272 cat > conftest.$ac_ext <<EOF
22273 #line 22274 "configure"
22274 #include "confdefs.h"
22276 #ifdef HAVE_SYS_TYPES_H
22277 # include <sys/types.h>
22279 #ifdef HAVE_SYS_SOCKET_H
22280 # include <sys/socket.h>
22281 # ifdef HAVE_SYS_SELECT_H
22282 # include <sys/select.h>
22284 # include <netinet/in.h>
22285 # ifdef HAVE_ARPA_INET_H
22286 # include <arpa/inet.h>
22292 int rc = inet_aton( "255.255.255.255", &in );
22295 if { (eval echo configure:22296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22297 ol_cv_func_inet_aton=yes
22299 echo "configure: failed program was:" >&5
22300 cat conftest.$ac_ext >&5
22302 ol_cv_func_inet_aton=no
22307 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22308 if test $ol_cv_func_inet_aton != no; then
22309 cat >> confdefs.h <<\EOF
22310 #define HAVE_INET_ATON 1
22316 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22317 echo "configure:22318: checking for _spawnlp" >&5
22318 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22319 echo $ac_n "(cached) $ac_c" 1>&6
22321 cat > conftest.$ac_ext <<EOF
22322 #line 22323 "configure"
22323 #include "confdefs.h"
22324 /* System header to define __stub macros and hopefully few prototypes,
22325 which can conflict with char _spawnlp(); below. */
22326 #include <assert.h>
22327 /* Override any gcc2 internal prototype to avoid an error. */
22328 /* We use char because int might match the return type of a gcc2
22329 builtin and then its argument prototype would still apply. */
22335 /* The GNU C library defines this for functions which it implements
22336 to always fail with ENOSYS. Some functions are actually named
22337 something starting with __ and the normal name is an alias. */
22338 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22346 if { (eval echo configure:22347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22348 eval "ac_cv_func__spawnlp=yes"
22350 echo "configure: failed program was:" >&5
22351 cat conftest.$ac_ext >&5
22353 eval "ac_cv_func__spawnlp=no"
22358 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22359 echo "$ac_t""yes" 1>&6
22360 cat >> confdefs.h <<\EOF
22361 #define HAVE_SPAWNLP 1
22365 echo "$ac_t""no" 1>&6
22369 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22370 echo "configure:22371: checking for _snprintf" >&5
22371 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22372 echo $ac_n "(cached) $ac_c" 1>&6
22374 cat > conftest.$ac_ext <<EOF
22375 #line 22376 "configure"
22376 #include "confdefs.h"
22377 /* System header to define __stub macros and hopefully few prototypes,
22378 which can conflict with char _snprintf(); below. */
22379 #include <assert.h>
22380 /* Override any gcc2 internal prototype to avoid an error. */
22381 /* We use char because int might match the return type of a gcc2
22382 builtin and then its argument prototype would still apply. */
22388 /* The GNU C library defines this for functions which it implements
22389 to always fail with ENOSYS. Some functions are actually named
22390 something starting with __ and the normal name is an alias. */
22391 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22399 if { (eval echo configure:22400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22401 eval "ac_cv_func__snprintf=yes"
22403 echo "configure: failed program was:" >&5
22404 cat conftest.$ac_ext >&5
22406 eval "ac_cv_func__snprintf=no"
22411 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22412 echo "$ac_t""yes" 1>&6
22413 ac_cv_func_snprintf=yes
22414 cat >> confdefs.h <<\EOF
22415 #define snprintf _snprintf
22420 echo "$ac_t""no" 1>&6
22424 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22425 echo "configure:22426: checking for _vsnprintf" >&5
22426 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22427 echo $ac_n "(cached) $ac_c" 1>&6
22429 cat > conftest.$ac_ext <<EOF
22430 #line 22431 "configure"
22431 #include "confdefs.h"
22432 /* System header to define __stub macros and hopefully few prototypes,
22433 which can conflict with char _vsnprintf(); below. */
22434 #include <assert.h>
22435 /* Override any gcc2 internal prototype to avoid an error. */
22436 /* We use char because int might match the return type of a gcc2
22437 builtin and then its argument prototype would still apply. */
22443 /* The GNU C library defines this for functions which it implements
22444 to always fail with ENOSYS. Some functions are actually named
22445 something starting with __ and the normal name is an alias. */
22446 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22454 if { (eval echo configure:22455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22456 eval "ac_cv_func__vsnprintf=yes"
22458 echo "configure: failed program was:" >&5
22459 cat conftest.$ac_ext >&5
22461 eval "ac_cv_func__vsnprintf=no"
22466 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22467 echo "$ac_t""yes" 1>&6
22468 ac_cv_func_vsnprintf=yes
22469 cat >> confdefs.h <<\EOF
22470 #define vsnprintf _vsnprintf
22475 echo "$ac_t""no" 1>&6
22479 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22480 echo "configure:22481: checking for vprintf" >&5
22481 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22482 echo $ac_n "(cached) $ac_c" 1>&6
22484 cat > conftest.$ac_ext <<EOF
22485 #line 22486 "configure"
22486 #include "confdefs.h"
22487 /* System header to define __stub macros and hopefully few prototypes,
22488 which can conflict with char vprintf(); below. */
22489 #include <assert.h>
22490 /* Override any gcc2 internal prototype to avoid an error. */
22491 /* We use char because int might match the return type of a gcc2
22492 builtin and then its argument prototype would still apply. */
22498 /* The GNU C library defines this for functions which it implements
22499 to always fail with ENOSYS. Some functions are actually named
22500 something starting with __ and the normal name is an alias. */
22501 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22509 if { (eval echo configure:22510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22511 eval "ac_cv_func_vprintf=yes"
22513 echo "configure: failed program was:" >&5
22514 cat conftest.$ac_ext >&5
22516 eval "ac_cv_func_vprintf=no"
22521 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22522 echo "$ac_t""yes" 1>&6
22523 cat >> confdefs.h <<\EOF
22524 #define HAVE_VPRINTF 1
22528 echo "$ac_t""no" 1>&6
22531 if test "$ac_cv_func_vprintf" != yes; then
22532 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22533 echo "configure:22534: checking for _doprnt" >&5
22534 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22535 echo $ac_n "(cached) $ac_c" 1>&6
22537 cat > conftest.$ac_ext <<EOF
22538 #line 22539 "configure"
22539 #include "confdefs.h"
22540 /* System header to define __stub macros and hopefully few prototypes,
22541 which can conflict with char _doprnt(); below. */
22542 #include <assert.h>
22543 /* Override any gcc2 internal prototype to avoid an error. */
22544 /* We use char because int might match the return type of a gcc2
22545 builtin and then its argument prototype would still apply. */
22551 /* The GNU C library defines this for functions which it implements
22552 to always fail with ENOSYS. Some functions are actually named
22553 something starting with __ and the normal name is an alias. */
22554 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22562 if { (eval echo configure:22563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22564 eval "ac_cv_func__doprnt=yes"
22566 echo "configure: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22569 eval "ac_cv_func__doprnt=no"
22574 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22575 echo "$ac_t""yes" 1>&6
22576 cat >> confdefs.h <<\EOF
22577 #define HAVE_DOPRNT 1
22581 echo "$ac_t""no" 1>&6
22587 if test $ac_cv_func_vprintf = yes ; then
22588 for ac_func in snprintf vsnprintf
22590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22591 echo "configure:22592: checking for $ac_func" >&5
22592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22593 echo $ac_n "(cached) $ac_c" 1>&6
22595 cat > conftest.$ac_ext <<EOF
22596 #line 22597 "configure"
22597 #include "confdefs.h"
22598 /* System header to define __stub macros and hopefully few prototypes,
22599 which can conflict with char $ac_func(); below. */
22600 #include <assert.h>
22601 /* Override any gcc2 internal prototype to avoid an error. */
22602 /* We use char because int might match the return type of a gcc2
22603 builtin and then its argument prototype would still apply. */
22609 /* The GNU C library defines this for functions which it implements
22610 to always fail with ENOSYS. Some functions are actually named
22611 something starting with __ and the normal name is an alias. */
22612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22620 if { (eval echo configure:22621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22622 eval "ac_cv_func_$ac_func=yes"
22624 echo "configure: failed program was:" >&5
22625 cat conftest.$ac_ext >&5
22627 eval "ac_cv_func_$ac_func=no"
22632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22633 echo "$ac_t""yes" 1>&6
22634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22635 cat >> confdefs.h <<EOF
22636 #define $ac_tr_func 1
22640 echo "$ac_t""no" 1>&6
22705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22706 echo "configure:22707: checking for $ac_func" >&5
22707 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22708 echo $ac_n "(cached) $ac_c" 1>&6
22710 cat > conftest.$ac_ext <<EOF
22711 #line 22712 "configure"
22712 #include "confdefs.h"
22713 /* System header to define __stub macros and hopefully few prototypes,
22714 which can conflict with char $ac_func(); below. */
22715 #include <assert.h>
22716 /* Override any gcc2 internal prototype to avoid an error. */
22717 /* We use char because int might match the return type of a gcc2
22718 builtin and then its argument prototype would still apply. */
22724 /* The GNU C library defines this for functions which it implements
22725 to always fail with ENOSYS. Some functions are actually named
22726 something starting with __ and the normal name is an alias. */
22727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22735 if { (eval echo configure:22736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22737 eval "ac_cv_func_$ac_func=yes"
22739 echo "configure: failed program was:" >&5
22740 cat conftest.$ac_ext >&5
22742 eval "ac_cv_func_$ac_func=no"
22747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22748 echo "$ac_t""yes" 1>&6
22749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22750 cat >> confdefs.h <<EOF
22751 #define $ac_tr_func 1
22755 echo "$ac_t""no" 1>&6
22760 for ac_func in getopt getpeereid
22762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22763 echo "configure:22764: checking for $ac_func" >&5
22764 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22765 echo $ac_n "(cached) $ac_c" 1>&6
22767 cat > conftest.$ac_ext <<EOF
22768 #line 22769 "configure"
22769 #include "confdefs.h"
22770 /* System header to define __stub macros and hopefully few prototypes,
22771 which can conflict with char $ac_func(); below. */
22772 #include <assert.h>
22773 /* Override any gcc2 internal prototype to avoid an error. */
22774 /* We use char because int might match the return type of a gcc2
22775 builtin and then its argument prototype would still apply. */
22781 /* The GNU C library defines this for functions which it implements
22782 to always fail with ENOSYS. Some functions are actually named
22783 something starting with __ and the normal name is an alias. */
22784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22792 if { (eval echo configure:22793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22794 eval "ac_cv_func_$ac_func=yes"
22796 echo "configure: failed program was:" >&5
22797 cat conftest.$ac_ext >&5
22799 eval "ac_cv_func_$ac_func=no"
22804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22805 echo "$ac_t""yes" 1>&6
22806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22807 cat >> confdefs.h <<EOF
22808 #define $ac_tr_func 1
22812 echo "$ac_t""no" 1>&6
22813 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22819 if test "$ac_cv_func_getopt" != yes; then
22820 LIBSRCS="$LIBSRCS getopt.c"
22822 if test "$ac_cv_func_getpeereid" != yes; then
22823 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22824 echo "configure:22825: checking for msg_accrights in msghdr" >&5
22825 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22826 echo $ac_n "(cached) $ac_c" 1>&6
22828 cat > conftest.$ac_ext <<EOF
22829 #line 22830 "configure"
22830 #include "confdefs.h"
22831 #include <sys/socket.h>
22833 struct msghdr m; m.msg_accrightslen=0
22836 if { (eval echo configure:22837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22838 ol_cv_msghdr_msg_accrights=yes
22840 echo "configure: failed program was:" >&5
22841 cat conftest.$ac_ext >&5
22843 ol_cv_msghdr_msg_accrights=no
22849 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22850 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22851 cat >> confdefs.h <<\EOF
22852 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22857 LIBSRCS="$LIBSRCS getpeereid.c"
22859 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22860 if test "$ac_cv_func_snprintf" != yes; then
22861 cat >> confdefs.h <<\EOF
22862 #define snprintf ber_pvt_snprintf
22866 if test "$ac_cv_func_vsnprintf" != yes; then
22867 cat >> confdefs.h <<\EOF
22868 #define vsnprintf ber_pvt_vsnprintf
22874 # Check Configuration
22875 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22876 echo "configure:22877: checking declaration of sys_errlist" >&5
22877 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22878 echo $ac_n "(cached) $ac_c" 1>&6
22881 cat > conftest.$ac_ext <<EOF
22882 #line 22883 "configure"
22883 #include "confdefs.h"
22886 #include <sys/types.h>
22889 #include <stdlib.h>
22892 char *c = (char *) *sys_errlist
22895 if { (eval echo configure:22896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22897 ol_cv_dcl_sys_errlist=yes
22898 ol_cv_have_sys_errlist=yes
22900 echo "configure: failed program was:" >&5
22901 cat conftest.$ac_ext >&5
22903 ol_cv_dcl_sys_errlist=no
22908 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22910 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22911 if test $ol_cv_dcl_sys_errlist = no ; then
22912 cat >> confdefs.h <<\EOF
22913 #define DECL_SYS_ERRLIST 1
22917 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22918 echo "configure:22919: checking existence of sys_errlist" >&5
22919 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22920 echo $ac_n "(cached) $ac_c" 1>&6
22923 cat > conftest.$ac_ext <<EOF
22924 #line 22925 "configure"
22925 #include "confdefs.h"
22928 char *c = (char *) *sys_errlist
22931 if { (eval echo configure:22932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22933 ol_cv_have_sys_errlist=yes
22935 echo "configure: failed program was:" >&5
22936 cat conftest.$ac_ext >&5
22938 ol_cv_have_sys_errlist=no
22943 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22945 if test $ol_cv_have_sys_errlist = yes ; then
22946 cat >> confdefs.h <<\EOF
22947 #define HAVE_SYS_ERRLIST 1
22954 if test "$ol_enable_slapi" != no ; then
22955 for ac_hdr in ltdl.h
22957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22959 echo "configure:22960: checking for $ac_hdr" >&5
22960 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22961 echo $ac_n "(cached) $ac_c" 1>&6
22963 cat > conftest.$ac_ext <<EOF
22964 #line 22965 "configure"
22965 #include "confdefs.h"
22968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22969 { (eval echo configure:22970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22971 if test -z "$ac_err"; then
22973 eval "ac_cv_header_$ac_safe=yes"
22976 echo "configure: failed program was:" >&5
22977 cat conftest.$ac_ext >&5
22979 eval "ac_cv_header_$ac_safe=no"
22983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22984 echo "$ac_t""yes" 1>&6
22985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22986 cat >> confdefs.h <<EOF
22987 #define $ac_tr_hdr 1
22991 echo "$ac_t""no" 1>&6
22996 if test $ac_cv_header_ltdl_h != yes ; then
22997 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
22999 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23000 echo "configure:23001: checking for lt_dlinit in -lltdl" >&5
23001 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23002 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23003 echo $ac_n "(cached) $ac_c" 1>&6
23005 ac_save_LIBS="$LIBS"
23006 LIBS="-lltdl $LIBS"
23007 cat > conftest.$ac_ext <<EOF
23008 #line 23009 "configure"
23009 #include "confdefs.h"
23010 /* Override any gcc2 internal prototype to avoid an error. */
23011 /* We use char because int might match the return type of a gcc2
23012 builtin and then its argument prototype would still apply. */
23019 if { (eval echo configure:23020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23021 eval "ac_cv_lib_$ac_lib_var=yes"
23023 echo "configure: failed program was:" >&5
23024 cat conftest.$ac_ext >&5
23026 eval "ac_cv_lib_$ac_lib_var=no"
23029 LIBS="$ac_save_LIBS"
23032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23033 echo "$ac_t""yes" 1>&6
23036 LIBSLAPI=libslapi.a
23037 LIBSLAPITOOLS=../libslapi.a
23038 cat >> confdefs.h <<\EOF
23039 #define HAVE_LIBLTDL 1
23044 echo "$ac_t""no" 1>&6
23045 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23049 cat >> confdefs.h <<\EOF
23050 #define LDAP_SLAPI 1
23055 if test "$ol_enable_debug" != no ; then
23056 cat >> confdefs.h <<\EOF
23057 #define LDAP_DEBUG 1
23061 if test "$ol_enable_syslog" = yes ; then
23062 cat >> confdefs.h <<\EOF
23063 #define LDAP_SYSLOG 1
23067 if test "$ol_link_kbind" != no ; then
23068 cat >> confdefs.h <<\EOF
23069 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23073 if test "$ol_enable_proctitle" != no ; then
23074 cat >> confdefs.h <<\EOF
23075 #define LDAP_PROCTITLE 1
23079 if test "$ol_enable_referrals" != no ; then
23080 cat >> confdefs.h <<\EOF
23081 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23085 if test "$ol_enable_local" != no; then
23086 cat >> confdefs.h <<\EOF
23087 #define LDAP_PF_LOCAL 1
23091 if test "$ol_link_ipv6" != no; then
23092 cat >> confdefs.h <<\EOF
23093 #define LDAP_PF_INET6 1
23097 if test "$ol_enable_cleartext" != no ; then
23098 cat >> confdefs.h <<\EOF
23099 #define SLAPD_CLEARTEXT 1
23103 if test "$ol_enable_crypt" != no ; then
23104 cat >> confdefs.h <<\EOF
23105 #define SLAPD_CRYPT 1
23109 if test "$ol_link_spasswd" != no ; then
23110 cat >> confdefs.h <<\EOF
23111 #define SLAPD_SPASSWD 1
23115 if test "$ol_enable_multimaster" != no ; then
23116 cat >> confdefs.h <<\EOF
23117 #define SLAPD_MULTIMASTER 1
23121 if test "$ol_enable_rlookups" != no ; then
23122 cat >> confdefs.h <<\EOF
23123 #define SLAPD_RLOOKUPS 1
23127 if test "$ol_enable_aci" != no ; then
23128 cat >> confdefs.h <<\EOF
23129 #define SLAPD_ACI_ENABLED 1
23134 if test "$ol_link_modules" != no ; then
23135 cat >> confdefs.h <<\EOF
23136 #define SLAPD_MODULES 1
23140 SLAPD_MODULES_LDFLAGS="-dlopen self"
23143 cat >> confdefs.h <<\EOF
23144 #define SLAPD_MOD_STATIC 1
23147 cat >> confdefs.h <<\EOF
23148 #define SLAPD_MOD_DYNAMIC 2
23152 if test "$ol_enable_bdb" != no ; then
23154 BUILD_BDB=$ol_enable_bdb
23155 if test "$ol_enable_bdb" = mod ; then
23156 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23157 MFLAG=SLAPD_MOD_DYNAMIC
23159 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23160 MFLAG=SLAPD_MOD_STATIC
23162 cat >> confdefs.h <<EOF
23163 #define SLAPD_BDB $MFLAG
23168 if test "$ol_enable_dnssrv" != no ; then
23170 BUILD_DNSSRV=$ol_enable_dnssrv
23171 if test "$ol_enable_dnssrv" = mod ; then
23172 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23173 MFLAG=SLAPD_MOD_DYNAMIC
23175 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23176 MFLAG=SLAPD_MOD_STATIC
23178 cat >> confdefs.h <<EOF
23179 #define SLAPD_DNSSRV $MFLAG
23184 if test "$ol_enable_hdb" != no ; then
23186 BUILD_HDB=$ol_enable_hdb
23187 if test "$ol_enable_hdb" = mod ; then
23188 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23189 MFLAG=SLAPD_MOD_DYNAMIC
23191 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23192 MFLAG=SLAPD_MOD_STATIC
23194 cat >> confdefs.h <<EOF
23195 #define SLAPD_HDB $MFLAG
23200 if test "$ol_enable_ldap" != no ; then
23202 BUILD_LDAP=$ol_enable_ldap
23203 if test "$ol_enable_ldap" = mod ; then
23204 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23205 MFLAG=SLAPD_MOD_DYNAMIC
23207 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23208 MFLAG=SLAPD_MOD_STATIC
23210 cat >> confdefs.h <<EOF
23211 #define SLAPD_LDAP $MFLAG
23216 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23218 BUILD_LDBM=$ol_enable_ldbm
23219 if test "$ol_enable_ldbm" = mod ; then
23220 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23221 MFLAG=SLAPD_MOD_DYNAMIC
23223 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23224 MFLAG=SLAPD_MOD_STATIC
23226 cat >> confdefs.h <<EOF
23227 #define SLAPD_LDBM $MFLAG
23232 if test "$ol_enable_meta" != no ; then
23234 BUILD_META=$ol_enable_meta
23236 if test "$ol_enable_meta" = mod ; then
23237 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23238 MFLAG=SLAPD_MOD_DYNAMIC
23240 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23241 MFLAG=SLAPD_MOD_STATIC
23243 cat >> confdefs.h <<EOF
23244 #define SLAPD_META $MFLAG
23249 if test "$ol_enable_monitor" != no ; then
23251 BUILD_MONITOR=$ol_enable_monitor
23252 if test "$ol_enable_monitor" = mod ; then
23253 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23254 MFLAG=SLAPD_MOD_DYNAMIC
23256 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23257 MFLAG=SLAPD_MOD_STATIC
23259 cat >> confdefs.h <<EOF
23260 #define SLAPD_MONITOR $MFLAG
23265 if test "$ol_enable_null" != no ; then
23267 BUILD_NULL=$ol_enable_null
23268 if test "$ol_enable_null" = mod ; then
23269 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23270 MFLAG=SLAPD_MOD_DYNAMIC
23272 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23273 MFLAG=SLAPD_MOD_STATIC
23275 cat >> confdefs.h <<EOF
23276 #define SLAPD_NULL $MFLAG
23281 if test "$ol_enable_passwd" != no ; then
23283 BUILD_PASSWD=$ol_enable_passwd
23284 if test "$ol_enable_passwd" = mod ; then
23285 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23286 MFLAG=SLAPD_MOD_DYNAMIC
23288 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23289 MFLAG=SLAPD_MOD_STATIC
23291 cat >> confdefs.h <<EOF
23292 #define SLAPD_PASSWD $MFLAG
23297 if test "$ol_link_perl" != no ; then
23299 BUILD_PERL=$ol_enable_perl
23300 if test "$ol_enable_perl" = mod ; then
23301 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23302 MFLAG=SLAPD_MOD_DYNAMIC
23304 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23305 MFLAG=SLAPD_MOD_STATIC
23307 cat >> confdefs.h <<EOF
23308 #define SLAPD_PERL $MFLAG
23313 if test "$ol_enable_shell" != no ; then
23314 if test "$ol_link_thread" != no ; then
23315 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23318 BUILD_SHELL=$ol_enable_shell
23319 if test "$ol_enable_shell" = mod ; then
23320 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23321 MFLAG=SLAPD_MOD_DYNAMIC
23323 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23324 MFLAG=SLAPD_MOD_STATIC
23326 cat >> confdefs.h <<EOF
23327 #define SLAPD_SHELL $MFLAG
23332 if test "$ol_link_sql" != no ; then
23334 BUILD_SQL=$ol_enable_sql
23335 if test "$ol_enable_sql" = mod; then
23336 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23337 MFLAG=SLAPD_MOD_DYNAMIC
23339 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23340 MFLAG=SLAPD_MOD_STATIC
23342 cat >> confdefs.h <<EOF
23343 #define SLAPD_SQL $MFLAG
23348 if test "$ol_enable_dyngroup" != no ; then
23349 BUILD_DYNGROUP=$ol_enable_dyngroup
23350 if test "$ol_enable_dyngroup" = mod ; then
23351 MFLAG=SLAPD_MOD_DYNAMIC
23352 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23354 MFLAG=SLAPD_MOD_STATIC
23356 cat >> confdefs.h <<EOF
23357 #define SLAPD_OVER_DYNGROUP $MFLAG
23362 if test "$ol_enable_proxycache" != no ; then
23363 BUILD_PROXYCACHE=$ol_enable_proxycache
23364 if test "$ol_enable_proxycache" = mod ; then
23365 MFLAG=SLAPD_MOD_DYNAMIC
23366 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23368 MFLAG=SLAPD_MOD_STATIC
23370 cat >> confdefs.h <<EOF
23371 #define SLAPD_OVER_PROXYCACHE $MFLAG
23376 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23377 $BUILD_SLAPD = yes ; then
23381 if test "$ol_enable_rewrite" != no ; then
23382 cat >> confdefs.h <<\EOF
23383 #define ENABLE_REWRITE 1
23389 if test "$ol_enable_slapi" != no ; then
23390 cat >> confdefs.h <<\EOF
23391 #define ENABLE_SLAPI 1
23395 SLAPD_SLAPI_DEPEND=libslapi.a
23400 if test "$ac_cv_mingw32" = yes ; then
23402 SLAPD_MODULES_LDFLAGS=
23407 if test -z "$SLAPD_STATIC_BACKENDS"; then
23408 SLAPD_NO_STATIC='#'
23473 # Check whether --with-xxinstall or --without-xxinstall was given.
23474 if test "${with_xxinstall+set}" = set; then
23475 withval="$with_xxinstall"
23483 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23486 # Let make expand exec_prefix.
23487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23489 # Any assignment to VPATH causes Sun make to only execute
23490 # the first set of double-colon rules, so remove it if not needed.
23491 # If there is a colon in the path, we need to keep it.
23492 if test "x$srcdir" = x.; then
23493 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23496 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23498 DEFS=-DHAVE_CONFIG_H
23500 # Without the "./", some shells look in PATH for config.status.
23501 : ${CONFIG_STATUS=./config.status}
23503 echo creating $CONFIG_STATUS
23504 rm -f $CONFIG_STATUS
23505 cat > $CONFIG_STATUS <<EOF
23507 # Generated automatically by configure.
23508 # Run this file to recreate the current configuration.
23509 # This directory was configured as follows,
23510 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23512 # $0 $ac_configure_args
23514 # Compiler output produced by configure, useful for debugging
23515 # configure, is in ./config.log if it exists.
23517 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23520 case "\$ac_option" in
23521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23522 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23523 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23524 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23525 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23527 -help | --help | --hel | --he | --h)
23528 echo "\$ac_cs_usage"; exit 0 ;;
23529 *) echo "\$ac_cs_usage"; exit 1 ;;
23533 ac_given_srcdir=$srcdir
23534 ac_given_INSTALL="$INSTALL"
23536 trap 'rm -fr `echo "\
23537 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23538 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23539 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23540 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23541 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23542 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23543 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23544 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23545 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23546 include/Makefile:build/top.mk:include/Makefile.in \
23547 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23548 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23549 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23550 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23551 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23552 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23553 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23554 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23555 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23556 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23557 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23558 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23559 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23560 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23561 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23562 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23563 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23564 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23565 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23566 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23567 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23568 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23569 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23570 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23571 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23572 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23574 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23575 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23577 cat >> $CONFIG_STATUS <<EOF
23579 # Protect against being on the right side of a sed subst in config.status.
23580 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23581 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23585 s%@CFLAGS@%$CFLAGS%g
23586 s%@CPPFLAGS@%$CPPFLAGS%g
23587 s%@CXXFLAGS@%$CXXFLAGS%g
23588 s%@FFLAGS@%$FFLAGS%g
23590 s%@LDFLAGS@%$LDFLAGS%g
23592 s%@exec_prefix@%$exec_prefix%g
23593 s%@prefix@%$prefix%g
23594 s%@program_transform_name@%$program_transform_name%g
23595 s%@bindir@%$bindir%g
23596 s%@sbindir@%$sbindir%g
23597 s%@libexecdir@%$libexecdir%g
23598 s%@datadir@%$datadir%g
23599 s%@sysconfdir@%$sysconfdir%g
23600 s%@sharedstatedir@%$sharedstatedir%g
23601 s%@localstatedir@%$localstatedir%g
23602 s%@libdir@%$libdir%g
23603 s%@includedir@%$includedir%g
23604 s%@oldincludedir@%$oldincludedir%g
23605 s%@infodir@%$infodir%g
23606 s%@mandir@%$mandir%g
23608 s%@host_alias@%$host_alias%g
23609 s%@host_cpu@%$host_cpu%g
23610 s%@host_vendor@%$host_vendor%g
23611 s%@host_os@%$host_os%g
23612 s%@target@%$target%g
23613 s%@target_alias@%$target_alias%g
23614 s%@target_cpu@%$target_cpu%g
23615 s%@target_vendor@%$target_vendor%g
23616 s%@target_os@%$target_os%g
23618 s%@build_alias@%$build_alias%g
23619 s%@build_cpu@%$build_cpu%g
23620 s%@build_vendor@%$build_vendor%g
23621 s%@build_os@%$build_os%g
23622 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23623 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23624 s%@INSTALL_DATA@%$INSTALL_DATA%g
23625 s%@PACKAGE@%$PACKAGE%g
23626 s%@VERSION@%$VERSION%g
23627 s%@ACLOCAL@%$ACLOCAL%g
23628 s%@AUTOCONF@%$AUTOCONF%g
23629 s%@AUTOMAKE@%$AUTOMAKE%g
23630 s%@AUTOHEADER@%$AUTOHEADER%g
23631 s%@MAKEINFO@%$MAKEINFO%g
23632 s%@install_sh@%$install_sh%g
23635 s%@AMTARFLAGS@%$AMTARFLAGS%g
23636 s%@SET_MAKE@%$SET_MAKE%g
23637 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
23638 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23639 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23640 s%@top_builddir@%$top_builddir%g
23641 s%@ldap_subdir@%$ldap_subdir%g
23645 s%@OBJEXT@%$OBJEXT%g
23646 s%@EXEEXT@%$EXEEXT%g
23648 s%@RANLIB@%$RANLIB%g
23650 s%@DLLTOOL@%$DLLTOOL%g
23652 s%@OBJDUMP@%$OBJDUMP%g
23654 s%@LIBTOOL@%$LIBTOOL%g
23656 s%@PERLBIN@%$PERLBIN%g
23657 s%@OL_MKDEP@%$OL_MKDEP%g
23658 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23659 s%@LTSTATIC@%$LTSTATIC%g
23660 s%@LIBOBJS@%$LIBOBJS%g
23661 s%@LIBSRCS@%$LIBSRCS%g
23663 s%@WITH_TLS@%$WITH_TLS%g
23664 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23665 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23666 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23667 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23668 s%@BUILD_BDB@%$BUILD_BDB%g
23669 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23670 s%@BUILD_HDB@%$BUILD_HDB%g
23671 s%@BUILD_LDAP@%$BUILD_LDAP%g
23672 s%@BUILD_LDBM@%$BUILD_LDBM%g
23673 s%@BUILD_META@%$BUILD_META%g
23674 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23675 s%@BUILD_NULL@%$BUILD_NULL%g
23676 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23677 s%@BUILD_PERL@%$BUILD_PERL%g
23678 s%@BUILD_SHELL@%$BUILD_SHELL%g
23679 s%@BUILD_SQL@%$BUILD_SQL%g
23680 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
23681 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
23682 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23683 s%@LDAP_LIBS@%$LDAP_LIBS%g
23684 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23685 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23686 s%@LDBM_LIBS@%$LDBM_LIBS%g
23687 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23688 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23689 s%@WRAP_LIBS@%$WRAP_LIBS%g
23690 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23691 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23692 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23693 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23694 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23695 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
23696 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23697 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23698 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23699 s%@KRB4_LIBS@%$KRB4_LIBS%g
23700 s%@KRB5_LIBS@%$KRB5_LIBS%g
23701 s%@SASL_LIBS@%$SASL_LIBS%g
23702 s%@TLS_LIBS@%$TLS_LIBS%g
23703 s%@MODULES_LIBS@%$MODULES_LIBS%g
23704 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23705 s%@LIBSLAPI@%$LIBSLAPI%g
23706 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23707 s%@AUTH_LIBS@%$AUTH_LIBS%g
23708 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23709 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23710 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23711 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23716 cat >> $CONFIG_STATUS <<\EOF
23718 # Split the substitutions into bite-sized pieces for seds with
23719 # small command number limits, like on Digital OSF/1 and HP-UX.
23720 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23721 ac_file=1 # Number of current file.
23722 ac_beg=1 # First line for current file.
23723 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23726 while $ac_more_lines; do
23727 if test $ac_beg -gt 1; then
23728 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23730 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23732 if test ! -s conftest.s$ac_file; then
23733 ac_more_lines=false
23734 rm -f conftest.s$ac_file
23736 if test -z "$ac_sed_cmds"; then
23737 ac_sed_cmds="sed -f conftest.s$ac_file"
23739 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23741 ac_file=`expr $ac_file + 1`
23743 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23746 if test -z "$ac_sed_cmds"; then
23751 cat >> $CONFIG_STATUS <<EOF
23753 CONFIG_FILES=\${CONFIG_FILES-"\
23754 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23755 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23756 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23757 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23758 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23759 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23760 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23761 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23762 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23763 include/Makefile:build/top.mk:include/Makefile.in \
23764 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23765 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23766 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23767 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23768 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23769 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23770 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23771 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23772 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23773 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23774 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23775 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23776 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23777 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23778 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23779 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23780 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23781 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23782 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23783 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23784 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23785 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23786 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23787 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23788 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23789 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23791 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23794 cat >> $CONFIG_STATUS <<\EOF
23795 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23798 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23799 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23800 *) ac_file_in="${ac_file}.in" ;;
23803 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23805 # Remove last slash and all that follows it. Not all systems have dirname.
23806 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23807 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23808 # The file is in a subdirectory.
23809 test ! -d "$ac_dir" && mkdir "$ac_dir"
23810 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23811 # A "../" for each directory in $ac_dir_suffix.
23812 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23814 ac_dir_suffix= ac_dots=
23817 case "$ac_given_srcdir" in
23819 if test -z "$ac_dots"; then top_srcdir=.
23820 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23821 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23822 *) # Relative path.
23823 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23824 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23827 case "$ac_given_INSTALL" in
23828 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23829 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23832 echo creating "$ac_file"
23834 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23836 *[Mm]akefile*) ac_comsub="1i\\
23837 # $configure_input" ;;
23841 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23843 s%@configure_input@%$configure_input%g
23844 s%@srcdir@%$srcdir%g
23845 s%@top_srcdir@%$top_srcdir%g
23846 s%@INSTALL@%$INSTALL%g
23847 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23851 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23852 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23854 # ac_d sets the value in "#define NAME VALUE" lines.
23855 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23856 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23859 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23860 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23861 ac_uB='\([ ]\)%\1#\2define\3'
23864 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23865 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23866 ac_eB='$%\1#\2define\3'
23870 if test "${CONFIG_HEADERS+set}" != set; then
23872 cat >> $CONFIG_STATUS <<EOF
23873 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23875 cat >> $CONFIG_STATUS <<\EOF
23877 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23878 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23880 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23881 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23882 *) ac_file_in="${ac_file}.in" ;;
23885 echo creating $ac_file
23887 rm -f conftest.frag conftest.in conftest.out
23888 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23889 cat $ac_file_inputs > conftest.in
23893 # Transform confdefs.h into a sed script conftest.vals that substitutes
23894 # the proper values into config.h.in to produce config.h. And first:
23895 # Protect against being on the right side of a sed subst in config.status.
23896 # Protect against being in an unquoted here document in config.status.
23897 rm -f conftest.vals
23898 cat > conftest.hdr <<\EOF
23901 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23905 sed -n -f conftest.hdr confdefs.h > conftest.vals
23908 # This sed command replaces #undef with comments. This is necessary, for
23909 # example, in the case of _POSIX_SOURCE, which is predefined and required
23910 # on some systems where configure will not decide to define it.
23911 cat >> conftest.vals <<\EOF
23912 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23915 # Break up conftest.vals because some shells have a limit on
23916 # the size of here documents, and old seds have small limits too.
23918 rm -f conftest.tail
23921 ac_lines=`grep -c . conftest.vals`
23922 # grep -c gives empty output for an empty file on some AIX systems.
23923 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23924 # Write a limited-size here document to conftest.frag.
23925 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23926 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23928 sed -f conftest.frag conftest.in > conftest.out
23930 mv conftest.out conftest.in
23931 ' >> $CONFIG_STATUS
23932 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23933 rm -f conftest.vals
23934 mv conftest.tail conftest.vals
23936 rm -f conftest.vals
23938 cat >> $CONFIG_STATUS <<\EOF
23939 rm -f conftest.frag conftest.h
23940 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23941 cat conftest.in >> conftest.h
23943 if cmp -s $ac_file conftest.h 2>/dev/null; then
23944 echo "$ac_file is unchanged"
23947 # Remove last slash and all that follows it. Not all systems have dirname.
23948 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23950 # The file is in a subdirectory.
23951 test ! -d "$ac_dir" && mkdir "$ac_dir"
23954 mv conftest.h $ac_file
23959 cat >> $CONFIG_STATUS <<EOF
23962 cat >> $CONFIG_STATUS <<\EOF
23966 echo Please run \"make depend\" to build dependencies
23970 chmod +x $CONFIG_STATUS
23971 rm -fr confdefs* $ac_clean_files
23972 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1