3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.24 2005/03/14 17:06:26 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2005 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-2005 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 != no -o $ol_enable_hdb != no ; 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; }
2410 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2411 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2414 if test $ol_enable_slurpd = yes ; then
2415 if test $ol_with_threads = no ; then
2416 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2420 if test $ol_enable_lmpasswd = yes ; then
2421 if test $ol_with_tls = no ; then
2422 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2426 if test $ol_enable_kbind = yes ; then
2427 if test $ol_with_kerberos = no ; then
2428 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2429 elif test $ol_with_kerberos = auto ; then
2430 ol_with_kerberos=yes
2433 elif test $ol_enable_kbind = no ; then
2434 if test $ol_with_kerberos = auto ; then
2436 elif test $ol_with_kerberos != no ; then
2437 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2442 if test $ol_enable_spasswd = yes ; then
2443 if test $ol_with_cyrus_sasl = no ; then
2444 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2446 ol_with_cyrus_sasl=yes
2449 echo "$ac_t""done" 1>&6
2483 SLAPD_DYNAMIC_OVERLAYS=
2485 SLAPD_MODULES_LDFLAGS=
2486 SLAPD_MODULES_CPPFLAGS=
2488 SLAPD_STATIC_BACKENDS=
2489 SLAPD_DYNAMIC_BACKENDS=
2512 # Find a good install program. We prefer a C program (faster),
2513 # so one script is as good as another. But avoid the broken or
2514 # incompatible versions:
2515 # SysV /etc/install, /usr/sbin/install
2516 # SunOS /usr/etc/install
2517 # IRIX /sbin/install
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # ./install, which can be erroneously created by make from ./install.sh.
2523 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2524 echo "configure:2525: checking for a BSD compatible install" >&5
2525 if test -z "$INSTALL"; then
2526 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2530 for ac_dir in $PATH; do
2531 # Account for people who put trailing slashes in PATH elements.
2533 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2538 for ac_prog in ginstall scoinst install; do
2539 if test -f $ac_dir/$ac_prog; then
2540 if test $ac_prog = install &&
2541 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2542 # AIX install. It has an incompatible calling convention.
2544 elif test $ac_prog = install &&
2545 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2546 # program-specific install script used by HP pwplus--don't use.
2549 ac_cv_path_install="$ac_dir/$ac_prog -c"
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL="$ac_cv_path_install"
2563 # As a last resort, use the slow shell script. We don't cache a
2564 # path for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the path is relative.
2567 INSTALL="$ac_install_sh"
2570 echo "$ac_t""$INSTALL" 1>&6
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581 cat >> confdefs.h <<\EOF
2582 #define HAVE_MKVERSION 1
2590 *-*-aix*) if test -z "$CC" ; then
2591 case "$ol_with_threads" in
2592 auto | yes | posix) ol_aix_threads=yes ;;
2598 if test $ol_aix_threads = yes ; then
2599 if test -z "${CC}" ; then
2600 for ac_prog in cc_r xlc_r cc
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2614 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 if test -f $ac_dir/$ac_word; then
2617 ac_cv_prog_CC="$ac_prog"
2625 if test -n "$CC"; then
2626 echo "$ac_t""$CC" 1>&6
2628 echo "$ac_t""no" 1>&6
2631 test -n "$CC" && break
2635 if test "$CC" = cc ; then
2636 if test $ol_with_threads != auto ; then
2637 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2639 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2645 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2646 ol_with_threads=posix
2647 ol_cv_pthread_create=yes
2651 if test -z "${CC}"; then
2652 for ac_prog in cc gcc
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_word" >&5
2658 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2666 for ac_dir in $ac_dummy; do
2667 test -z "$ac_dir" && ac_dir=.
2668 if test -f $ac_dir/$ac_word; then
2669 ac_cv_prog_CC="$ac_prog"
2677 if test -n "$CC"; then
2678 echo "$ac_t""$CC" 1>&6
2680 echo "$ac_t""no" 1>&6
2683 test -n "$CC" && break
2685 test -n "$CC" || CC="missing"
2688 if test "${CC}" = "missing" ; then
2689 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2693 if test -z "${AR}"; then
2694 for ac_prog in ar gar
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_word" >&5
2700 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 if test -n "$AR"; then
2704 ac_cv_prog_AR="$AR" # Let the user override the test.
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2708 for ac_dir in $ac_dummy; do
2709 test -z "$ac_dir" && ac_dir=.
2710 if test -f $ac_dir/$ac_word; then
2711 ac_cv_prog_AR="$ac_prog"
2719 if test -n "$AR"; then
2720 echo "$ac_t""$AR" 1>&6
2722 echo "$ac_t""no" 1>&6
2725 test -n "$AR" && break
2727 test -n "$AR" || AR="missing"
2730 if test "${AR}" = "missing" ; then
2731 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2737 # Find the correct PATH separator. Usually this is `:', but
2738 # DJGPP uses `;' like DOS.
2739 if test "X${PATH_SEPARATOR+set}" != Xset; then
2740 UNAME=${UNAME-`uname 2>/dev/null`}
2742 *-DOS) lt_cv_sys_path_separator=';' ;;
2743 *) lt_cv_sys_path_separator=':' ;;
2745 PATH_SEPARATOR=$lt_cv_sys_path_separator
2748 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2749 echo "configure:2750: checking for Cygwin environment" >&5
2750 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2760 #define __CYGWIN__ __CYGWIN32__
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2777 echo "$ac_t""$ac_cv_cygwin" 1>&6
2779 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2780 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2781 echo "configure:2782: checking for mingw32 environment" >&5
2782 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2793 if { (eval echo configure:2794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2805 echo "$ac_t""$ac_cv_mingw32" 1>&6
2807 test "$ac_cv_mingw32" = yes && MINGW32=yes
2808 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2809 echo "configure:2810: checking for EMX OS/2 environment" >&5
2810 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2821 if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2833 echo "$ac_t""$ac_cv_emxos2" 1>&6
2835 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2836 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2837 echo "configure:2838: checking how to run the C preprocessor" >&5
2838 # On Suns, sometimes $CPP names a directory.
2839 if test -n "$CPP" && test -d "$CPP"; then
2842 if test -z "$CPP"; then
2843 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 # This must be in double quotes, not single quotes, because CPP may get
2847 # substituted into the Makefile and "${CC-cc}" will confuse make.
2849 # On the NeXT, cc -E runs the code through the compiler's parser,
2850 # not just through cpp.
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2858 { (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2860 if test -z "$ac_err"; then
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 CPP="${CC-cc} -E -traditional-cpp"
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2877 if test -z "$ac_err"; then
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2884 CPP="${CC-cc} -nologo -E"
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2892 { (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2894 if test -z "$ac_err"; then
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2908 ac_cv_prog_CPP="$CPP"
2910 CPP="$ac_cv_prog_CPP"
2912 ac_cv_prog_CPP="$CPP"
2914 echo "$ac_t""$CPP" 1>&6
2916 # Check whether --enable-fast-install or --disable-fast-install was given.
2917 if test "${enable_fast_install+set}" = set; then
2918 enableval="$enable_fast_install"
2919 p=${PACKAGE-default}
2921 yes) enable_fast_install=yes ;;
2922 no) enable_fast_install=no ;;
2924 enable_fast_install=no
2925 # Look at the argument we got. We use all the common list separators.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2927 for pkg in $enableval; do
2928 if test "X$pkg" = "X$p"; then
2929 enable_fast_install=yes
2936 enable_fast_install=yes
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940 set dummy gcc; ac_word=$2
2941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_word" >&5
2943 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2951 for ac_dir in $ac_dummy; do
2952 test -z "$ac_dir" && ac_dir=.
2953 if test -f $ac_dir/$ac_word; then
2962 if test -n "$CC"; then
2963 echo "$ac_t""$CC" 1>&6
2965 echo "$ac_t""no" 1>&6
2968 if test -z "$CC"; then
2969 # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_word" >&5
2973 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2982 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 if test -f $ac_dir/$ac_word; then
2985 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2994 if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2998 if test $# -gt 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3003 set dummy "$ac_dir/$ac_word" "$@"
3011 if test -n "$CC"; then
3012 echo "$ac_t""$CC" 1>&6
3014 echo "$ac_t""no" 1>&6
3017 if test -z "$CC"; then
3018 case "`uname -s`" in
3019 *win32* | *WIN32* | *CYGWIN*)
3020 # Extract the first word of "cl", so it can be a program name with args.
3021 set dummy cl; ac_word=$2
3022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_word" >&5
3024 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if test -f $ac_dir/$ac_word; then
3043 if test -n "$CC"; then
3044 echo "$ac_t""$CC" 1>&6
3046 echo "$ac_t""no" 1>&6
3051 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3054 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3062 cross_compiling=$ac_cv_prog_cc_cross
3064 cat > conftest.$ac_ext << EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3072 ac_cv_prog_cc_works=yes
3073 # If we can't run a trivial program, we are probably using a cross compiler.
3074 if (./conftest; exit) 2>/dev/null; then
3075 ac_cv_prog_cc_cross=no
3077 ac_cv_prog_cc_cross=yes
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 ac_cv_prog_cc_works=no
3086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3090 cross_compiling=$ac_cv_prog_cc_cross
3092 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3093 if test $ac_cv_prog_cc_works = no; then
3094 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3096 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3097 echo "configure:3098: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3098 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3099 cross_compiling=$ac_cv_prog_cc_cross
3101 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3102 echo "configure:3103: checking whether we are using GNU C" >&5
3103 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.c <<EOF
3111 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3118 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3120 if test $ac_cv_prog_gcc = yes; then
3126 ac_test_CFLAGS="${CFLAGS+set}"
3127 ac_save_CFLAGS="$CFLAGS"
3129 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3130 echo "configure:3131: checking whether ${CC-cc} accepts -g" >&5
3131 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 echo 'void f(){}' > conftest.c
3135 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3144 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3145 if test "$ac_test_CFLAGS" = set; then
3146 CFLAGS="$ac_save_CFLAGS"
3147 elif test $ac_cv_prog_cc_g = yes; then
3148 if test "$GCC" = yes; then
3154 if test "$GCC" = yes; then
3161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3162 if test "${with_gnu_ld+set}" = set; then
3163 withval="$with_gnu_ld"
3164 test "$withval" = no || with_gnu_ld=yes
3170 if test "$GCC" = yes; then
3171 # Check if gcc -print-prog-name=ld gives a path.
3172 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3173 echo "configure:3174: checking for ld used by GCC" >&5
3176 # gcc leaves a trailing carriage return which upsets mingw
3177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3182 # Accept absolute paths.
3183 [\\/]* | [A-Za-z]:[\\/]*)
3184 re_direlt='/[^/][^/]*/\.\./'
3185 # Canonicalize the path of ld
3186 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3187 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3188 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3190 test -z "$LD" && LD="$ac_prog"
3193 # If it fails, then pretend we aren't using GCC.
3197 # If it is relative, then search for the first ld in PATH.
3201 elif test "$with_gnu_ld" = yes; then
3202 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3203 echo "configure:3204: checking for GNU ld" >&5
3205 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3206 echo "configure:3207: checking for non-GNU ld" >&5
3208 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -z "$LD"; then
3212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3213 for ac_dir in $PATH; do
3214 test -z "$ac_dir" && ac_dir=.
3215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3216 lt_cv_path_LD="$ac_dir/$ac_prog"
3217 # Check to see if the program is GNU ld. I'd rather use --version,
3218 # but apparently some GNU ld's only accept -v.
3219 # Break only if it was the GNU/non-GNU ld that we prefer.
3220 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3221 test "$with_gnu_ld" != no && break
3223 test "$with_gnu_ld" != yes && break
3229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3234 if test -n "$LD"; then
3235 echo "$ac_t""$LD" 1>&6
3237 echo "$ac_t""no" 1>&6
3239 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3240 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3241 echo "configure:3242: checking if the linker ($LD) is GNU ld" >&5
3242 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3246 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3247 lt_cv_prog_gnu_ld=yes
3249 lt_cv_prog_gnu_ld=no
3253 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3254 with_gnu_ld=$lt_cv_prog_gnu_ld
3257 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $LD option to reload object files" >&5
3259 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 lt_cv_ld_reload_flag='-r'
3265 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3266 reload_flag=$lt_cv_ld_reload_flag
3267 test -n "$reload_flag" && reload_flag=" $reload_flag"
3269 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3270 echo "configure:3271: checking for BSD-compatible nm" >&5
3271 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 if test -n "$NM"; then
3275 # Let the user override the test.
3278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3279 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3280 test -z "$ac_dir" && ac_dir=.
3281 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3282 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3283 # Check to see if the nm accepts a BSD-compat flag.
3284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3285 # nm: unknown option "B" ignored
3286 # Tru64's nm complains that /dev/null is an invalid object file
3287 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3288 lt_cv_path_NM="$tmp_nm -B"
3290 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3291 lt_cv_path_NM="$tmp_nm -p"
3294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3295 continue # so that we can try to find one that supports BSD flags
3300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3305 echo "$ac_t""$NM" 1>&6
3307 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3308 echo "configure:3309: checking for a sed that does not truncate output" >&5
3309 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 # Loop through the user's path and test for sed and gsed.
3313 # Then use that list of sed's as ones to test for truncation.
3314 as_executable_p="test -f"
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_prog in sed gsed; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3323 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3329 # Create a temporary directory, and hook for its removal unless debugging.
3332 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3333 trap '{ (exit 1); exit 1; }' 1 2 13 15
3336 # Create a (secure) tmp directory for tmp files.
3339 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3340 test -n "$tmp" && test -d "$tmp"
3343 tmp=$TMPDIR/sed$$-$RANDOM
3344 (umask 077 && mkdir $tmp)
3347 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3348 { (exit 1); exit 1; }
3352 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3353 # along with /bin/sed that truncates output.
3354 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3355 test ! -f ${_sed} && break
3356 cat /dev/null > "$tmp/sed.in"
3358 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3359 # Check for GNU sed and select it if it is found.
3360 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3361 lt_cv_path_SED=${_sed}
3365 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3366 mv "$tmp/sed.tmp" "$tmp/sed.in"
3367 cp "$tmp/sed.in" "$tmp/sed.nl"
3368 echo >>"$tmp/sed.nl"
3369 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3370 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3371 # 40000 chars as input seems more than enough
3372 test $_count -gt 10 && break
3373 _count=`expr $_count + 1`
3374 if test $_count -gt $_max; then
3376 lt_cv_path_SED=$_sed
3384 if test "X$SED" != "X"; then
3389 echo "$ac_t""$SED" 1>&6
3391 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3392 echo "configure:3393: checking whether ln -s works" >&5
3393 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3397 if ln -s X conftestdata 2>/dev/null
3400 ac_cv_prog_LN_S="ln -s"
3405 LN_S="$ac_cv_prog_LN_S"
3406 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3407 echo "$ac_t""yes" 1>&6
3409 echo "$ac_t""no" 1>&6
3412 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3413 echo "configure:3414: checking how to recognise dependent libraries" >&5
3414 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 lt_cv_file_magic_cmd='$MAGIC_CMD'
3418 lt_cv_file_magic_test_file=
3419 lt_cv_deplibs_check_method='unknown'
3420 # Need to set the preceding variable on all platforms that support
3421 # interlibrary dependencies.
3422 # 'none' -- dependencies not supported.
3423 # `unknown' -- same as none, but documents that we really don't know.
3424 # 'pass_all' -- all dependencies passed with no checks.
3425 # 'test_compile' -- check by making test program.
3426 # 'file_magic [[regex]]' -- check by looking for files in library path
3427 # which responds to the $file_magic_cmd with a given egrep regex.
3428 # If you have `file' or equivalent on your system and you're not sure
3429 # whether `pass_all' will *always* work, you probably want this one.
3433 lt_cv_deplibs_check_method=pass_all
3437 lt_cv_deplibs_check_method=pass_all
3441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3442 lt_cv_file_magic_cmd='/usr/bin/file -L'
3443 lt_cv_file_magic_test_file=/shlib/libc.so
3446 cygwin* | mingw* | pw32*)
3447 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3448 lt_cv_file_magic_cmd='$OBJDUMP -f'
3451 darwin* | rhapsody*)
3452 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3453 lt_cv_file_magic_cmd='/usr/bin/file -L'
3455 rhapsody* | darwin1.[012])
3456 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3459 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3465 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3468 # Not sure whether the presence of OpenBSD here was a mistake.
3469 # Let's accept both of them until this is cleared up.
3470 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3471 lt_cv_file_magic_cmd=/usr/bin/file
3472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3476 lt_cv_deplibs_check_method=pass_all
3481 lt_cv_deplibs_check_method=pass_all
3485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3486 lt_cv_file_magic_cmd=/usr/bin/file
3487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3490 irix5* | irix6* | nonstopux*)
3492 irix5* | nonstopux*)
3493 # this will be overridden with pass_all, but let us keep it just in case
3494 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3498 *-32|*"-32 ") libmagic=32-bit;;
3499 *-n32|*"-n32 ") libmagic=N32;;
3500 *-64|*"-64 ") libmagic=64-bit;;
3501 *) libmagic=never-match;;
3503 # this will be overridden with pass_all, but let us keep it just in case
3504 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3507 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3508 lt_cv_deplibs_check_method=pass_all
3511 # This must be Linux ELF.
3514 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3515 lt_cv_deplibs_check_method=pass_all ;;
3517 # glibc up to 2.1.1 does not perform some relocations on ARM
3518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3520 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3527 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3533 lt_cv_file_magic_cmd=/usr/bin/file
3534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3538 lt_cv_file_magic_cmd=/usr/bin/file
3539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3543 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3548 lt_cv_deplibs_check_method=pass_all
3551 osf3* | osf4* | osf5*)
3552 # this will be overridden with pass_all, but let us keep it just in case
3553 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3554 lt_cv_file_magic_test_file=/shlib/libc.so
3555 lt_cv_deplibs_check_method=pass_all
3559 lt_cv_deplibs_check_method=pass_all
3563 lt_cv_deplibs_check_method=pass_all
3564 lt_cv_file_magic_test_file=/lib/libc.so
3567 sysv5uw[78]* | sysv4*uw2*)
3568 lt_cv_deplibs_check_method=pass_all
3571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3572 case $host_vendor in
3574 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]'
3575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3578 lt_cv_deplibs_check_method=pass_all
3581 lt_cv_file_magic_cmd='/bin/file'
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3585 lt_cv_file_magic_cmd='/bin/file'
3586 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3587 lt_cv_file_magic_test_file=/lib/libc.so
3590 lt_cv_deplibs_check_method=pass_all
3598 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3599 file_magic_cmd=$lt_cv_file_magic_cmd
3600 deplibs_check_method=$lt_cv_deplibs_check_method
3602 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3603 echo "configure:3604: checking for object suffix" >&5
3604 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3608 echo 'int i = 1;' > conftest.$ac_ext
3609 if { (eval echo configure:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3610 for ac_file in conftest.*; do
3613 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3617 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3622 echo "$ac_t""$ac_cv_objext" 1>&6
3623 OBJEXT=$ac_cv_objext
3624 ac_objext=$ac_cv_objext
3629 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3630 echo "configure:3631: checking for executable suffix" >&5
3631 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3638 echo 'int main () { return 0; }' > conftest.$ac_ext
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3641 for file in conftest.*; do
3643 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3644 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3648 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3651 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3656 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3657 echo "$ac_t""${ac_cv_exeext}" 1>&6
3660 if test $host != $build; then
3661 ac_tool_prefix=${host_alias}-
3669 # Check for command to grab the raw symbol name followed by C symbol from nm.
3670 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3671 echo "configure:3672: checking command to parse $NM output" >&5
3672 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3676 # These are sane defaults that work on at least a few old systems.
3677 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3679 # Character class describing NM global symbol codes.
3680 symcode='[BCDEGRST]'
3682 # Regexp to match symbols that can be accessed directly from C.
3683 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3685 # Transform the above into a raw symbol and a C symbol.
3686 symxfrm='\1 \2\3 \3'
3688 # Transform an extracted symbol line into a proper C declaration
3689 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3691 # Transform an extracted symbol line into symbol name and symbol address
3692 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'"
3694 # Define system-specific variables.
3699 cygwin* | mingw* | pw32*)
3700 symcode='[ABCDGISTW]'
3702 hpux*) # Its linker distinguishes data from code symbols
3703 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3704 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'"
3707 symcode='[BCDEGRST]'
3710 symcode='[BCDEGQRST]'
3720 # Handle CRLF in mingw tool chain
3724 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3728 # If we're using GNU nm, then use its standard symbol codes.
3729 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3730 symcode='[ABCDGISTW]'
3733 # Try without a prefix undercore, then with it.
3734 for ac_symprfx in "" "_"; do
3736 # Write the raw and C identifiers.
3737 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3739 # Check to see that the pipe works correctly.
3742 cat > conftest.$ac_ext <<EOF
3747 void nm_test_func(){}
3751 int main(){nm_test_var='a';nm_test_func();return(0);}
3754 if { (eval echo configure:3755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3755 # Now try to grab the symbols.
3757 if { (eval echo configure:3758: \"$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
3758 # Try sorting and uniquifying the output.
3759 if sort "$nlist" | uniq > "$nlist"T; then
3760 mv -f "$nlist"T "$nlist"
3765 # Make sure that we snagged all the symbols we need.
3766 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3767 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3768 cat <<EOF > conftest.$ac_ext
3774 # Now generate the symbol file.
3775 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3777 cat <<EOF >> conftest.$ac_ext
3778 #if defined (__STDC__) && __STDC__
3779 # define lt_ptr void *
3781 # define lt_ptr char *
3785 /* The mapping between symbol names and symbols. */
3790 lt_preloaded_symbols[] =
3793 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3794 cat <<\EOF >> conftest.$ac_ext
3802 # Now try linking the two files.
3803 mv conftest.$ac_objext conftstm.$ac_objext
3805 save_CFLAGS="$CFLAGS"
3806 LIBS="conftstm.$ac_objext"
3807 CFLAGS="$CFLAGS$no_builtin_flag"
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3812 CFLAGS="$save_CFLAGS"
3814 echo "cannot find nm_test_func in $nlist" >&5
3817 echo "cannot find nm_test_var in $nlist" >&5
3820 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3823 echo "$progname: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3826 rm -f conftest* conftst*
3828 # Do not use the global_symbol_pipe unless it works.
3829 if test "$pipe_works" = yes; then
3832 lt_cv_sys_global_symbol_pipe=
3838 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3840 global_symbol_to_cdecl=
3841 global_symbol_to_c_name_address=
3843 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3844 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3846 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3848 echo "$ac_t""failed" 1>&6
3850 echo "$ac_t""ok" 1>&6
3853 for ac_hdr in dlfcn.h
3855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_hdr" >&5
3858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3867 { (eval echo configure:3868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3869 if test -z "$ac_err"; then
3871 eval "ac_cv_header_$ac_safe=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_header_$ac_safe=no"
3881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3884 cat >> confdefs.h <<EOF
3885 #define $ac_tr_hdr 1
3889 echo "$ac_t""no" 1>&6
3898 # Only perform the check for file, if the check method requires it
3899 case $deplibs_check_method in
3901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3902 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
3903 echo "configure:3904: checking for ${ac_tool_prefix}file" >&5
3904 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3915 ac_save_MAGIC_CMD="$MAGIC_CMD"
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="/usr/bin:$PATH"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/${ac_tool_prefix}file; then
3921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3922 if test -n "$file_magic_test_file"; then
3923 case $deplibs_check_method in
3925 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3928 egrep "$file_magic_regex" > /dev/null; then
3933 *** Warning: the command libtool uses to detect shared libraries,
3934 *** $file_magic_cmd, produces output that libtool cannot recognize.
3935 *** The result is that libtool may fail to recognize shared libraries
3936 *** as such. This will affect the creation of libtool libraries that
3937 *** depend on shared libraries, but programs linked with such libtool
3938 *** libraries will work regardless of this problem. Nevertheless, you
3939 *** may want to report the problem to your system manager and/or to
3940 *** bug-libtool@gnu.org
3950 MAGIC_CMD="$ac_save_MAGIC_CMD"
3955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3956 if test -n "$MAGIC_CMD"; then
3957 echo "$ac_t""$MAGIC_CMD" 1>&6
3959 echo "$ac_t""no" 1>&6
3962 if test -z "$lt_cv_path_MAGIC_CMD"; then
3963 if test -n "$ac_tool_prefix"; then
3964 echo $ac_n "checking for file""... $ac_c" 1>&6
3965 echo "configure:3966: checking for file" >&5
3966 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3977 ac_save_MAGIC_CMD="$MAGIC_CMD"
3978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3979 ac_dummy="/usr/bin:$PATH"
3980 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 if test -f $ac_dir/file; then
3983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3984 if test -n "$file_magic_test_file"; then
3985 case $deplibs_check_method in
3987 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3990 egrep "$file_magic_regex" > /dev/null; then
3995 *** Warning: the command libtool uses to detect shared libraries,
3996 *** $file_magic_cmd, produces output that libtool cannot recognize.
3997 *** The result is that libtool may fail to recognize shared libraries
3998 *** as such. This will affect the creation of libtool libraries that
3999 *** depend on shared libraries, but programs linked with such libtool
4000 *** libraries will work regardless of this problem. Nevertheless, you
4001 *** may want to report the problem to your system manager and/or to
4002 *** bug-libtool@gnu.org
4012 MAGIC_CMD="$ac_save_MAGIC_CMD"
4017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4018 if test -n "$MAGIC_CMD"; then
4019 echo "$ac_t""$MAGIC_CMD" 1>&6
4021 echo "$ac_t""no" 1>&6
4033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4036 echo "configure:4037: checking for $ac_word" >&5
4037 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 if test -n "$RANLIB"; then
4041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4045 for ac_dir in $ac_dummy; do
4046 test -z "$ac_dir" && ac_dir=.
4047 if test -f $ac_dir/$ac_word; then
4048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4055 RANLIB="$ac_cv_prog_RANLIB"
4056 if test -n "$RANLIB"; then
4057 echo "$ac_t""$RANLIB" 1>&6
4059 echo "$ac_t""no" 1>&6
4063 if test -z "$ac_cv_prog_RANLIB"; then
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "ranlib", so it can be a program name with args.
4066 set dummy ranlib; ac_word=$2
4067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4068 echo "configure:4069: checking for $ac_word" >&5
4069 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 if test -n "$RANLIB"; then
4073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4077 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 if test -f $ac_dir/$ac_word; then
4080 ac_cv_prog_RANLIB="ranlib"
4085 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4088 RANLIB="$ac_cv_prog_RANLIB"
4089 if test -n "$RANLIB"; then
4090 echo "$ac_t""$RANLIB" 1>&6
4092 echo "$ac_t""no" 1>&6
4100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}strip; ac_word=$2
4102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_word" >&5
4104 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 if test -n "$STRIP"; then
4108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4112 for ac_dir in $ac_dummy; do
4113 test -z "$ac_dir" && ac_dir=.
4114 if test -f $ac_dir/$ac_word; then
4115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4122 STRIP="$ac_cv_prog_STRIP"
4123 if test -n "$STRIP"; then
4124 echo "$ac_t""$STRIP" 1>&6
4126 echo "$ac_t""no" 1>&6
4130 if test -z "$ac_cv_prog_STRIP"; then
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "strip", so it can be a program name with args.
4133 set dummy strip; ac_word=$2
4134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_word" >&5
4136 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 if test -n "$STRIP"; then
4140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4144 for ac_dir in $ac_dummy; do
4145 test -z "$ac_dir" && ac_dir=.
4146 if test -f $ac_dir/$ac_word; then
4147 ac_cv_prog_STRIP="strip"
4152 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4155 STRIP="$ac_cv_prog_STRIP"
4156 if test -n "$STRIP"; then
4157 echo "$ac_t""$STRIP" 1>&6
4159 echo "$ac_t""no" 1>&6
4169 enable_win32_dll=yes
4171 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4172 if test "${enable_libtool_lock+set}" = set; then
4173 enableval="$enable_libtool_lock"
4177 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4179 # Some flags need to be propagated to the compiler or linker for good
4183 # Find out which ABI we are using.
4184 echo '#line 4185 "configure"' > conftest.$ac_ext
4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4186 case `/usr/bin/file conftest.$ac_objext` in
4202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4203 SAVE_CFLAGS="$CFLAGS"
4204 CFLAGS="$CFLAGS -belf"
4205 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4206 echo "configure:4207: checking whether the C compiler needs -belf" >&5
4207 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4216 cross_compiling=$ac_cv_prog_cc_cross
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 lt_cv_cc_needs_belf=yes
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 lt_cv_cc_needs_belf=no
4237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4241 cross_compiling=$ac_cv_prog_cc_cross
4245 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4246 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4247 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4248 CFLAGS="$SAVE_CFLAGS"
4252 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4253 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4254 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_word" >&5
4257 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 if test -n "$DLLTOOL"; then
4261 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 for ac_dir in $ac_dummy; do
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f $ac_dir/$ac_word; then
4268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4275 DLLTOOL="$ac_cv_prog_DLLTOOL"
4276 if test -n "$DLLTOOL"; then
4277 echo "$ac_t""$DLLTOOL" 1>&6
4279 echo "$ac_t""no" 1>&6
4283 if test -z "$ac_cv_prog_DLLTOOL"; then
4284 if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "dlltool", so it can be a program name with args.
4286 set dummy dlltool; ac_word=$2
4287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4288 echo "configure:4289: checking for $ac_word" >&5
4289 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 if test -n "$DLLTOOL"; then
4293 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4297 for ac_dir in $ac_dummy; do
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f $ac_dir/$ac_word; then
4300 ac_cv_prog_DLLTOOL="dlltool"
4305 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4308 DLLTOOL="$ac_cv_prog_DLLTOOL"
4309 if test -n "$DLLTOOL"; then
4310 echo "$ac_t""$DLLTOOL" 1>&6
4312 echo "$ac_t""no" 1>&6
4320 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4321 set dummy ${ac_tool_prefix}as; ac_word=$2
4322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_word" >&5
4324 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 if test -n "$AS"; then
4328 ac_cv_prog_AS="$AS" # Let the user override the test.
4330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4332 for ac_dir in $ac_dummy; do
4333 test -z "$ac_dir" && ac_dir=.
4334 if test -f $ac_dir/$ac_word; then
4335 ac_cv_prog_AS="${ac_tool_prefix}as"
4343 if test -n "$AS"; then
4344 echo "$ac_t""$AS" 1>&6
4346 echo "$ac_t""no" 1>&6
4350 if test -z "$ac_cv_prog_AS"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "as", so it can be a program name with args.
4353 set dummy as; ac_word=$2
4354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_word" >&5
4356 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 if test -n "$AS"; then
4360 ac_cv_prog_AS="$AS" # Let the user override the test.
4362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4364 for ac_dir in $ac_dummy; do
4365 test -z "$ac_dir" && ac_dir=.
4366 if test -f $ac_dir/$ac_word; then
4372 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4376 if test -n "$AS"; then
4377 echo "$ac_t""$AS" 1>&6
4379 echo "$ac_t""no" 1>&6
4387 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4388 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_word" >&5
4391 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 if test -n "$OBJDUMP"; then
4395 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4399 for ac_dir in $ac_dummy; do
4400 test -z "$ac_dir" && ac_dir=.
4401 if test -f $ac_dir/$ac_word; then
4402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4409 OBJDUMP="$ac_cv_prog_OBJDUMP"
4410 if test -n "$OBJDUMP"; then
4411 echo "$ac_t""$OBJDUMP" 1>&6
4413 echo "$ac_t""no" 1>&6
4417 if test -z "$ac_cv_prog_OBJDUMP"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "objdump", so it can be a program name with args.
4420 set dummy objdump; ac_word=$2
4421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_word" >&5
4423 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 if test -n "$OBJDUMP"; then
4427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4431 for ac_dir in $ac_dummy; do
4432 test -z "$ac_dir" && ac_dir=.
4433 if test -f $ac_dir/$ac_word; then
4434 ac_cv_prog_OBJDUMP="objdump"
4439 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4442 OBJDUMP="$ac_cv_prog_OBJDUMP"
4443 if test -n "$OBJDUMP"; then
4444 echo "$ac_t""$OBJDUMP" 1>&6
4446 echo "$ac_t""no" 1>&6
4455 # recent cygwin and mingw systems supply a stub DllMain which the user
4456 # can override, but on older systems we have to supply one
4457 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4458 echo "configure:4459: checking if libtool should supply DllMain function" >&5
4459 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 lt_cv_need_dllmain=no
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 lt_cv_need_dllmain=yes
4483 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4486 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4487 # old mingw systems require "-dll" to link a DLL, while more recent ones
4489 SAVE_CFLAGS="$CFLAGS"
4490 CFLAGS="$CFLAGS -mdll"
4491 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4492 echo "configure:4493: checking how to link DLLs" >&5
4493 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 lt_cv_cc_dll_switch=-mdll
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 lt_cv_cc_dll_switch=-dll
4516 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4517 CFLAGS="$SAVE_CFLAGS" ;;
4518 *-*-cygwin* | *-*-pw32*)
4519 # cygwin systems need to pass --dll to the linker, and not link
4520 # crt.o which will require a WinMain@16 definition.
4521 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4527 # Sed substitution that helps us do robust quoting. It backslashifies
4528 # metacharacters that are still active within double-quoted strings.
4529 Xsed='sed -e s/^X//'
4530 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4532 # Same as above, but do not quote variable references.
4533 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4535 # Sed substitution to delay expansion of an escaped shell variable in a
4536 # double_quote_subst'ed string.
4537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4543 default_ofile=libtool
4544 can_build_shared=yes
4546 # All known linkers require a `.a' archive for static linking (except M$VC,
4547 # which needs '.lib').
4549 ltmain="$ac_aux_dir/ltmain.sh"
4550 ofile="$default_ofile"
4551 with_gnu_ld="$lt_cv_prog_gnu_ld"
4552 need_locks="$enable_libtool_lock"
4555 old_CFLAGS="$CFLAGS"
4557 # Set sane defaults for various variables
4558 test -z "$AR" && AR=ar
4559 test -z "$AR_FLAGS" && AR_FLAGS=cru
4560 test -z "$AS" && AS=as
4561 test -z "$CC" && CC=cc
4562 test -z "$DLLTOOL" && DLLTOOL=dlltool
4563 test -z "$LD" && LD=ld
4564 test -z "$LN_S" && LN_S="ln -s"
4565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4566 test -z "$NM" && NM=nm
4567 test -z "$OBJDUMP" && OBJDUMP=objdump
4568 test -z "$RANLIB" && RANLIB=:
4569 test -z "$STRIP" && STRIP=:
4570 test -z "$ac_objext" && ac_objext=o
4572 if test x"$host" != x"$build"; then
4573 ac_tool_prefix=${host_alias}-
4578 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4581 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4586 # AIX sometimes has problems with the GCC collect2 program. For some
4587 # reason, if we set the COLLECT_NAMES environment variable, the problems
4588 # vanish in a puff of smoke.
4589 if test "X${COLLECT_NAMES+set}" != Xset; then
4591 export COLLECT_NAMES
4596 # Determine commands to create old-style static archives.
4597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4598 old_postinstall_cmds='chmod 644 $oldlib'
4599 old_postuninstall_cmds=
4601 if test -n "$RANLIB"; then
4604 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4607 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4610 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4613 # Allow CC to be a program name with arguments.
4617 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4618 echo "configure:4619: checking for objdir" >&5
4619 rm -f .libs 2>/dev/null
4620 mkdir .libs 2>/dev/null
4621 if test -d .libs; then
4624 # MS-DOS does not allow filenames that begin with a dot.
4627 rmdir .libs 2>/dev/null
4628 echo "$ac_t""$objdir" 1>&6
4631 # Check whether --with-pic or --without-pic was given.
4632 if test "${with_pic+set}" = set; then
4639 test -z "$pic_mode" && pic_mode=default
4641 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4642 # in isolation, and that seeing it set (from the cache) indicates that
4643 # the associated values are set (in the cache) correctly too.
4644 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4645 echo "configure:4646: checking for $compiler option to produce PIC" >&5
4646 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4650 lt_cv_prog_cc_shlib=
4652 lt_cv_prog_cc_static=
4653 lt_cv_prog_cc_no_builtin=
4654 lt_cv_prog_cc_can_build_shared=$can_build_shared
4656 if test "$GCC" = yes; then
4657 lt_cv_prog_cc_wl='-Wl,'
4658 lt_cv_prog_cc_static='-static'
4662 # Below there is a dirty hack to force normal static linking with -ldl
4663 # The problem is because libdl dynamically linked with both libc and
4664 # libC (AIX C++ library), which obviously doesn't included in libraries
4665 # list by gcc. This cause undefined symbols with -static flags.
4666 # This hack allows C programs to be linked with "-static -ldl", but
4667 # not sure about C++ programs.
4668 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4671 # FIXME: we need at least 68020 code to build shared libraries, but
4672 # adding the `-m68020' flag to GCC prevents building anything better,
4674 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4676 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4677 # PIC is the default for these OSes.
4679 darwin* | rhapsody*)
4680 # PIC is the default on this platform
4681 # Common symbols not allowed in MH_DYLIB files
4682 lt_cv_prog_cc_pic='-fno-common'
4684 cygwin* | mingw* | pw32* | os2*)
4685 # This hack is so that the source file can tell whether it is being
4686 # built for inclusion in a dll (and should export symbols for example).
4687 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4690 if test -d /usr/nec; then
4691 lt_cv_prog_cc_pic=-Kconform_pic
4695 lt_cv_prog_cc_pic='-fPIC'
4699 # PORTME Check for PIC flags for the system compiler.
4701 aix3* | aix4* | aix5*)
4702 lt_cv_prog_cc_wl='-Wl,'
4703 # All AIX code is PIC.
4704 if test "$host_cpu" = ia64; then
4705 # AIX 5 now supports IA64 processor
4706 lt_cv_prog_cc_static='-Bstatic'
4708 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4712 hpux9* | hpux10* | hpux11*)
4713 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4714 lt_cv_prog_cc_wl='-Wl,'
4715 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4716 lt_cv_prog_cc_pic='+Z'
4719 irix5* | irix6* | nonstopux*)
4720 lt_cv_prog_cc_wl='-Wl,'
4721 lt_cv_prog_cc_static='-non_shared'
4722 # PIC (with -KPIC) is the default.
4725 cygwin* | mingw* | pw32* | os2*)
4726 # This hack is so that the source file can tell whether it is being
4727 # built for inclusion in a dll (and should export symbols for example).
4728 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4732 lt_cv_prog_cc_pic='-KPIC'
4733 lt_cv_prog_cc_static='-Bstatic'
4737 # XPLINK code is PIC by default
4740 osf3* | osf4* | osf5*)
4741 # All OSF/1 code is PIC.
4742 lt_cv_prog_cc_wl='-Wl,'
4743 lt_cv_prog_cc_static='-non_shared'
4747 lt_cv_prog_cc_pic='-Kpic'
4748 lt_cv_prog_cc_static='-dn'
4749 lt_cv_prog_cc_shlib='-belf'
4753 lt_cv_prog_cc_pic='-KPIC'
4754 lt_cv_prog_cc_static='-Bstatic'
4755 lt_cv_prog_cc_wl='-Wl,'
4759 lt_cv_prog_cc_pic='-PIC'
4760 lt_cv_prog_cc_static='-Bstatic'
4761 lt_cv_prog_cc_wl='-Qoption ld '
4764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4765 lt_cv_prog_cc_pic='-KPIC'
4766 lt_cv_prog_cc_static='-Bstatic'
4767 lt_cv_prog_cc_wl='-Wl,'
4771 lt_cv_prog_cc_pic='-pic'
4772 lt_cv_prog_cc_static='-Bstatic'
4776 if test -d /usr/nec ;then
4777 lt_cv_prog_cc_pic='-Kconform_pic'
4778 lt_cv_prog_cc_static='-Bstatic'
4783 lt_cv_prog_cc_can_build_shared=no
4790 if test -z "$lt_cv_prog_cc_pic"; then
4791 echo "$ac_t""none" 1>&6
4793 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4795 # Check to make sure the pic_flag actually works.
4796 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4797 echo "configure:4798: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4798 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 save_CFLAGS="$CFLAGS"
4802 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4811 if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 hpux9* | hpux10* | hpux11*)
4815 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4816 # they create non-PIC objects. So, if there were any warnings, we
4817 # assume that PIC is not supported.
4818 if test -s conftest.err; then
4819 lt_cv_prog_cc_pic_works=no
4821 lt_cv_prog_cc_pic_works=yes
4825 lt_cv_prog_cc_pic_works=yes
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 lt_cv_prog_cc_pic_works=no
4837 CFLAGS="$save_CFLAGS"
4842 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4844 lt_cv_prog_cc_can_build_shared=no
4846 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4849 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
4852 # Check for any special shared library compilation flags.
4853 if test -n "$lt_cv_prog_cc_shlib"; then
4854 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
4855 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4857 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
4858 lt_cv_prog_cc_can_build_shared=no
4862 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
4863 echo "configure:4864: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4864 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 lt_cv_prog_cc_static_works=no
4868 save_LDFLAGS="$LDFLAGS"
4869 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 lt_cv_prog_cc_static_works=yes
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4886 LDFLAGS="$save_LDFLAGS"
4891 # Belt *and* braces to stop my trousers falling down:
4892 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4893 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
4895 pic_flag="$lt_cv_prog_cc_pic"
4896 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4897 wl="$lt_cv_prog_cc_wl"
4898 link_static_flag="$lt_cv_prog_cc_static"
4899 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4900 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4903 # Check to see if options -o and -c are simultaneously supported by compiler
4904 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
4905 echo "configure:4906: checking if $compiler supports -c -o file.$ac_objext" >&5
4906 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4910 $rm -r conftest 2>/dev/null
4913 echo "int some_variable = 0;" > conftest.$ac_ext
4915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4916 # that will create temporary files in the current directory regardless of
4917 # the output directory. Thus, making CWD read-only will cause this test
4918 # to fail, enabling locking or at least warning the user not to do parallel
4921 save_CFLAGS="$CFLAGS"
4922 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4924 if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4925 # The compiler can only warn and ignore the option if not recognized
4926 # So say no if there are warnings
4927 if test -s out/conftest.err; then
4928 lt_cv_compiler_c_o=no
4930 lt_cv_compiler_c_o=yes
4933 # Append any errors to the config.log.
4934 cat out/conftest.err 1>&5
4935 lt_cv_compiler_c_o=no
4937 CFLAGS="$save_CFLAGS"
4943 $rm -r conftest 2>/dev/null
4947 compiler_c_o=$lt_cv_compiler_c_o
4948 echo "$ac_t""$compiler_c_o" 1>&6
4950 if test x"$compiler_c_o" = x"yes"; then
4951 # Check to see if we can write to a .lo
4952 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
4953 echo "configure:4954: checking if $compiler supports -c -o file.lo" >&5
4954 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4958 lt_cv_compiler_o_lo=no
4959 save_CFLAGS="$CFLAGS"
4960 CFLAGS="$CFLAGS -c -o conftest.lo"
4961 save_objext="$ac_objext"
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4968 int some_variable = 0;
4971 if { (eval echo configure:4972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4973 # The compiler can only warn and ignore the option if not recognized
4974 # So say no if there are warnings
4975 if test -s conftest.err; then
4976 lt_cv_compiler_o_lo=no
4978 lt_cv_compiler_o_lo=yes
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4986 ac_objext="$save_objext"
4987 CFLAGS="$save_CFLAGS"
4991 compiler_o_lo=$lt_cv_compiler_o_lo
4992 echo "$ac_t""$compiler_o_lo" 1>&6
4997 # Check to see if we can do hard links to lock some files if needed
4998 hard_links="nottested"
4999 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5000 # do not overwrite the value of need_locks provided by the user
5001 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5002 echo "configure:5003: checking if we can lock with hard links" >&5
5005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5007 ln conftest.a conftest.b 2>&5 || hard_links=no
5008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5009 echo "$ac_t""$hard_links" 1>&6
5010 if test "$hard_links" = no; then
5011 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5018 if test "$GCC" = yes; then
5019 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5020 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5021 echo "configure:5022: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5022 echo "int some_variable = 0;" > conftest.$ac_ext
5023 save_CFLAGS="$CFLAGS"
5024 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5025 compiler_rtti_exceptions=no
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5031 int some_variable = 0;
5034 if { (eval echo configure:5035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5036 # The compiler can only warn and ignore the option if not recognized
5037 # So say no if there are warnings
5038 if test -s conftest.err; then
5039 compiler_rtti_exceptions=no
5041 compiler_rtti_exceptions=yes
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5049 CFLAGS="$save_CFLAGS"
5050 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5052 if test "$compiler_rtti_exceptions" = "yes"; then
5053 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5055 no_builtin_flag=' -fno-builtin'
5059 # See if the linker supports building shared libraries.
5060 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5061 echo "configure:5062: checking whether the linker ($LD) supports shared libraries" >&5
5063 allow_undefined_flag=
5065 need_lib_prefix=unknown
5066 need_version=unknown
5067 # when you set need_version to no, make sure it does not cause -set_version
5068 # flags to be left without arguments
5070 archive_expsym_cmds=
5071 old_archive_from_new_cmds=
5072 old_archive_from_expsyms_cmds=
5073 export_dynamic_flag_spec=
5074 whole_archive_flag_spec=
5075 thread_safe_flag_spec=
5076 hardcode_into_libs=no
5077 hardcode_libdir_flag_spec=
5078 hardcode_libdir_separator=
5081 hardcode_shlibpath_var=unsupported
5083 link_all_deplibs=unknown
5084 always_export_symbols=no
5085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5086 # include_expsyms should be a list of space-separated symbols to be *always*
5087 # included in the symbol list
5089 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5092 # as well as any symbol that contains `d'.
5093 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5095 # platforms (ab)use it in PIC code, but their linkers get confused if
5096 # the symbol is explicitly referenced. Since portable code cannot
5097 # rely on this symbol name, it's probably fine to never include it in
5098 # preloaded symbol tables.
5099 extract_expsyms_cmds=
5102 cygwin* | mingw* | pw32*)
5103 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5104 # When not using gcc, we currently assume that we are using
5105 # Microsoft Visual C++.
5106 if test "$GCC" != yes; then
5116 if test "$with_gnu_ld" = yes; then
5117 # If archive_cmds runs LD, not CC, wlarc should be empty
5120 # See if GNU ld supports shared libraries.
5122 aix3* | aix4* | aix5*)
5123 # On AIX, the GNU linker is very broken
5124 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5129 *** to be unable to reliably create shared libraries on AIX.
5130 *** Therefore, libtool is disabling shared libraries support. If you
5131 *** really care for shared libraries, you may want to modify your PATH
5132 *** so that a non-GNU linker is found, and then restart.
5138 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)'
5139 hardcode_libdir_flag_spec='-L$libdir'
5140 hardcode_minus_L=yes
5142 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5143 # that the semantics of dynamic libraries on AmigaOS, at least up
5144 # to version 4, is to share data among multiple programs linked
5145 # with the same dynamic library. Since this doesn't match the
5146 # behavior of shared libraries on other platforms, we can use
5152 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5153 allow_undefined_flag=unsupported
5154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5155 # support --undefined. This deserves some investigation. FIXME
5156 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5162 cygwin* | mingw* | pw32*)
5163 # hardcode_libdir_flag_spec is actually meaningless, as there is
5164 # no search path for DLLs.
5165 hardcode_libdir_flag_spec='-L$libdir'
5166 allow_undefined_flag=unsupported
5167 always_export_symbols=yes
5169 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5170 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5171 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5172 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5173 else $CC -o impgen impgen.c ; fi)~
5174 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5176 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5178 # cygwin and mingw dlls have different entry points and sets of symbols
5180 # FIXME: what about values for MSVC?
5181 dll_entry=__cygwin_dll_entry@12
5182 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5186 dll_entry=_DllMainCRTStartup@12
5187 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5191 # mingw and cygwin differ, and it's simplest to just exclude the union
5192 # of the two symbol sets.
5193 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5195 # recent cygwin and mingw systems supply a stub DllMain which the user
5196 # can override, but on older systems we have to supply one (in ltdll.c)
5197 if test "x$lt_cv_need_dllmain" = "xyes"; then
5198 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5199 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~
5200 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5206 # Extract the symbol export list from an `--export-all' def file,
5207 # then regenerate the def file from the symbol export list, so that
5208 # the compiled dll only exports the symbol export list.
5209 # Be careful not to strip the DATA tag left be newer dlltools.
5210 export_symbols_cmds="$ltdll_cmds"'
5211 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5212 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5214 # If the export-symbols file already is a .def file (1st line
5215 # is EXPORTS), use it as is.
5216 # If DATA tags from a recent dlltool are present, honour them!
5217 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5218 cp $export_symbols $output_objdir/$soname-def;
5220 echo EXPORTS > $output_objdir/$soname-def;
5222 cat $export_symbols | while read symbol; do
5225 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5226 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5227 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5229 _lt_hint=`expr 1 + \$_lt_hint`;
5233 $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~
5234 $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~
5235 $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~
5236 $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~
5237 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5245 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5246 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5251 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5256 *** create shared libraries on Solaris systems. Therefore, libtool
5257 *** is disabling shared libraries support. We urge you to upgrade GNU
5258 *** binutils to release 2.9.1 or newer. Another option is to modify
5259 *** your PATH or compiler configuration so that the native linker is
5260 *** used, and then restart.
5263 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5272 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5275 hardcode_shlibpath_var=no
5279 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5288 if test "$ld_shlibs" = yes; then
5289 runpath_var=LD_RUN_PATH
5290 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5291 export_dynamic_flag_spec='${wl}--export-dynamic'
5293 cygwin* | mingw* | pw32*)
5294 # dlltool doesn't understand --whole-archive et. al.
5295 whole_archive_flag_spec=
5298 # ancient GNU ld didn't support --whole-archive et. al.
5299 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5300 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5302 whole_archive_flag_spec=
5308 # PORTME fill in a description of your system's linker (not GNU ld)
5311 allow_undefined_flag=unsupported
5312 always_export_symbols=yes
5313 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'
5314 # Note: this linker hardcodes the directories in LIBPATH if there
5315 # are no directories specified by -L.
5316 hardcode_minus_L=yes
5317 if test "$GCC" = yes && test -z "$link_static_flag"; then
5318 # Neither direct hardcoding nor static linking is supported with a
5320 hardcode_direct=unsupported
5325 if test "$host_cpu" = ia64; then
5326 # On IA64, the linker does run time linking by default, so we don't
5327 # have to do anything special.
5328 aix_use_runtimelinking=no
5329 exp_sym_flag='-Bexport'
5332 aix_use_runtimelinking=no
5334 # Test if we are trying to use run time linking or normal
5335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5336 # need to do runtime linking.
5337 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5338 for ld_flag in $LDFLAGS; do
5341 aix_use_runtimelinking=yes
5348 exp_sym_flag='-bexport'
5349 no_entry_flag='-bnoentry'
5352 # When large executables or shared objects are built, AIX ld can
5353 # have problems creating the table of contents. If linking a library
5354 # or program results in "error TOC overflow" add -mminimal-toc to
5355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5360 hardcode_libdir_separator=':'
5361 if test "$GCC" = yes; then
5362 case $host_os in aix4.[012]|aix4.[012].*)
5363 collect2name=`${CC} -print-prog-name=collect2`
5364 if test -f "$collect2name" && \
5365 strings "$collect2name" | grep resolve_lib_name >/dev/null
5367 # We have reworked collect2
5370 # We have old collect2
5371 hardcode_direct=unsupported
5372 # It fails to find uninstalled libraries when the uninstalled
5373 # path is not listed in the libpath. Setting hardcode_minus_L
5374 # to unsupported forces relinking
5375 hardcode_minus_L=yes
5376 hardcode_libdir_flag_spec='-L$libdir'
5377 hardcode_libdir_separator=
5381 shared_flag='-shared'
5384 if test "$host_cpu" = ia64; then
5385 shared_flag='${wl}-G'
5387 if test "$aix_use_runtimelinking" = yes; then
5388 shared_flag='${wl}-G'
5390 shared_flag='${wl}-bM:SRE'
5395 # It seems that -bexpall can do strange things, so it is better to
5396 # generate a list of symbols to export.
5397 always_export_symbols=yes
5398 if test "$aix_use_runtimelinking" = yes; then
5399 # Warning - without using the other runtime loading flags (-brtl),
5400 # -berok will link without error, but may produce a broken library.
5401 allow_undefined_flag='-berok'
5402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5403 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"
5405 if test "$host_cpu" = ia64; then
5406 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5407 allow_undefined_flag="-z nodefs"
5408 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"
5410 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5411 # Warning - without using the other run time loading flags,
5412 # -berok will link without error, but may produce a broken library.
5413 allow_undefined_flag='${wl}-berok'
5414 # This is a bit strange, but is similar to how AIX traditionally builds
5415 # it's shared libraries.
5416 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'
5422 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)'
5423 hardcode_libdir_flag_spec='-L$libdir'
5424 hardcode_minus_L=yes
5425 # see comment about different semantics on the GNU ld section
5429 cygwin* | mingw* | pw32*)
5430 # When not using gcc, we currently assume that we are using
5431 # Microsoft Visual C++.
5432 # hardcode_libdir_flag_spec is actually meaningless, as there is
5433 # no search path for DLLs.
5434 hardcode_libdir_flag_spec=' '
5435 allow_undefined_flag=unsupported
5436 # Tell ltmain to make .lib files, not .a files.
5438 # FIXME: Setting linknames here is a bad hack.
5439 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5440 # The linker will automatically build a .lib file if we build a DLL.
5441 old_archive_from_new_cmds='true'
5442 # FIXME: Should let the user specify the lib program.
5443 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5444 fix_srcfile_path='`cygpath -w "$srcfile"`'
5447 darwin* | rhapsody*)
5449 rhapsody* | darwin1.[012])
5450 allow_undefined_flag='-undefined suppress'
5453 allow_undefined_flag='-flat_namespace -undefined suppress'
5456 # FIXME: Relying on posixy $() will cause problems for
5457 # cross-compilation, but unfortunately the echo tests do not
5458 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5459 # `"' quotes if we put them in here... so don't!
5460 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)'
5461 # We need to add '_' to the symbols in $export_symbols first
5462 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5464 hardcode_shlibpath_var=no
5465 whole_archive_flag_spec='-all_load $convenience'
5472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5473 # support. Future versions do this automatically, but an explicit c++rt0.o
5474 # does not break anything, and helps significantly (at the cost of a little
5477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5478 hardcode_libdir_flag_spec='-R$libdir'
5480 hardcode_shlibpath_var=no
5483 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5487 hardcode_minus_L=yes
5488 hardcode_shlibpath_var=no
5491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5493 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5494 hardcode_libdir_flag_spec='-R$libdir'
5496 hardcode_shlibpath_var=no
5499 hpux9* | hpux10* | hpux11*)
5501 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' ;;
5502 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5505 hardcode_libdir_separator=:
5507 hardcode_minus_L=yes # Not in the search PATH, but as the default
5508 # location of the library.
5509 export_dynamic_flag_spec='${wl}-E'
5512 irix5* | irix6* | nonstopux*)
5513 if test "$GCC" = yes; then
5514 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'
5515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5517 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'
5518 hardcode_libdir_flag_spec='-rpath $libdir'
5520 hardcode_libdir_separator=:
5521 link_all_deplibs=yes
5525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5528 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5530 hardcode_libdir_flag_spec='-R$libdir'
5532 hardcode_shlibpath_var=no
5536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5539 hardcode_libdir_separator=:
5540 hardcode_shlibpath_var=no
5545 hardcode_shlibpath_var=no
5546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5549 export_dynamic_flag_spec='${wl}-E'
5552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5554 hardcode_libdir_flag_spec='-R$libdir'
5557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5565 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5566 cp \$linknames \$output_objdir && linknames=''"
5567 export_dynamic_flag_spec="-Wl,DLL"
5571 hardcode_libdir_flag_spec='-L$libdir'
5572 hardcode_minus_L=yes
5573 allow_undefined_flag=unsupported
5574 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'
5575 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5579 if test "$GCC" = yes; then
5580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5581 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'
5583 allow_undefined_flag=' -expect_unresolved \*'
5584 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'
5586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5587 hardcode_libdir_separator=:
5590 osf4* | osf5*) # as osf3* with the addition of -msym flag
5591 if test "$GCC" = yes; then
5592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5593 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'
5594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5596 allow_undefined_flag=' -expect_unresolved \*'
5597 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'
5598 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5599 $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'
5601 #Both c and cxx compiler support -rpath directly
5602 hardcode_libdir_flag_spec='-rpath $libdir'
5604 hardcode_libdir_separator=:
5608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5609 hardcode_shlibpath_var=no
5610 runpath_var=LD_RUN_PATH
5611 hardcode_runpath_var=yes
5612 export_dynamic_flag_spec='${wl}-Bexport'
5616 # gcc --version < 3.0 without binutils cannot create self contained
5617 # shared libraries reliably, requiring libgcc.a to resolve some of
5618 # the object symbols generated in some cases. Libraries that use
5619 # assert need libgcc.a to resolve __eprintf, for example. Linking
5620 # a copy of libgcc.a into every shared library to guarantee resolving
5621 # such symbols causes other problems: According to Tim Van Holder
5622 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5623 # (to the application) exception stack for one thing.
5624 no_undefined_flag=' -z defs'
5625 if test "$GCC" = yes; then
5626 case `$CC --version 2>/dev/null` in
5630 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5631 *** create self contained shared libraries on Solaris systems, without
5632 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5633 *** -no-undefined support, which will at least allow you to build shared
5634 *** libraries. However, you may find that when you link such libraries
5635 *** into an application without using GCC, you have to manually add
5636 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5637 *** upgrade to a newer version of GCC. Another option is to rebuild your
5638 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5645 # $CC -shared without GNU ld will not create a library from C++
5646 # object files and a static libstdc++, better avoid it by now
5647 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5648 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5649 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5650 hardcode_libdir_flag_spec='-R$libdir'
5651 hardcode_shlibpath_var=no
5653 solaris2.[0-5] | solaris2.[0-5].*) ;;
5654 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5657 link_all_deplibs=yes
5661 if test "x$host_vendor" = xsequent; then
5662 # Use $CC to link under sequent, because it throws in some extra .o
5663 # files that make .init and .fini sections work.
5664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5668 hardcode_libdir_flag_spec='-L$libdir'
5670 hardcode_minus_L=yes
5671 hardcode_shlibpath_var=no
5675 case $host_vendor in
5677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678 hardcode_direct=yes # is this really true???
5681 ## LD is ld it makes a PLAMLIB
5682 ## CC just makes a GrossModule.
5683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5684 reload_cmds='$CC -r -o $output$reload_objs'
5688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5692 runpath_var='LD_RUN_PATH'
5693 hardcode_shlibpath_var=no
5697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5698 hardcode_shlibpath_var=no
5699 export_dynamic_flag_spec='-Bexport'
5703 no_undefined_flag=' -z text'
5704 # $CC -shared without GNU ld will not create a library from C++
5705 # object files and a static libstdc++, better avoid it by now
5706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5707 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5709 hardcode_libdir_flag_spec=
5710 hardcode_shlibpath_var=no
5711 runpath_var='LD_RUN_PATH'
5715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5716 hardcode_libdir_flag_spec='-L$libdir'
5717 hardcode_shlibpath_var=no
5721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5722 hardcode_libdir_flag_spec='-L$libdir'
5723 hardcode_shlibpath_var=no
5727 if test -d /usr/nec; then
5728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5729 hardcode_shlibpath_var=no
5730 runpath_var=LD_RUN_PATH
5731 hardcode_runpath_var=yes
5737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5740 hardcode_shlibpath_var=no
5741 hardcode_runpath_var=yes
5742 runpath_var=LD_RUN_PATH
5745 sysv5uw7* | unixware7*)
5746 no_undefined_flag='${wl}-z ${wl}text'
5747 if test "$GCC" = yes; then
5748 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5750 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5752 runpath_var='LD_RUN_PATH'
5753 hardcode_shlibpath_var=no
5761 echo "$ac_t""$ld_shlibs" 1>&6
5762 test "$ld_shlibs" = no && can_build_shared=no
5764 # Check hardcoding attributes.
5765 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5766 echo "configure:5767: checking how to hardcode library paths into programs" >&5
5768 if test -n "$hardcode_libdir_flag_spec" || \
5769 test -n "$runpath_var"; then
5771 # We can hardcode non-existant directories.
5772 if test "$hardcode_direct" != no &&
5773 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5774 # have to relink, otherwise we might link with an installed library
5775 # when we should be linking with a yet-to-be-installed one
5776 ## test "$hardcode_shlibpath_var" != no &&
5777 test "$hardcode_minus_L" != no; then
5778 # Linking always hardcodes the temporary library directory.
5779 hardcode_action=relink
5781 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5782 hardcode_action=immediate
5785 # We cannot hardcode anything, or else we can only hardcode existing
5787 hardcode_action=unsupported
5789 echo "$ac_t""$hardcode_action" 1>&6
5793 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5794 echo "configure:5795: checking whether stripping libraries is possible" >&5
5795 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5796 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5797 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5798 echo "$ac_t""yes" 1>&6
5800 echo "$ac_t""no" 1>&6
5803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5806 # PORTME Fill in your ld.so characteristics
5807 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5808 echo "configure:5809: checking dynamic linker characteristics" >&5
5810 libname_spec='lib$name'
5817 shlibpath_overrides_runpath=unknown
5819 dynamic_linker="$host_os ld.so"
5820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5826 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5827 shlibpath_var=LIBPATH
5829 # AIX has no versioning support, so we append a major version to the name.
5830 soname_spec='${libname}${release}.so$major'
5837 hardcode_into_libs=yes
5838 if test "$host_cpu" = ia64; then
5839 # AIX 5 supports IA64
5840 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5841 shlibpath_var=LD_LIBRARY_PATH
5843 # With GCC up to 2.95.x, collect2 would create an import file
5844 # for dependence libraries. The import file would start with
5845 # the line `#! .'. This would cause the generated library to
5846 # depend on `.', always an invalid library. This was fixed in
5847 # development snapshots of GCC prior to 3.0.
5849 aix4 | aix4.[01] | aix4.[01].*)
5850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5859 # AIX (on Power*) has no versioning support, so currently we can
5860 # not hardcode correct soname into executable. Probably we can
5861 # add versioning support to collect2, so additional links can
5862 # be useful in future.
5863 if test "$aix_use_runtimelinking" = yes; then
5864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5865 # instead of lib<name>.a to let people know that these are not
5866 # typical AIX shared libraries.
5867 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5869 # We preserve .a as extension for shared libraries through AIX4.2
5870 # and later when we are not doing run time linking.
5871 library_names_spec='${libname}${release}.a $libname.a'
5872 soname_spec='${libname}${release}.so$major'
5874 shlibpath_var=LIBPATH
5876 hardcode_into_libs=yes
5880 library_names_spec='$libname.ixlibrary $libname.a'
5881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5882 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'
5886 library_names_spec='${libname}.so'
5887 dynamic_linker="$host_os ld.so"
5888 shlibpath_var=LIBRARY_PATH
5894 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5895 soname_spec='${libname}${release}.so$major'
5896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5897 shlibpath_var=LD_LIBRARY_PATH
5898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5900 export_dynamic_flag_spec=-rdynamic
5901 # the default ld.so.conf also contains /usr/contrib/lib and
5902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5903 # libtool to hard-code these into programs
5906 cygwin* | mingw* | pw32*)
5907 version_type=windows
5910 case $GCC,$host_os in
5912 library_names_spec='$libname.dll.a'
5913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5914 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5915 dldir=$destdir/`dirname \$dlpath`~
5916 test -d \$dldir || mkdir -p \$dldir~
5917 $install_prog .libs/$dlname \$dldir/$dlname'
5918 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5919 dlpath=$dir/\$dldll~
5923 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5930 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5933 dynamic_linker='Win32 ld.exe'
5934 # FIXME: first we should search . and the directory the executable is in
5938 darwin* | rhapsody*)
5939 dynamic_linker="$host_os dyld"
5943 # FIXME: Relying on posixy $() will cause problems for
5944 # cross-compilation, but unfortunately the echo tests do not
5945 # yet detect zsh echo's removal of \ escapes.
5946 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)'
5947 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5948 shlibpath_overrides_runpath=yes
5949 shlibpath_var=DYLD_LIBRARY_PATH
5957 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5958 version_type=freebsd-$objformat
5959 case $version_type in
5961 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5966 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5970 shlibpath_var=LD_LIBRARY_PATH
5973 shlibpath_overrides_runpath=yes
5976 shlibpath_overrides_runpath=no
5977 hardcode_into_libs=yes
5986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5987 soname_spec='${libname}${release}.so$major'
5988 shlibpath_var=LD_LIBRARY_PATH
5989 hardcode_into_libs=yes
5992 hpux9* | hpux10* | hpux11*)
5993 # Give a soname corresponding to the major version so that dld.sl refuses to
5994 # link against other versions.
5995 dynamic_linker="$host_os dld.sl"
5999 shlibpath_var=SHLIB_PATH
6000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6001 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6002 soname_spec='${libname}${release}.sl$major'
6003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6004 postinstall_cmds='chmod 555 $lib'
6007 irix5* | irix6* | nonstopux*)
6009 nonstopux*) version_type=nonstopux ;;
6010 *) version_type=irix ;;
6014 soname_spec='${libname}${release}.so$major'
6015 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6017 irix5* | nonstopux*)
6021 case $LD in # libtool.m4 will add one of these switches to LD
6022 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6023 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6024 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6025 *) libsuff= shlibsuff= libmagic=never-match;;
6029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6030 shlibpath_overrides_runpath=no
6031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6035 # No shared lib support for Linux oldld, aout, or coff.
6036 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6040 # This must be Linux ELF.
6045 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6046 soname_spec='${libname}${release}.so$major'
6047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6048 shlibpath_var=LD_LIBRARY_PATH
6049 shlibpath_overrides_runpath=no
6050 # This implies no fast_install, which is unacceptable.
6051 # Some rework will be needed to allow for fast_install
6052 # before this can be enabled.
6053 hardcode_into_libs=yes
6055 # We used to test for /lib/ld.so.1 and disable shared libraries on
6056 # powerpc, because MkLinux only supported shared libraries with the
6057 # GNU dynamic linker. Since this was broken with cross compilers,
6058 # most powerpc-linux boxes support dynamic linking these days and
6059 # people can always --disable-shared, the test was removed, and we
6060 # assume the GNU/Linux dynamic linker is in use.
6061 dynamic_linker='GNU/Linux ld.so'
6068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6069 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6071 dynamic_linker='NetBSD (a.out) ld.so'
6073 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6074 soname_spec='${libname}${release}.so$major'
6075 dynamic_linker='NetBSD ld.elf_so'
6077 shlibpath_var=LD_LIBRARY_PATH
6078 shlibpath_overrides_runpath=yes
6079 hardcode_into_libs=yes
6084 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6085 shlibpath_var=LD_LIBRARY_PATH
6086 shlibpath_overrides_runpath=yes
6093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6095 openbsd2.[89] | openbsd2.[89].*)
6096 shlibpath_overrides_runpath=no
6099 shlibpath_overrides_runpath=yes
6103 shlibpath_overrides_runpath=yes
6105 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6107 shlibpath_var=LD_LIBRARY_PATH
6113 shlibpath_overrides_runpath=yes
6114 shlibpath_var=LIBPATH
6115 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6116 # the library's exports are in libname.x; this is the file that must
6117 # actually be linked with to use a DLL.
6118 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6122 libname_spec='$name'
6124 library_names_spec='$libname.dll $libname.a'
6125 dynamic_linker='OS/2 ld.exe'
6126 shlibpath_var=LIBPATH
6129 osf3* | osf4* | osf5*)
6132 soname_spec='${libname}${release}.so$major'
6133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6134 shlibpath_var=LD_LIBRARY_PATH
6135 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6136 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6137 hardcode_into_libs=yes
6142 soname_spec='${libname}${release}.so$major'
6143 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6144 shlibpath_var=LD_LIBRARY_PATH
6151 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152 soname_spec='${libname}${release}.so$major'
6153 shlibpath_var=LD_LIBRARY_PATH
6154 shlibpath_overrides_runpath=yes
6155 hardcode_into_libs=yes
6156 # ldd complains unless libraries are executable
6157 postinstall_cmds='chmod +x $lib'
6162 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6164 shlibpath_var=LD_LIBRARY_PATH
6165 shlibpath_overrides_runpath=yes
6166 if test "$with_gnu_ld" = yes; then
6172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6174 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6175 soname_spec='${libname}${release}.so$major'
6176 shlibpath_var=LD_LIBRARY_PATH
6177 case $host_vendor in
6179 shlibpath_overrides_runpath=no
6181 export_dynamic_flag_spec='${wl}-Blargedynsym'
6182 runpath_var=LD_RUN_PATH
6190 shlibpath_overrides_runpath=no
6191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6199 soname_spec='${libname}${release}.so$major'
6200 shlibpath_var=LD_LIBRARY_PATH
6207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6208 soname_spec='${libname}${release}.so$major'
6209 shlibpath_var=LD_LIBRARY_PATH
6213 if test -d /usr/nec ;then
6215 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6216 soname_spec='$libname.so.$major'
6217 shlibpath_var=LD_LIBRARY_PATH
6225 echo "$ac_t""$dynamic_linker" 1>&6
6226 test "$dynamic_linker" = no && can_build_shared=no
6228 # Report the final consequences.
6229 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6230 echo "configure:6231: checking if libtool supports shared libraries" >&5
6231 echo "$ac_t""$can_build_shared" 1>&6
6233 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6234 echo "configure:6235: checking whether to build shared libraries" >&5
6235 test "$can_build_shared" = "no" && enable_shared=no
6237 # On AIX, shared libraries and static libraries use the same namespace, and
6238 # are all built from PIC.
6241 test "$enable_shared" = yes && enable_static=no
6242 if test -n "$RANLIB"; then
6243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6244 postinstall_cmds='$RANLIB $lib'
6249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6250 test "$enable_shared" = yes && enable_static=no
6254 echo "$ac_t""$enable_shared" 1>&6
6256 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6257 echo "configure:6258: checking whether to build static libraries" >&5
6258 # Make sure either enable_shared or enable_static is yes.
6259 test "$enable_shared" = yes || enable_static=yes
6260 echo "$ac_t""$enable_static" 1>&6
6262 if test "$hardcode_action" = relink; then
6263 # Fast installation is not supported
6264 enable_fast_install=no
6265 elif test "$shlibpath_overrides_runpath" = yes ||
6266 test "$enable_shared" = no; then
6267 # Fast installation is not necessary
6268 enable_fast_install=needless
6271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6272 if test "$GCC" = yes; then
6273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6276 if test "x$enable_dlopen" != xyes; then
6277 enable_dlopen=unknown
6278 enable_dlopen_self=unknown
6279 enable_dlopen_self_static=unknown
6286 lt_cv_dlopen="load_add_on"
6288 lt_cv_dlopen_self=yes
6291 cygwin* | mingw* | pw32*)
6292 lt_cv_dlopen="LoadLibrary"
6297 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6298 echo "configure:6299: checking for dllload" >&5
6299 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char dllload(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6316 /* The GNU C library defines this for functions which it implements
6317 to always fail with ENOSYS. Some functions are actually named
6318 something starting with __ and the normal name is an alias. */
6319 #if defined (__stub_dllload) || defined (__stub___dllload)
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329 eval "ac_cv_func_dllload=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 eval "ac_cv_func_dllload=no"
6339 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 lt_cv_dlopen="dllload"
6343 echo "$ac_t""no" 1>&6
6344 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6345 echo "configure:6346: checking for shl_load" >&5
6346 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353 which can conflict with char shl_load(); below. */
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 eval "ac_cv_func_shl_load=yes"
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_func_shl_load=no"
6386 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 lt_cv_dlopen="shl_load"
6390 echo "$ac_t""no" 1>&6
6391 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6392 echo "configure:6393: checking for shl_load in -ldld" >&5
6393 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6394 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 ac_save_LIBS="$LIBS"
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_lib_$ac_lib_var=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_lib_$ac_lib_var=no"
6421 LIBS="$ac_save_LIBS"
6424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6428 echo "$ac_t""no" 1>&6
6429 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6430 echo "configure:6431: checking for dlopen" >&5
6431 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* System header to define __stub macros and hopefully few prototypes,
6438 which can conflict with char dlopen(); below. */
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6448 /* The GNU C library defines this for functions which it implements
6449 to always fail with ENOSYS. Some functions are actually named
6450 something starting with __ and the normal name is an alias. */
6451 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6459 if { (eval echo configure:6460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6461 eval "ac_cv_func_dlopen=yes"
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 eval "ac_cv_func_dlopen=no"
6471 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6472 echo "$ac_t""yes" 1>&6
6473 lt_cv_dlopen="dlopen"
6475 echo "$ac_t""no" 1>&6
6476 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6477 echo "configure:6478: checking for dlopen in -ldl" >&5
6478 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 ac_save_LIBS="$LIBS"
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6496 if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 eval "ac_cv_lib_$ac_lib_var=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 eval "ac_cv_lib_$ac_lib_var=no"
6506 LIBS="$ac_save_LIBS"
6509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6513 echo "$ac_t""no" 1>&6
6514 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6515 echo "configure:6516: checking for dlopen in -lsvld" >&5
6516 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 ac_save_LIBS="$LIBS"
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6536 eval "ac_cv_lib_$ac_lib_var=yes"
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 eval "ac_cv_lib_$ac_lib_var=no"
6544 LIBS="$ac_save_LIBS"
6547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6548 echo "$ac_t""yes" 1>&6
6549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6551 echo "$ac_t""no" 1>&6
6552 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6553 echo "configure:6554: checking for dld_link in -ldld" >&5
6554 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6556 echo $ac_n "(cached) $ac_c" 1>&6
6558 ac_save_LIBS="$LIBS"
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6574 eval "ac_cv_lib_$ac_lib_var=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6579 eval "ac_cv_lib_$ac_lib_var=no"
6582 LIBS="$ac_save_LIBS"
6585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6587 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6589 echo "$ac_t""no" 1>&6
6613 if test "x$lt_cv_dlopen" != xno; then
6619 case $lt_cv_dlopen in
6621 save_CPPFLAGS="$CPPFLAGS"
6622 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6624 save_LDFLAGS="$LDFLAGS"
6625 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6628 LIBS="$lt_cv_dlopen_libs $LIBS"
6630 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6631 echo "configure:6632: checking whether a program can dlopen itself" >&5
6632 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 if test "$cross_compiling" = yes; then :
6636 lt_cv_dlopen_self=cross
6638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6639 lt_status=$lt_dlunknown
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6651 # define LT_DLGLOBAL RTLD_GLOBAL
6654 # define LT_DLGLOBAL DL_GLOBAL
6656 # define LT_DLGLOBAL 0
6660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6661 find out it does not work in some platform. */
6662 #ifndef LT_DLLAZY_OR_NOW
6664 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6667 # define LT_DLLAZY_OR_NOW DL_LAZY
6670 # define LT_DLLAZY_OR_NOW RTLD_NOW
6673 # define LT_DLLAZY_OR_NOW DL_NOW
6675 # define LT_DLLAZY_OR_NOW 0
6683 extern "C" void exit (int);
6686 void fnord() { int i=42;}
6689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6690 int status = $lt_dlunknown;
6694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6696 /* dlclose (self); */
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6703 (./conftest; exit; ) 2>/dev/null
6706 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6707 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6708 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6711 # compilation failed
6712 lt_cv_dlopen_self=no
6720 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6722 if test "x$lt_cv_dlopen_self" = xyes; then
6723 LDFLAGS="$LDFLAGS $link_static_flag"
6724 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6725 echo "configure:6726: checking whether a statically linked program can dlopen itself" >&5
6726 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 if test "$cross_compiling" = yes; then :
6730 lt_cv_dlopen_self_static=cross
6732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6733 lt_status=$lt_dlunknown
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6745 # define LT_DLGLOBAL RTLD_GLOBAL
6748 # define LT_DLGLOBAL DL_GLOBAL
6750 # define LT_DLGLOBAL 0
6754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6755 find out it does not work in some platform. */
6756 #ifndef LT_DLLAZY_OR_NOW
6758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6761 # define LT_DLLAZY_OR_NOW DL_LAZY
6764 # define LT_DLLAZY_OR_NOW RTLD_NOW
6767 # define LT_DLLAZY_OR_NOW DL_NOW
6769 # define LT_DLLAZY_OR_NOW 0
6777 extern "C" void exit (int);
6780 void fnord() { int i=42;}
6783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6784 int status = $lt_dlunknown;
6788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6789 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6790 /* dlclose (self); */
6796 if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6797 (./conftest; exit; ) 2>/dev/null
6800 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6801 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6802 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6805 # compilation failed
6806 lt_cv_dlopen_self_static=no
6814 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6817 CPPFLAGS="$save_CPPFLAGS"
6818 LDFLAGS="$save_LDFLAGS"
6823 case $lt_cv_dlopen_self in
6824 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6825 *) enable_dlopen_self=unknown ;;
6828 case $lt_cv_dlopen_self_static in
6829 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6830 *) enable_dlopen_self_static=unknown ;;
6835 if test "$enable_shared" = yes && test "$GCC" = yes; then
6836 case $archive_cmds in
6838 # FIXME: we may have to deal with multi-command sequences.
6841 # Test whether the compiler implicitly links with -lc since on some
6842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6843 # to ld, don't add -lc before -lgcc.
6844 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6845 echo "configure:6846: checking whether -lc should be explicitly linked in" >&5
6846 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6847 echo $ac_n "(cached) $ac_c" 1>&6
6850 echo 'static int dummy;' > conftest.$ac_ext
6852 if { (eval echo configure:6853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6855 libobjs=conftest.$ac_objext
6857 wl=$lt_cv_prog_cc_wl
6863 save_allow_undefined_flag=$allow_undefined_flag
6864 allow_undefined_flag=
6865 if { (eval echo configure:6866: \"$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; }
6867 lt_cv_archive_cmds_need_lc=no
6869 lt_cv_archive_cmds_need_lc=yes
6871 allow_undefined_flag=$save_allow_undefined_flag
6873 cat conftest.err 1>&5
6877 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
6881 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6883 # The second clause should only fire when bootstrapping the
6884 # libtool distribution, otherwise you forgot to ship ltmain.sh
6885 # with your package, and you will get complaints that there are
6886 # no rules to generate ltmain.sh.
6887 if test -f "$ltmain"; then
6890 # If there is no Makefile yet, we rely on a make rule to execute
6891 # `config.status --recheck' to rerun these tests and create the
6892 # libtool script then.
6893 test -f Makefile && make "$ltmain"
6896 if test -f "$ltmain"; then
6897 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6900 echo creating $ofile
6902 # Now quote all the things that may contain metacharacters while being
6903 # careful not to overquote the AC_SUBSTed values. We take copies of the
6904 # variables and quote the copies for generation of the libtool script.
6905 for var in echo old_CC old_CFLAGS SED \
6906 AR AR_FLAGS CC LD LN_S NM SHELL \
6907 reload_flag reload_cmds wl \
6908 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6909 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6910 library_names_spec soname_spec \
6911 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6912 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6913 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6914 old_striplib striplib file_magic_cmd export_symbols_cmds \
6915 deplibs_check_method allow_undefined_flag no_undefined_flag \
6916 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6917 global_symbol_to_c_name_address \
6918 hardcode_libdir_flag_spec hardcode_libdir_separator \
6919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6920 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6923 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6924 old_postinstall_cmds | old_postuninstall_cmds | \
6925 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6926 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6927 postinstall_cmds | postuninstall_cmds | \
6928 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6929 # Double-quote double-evaled strings.
6930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6938 cat <<__EOF__ > "${ofile}T"
6941 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6942 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6943 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6945 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6946 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6948 # This program is free software; you can redistribute it and/or modify
6949 # it under the terms of the GNU General Public License as published by
6950 # the Free Software Foundation; either version 2 of the License, or
6951 # (at your option) any later version.
6953 # This program is distributed in the hope that it will be useful, but
6954 # WITHOUT ANY WARRANTY; without even the implied warranty of
6955 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6956 # General Public License for more details.
6958 # You should have received a copy of the GNU General Public License
6959 # along with this program; if not, write to the Free Software
6960 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6962 # As a special exception to the GNU General Public License, if you
6963 # distribute this file as part of a program that contains a
6964 # configuration script generated by Autoconf, you may include it under
6965 # the same distribution terms that you use for the rest of that program.
6967 # A sed that does not truncate output.
6970 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6971 Xsed="${SED} -e s/^X//"
6973 # The HP-UX ksh and POSIX shell print the target directory to stdout
6975 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6977 # ### BEGIN LIBTOOL CONFIG
6979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6981 # Shell to use when invoking shell scripts.
6984 # Whether or not to build shared libraries.
6985 build_libtool_libs=$enable_shared
6987 # Whether or not to build static libraries.
6988 build_old_libs=$enable_static
6990 # Whether or not to add -lc for building shared libraries.
6991 build_libtool_need_lc=$need_lc
6993 # Whether or not to optimize for fast installation.
6994 fast_install=$enable_fast_install
6997 host_alias=$host_alias
7000 # An echo program that does not interpret backslashes.
7005 AR_FLAGS=$lt_AR_FLAGS
7007 # The default C compiler.
7010 # Is the compiler the GNU C compiler?
7013 # The linker used to build libraries.
7016 # Whether we need hard or soft links.
7019 # A BSD-compatible nm program.
7022 # A symbol stripping program
7025 # Used to examine libraries when file_magic_cmd begins "file"
7026 MAGIC_CMD=$MAGIC_CMD
7028 # Used on cygwin: DLL creation program.
7031 # Used on cygwin: object dumper.
7034 # Used on cygwin: assembler.
7037 # The name of the directory that contains temporary libtool files.
7040 # How to create reloadable object files.
7041 reload_flag=$lt_reload_flag
7042 reload_cmds=$lt_reload_cmds
7044 # How to pass a linker flag through the compiler.
7047 # Object file suffix (normally "o").
7050 # Old archive suffix (normally "a").
7053 # Executable file suffix (normally "").
7056 # Additional compiler flags for building library objects.
7057 pic_flag=$lt_pic_flag
7060 # Does compiler simultaneously support -c and -o options?
7061 compiler_c_o=$lt_compiler_c_o
7063 # Can we write directly to a .lo ?
7064 compiler_o_lo=$lt_compiler_o_lo
7066 # Must we lock files when doing compilation ?
7067 need_locks=$lt_need_locks
7069 # Do we need the lib prefix for modules?
7070 need_lib_prefix=$need_lib_prefix
7072 # Do we need a version for libraries?
7073 need_version=$need_version
7075 # Whether dlopen is supported.
7076 dlopen_support=$enable_dlopen
7078 # Whether dlopen of programs is supported.
7079 dlopen_self=$enable_dlopen_self
7081 # Whether dlopen of statically linked programs is supported.
7082 dlopen_self_static=$enable_dlopen_self_static
7084 # Compiler flag to prevent dynamic linking.
7085 link_static_flag=$lt_link_static_flag
7087 # Compiler flag to turn off builtin functions.
7088 no_builtin_flag=$lt_no_builtin_flag
7090 # Compiler flag to allow reflexive dlopens.
7091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7093 # Compiler flag to generate shared objects directly from archives.
7094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7096 # Compiler flag to generate thread-safe objects.
7097 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7099 # Library versioning type.
7100 version_type=$version_type
7102 # Format of library name prefix.
7103 libname_spec=$lt_libname_spec
7105 # List of archive names. First name is the real one, the rest are links.
7106 # The last name is the one that the linker finds with -lNAME.
7107 library_names_spec=$lt_library_names_spec
7109 # The coded name of the library, if different from the real name.
7110 soname_spec=$lt_soname_spec
7112 # Commands used to build and install an old-style archive.
7114 old_archive_cmds=$lt_old_archive_cmds
7115 old_postinstall_cmds=$lt_old_postinstall_cmds
7116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7118 # Create an old-style archive from a shared archive.
7119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7121 # Create a temporary old-style archive to link instead of a shared archive.
7122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7124 # Commands used to build and install a shared archive.
7125 archive_cmds=$lt_archive_cmds
7126 archive_expsym_cmds=$lt_archive_expsym_cmds
7127 postinstall_cmds=$lt_postinstall_cmds
7128 postuninstall_cmds=$lt_postuninstall_cmds
7130 # Commands to strip libraries.
7131 old_striplib=$lt_old_striplib
7132 striplib=$lt_striplib
7134 # Method to check whether dependent libraries are shared objects.
7135 deplibs_check_method=$lt_deplibs_check_method
7137 # Command to use when deplibs_check_method == file_magic.
7138 file_magic_cmd=$lt_file_magic_cmd
7140 # Flag that allows shared libraries with undefined symbols to be built.
7141 allow_undefined_flag=$lt_allow_undefined_flag
7143 # Flag that forces no undefined symbols.
7144 no_undefined_flag=$lt_no_undefined_flag
7146 # Commands used to finish a libtool library installation in a directory.
7147 finish_cmds=$lt_finish_cmds
7149 # Same as above, but a single script fragment to be evaled but not shown.
7150 finish_eval=$lt_finish_eval
7152 # Take the output of nm and produce a listing of raw symbols and C names.
7153 global_symbol_pipe=$lt_global_symbol_pipe
7155 # Transform the output of nm in a proper C declaration
7156 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7158 # Transform the output of nm in a C name address pair
7159 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7161 # This is the shared library runtime path variable.
7162 runpath_var=$runpath_var
7164 # This is the shared library path variable.
7165 shlibpath_var=$shlibpath_var
7167 # Is shlibpath searched before the hard-coded library search path?
7168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7170 # How to hardcode a shared library path into an executable.
7171 hardcode_action=$hardcode_action
7173 # Whether we should hardcode library paths into libraries.
7174 hardcode_into_libs=$hardcode_into_libs
7176 # Flag to hardcode \$libdir into a binary during linking.
7177 # This must work even if \$libdir does not exist.
7178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7180 # Whether we need a single -rpath flag with a separated argument.
7181 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7183 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7185 hardcode_direct=$hardcode_direct
7187 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7189 hardcode_minus_L=$hardcode_minus_L
7191 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7192 # the resulting binary.
7193 hardcode_shlibpath_var=$hardcode_shlibpath_var
7195 # Variables whose values should be saved in libtool wrapper scripts and
7196 # restored at relink time.
7197 variables_saved_for_relink="$variables_saved_for_relink"
7199 # Whether libtool must link a program against all its dependency libraries.
7200 link_all_deplibs=$link_all_deplibs
7202 # Compile-time system search path for libraries
7203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7205 # Run-time system search path for libraries
7206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7208 # Fix the shell variable \$srcfile for the compiler.
7209 fix_srcfile_path="$fix_srcfile_path"
7211 # Set to yes if exported symbols are required.
7212 always_export_symbols=$always_export_symbols
7214 # The commands to list exported symbols.
7215 export_symbols_cmds=$lt_export_symbols_cmds
7217 # The commands to extract the exported symbol list from a shared archive.
7218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7220 # Symbols that should not be listed in the preloaded symbols.
7221 exclude_expsyms=$lt_exclude_expsyms
7223 # Symbols that must always be exported.
7224 include_expsyms=$lt_include_expsyms
7226 # ### END LIBTOOL CONFIG
7232 cat <<\EOF >> "${ofile}T"
7234 # AIX sometimes has problems with the GCC collect2 program. For some
7235 # reason, if we set the COLLECT_NAMES environment variable, the problems
7236 # vanish in a puff of smoke.
7237 if test "X${COLLECT_NAMES+set}" != Xset; then
7239 export COLLECT_NAMES
7246 cygwin* | mingw* | pw32* | os2*)
7247 cat <<'EOF' >> "${ofile}T"
7248 # This is a source program that is used to create dlls on Windows
7249 # Don't remove nor modify the starting and closing comments
7250 # /* ltdll.c starts here */
7251 # #define WIN32_LEAN_AND_MEAN
7252 # #include <windows.h>
7253 # #undef WIN32_LEAN_AND_MEAN
7254 # #include <stdio.h>
7256 # #ifndef __CYGWIN__
7257 # # ifdef __CYGWIN32__
7258 # # define __CYGWIN__ __CYGWIN32__
7262 # #ifdef __cplusplus
7265 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7266 # #ifdef __cplusplus
7271 # #include <cygwin/cygwin_dll.h>
7272 # DECLARE_CYGWIN_DLL( DllMain );
7274 # HINSTANCE __hDllInstance_base;
7277 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7279 # __hDllInstance_base = hInst;
7282 # /* ltdll.c ends here */
7283 # This is a source program that is used to create import libraries
7284 # on Windows for dlls which lack them. Don't remove nor modify the
7285 # starting and closing comments
7286 # /* impgen.c starts here */
7287 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7289 # This file is part of GNU libtool.
7291 # This program is free software; you can redistribute it and/or modify
7292 # it under the terms of the GNU General Public License as published by
7293 # the Free Software Foundation; either version 2 of the License, or
7294 # (at your option) any later version.
7296 # This program is distributed in the hope that it will be useful,
7297 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7299 # GNU General Public License for more details.
7301 # You should have received a copy of the GNU General Public License
7302 # along with this program; if not, write to the Free Software
7303 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7306 # #include <stdio.h> /* for printf() */
7307 # #include <unistd.h> /* for open(), lseek(), read() */
7308 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7309 # #include <string.h> /* for strdup() */
7311 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7313 # #define O_BINARY 0
7316 # static unsigned int
7317 # pe_get16 (fd, offset)
7321 # unsigned char b[2];
7322 # lseek (fd, offset, SEEK_SET);
7324 # return b[0] + (b[1]<<8);
7327 # static unsigned int
7328 # pe_get32 (fd, offset)
7332 # unsigned char b[4];
7333 # lseek (fd, offset, SEEK_SET);
7335 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7338 # static unsigned int
7342 # unsigned char *b = ptr;
7343 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7352 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7353 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7354 # unsigned long name_rvas, nexp;
7355 # unsigned char *expdata, *erva;
7356 # char *filename, *dll_name;
7358 # filename = argv[1];
7360 # dll = open(filename, O_RDONLY|O_BINARY);
7364 # dll_name = filename;
7366 # for (i=0; filename[i]; i++)
7367 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7368 # dll_name = filename + i +1;
7370 # pe_header_offset = pe_get32 (dll, 0x3c);
7371 # opthdr_ofs = pe_header_offset + 4 + 20;
7372 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7374 # if (num_entries < 1) /* no exports */
7377 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7378 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7379 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7380 # secptr = (pe_header_offset + 4 + 20 +
7381 # pe_get16 (dll, pe_header_offset + 4 + 16));
7384 # for (i = 0; i < nsections; i++)
7387 # unsigned long secptr1 = secptr + 40 * i;
7388 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7389 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7390 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7391 # lseek(dll, secptr1, SEEK_SET);
7392 # read(dll, sname, 8);
7393 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7395 # expptr = fptr + (export_rva - vaddr);
7396 # if (export_rva + export_size > vaddr + vsize)
7397 # export_size = vsize - (export_rva - vaddr);
7402 # expdata = (unsigned char*)malloc(export_size);
7403 # lseek (dll, expptr, SEEK_SET);
7404 # read (dll, expdata, export_size);
7405 # erva = expdata - export_rva;
7407 # nexp = pe_as32 (expdata+24);
7408 # name_rvas = pe_as32 (expdata+32);
7410 # printf ("EXPORTS\n");
7411 # for (i = 0; i<nexp; i++)
7413 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7414 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7419 # /* impgen.c ends here */
7425 # We use sed instead of cat because bash on DJGPP gets confused if
7426 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7427 # text mode, it properly converts lines to CR/LF. This bash problem
7428 # is reportedly fixed, but why not run on old versions too?
7429 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7431 mv -f "${ofile}T" "$ofile" || \
7432 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7440 # This can be used to rebuild libtool when needed
7441 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7443 # Always use our own libtool.
7444 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7446 # Prevent multiple expansion
7450 # test for ln hardlink support
7451 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7452 echo "configure:7453: checking whether ln works" >&5
7453 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 rm -f conftest.src conftest.dst
7457 echo "conftest" > conftest.src
7458 if ln conftest.src conftest.dst 2>/dev/null
7460 ol_cv_prog_LN_H="ln"
7462 ol_cv_prog_LN_H="cp"
7464 rm -f conftest.src conftest.dst
7467 LN_H="$ol_cv_prog_LN_H"
7468 if test "$ol_cv_prog_LN_H" = "ln"; then
7469 echo "$ac_t""yes" 1>&6
7471 echo "$ac_t""no" 1>&6
7474 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7475 echo "configure:7476: checking whether ln -s works" >&5
7476 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7480 if ln -s X conftestdata 2>/dev/null
7483 ac_cv_prog_LN_S="ln -s"
7488 LN_S="$ac_cv_prog_LN_S"
7489 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7490 echo "$ac_t""yes" 1>&6
7492 echo "$ac_t""no" 1>&6
7497 if test $ol_enable_perl != no ; then
7498 # Extract the first word of "perl", so it can be a program name with args.
7499 set dummy perl; ac_word=$2
7500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_word" >&5
7502 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7507 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7510 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7515 for ac_dir in $ac_dummy; do
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f $ac_dir/$ac_word; then
7518 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7523 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7527 PERLBIN="$ac_cv_path_PERLBIN"
7528 if test -n "$PERLBIN"; then
7529 echo "$ac_t""$PERLBIN" 1>&6
7531 echo "$ac_t""no" 1>&6
7535 if test "no$PERLBIN" = "no" ; then
7536 if test $ol_enable_perl = yes ; then
7537 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7541 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7542 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7544 if test x"$ol_enable_perl" = "xyes" ; then
7545 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7547 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7553 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7554 echo "configure:7555: checking how to run the C preprocessor" >&5
7555 # On Suns, sometimes $CPP names a directory.
7556 if test -n "$CPP" && test -d "$CPP"; then
7559 if test -z "$CPP"; then
7560 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7563 # This must be in double quotes, not single quotes, because CPP may get
7564 # substituted into the Makefile and "${CC-cc}" will confuse make.
7566 # On the NeXT, cc -E runs the code through the compiler's parser,
7567 # not just through cpp.
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7575 { (eval echo configure:7576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7577 if test -z "$ac_err"; then
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 CPP="${CC-cc} -E -traditional-cpp"
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7592 { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7594 if test -z "$ac_err"; then
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 CPP="${CC-cc} -nologo -E"
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7609 { (eval echo configure:7610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7611 if test -z "$ac_err"; then
7615 echo "configure: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7625 ac_cv_prog_CPP="$CPP"
7627 CPP="$ac_cv_prog_CPP"
7629 ac_cv_prog_CPP="$CPP"
7631 echo "$ac_t""$CPP" 1>&6
7635 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7636 echo "configure:7637: checking for Cygwin environment" >&5
7637 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7647 #define __CYGWIN__ __CYGWIN32__
7652 if { (eval echo configure:7653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7664 echo "$ac_t""$ac_cv_cygwin" 1>&6
7666 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7667 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7668 echo "configure:7669: checking for mingw32 environment" >&5
7669 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7680 if { (eval echo configure:7681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7692 echo "$ac_t""$ac_cv_mingw32" 1>&6
7694 test "$ac_cv_mingw32" = yes && MINGW32=yes
7698 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7699 echo "configure:7700: checking for executable suffix" >&5
7700 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7707 echo 'int main () { return 0; }' > conftest.$ac_ext
7709 if { (eval echo configure:7710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7710 for file in conftest.*; do
7712 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7713 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7717 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7720 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7725 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7726 echo "$ac_t""${ac_cv_exeext}" 1>&6
7729 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7730 echo "configure:7731: checking for object suffix" >&5
7731 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7735 echo 'int i = 1;' > conftest.$ac_ext
7736 if { (eval echo configure:7737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7737 for ac_file in conftest.*; do
7740 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7744 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7749 echo "$ac_t""$ac_cv_objext" 1>&6
7750 OBJEXT=$ac_cv_objext
7751 ac_objext=$ac_cv_objext
7754 cat >> confdefs.h <<EOF
7755 #define EXEEXT "${EXEEXT}"
7759 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7760 echo "configure:7761: checking for be_app in -lbe" >&5
7761 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7765 ac_save_LIBS="$LIBS"
7766 LIBS="-lbe -lroot -lnet $LIBS"
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* Override any gcc2 internal prototype to avoid an error. */
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7781 eval "ac_cv_lib_$ac_lib_var=yes"
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 eval "ac_cv_lib_$ac_lib_var=no"
7789 LIBS="$ac_save_LIBS"
7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7793 echo "$ac_t""yes" 1>&6
7794 LIBS="$LIBS -lbe -lroot -lnet"
7796 echo "$ac_t""no" 1>&6
7804 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7805 echo "configure:7806: checking for ${CC-cc} option to accept ANSI C" >&5
7806 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 am_cv_prog_cc_stdc=no
7811 # Don't try gcc -ansi; that turns off useful extensions and
7812 # breaks some systems' header files.
7813 # AIX -qlanglvl=ansi
7814 # Ultrix and OSF/1 -std1
7815 # HP-UX 10.20 and later -Ae
7816 # HP-UX older versions -Aa -D_HPUX_SOURCE
7817 # SVR4 -Xc -D__EXTENSIONS__
7818 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7820 CC="$ac_save_CC $ac_arg"
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7826 #include <sys/types.h>
7827 #include <sys/stat.h>
7828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7829 struct buf { int x; };
7830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7831 static char *e (p, i)
7837 static char *f (char * (*g) (char **, int), char **p, ...)
7842 s = g (p, va_arg (v,int));
7846 int test (int i, double x);
7847 struct s1 {int (*f) (int a);};
7848 struct s2 {int (*f) (double a);};
7849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7859 if { (eval echo configure:7860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7861 am_cv_prog_cc_stdc="$ac_arg"; break
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7872 if test -z "$am_cv_prog_cc_stdc"; then
7873 echo "$ac_t""none needed" 1>&6
7875 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
7877 case "x$am_cv_prog_cc_stdc" in
7879 *) CC="$CC $am_cv_prog_cc_stdc" ;;
7882 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
7883 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
7886 # test for make depend flag
7889 if test -z "${MKDEP}"; then
7891 if test -z "${MKDEP_FLAGS}"; then
7892 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
7893 echo "configure:7894: checking for ${OL_MKDEP} depend flag" >&5
7894 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7899 for flag in "-M" "-xM"; do
7900 cat > conftest.c <<EOF
7903 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:7904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
7904 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
7906 if test ! -f conftest."${ac_object}" ; then
7908 OL_MKDEP_FLAGS="$flag"
7917 echo "$ac_t""$ol_cv_mkdep" 1>&6
7920 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7925 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7930 if test "${ol_cv_mkdep}" = no ; then
7931 # this will soon become an error
7932 echo "configure: warning: do not know how to generate dependencies" 1>&2
7935 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
7936 echo "configure:7937: checking for afopen in -ls" >&5
7937 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
7938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 ac_save_LIBS="$LIBS"
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7957 eval "ac_cv_lib_$ac_lib_var=yes"
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 eval "ac_cv_lib_$ac_lib_var=no"
7965 LIBS="$ac_save_LIBS"
7968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7969 echo "$ac_t""yes" 1>&6
7972 cat >> confdefs.h <<\EOF
7973 #define HAVE_AIX_SECURITY 1
7978 echo "$ac_t""no" 1>&6
7984 ac_cv_func_getopt=no
7985 cat >> confdefs.h <<\EOF
7986 #define BOTH_STRINGS_H 1
7993 if test $ol_enable_modules != no ; then
7994 for ac_hdr in ltdl.h
7996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7998 echo "configure:7999: checking for $ac_hdr" >&5
7999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8008 { (eval echo configure:8009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8010 if test -z "$ac_err"; then
8012 eval "ac_cv_header_$ac_safe=yes"
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 eval "ac_cv_header_$ac_safe=no"
8022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8025 cat >> confdefs.h <<EOF
8026 #define $ac_tr_hdr 1
8030 echo "$ac_t""no" 1>&6
8035 if test $ac_cv_header_ltdl_h = no ; then
8036 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8039 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8040 echo "configure:8041: checking for lt_dlinit in -lltdl" >&5
8041 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8045 ac_save_LIBS="$LIBS"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8059 if { (eval echo configure:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8061 eval "ac_cv_lib_$ac_lib_var=yes"
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8066 eval "ac_cv_lib_$ac_lib_var=no"
8069 LIBS="$ac_save_LIBS"
8072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8076 cat >> confdefs.h <<\EOF
8077 #define HAVE_LIBLTDL 1
8082 echo "$ac_t""no" 1>&6
8086 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8087 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8092 for i in $Backends; do
8093 eval "ol_tmp=\$ol_enable_$i"
8094 if test $ol_tmp = mod ; then
8095 echo "configure: warning: building static $i backend" 1>&2
8096 eval "ol_enable_$i=yes"
8099 for i in $Overlays; do
8100 eval "ol_tmp=\$ol_enable_$i"
8101 if test $ol_tmp = mod ; then
8102 echo "configure: warning: building static $i overlay" 1>&2
8103 eval "ol_enable_$i=yes"
8109 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8110 echo "configure:8111: checking for EBCDIC" >&5
8111 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8120 #include <__ASCII__/generate_error.h>
8124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8129 ol_cv_cpp_ebcdic=yes
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8140 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8141 if test $ol_cv_cpp_ebcdic = yes ; then
8142 cat >> confdefs.h <<\EOF
8143 #define HAVE_EBCDIC 1
8148 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8149 echo "configure:8150: checking for ANSI C header files" >&5
8150 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8164 if test -z "$ac_err"; then
8166 ol_cv_header_stdc=yes
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 ol_cv_header_stdc=no
8176 if test $ol_cv_header_stdc = yes; then
8177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8184 egrep "memchr" >/dev/null 2>&1; then
8188 ol_cv_header_stdc=no
8194 if test $ol_cv_header_stdc = yes; then
8195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8202 egrep "free" >/dev/null 2>&1; then
8206 ol_cv_header_stdc=no
8212 if test $ol_cv_header_stdc = yes; then
8213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8214 if test "$cross_compiling" = yes; then
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8225 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8226 || ('j' <= (c) && (c) <= 'r') \
8227 || ('s' <= (c) && (c) <= 'z'))
8228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8231 int main () { int i; for (i = 0; i < 256; i++)
8232 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 ol_cv_header_stdc=no
8251 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8252 if test $ol_cv_header_stdc = yes; then
8253 cat >> confdefs.h <<\EOF
8254 #define STDC_HEADERS 1
8258 ac_cv_header_stdc=disable
8261 if test $ol_cv_header_stdc != yes; then
8262 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8266 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8269 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8270 echo "configure:8271: checking for $ac_hdr that defines DIR" >&5
8271 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 #include <sys/types.h>
8283 if { (eval echo configure:8284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8285 eval "ac_cv_header_dirent_$ac_safe=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_header_dirent_$ac_safe=no"
8294 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_hdr 1
8300 ac_header_dirent=$ac_hdr; break
8302 echo "$ac_t""no" 1>&6
8305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8306 if test $ac_header_dirent = dirent.h; then
8307 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8308 echo "configure:8309: checking for opendir in -ldir" >&5
8309 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 ac_save_LIBS="$LIBS"
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 /* Override any gcc2 internal prototype to avoid an error. */
8319 /* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329 eval "ac_cv_lib_$ac_lib_var=yes"
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8334 eval "ac_cv_lib_$ac_lib_var=no"
8337 LIBS="$ac_save_LIBS"
8340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8344 echo "$ac_t""no" 1>&6
8348 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8349 echo "configure:8350: checking for opendir in -lx" >&5
8350 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8352 echo $ac_n "(cached) $ac_c" 1>&6
8354 ac_save_LIBS="$LIBS"
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8368 if { (eval echo configure:8369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8370 eval "ac_cv_lib_$ac_lib_var=yes"
8372 echo "configure: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8375 eval "ac_cv_lib_$ac_lib_var=no"
8378 LIBS="$ac_save_LIBS"
8381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8385 echo "$ac_t""no" 1>&6
8390 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8391 echo "configure:8392: checking for sys/wait.h that is POSIX.1 compatible" >&5
8392 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 #include <sys/types.h>
8399 #include <sys/wait.h>
8401 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8404 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8409 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8412 if { (eval echo configure:8413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8414 ac_cv_header_sys_wait_h=yes
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 ac_cv_header_sys_wait_h=no
8424 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8425 if test $ac_cv_header_sys_wait_h = yes; then
8426 cat >> confdefs.h <<\EOF
8427 #define HAVE_SYS_WAIT_H 1
8432 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8433 echo "configure:8434: checking POSIX termios" >&5
8434 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 #include <sys/types.h>
8442 #include <termios.h>
8444 /* SunOS 4.0.3 has termios.h but not the library calls. */
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8450 am_cv_sys_posix_termios=yes
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 am_cv_sys_posix_termios=no
8460 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8463 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8464 echo "configure:8465: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8465 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8470 gwinsz_in_termios_h=no
8471 if test $am_cv_sys_posix_termios = yes; then
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 #include <sys/types.h>
8476 # include <termios.h>
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483 egrep "yes" >/dev/null 2>&1; then
8485 gwinsz_in_termios_h=yes
8491 if test $gwinsz_in_termios_h = no; then
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 #include <sys/types.h>
8496 # include <sys/ioctl.h>
8502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8503 egrep "yes" >/dev/null 2>&1; then
8505 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8513 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8514 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8515 cat >> confdefs.h <<\EOF
8516 #define GWINSZ_IN_SYS_IOCTL 1
8521 if test $am_cv_sys_posix_termios = yes ; then
8522 cat >> confdefs.h <<\EOF
8523 #define HAVE_POSIX_TERMIOS 1
8579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8581 echo "configure:8582: checking for $ac_hdr" >&5
8582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8591 { (eval echo configure:8592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8593 if test -z "$ac_err"; then
8595 eval "ac_cv_header_$ac_safe=yes"
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8601 eval "ac_cv_header_$ac_safe=no"
8605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8606 echo "$ac_t""yes" 1>&6
8607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8608 cat >> confdefs.h <<EOF
8609 #define $ac_tr_hdr 1
8613 echo "$ac_t""no" 1>&6
8620 for ac_func in sigaction sigset
8622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8623 echo "configure:8624: checking for $ac_func" >&5
8624 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func(); below. */
8633 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8641 /* The GNU C library defines this for functions which it implements
8642 to always fail with ENOSYS. Some functions are actually named
8643 something starting with __ and the normal name is an alias. */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 eval "ac_cv_func_$ac_func=yes"
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 eval "ac_cv_func_$ac_func=no"
8664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8665 echo "$ac_t""yes" 1>&6
8666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8667 cat >> confdefs.h <<EOF
8668 #define $ac_tr_func 1
8672 echo "$ac_t""no" 1>&6
8677 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
8678 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8679 echo "configure:8680: checking for sigset in -lV3" >&5
8680 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8684 ac_save_LIBS="$LIBS"
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8700 eval "ac_cv_lib_$ac_lib_var=yes"
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 eval "ac_cv_lib_$ac_lib_var=no"
8708 LIBS="$ac_save_LIBS"
8711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8713 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8715 cat >> confdefs.h <<EOF
8716 #define $ac_tr_lib 1
8722 echo "$ac_t""no" 1>&6
8727 if test "$ac_cv_header_winsock_h" = yes; then
8728 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8729 echo "configure:8730: checking for winsock" >&5
8730 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8734 for curlib in ws2_32 wsock32; do
8735 LIBS="$LIBS -l$curlib"
8736 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 #include <winsock.h>
8744 select(0,NULL,NULL,NULL,NULL);
8746 gethostname(NULL,0);
8750 if { (eval echo configure:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8761 if test $ol_cv_winsock = yes; then
8762 cat >> confdefs.h <<\EOF
8763 #define HAVE_WINSOCK 1
8766 ac_cv_func_socket=yes
8767 ac_cv_func_select=yes
8768 ac_cv_func_closesocket=yes
8769 ac_cv_func_gethostname=yes
8770 if test $curlib = ws2_32; then
8771 ol_cv_winsock=winsock2
8772 cat >> confdefs.h <<\EOF
8773 #define HAVE_WINSOCK2 1
8783 echo "$ac_t""$ol_cv_winsock" 1>&6
8787 echo $ac_n "checking for socket""... $ac_c" 1>&6
8788 echo "configure:8789: checking for socket" >&5
8789 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 /* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char socket(); below. */
8798 /* Override any gcc2 internal prototype to avoid an error. */
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8806 /* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
8809 #if defined (__stub_socket) || defined (__stub___socket)
8817 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8819 eval "ac_cv_func_socket=yes"
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8824 eval "ac_cv_func_socket=no"
8829 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8830 echo "$ac_t""yes" 1>&6
8833 echo "$ac_t""no" 1>&6
8835 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8836 echo "configure:8837: checking for main in -lsocket" >&5
8837 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8841 ac_save_LIBS="$LIBS"
8842 LIBS="-lsocket $LIBS"
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8851 if { (eval echo configure:8852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8853 eval "ac_cv_lib_$ac_lib_var=yes"
8855 echo "configure: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8858 eval "ac_cv_lib_$ac_lib_var=no"
8861 LIBS="$ac_save_LIBS"
8864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8865 echo "$ac_t""yes" 1>&6
8866 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8868 cat >> confdefs.h <<EOF
8869 #define $ac_tr_lib 1
8872 LIBS="-lsocket $LIBS"
8875 echo "$ac_t""no" 1>&6
8878 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8879 echo "configure:8880: checking for main in -lnet" >&5
8880 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8881 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
8884 ac_save_LIBS="$LIBS"
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8894 if { (eval echo configure:8895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8896 eval "ac_cv_lib_$ac_lib_var=yes"
8898 echo "configure: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8901 eval "ac_cv_lib_$ac_lib_var=no"
8904 LIBS="$ac_save_LIBS"
8907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8908 echo "$ac_t""yes" 1>&6
8909 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8910 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8911 cat >> confdefs.h <<EOF
8912 #define $ac_tr_lib 1
8918 echo "$ac_t""no" 1>&6
8921 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
8922 echo "configure:8923: checking for main in -lnsl_s" >&5
8923 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
8924 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8927 ac_save_LIBS="$LIBS"
8928 LIBS="-lnsl_s $LIBS"
8929 cat > conftest.$ac_ext <<EOF
8930 #line 8931 "configure"
8931 #include "confdefs.h"
8937 if { (eval echo configure:8938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8939 eval "ac_cv_lib_$ac_lib_var=yes"
8941 echo "configure: failed program was:" >&5
8942 cat conftest.$ac_ext >&5
8944 eval "ac_cv_lib_$ac_lib_var=no"
8947 LIBS="$ac_save_LIBS"
8950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8951 echo "$ac_t""yes" 1>&6
8952 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8953 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8954 cat >> confdefs.h <<EOF
8955 #define $ac_tr_lib 1
8958 LIBS="-lnsl_s $LIBS"
8961 echo "$ac_t""no" 1>&6
8964 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8965 echo "configure:8966: checking for main in -lnsl" >&5
8966 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
8967 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8970 ac_save_LIBS="$LIBS"
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8980 if { (eval echo configure:8981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8982 eval "ac_cv_lib_$ac_lib_var=yes"
8984 echo "configure: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8987 eval "ac_cv_lib_$ac_lib_var=no"
8990 LIBS="$ac_save_LIBS"
8993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8994 echo "$ac_t""yes" 1>&6
8995 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8996 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8997 cat >> confdefs.h <<EOF
8998 #define $ac_tr_lib 1
9004 echo "$ac_t""no" 1>&6
9007 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9008 echo "configure:9009: checking for socket in -linet" >&5
9009 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9013 ac_save_LIBS="$LIBS"
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9018 /* Override any gcc2 internal prototype to avoid an error. */
9019 /* We use char because int might match the return type of a gcc2
9020 builtin and then its argument prototype would still apply. */
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9029 eval "ac_cv_lib_$ac_lib_var=yes"
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 eval "ac_cv_lib_$ac_lib_var=no"
9037 LIBS="$ac_save_LIBS"
9040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9041 echo "$ac_t""yes" 1>&6
9042 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9044 cat >> confdefs.h <<EOF
9045 #define $ac_tr_lib 1
9051 echo "$ac_t""no" 1>&6
9054 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9055 echo "configure:9056: checking for main in -lgen" >&5
9056 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9057 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9060 ac_save_LIBS="$LIBS"
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9072 eval "ac_cv_lib_$ac_lib_var=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 eval "ac_cv_lib_$ac_lib_var=no"
9080 LIBS="$ac_save_LIBS"
9083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9084 echo "$ac_t""yes" 1>&6
9085 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9087 cat >> confdefs.h <<EOF
9088 #define $ac_tr_lib 1
9094 echo "$ac_t""no" 1>&6
9101 echo $ac_n "checking for select""... $ac_c" 1>&6
9102 echo "configure:9103: checking for select" >&5
9103 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 /* System header to define __stub macros and hopefully few prototypes,
9110 which can conflict with char select(); below. */
9112 /* Override any gcc2 internal prototype to avoid an error. */
9113 /* We use char because int might match the return type of a gcc2
9114 builtin and then its argument prototype would still apply. */
9120 /* The GNU C library defines this for functions which it implements
9121 to always fail with ENOSYS. Some functions are actually named
9122 something starting with __ and the normal name is an alias. */
9123 #if defined (__stub_select) || defined (__stub___select)
9131 if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9133 eval "ac_cv_func_select=yes"
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 eval "ac_cv_func_select=no"
9143 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9144 echo "$ac_t""yes" 1>&6
9147 echo "$ac_t""no" 1>&6
9148 { echo "configure: error: select() required." 1>&2; exit 1; }
9152 if test "${ac_cv_header_winsock_h}" != yes; then
9153 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9154 echo "configure:9155: checking types of arguments for select()" >&5
9155 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9158 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9159 echo $ac_n "(cached) $ac_c" 1>&6
9161 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9164 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9165 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9166 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 #ifdef HAVE_SYS_TYPES_H
9171 #include <sys/types.h>
9173 #ifdef HAVE_SYS_TIME_H
9174 #include <sys/time.h>
9176 #ifdef HAVE_SYS_SELECT_H
9177 #include <sys/select.h>
9179 #ifdef HAVE_SYS_SOCKET_H
9180 #include <sys/socket.h>
9182 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);
9187 if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9189 ac_not_found=no ; break 3
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9206 if test "$ac_not_found" = yes; then
9207 ac_cv_func_select_arg1=int
9208 ac_cv_func_select_arg234='int *'
9209 ac_cv_func_select_arg5='struct timeval *'
9211 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9212 cat >> confdefs.h <<EOF
9213 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9216 cat >> confdefs.h <<EOF
9217 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9220 cat >> confdefs.h <<EOF
9221 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9228 for ac_hdr in regex.h
9230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9232 echo "configure:9233: checking for $ac_hdr" >&5
9233 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9236 cat > conftest.$ac_ext <<EOF
9237 #line 9238 "configure"
9238 #include "confdefs.h"
9241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9242 { (eval echo configure:9243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9244 if test -z "$ac_err"; then
9246 eval "ac_cv_header_$ac_safe=yes"
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9252 eval "ac_cv_header_$ac_safe=no"
9256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9257 echo "$ac_t""yes" 1>&6
9258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9259 cat >> confdefs.h <<EOF
9260 #define $ac_tr_hdr 1
9264 echo "$ac_t""no" 1>&6
9268 if test "$ac_cv_header_regex_h" != yes ; then
9269 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9272 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9273 echo "configure:9274: checking for library containing regfree" >&5
9274 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9275 echo $ac_n "(cached) $ac_c" 1>&6
9277 ac_func_search_save_LIBS="$LIBS"
9278 ac_cv_search_regfree="no"
9279 cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure"
9281 #include "confdefs.h"
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 /* We use char because int might match the return type of a gcc2
9284 builtin and then its argument prototype would still apply. */
9291 if { (eval echo configure:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9293 ac_cv_search_regfree="none required"
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9299 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9301 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9304 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9315 ac_cv_search_regfree="-l$ac_lib"
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9323 LIBS="$ac_func_search_save_LIBS"
9326 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9327 if test "$ac_cv_search_regfree" != "no"; then
9328 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9331 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9335 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9336 echo "configure:9337: checking for compatible POSIX regex" >&5
9337 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9341 if test "$cross_compiling" = yes; then
9342 ol_cv_c_posix_regex=cross
9344 cat > conftest.$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9348 #include <sys/types.h>
9350 static char *pattern, *string;
9358 if(regcomp(&re, pattern, 0)) {
9362 string = "ALL MATCH";
9364 rc = regexec(&re, string, 0, (void*)0, 0);
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9373 ol_cv_c_posix_regex=yes
9375 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9378 ol_cv_c_posix_regex=no
9385 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9387 if test "$ol_cv_c_posix_regex" = no ; then
9388 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9393 for ac_hdr in sys/uuid.h
9395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9397 echo "configure:9398: checking for $ac_hdr" >&5
9398 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9407 { (eval echo configure:9408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9409 if test -z "$ac_err"; then
9411 eval "ac_cv_header_$ac_safe=yes"
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9417 eval "ac_cv_header_$ac_safe=no"
9421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9422 echo "$ac_t""yes" 1>&6
9423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9424 cat >> confdefs.h <<EOF
9425 #define $ac_tr_hdr 1
9429 echo "$ac_t""no" 1>&6
9433 if test $ac_cv_header_sys_uuid_h = yes ; then
9436 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9437 echo "configure:9438: checking for library containing uuid_to_str" >&5
9438 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9441 ac_func_search_save_LIBS="$LIBS"
9442 ac_cv_search_uuid_to_str="no"
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9446 /* Override any gcc2 internal prototype to avoid an error. */
9447 /* We use char because int might match the return type of a gcc2
9448 builtin and then its argument prototype would still apply. */
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9457 ac_cv_search_uuid_to_str="none required"
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9463 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9465 cat > conftest.$ac_ext <<EOF
9466 #line 9467 "configure"
9467 #include "confdefs.h"
9468 /* Override any gcc2 internal prototype to avoid an error. */
9469 /* We use char because int might match the return type of a gcc2
9470 builtin and then its argument prototype would still apply. */
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9479 ac_cv_search_uuid_to_str="-l$ac_lib"
9482 echo "configure: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9487 LIBS="$ac_func_search_save_LIBS"
9490 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9491 if test "$ac_cv_search_uuid_to_str" != "no"; then
9492 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9499 if test have_uuid = yes ; then
9500 cat >> confdefs.h <<\EOF
9501 #define HAVE_UUID_TO_STR 1
9505 test "$ac_cv_search_uuid_to_str" = "none required" || \
9506 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9510 if test $have_uuid = no ; then
9511 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9512 echo "configure:9513: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9514 LIBS="$LIBS -lrpcrt4"
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9519 int __stdcall UuidCreate(void *);
9520 int __stdcall UuidToStringA(void *,void **);
9529 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9539 if test $need_rpcrt = yes; then
9540 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9543 echo "$ac_t""$need_rpcrt" 1>&6
9547 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9548 echo "configure:9549: checking for res_query" >&5
9549 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9550 echo $ac_n "(cached) $ac_c" 1>&6
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9555 /* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char res_query(); below. */
9558 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9566 /* The GNU C library defines this for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_res_query) || defined (__stub___res_query)
9577 if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9579 eval "ac_cv_func_res_query=yes"
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9584 eval "ac_cv_func_res_query=no"
9589 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9590 echo "$ac_t""yes" 1>&6
9593 echo "$ac_t""no" 1>&6
9596 if test $ac_cv_func_res_query = no ; then
9597 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9598 echo "configure:9599: checking for __res_query" >&5
9599 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9602 cat > conftest.$ac_ext <<EOF
9603 #line 9604 "configure"
9604 #include "confdefs.h"
9605 /* System header to define __stub macros and hopefully few prototypes,
9606 which can conflict with char __res_query(); below. */
9608 /* Override any gcc2 internal prototype to avoid an error. */
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9616 /* The GNU C library defines this for functions which it implements
9617 to always fail with ENOSYS. Some functions are actually named
9618 something starting with __ and the normal name is an alias. */
9619 #if defined (__stub___res_query) || defined (__stub_____res_query)
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629 eval "ac_cv_func___res_query=yes"
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9634 eval "ac_cv_func___res_query=no"
9639 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9640 echo "$ac_t""yes" 1>&6
9643 echo "$ac_t""no" 1>&6
9646 ac_cv_func_res_query=$ac_cv_func___res_query
9649 if test $ac_cv_func_res_query = no ; then
9650 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9651 echo "configure:9652: checking for res_query in -lbind" >&5
9652 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 ac_save_LIBS="$LIBS"
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 eval "ac_cv_lib_$ac_lib_var=yes"
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9677 eval "ac_cv_lib_$ac_lib_var=no"
9680 LIBS="$ac_save_LIBS"
9683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9684 echo "$ac_t""yes" 1>&6
9685 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9686 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9687 cat >> confdefs.h <<EOF
9688 #define $ac_tr_lib 1
9694 echo "$ac_t""no" 1>&6
9697 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9700 if test $ac_cv_func_res_query = no ; then
9701 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9702 echo "configure:9703: checking for __res_query in -lbind" >&5
9703 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9704 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9707 ac_save_LIBS="$LIBS"
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 /* Override any gcc2 internal prototype to avoid an error. */
9713 /* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 eval "ac_cv_lib_$ac_lib_var=yes"
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9728 eval "ac_cv_lib_$ac_lib_var=no"
9731 LIBS="$ac_save_LIBS"
9734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9735 echo "$ac_t""yes" 1>&6
9736 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9738 cat >> confdefs.h <<EOF
9739 #define $ac_tr_lib 1
9745 echo "$ac_t""no" 1>&6
9748 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9751 if test $ac_cv_func_res_query = no ; then
9752 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9753 echo "configure:9754: checking for res_query in -lresolv" >&5
9754 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9755 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9758 ac_save_LIBS="$LIBS"
9759 LIBS="-lresolv $LIBS"
9760 cat > conftest.$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9763 /* Override any gcc2 internal prototype to avoid an error. */
9764 /* We use char because int might match the return type of a gcc2
9765 builtin and then its argument prototype would still apply. */
9772 if { (eval echo configure:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9774 eval "ac_cv_lib_$ac_lib_var=yes"
9776 echo "configure: failed program was:" >&5
9777 cat conftest.$ac_ext >&5
9779 eval "ac_cv_lib_$ac_lib_var=no"
9782 LIBS="$ac_save_LIBS"
9785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9786 echo "$ac_t""yes" 1>&6
9787 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9789 cat >> confdefs.h <<EOF
9790 #define $ac_tr_lib 1
9793 LIBS="-lresolv $LIBS"
9796 echo "$ac_t""no" 1>&6
9799 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9802 if test $ac_cv_func_res_query = no ; then
9803 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9804 echo "configure:9805: checking for __res_query in -lresolv" >&5
9805 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9806 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9809 ac_save_LIBS="$LIBS"
9810 LIBS="-lresolv $LIBS"
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9814 /* Override any gcc2 internal prototype to avoid an error. */
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9823 if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9825 eval "ac_cv_lib_$ac_lib_var=yes"
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9830 eval "ac_cv_lib_$ac_lib_var=no"
9833 LIBS="$ac_save_LIBS"
9836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9837 echo "$ac_t""yes" 1>&6
9838 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9840 cat >> confdefs.h <<EOF
9841 #define $ac_tr_lib 1
9844 LIBS="-lresolv $LIBS"
9847 echo "$ac_t""no" 1>&6
9850 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9853 if test $ac_cv_func_res_query = no ; then
9854 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
9855 echo "configure:9856: checking for _res_9_query in -lresolv" >&5
9856 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
9857 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9858 echo $ac_n "(cached) $ac_c" 1>&6
9860 ac_save_LIBS="$LIBS"
9861 LIBS="-lresolv $LIBS"
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 /* Override any gcc2 internal prototype to avoid an error. */
9866 /* We use char because int might match the return type of a gcc2
9867 builtin and then its argument prototype would still apply. */
9868 char _res_9_query();
9874 if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9876 eval "ac_cv_lib_$ac_lib_var=yes"
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9881 eval "ac_cv_lib_$ac_lib_var=no"
9884 LIBS="$ac_save_LIBS"
9887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9888 echo "$ac_t""yes" 1>&6
9889 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9890 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9891 cat >> confdefs.h <<EOF
9892 #define $ac_tr_lib 1
9895 LIBS="-lresolv $LIBS"
9898 echo "$ac_t""no" 1>&6
9901 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
9904 if test "$ac_cv_func_res_query" = yes ; then
9905 cat >> confdefs.h <<\EOF
9906 #define HAVE_RES_QUERY 1
9910 if test $ol_enable_dnssrv != no ; then
9915 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9916 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9919 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9922 echo "configure:9923: checking for $ac_func" >&5
9923 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9926 cat > conftest.$ac_ext <<EOF
9927 #line 9928 "configure"
9928 #include "confdefs.h"
9929 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char $ac_func(); below. */
9932 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9953 eval "ac_cv_func_$ac_func=yes"
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 eval "ac_cv_func_$ac_func=no"
9963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9964 echo "$ac_t""yes" 1>&6
9965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9966 cat >> confdefs.h <<EOF
9967 #define $ac_tr_func 1
9971 echo "$ac_t""no" 1>&6
9977 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
9978 if test $ol_enable_ipv6 = yes ; then
9979 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
9981 elif test $ol_enable_ipv6 != no ; then
9982 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
9983 echo "configure:9984: checking INET6_ADDRSTRLEN" >&5
9984 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9992 # include <netinet/in.h>
9993 # ifdef INET6_ADDRSTRLEN
9994 __has_inet6_addrstrlen__;
9998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10001 ol_cv_inet6_addrstrlen=yes
10004 ol_cv_inet6_addrstrlen=no
10010 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10013 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10014 echo "configure:10015: checking struct sockaddr_storage" >&5
10015 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10023 #include <sys/types.h>
10024 #include <sys/socket.h>
10028 struct sockaddr_storage ss;
10032 if { (eval echo configure:10033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10034 ol_cv_struct_sockaddr_storage=yes
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10039 ol_cv_struct_sockaddr_storage=no
10044 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10046 if test $ol_cv_inet6_addrstrlen = yes \
10047 -a $ol_cv_struct_sockaddr_storage = yes ; then
10049 elif test $ol_enable_ipv6 = yes \
10050 -a $ol_cv_inet6_addrstrlen = no ; then
10051 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10052 elif test $ol_enable_ipv6 = yes \
10053 -a $ol_cv_struct_sockaddr_storage = no ; then
10054 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10058 if test $ol_enable_local != no ; then
10059 for ac_hdr in sys/un.h
10061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10063 echo "configure:10064: checking for $ac_hdr" >&5
10064 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10065 echo $ac_n "(cached) $ac_c" 1>&6
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10073 { (eval echo configure:10074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10075 if test -z "$ac_err"; then
10077 eval "ac_cv_header_$ac_safe=yes"
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10083 eval "ac_cv_header_$ac_safe=no"
10087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10088 echo "$ac_t""yes" 1>&6
10089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10090 cat >> confdefs.h <<EOF
10091 #define $ac_tr_hdr 1
10095 echo "$ac_t""no" 1>&6
10100 if test $ol_enable_local = auto ; then
10101 ol_enable_local=$ac_cv_header_sys_un_h
10102 elif test $ac_cv_header_sys_un_h = no ; then
10103 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10111 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10112 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10113 -o $ol_with_kerberos = k425 ; then
10115 for ac_hdr in krb5.h
10117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10119 echo "configure:10120: checking for $ac_hdr" >&5
10120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10129 { (eval echo configure:10130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10131 if test -z "$ac_err"; then
10133 eval "ac_cv_header_$ac_safe=yes"
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10139 eval "ac_cv_header_$ac_safe=no"
10143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10144 echo "$ac_t""yes" 1>&6
10145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10146 cat >> confdefs.h <<EOF
10147 #define $ac_tr_hdr 1
10151 echo "$ac_t""no" 1>&6
10156 if test $ac_cv_header_krb5_h = yes ; then
10157 for ac_hdr in heim_err.h
10159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10161 echo "configure:10162: checking for $ac_hdr" >&5
10162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10171 { (eval echo configure:10172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10173 if test -z "$ac_err"; then
10175 eval "ac_cv_header_$ac_safe=yes"
10178 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10181 eval "ac_cv_header_$ac_safe=no"
10185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10188 cat >> confdefs.h <<EOF
10189 #define $ac_tr_hdr 1
10193 echo "$ac_t""no" 1>&6
10197 if test $ac_cv_header_heim_err_h = yes ; then
10203 if test $krb5_impl = mit; then
10204 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10205 echo "configure:10206: checking for main in -lk5crypto" >&5
10206 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10210 ac_save_LIBS="$LIBS"
10211 LIBS="-lk5crypto $LIBS"
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10222 eval "ac_cv_lib_$ac_lib_var=yes"
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10227 eval "ac_cv_lib_$ac_lib_var=no"
10230 LIBS="$ac_save_LIBS"
10233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10234 echo "$ac_t""yes" 1>&6
10235 krb5crypto=k5crypto
10237 echo "$ac_t""no" 1>&6
10242 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10243 echo "configure:10244: checking for main in -lkrb5" >&5
10244 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10248 ac_save_LIBS="$LIBS"
10249 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10258 if { (eval echo configure:10259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 eval "ac_cv_lib_$ac_lib_var=yes"
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10265 eval "ac_cv_lib_$ac_lib_var=no"
10268 LIBS="$ac_save_LIBS"
10271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10272 echo "$ac_t""yes" 1>&6
10274 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10276 echo "$ac_t""no" 1>&6
10281 elif test $krb5_impl = heimdal; then
10282 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10283 echo "configure:10284: checking for main in -ldes" >&5
10284 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10285 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10288 ac_save_LIBS="$LIBS"
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10298 if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300 eval "ac_cv_lib_$ac_lib_var=yes"
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10305 eval "ac_cv_lib_$ac_lib_var=no"
10308 LIBS="$ac_save_LIBS"
10311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10312 echo "$ac_t""yes" 1>&6
10315 echo "$ac_t""no" 1>&6
10320 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10321 echo "configure:10322: checking for main in -lkrb5" >&5
10322 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10326 ac_save_LIBS="$LIBS"
10327 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10336 if { (eval echo configure:10337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10338 eval "ac_cv_lib_$ac_lib_var=yes"
10340 echo "configure: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10343 eval "ac_cv_lib_$ac_lib_var=no"
10346 LIBS="$ac_save_LIBS"
10349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10350 echo "$ac_t""yes" 1>&6
10352 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10354 echo "$ac_t""no" 1>&6
10359 cat >> confdefs.h <<\EOF
10360 #define HAVE_HEIMDAL_KERBEROS 1
10366 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10369 if test $have_krb5 = yes ; then
10372 cat >> confdefs.h <<\EOF
10373 #define HAVE_KRB5 1
10377 if test $ol_with_kerberos = k5only ; then
10378 ol_with_kerberos=found
10381 elif test $ol_with_kerberos != auto ; then
10382 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10388 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10389 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10391 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10395 echo "configure:10396: checking for $ac_hdr" >&5
10396 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10405 { (eval echo configure:10406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10407 if test -z "$ac_err"; then
10409 eval "ac_cv_header_$ac_safe=yes"
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 eval "ac_cv_header_$ac_safe=no"
10419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
10421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10422 cat >> confdefs.h <<EOF
10423 #define $ac_tr_hdr 1
10427 echo "$ac_t""no" 1>&6
10432 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10433 if test $krb5_impl = mit; then
10434 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10435 echo "configure:10436: checking for main in -lkrb4" >&5
10436 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10437 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10440 ac_save_LIBS="$LIBS"
10441 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10452 eval "ac_cv_lib_$ac_lib_var=yes"
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10457 eval "ac_cv_lib_$ac_lib_var=no"
10460 LIBS="$ac_save_LIBS"
10463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10464 echo "$ac_t""yes" 1>&6
10466 KRB4_LIBS="-lkrb4 -ldes425"
10468 echo "$ac_t""no" 1>&6
10473 elif test $krb5_impl = heimdal; then
10474 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10475 echo "configure:10476: checking for main in -lkrb4" >&5
10476 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10477 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10480 ac_save_LIBS="$LIBS"
10481 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10490 if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10492 eval "ac_cv_lib_$ac_lib_var=yes"
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10497 eval "ac_cv_lib_$ac_lib_var=no"
10500 LIBS="$ac_save_LIBS"
10503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10504 echo "$ac_t""yes" 1>&6
10508 echo "$ac_t""no" 1>&6
10515 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10518 if test $have_k425 = yes ; then
10519 ol_with_kerberos=found
10522 cat >> confdefs.h <<\EOF
10523 #define HAVE_KRB425 1
10526 cat >> confdefs.h <<\EOF
10527 #define HAVE_KRB4 1
10531 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10532 echo "configure:10533: checking for des_debug in Kerberos libraries" >&5
10533 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10538 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10543 #include <kerberosIV/krb.h>
10544 #include <kerberosIV/des.h>
10545 extern int des_debug;
10553 if { (eval echo configure:10554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10555 ol_cv_var_des_debug=yes
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 ol_cv_var_des_debug=no
10567 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10569 if test $ol_cv_var_des_debug = yes ; then
10570 cat >> confdefs.h <<\EOF
10571 #define HAVE_DES_DEBUG 1
10581 if test $ol_link_krb5 = yes ; then
10582 ol_with_kerberos=found
10585 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10586 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10588 for ac_hdr in krb.h des.h krb-archaeology.h
10590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10592 echo "configure:10593: checking for $ac_hdr" >&5
10593 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10594 echo $ac_n "(cached) $ac_c" 1>&6
10596 cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure"
10598 #include "confdefs.h"
10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10604 if test -z "$ac_err"; then
10606 eval "ac_cv_header_$ac_safe=yes"
10609 echo "configure: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10612 eval "ac_cv_header_$ac_safe=no"
10616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10617 echo "$ac_t""yes" 1>&6
10618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10619 cat >> confdefs.h <<EOF
10620 #define $ac_tr_hdr 1
10624 echo "$ac_t""no" 1>&6
10629 if test $ac_cv_header_krb_h = yes ; then
10630 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10631 echo "configure:10632: checking for main in -lkrb" >&5
10632 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10633 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10636 ac_save_LIBS="$LIBS"
10637 LIBS="-lkrb -ldes $LIBS"
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10646 if { (eval echo configure:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10648 eval "ac_cv_lib_$ac_lib_var=yes"
10650 echo "configure: failed program was:" >&5
10651 cat conftest.$ac_ext >&5
10653 eval "ac_cv_lib_$ac_lib_var=no"
10656 LIBS="$ac_save_LIBS"
10659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10660 echo "$ac_t""yes" 1>&6
10663 echo "$ac_t""no" 1>&6
10668 if test $have_k4 = yes ; then
10669 ol_with_kerberos=found
10672 cat >> confdefs.h <<\EOF
10673 #define HAVE_KRB4 1
10677 KRB4_LIBS="-lkrb -ldes"
10679 if test $ac_cv_header_krb_archaeology_h = yes ; then
10680 cat >> confdefs.h <<\EOF
10681 #define HAVE_KTH_KERBEROS 1
10689 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10692 elif test $ol_enable_kbind = yes ; then
10693 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10696 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10697 cat >> confdefs.h <<\EOF
10698 #define HAVE_KERBEROS 1
10702 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10703 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10707 if test $ol_with_tls != no ; then
10708 for ac_hdr in openssl/ssl.h ssl.h
10710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10712 echo "configure:10713: checking for $ac_hdr" >&5
10713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10722 { (eval echo configure:10723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10724 if test -z "$ac_err"; then
10726 eval "ac_cv_header_$ac_safe=yes"
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10732 eval "ac_cv_header_$ac_safe=no"
10736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10737 echo "$ac_t""yes" 1>&6
10738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10739 cat >> confdefs.h <<EOF
10740 #define $ac_tr_hdr 1
10744 echo "$ac_t""no" 1>&6
10749 if test $ac_cv_header_openssl_ssl_h = yes \
10750 -o $ac_cv_header_ssl_h = yes ; then
10751 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10752 echo "configure:10753: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10753 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10757 ac_save_LIBS="$LIBS"
10758 LIBS="-lssl -lcrypto $LIBS"
10759 cat > conftest.$ac_ext <<EOF
10760 #line 10761 "configure"
10761 #include "confdefs.h"
10762 /* Override any gcc2 internal prototype to avoid an error. */
10763 /* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10765 char SSLeay_add_ssl_algorithms();
10768 SSLeay_add_ssl_algorithms()
10771 if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10773 eval "ac_cv_lib_$ac_lib_var=yes"
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10778 eval "ac_cv_lib_$ac_lib_var=no"
10781 LIBS="$ac_save_LIBS"
10784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10789 echo "$ac_t""no" 1>&6
10794 if test $have_ssleay = no ; then
10795 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10796 echo "configure:10797: checking for SSL_library_init in -lssl" >&5
10797 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10801 ac_save_LIBS="$LIBS"
10802 LIBS="-lssl -lcrypto $LIBS"
10803 cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10809 char SSL_library_init();
10815 if { (eval echo configure:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10817 eval "ac_cv_lib_$ac_lib_var=yes"
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10822 eval "ac_cv_lib_$ac_lib_var=no"
10825 LIBS="$ac_save_LIBS"
10828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10829 echo "$ac_t""yes" 1>&6
10833 echo "$ac_t""no" 1>&6
10839 if test $have_ssleay = no ; then
10840 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10841 echo "configure:10842: checking for ssl3_accept in -lssl" >&5
10842 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10843 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10844 echo $ac_n "(cached) $ac_c" 1>&6
10846 ac_save_LIBS="$LIBS"
10847 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10848 cat > conftest.$ac_ext <<EOF
10849 #line 10850 "configure"
10850 #include "confdefs.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 ssl3_accept();
10860 if { (eval echo configure:10861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10862 eval "ac_cv_lib_$ac_lib_var=yes"
10864 echo "configure: failed program was:" >&5
10865 cat conftest.$ac_ext >&5
10867 eval "ac_cv_lib_$ac_lib_var=no"
10870 LIBS="$ac_save_LIBS"
10873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10874 echo "$ac_t""yes" 1>&6
10878 echo "$ac_t""no" 1>&6
10884 if test $have_ssleay = yes ; then
10888 cat >> confdefs.h <<\EOF
10889 #define HAVE_SSLEAY 1
10893 if test $need_rsaref = yes; then
10894 cat >> confdefs.h <<\EOF
10895 #define HAVE_RSAREF 1
10899 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10901 TLS_LIBS="-lssl -lcrypto"
10907 echo "configure: warning: TLS data protection not supported!" 1>&2
10911 if test $ol_link_tls = yes ; then
10912 cat >> confdefs.h <<\EOF
10918 elif test $ol_with_tls = auto ; then
10919 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10920 echo "configure: warning: TLS data protection not supported!" 1>&2
10922 elif test $ol_with_tls != no ; then
10923 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10926 if test $ol_enable_lmpasswd != no; then
10927 if test $ol_link_tls != yes ; then
10928 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10931 cat >> confdefs.h <<\EOF
10932 #define SLAPD_LMHASH 1
10939 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10940 -o $ol_with_threads = nt ; then
10943 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10944 echo "configure:10945: checking for _beginthread" >&5
10945 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char _beginthread(); below. */
10953 #include <assert.h>
10954 /* Override any gcc2 internal prototype to avoid an error. */
10955 /* We use char because int might match the return type of a gcc2
10956 builtin and then its argument prototype would still apply. */
10957 char _beginthread();
10962 /* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965 #if defined (__stub__beginthread) || defined (__stub____beginthread)
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10975 eval "ac_cv_func__beginthread=yes"
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10980 eval "ac_cv_func__beginthread=no"
10985 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10989 echo "$ac_t""no" 1>&6
10993 if test $ac_cv_func__beginthread = yes ; then
10994 cat >> confdefs.h <<\EOF
10995 #define HAVE_NT_THREADS 1
10998 ol_cv_nt_threads=yes
11002 if test "$ol_cv_nt_threads" = yes ; then
11004 ol_with_threads=found
11005 ol_with_yielding_select=yes
11007 cat >> confdefs.h <<\EOF
11008 #define HAVE_NT_SERVICE_MANAGER 1
11011 cat >> confdefs.h <<\EOF
11012 #define HAVE_NT_EVENT_LOG 1
11017 if test $ol_with_threads = nt ; then
11018 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11022 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11023 -o $ol_with_threads = posix ; then
11025 for ac_hdr in pthread.h
11027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11029 echo "configure:11030: checking for $ac_hdr" >&5
11030 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11031 echo $ac_n "(cached) $ac_c" 1>&6
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11039 { (eval echo configure:11040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11041 if test -z "$ac_err"; then
11043 eval "ac_cv_header_$ac_safe=yes"
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11049 eval "ac_cv_header_$ac_safe=no"
11053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11054 echo "$ac_t""yes" 1>&6
11055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11056 cat >> confdefs.h <<EOF
11057 #define $ac_tr_hdr 1
11061 echo "$ac_t""no" 1>&6
11066 if test $ac_cv_header_pthread_h = yes ; then
11067 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11068 echo "configure:11069: checking POSIX thread version" >&5
11069 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11077 # include <pthread.h>
11081 int i = PTHREAD_CREATE_JOINABLE;
11085 if { (eval echo configure:11086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <pthread.h>
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094 egrep "pthread_detach" >/dev/null 2>&1; then
11096 ol_cv_pthread_version=10
11099 ol_cv_pthread_version=8
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11112 # include <pthread.h>
11113 # ifdef PTHREAD_CREATE_UNDETACHED
11118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11119 egrep "draft7" >/dev/null 2>&1; then
11121 ol_cv_pthread_version=7
11125 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure"
11127 #include "confdefs.h"
11128 #include <pthread.h>
11130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11131 egrep "pthread_attr_init" >/dev/null 2>&1; then
11133 ol_cv_pthread_version=6
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11141 # include <pthread.h>
11142 #ifdef PTHREAD_MUTEX_INITIALIZER
11147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11148 egrep "draft5" >/dev/null 2>&1; then
11150 ol_cv_pthread_version=5
11153 ol_cv_pthread_version=4
11168 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11171 if test $ol_cv_pthread_version != 0 ; then
11172 cat >> confdefs.h <<EOF
11173 #define HAVE_PTHREADS $ol_cv_pthread_version
11177 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11180 # consider threads found
11181 ol_with_threads=found
11184 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11185 echo "configure:11186: checking for LinuxThreads pthread.h" >&5
11186 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include <pthread.h>
11194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11195 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11197 ol_cv_header_linux_threads=yes
11200 ol_cv_header_linux_threads=no
11207 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11208 if test $ol_cv_header_linux_threads = yes; then
11209 cat >> confdefs.h <<\EOF
11210 #define HAVE_LINUX_THREADS 1
11216 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11217 echo "configure:11218: checking for GNU Pth pthread.h" >&5
11218 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11219 echo $ac_n "(cached) $ac_c" 1>&6
11221 cat > conftest.$ac_ext <<EOF
11222 #line 11223 "configure"
11223 #include "confdefs.h"
11224 #include <pthread.h>
11225 #ifdef _POSIX_THREAD_IS_GNU_PTH
11230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11231 egrep "__gnu_pth__" >/dev/null 2>&1; then
11233 ol_cv_header_gnu_pth_pthread_h=yes
11236 ol_cv_header_gnu_pth_pthread_h=no
11243 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11246 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11247 for ac_hdr in sched.h
11249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_hdr" >&5
11252 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11261 { (eval echo configure:11262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11263 if test -z "$ac_err"; then
11265 eval "ac_cv_header_$ac_safe=yes"
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 eval "ac_cv_header_$ac_safe=no"
11275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11276 echo "$ac_t""yes" 1>&6
11277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11278 cat >> confdefs.h <<EOF
11279 #define $ac_tr_hdr 1
11283 echo "$ac_t""no" 1>&6
11290 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11291 echo "configure:11292: checking for pthread_create in default libraries" >&5
11292 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11296 if test "$cross_compiling" = yes; then
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11300 /* pthread test headers */
11301 #include <pthread.h>
11302 #if HAVE_PTHREADS < 7
11306 #define NULL (void*)0
11309 static void *task(p)
11312 return (void *) (p == NULL);
11317 /* pthread test function */
11318 #ifndef PTHREAD_CREATE_DETACHED
11319 #define PTHREAD_CREATE_DETACHED 1
11323 int detach = PTHREAD_CREATE_DETACHED;
11325 #if HAVE_PTHREADS > 4
11326 /* Final pthreads */
11327 pthread_attr_t attr;
11329 status = pthread_attr_init(&attr);
11330 if( status ) return status;
11332 #if HAVE_PTHREADS < 7
11333 status = pthread_attr_setdetachstate(&attr, &detach);
11334 if( status < 0 ) status = errno;
11336 status = pthread_attr_setdetachstate(&attr, detach);
11338 if( status ) return status;
11339 status = pthread_create( &t, &attr, task, NULL );
11340 #if HAVE_PTHREADS < 7
11341 if( status < 0 ) status = errno;
11343 if( status ) return status;
11345 /* Draft 4 pthreads */
11346 status = pthread_create( &t, pthread_attr_default, task, NULL );
11347 if( status ) return errno;
11349 /* give thread a chance to complete */
11350 /* it should remain joinable and hence detachable */
11353 status = pthread_detach( &t );
11354 if( status ) return errno;
11357 #ifdef HAVE_LINUX_THREADS
11358 pthread_kill_other_threads_np();
11365 if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11367 ol_cv_pthread_create=yes
11369 echo "configure: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11372 ol_cv_pthread_create=no
11376 cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11379 /* pthread test headers */
11380 #include <pthread.h>
11381 #if HAVE_PTHREADS < 7
11385 #define NULL (void*)0
11388 static void *task(p)
11391 return (void *) (p == NULL);
11395 int main(argc, argv)
11400 /* pthread test function */
11401 #ifndef PTHREAD_CREATE_DETACHED
11402 #define PTHREAD_CREATE_DETACHED 1
11406 int detach = PTHREAD_CREATE_DETACHED;
11408 #if HAVE_PTHREADS > 4
11409 /* Final pthreads */
11410 pthread_attr_t attr;
11412 status = pthread_attr_init(&attr);
11413 if( status ) return status;
11415 #if HAVE_PTHREADS < 7
11416 status = pthread_attr_setdetachstate(&attr, &detach);
11417 if( status < 0 ) status = errno;
11419 status = pthread_attr_setdetachstate(&attr, detach);
11421 if( status ) return status;
11422 status = pthread_create( &t, &attr, task, NULL );
11423 #if HAVE_PTHREADS < 7
11424 if( status < 0 ) status = errno;
11426 if( status ) return status;
11428 /* Draft 4 pthreads */
11429 status = pthread_create( &t, pthread_attr_default, task, NULL );
11430 if( status ) return errno;
11432 /* give thread a chance to complete */
11433 /* it should remain joinable and hence detachable */
11436 status = pthread_detach( &t );
11437 if( status ) return errno;
11440 #ifdef HAVE_LINUX_THREADS
11441 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} && (./conftest; exit) 2>&5
11451 ol_cv_pthread_create=yes
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 ol_cv_pthread_create=no
11463 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11465 if test $ol_cv_pthread_create != no ; then
11466 ol_link_threads=posix
11467 ol_link_pthreads=""
11470 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11471 if test "$ol_link_threads" = no ; then
11473 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11474 echo "configure:11475: checking for pthread link with -kthread" >&5
11475 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11481 LIBS="-kthread $LIBS"
11483 if test "$cross_compiling" = yes; then
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11487 /* pthread test headers */
11488 #include <pthread.h>
11489 #if HAVE_PTHREADS < 7
11493 #define NULL (void*)0
11496 static void *task(p)
11499 return (void *) (p == NULL);
11504 /* pthread test function */
11505 #ifndef PTHREAD_CREATE_DETACHED
11506 #define PTHREAD_CREATE_DETACHED 1
11510 int detach = PTHREAD_CREATE_DETACHED;
11512 #if HAVE_PTHREADS > 4
11513 /* Final pthreads */
11514 pthread_attr_t attr;
11516 status = pthread_attr_init(&attr);
11517 if( status ) return status;
11519 #if HAVE_PTHREADS < 7
11520 status = pthread_attr_setdetachstate(&attr, &detach);
11521 if( status < 0 ) status = errno;
11523 status = pthread_attr_setdetachstate(&attr, detach);
11525 if( status ) return status;
11526 status = pthread_create( &t, &attr, task, NULL );
11527 #if HAVE_PTHREADS < 7
11528 if( status < 0 ) status = errno;
11530 if( status ) return status;
11532 /* Draft 4 pthreads */
11533 status = pthread_create( &t, pthread_attr_default, task, NULL );
11534 if( status ) return errno;
11536 /* give thread a chance to complete */
11537 /* it should remain joinable and hence detachable */
11540 status = pthread_detach( &t );
11541 if( status ) return errno;
11544 #ifdef HAVE_LINUX_THREADS
11545 pthread_kill_other_threads_np();
11552 if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11554 ol_cv_pthread_kthread=yes
11556 echo "configure: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11559 ol_cv_pthread_kthread=no
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 /* pthread test headers */
11567 #include <pthread.h>
11568 #if HAVE_PTHREADS < 7
11572 #define NULL (void*)0
11575 static void *task(p)
11578 return (void *) (p == NULL);
11582 int main(argc, argv)
11587 /* pthread test function */
11588 #ifndef PTHREAD_CREATE_DETACHED
11589 #define PTHREAD_CREATE_DETACHED 1
11593 int detach = PTHREAD_CREATE_DETACHED;
11595 #if HAVE_PTHREADS > 4
11596 /* Final pthreads */
11597 pthread_attr_t attr;
11599 status = pthread_attr_init(&attr);
11600 if( status ) return status;
11602 #if HAVE_PTHREADS < 7
11603 status = pthread_attr_setdetachstate(&attr, &detach);
11604 if( status < 0 ) status = errno;
11606 status = pthread_attr_setdetachstate(&attr, detach);
11608 if( status ) return status;
11609 status = pthread_create( &t, &attr, task, NULL );
11610 #if HAVE_PTHREADS < 7
11611 if( status < 0 ) status = errno;
11613 if( status ) return status;
11615 /* Draft 4 pthreads */
11616 status = pthread_create( &t, pthread_attr_default, task, NULL );
11617 if( status ) return errno;
11619 /* give thread a chance to complete */
11620 /* it should remain joinable and hence detachable */
11623 status = pthread_detach( &t );
11624 if( status ) return errno;
11627 #ifdef HAVE_LINUX_THREADS
11628 pthread_kill_other_threads_np();
11636 if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
11638 ol_cv_pthread_kthread=yes
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11643 ol_cv_pthread_kthread=no
11654 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11656 if test $ol_cv_pthread_kthread = yes ; then
11657 ol_link_pthreads="-kthread"
11658 ol_link_threads=posix
11662 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11663 if test "$ol_link_threads" = no ; then
11665 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11666 echo "configure:11667: checking for pthread link with -pthread" >&5
11667 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
11673 LIBS="-pthread $LIBS"
11675 if test "$cross_compiling" = yes; then
11676 cat > conftest.$ac_ext <<EOF
11677 #line 11678 "configure"
11678 #include "confdefs.h"
11679 /* pthread test headers */
11680 #include <pthread.h>
11681 #if HAVE_PTHREADS < 7
11685 #define NULL (void*)0
11688 static void *task(p)
11691 return (void *) (p == NULL);
11696 /* pthread test function */
11697 #ifndef PTHREAD_CREATE_DETACHED
11698 #define PTHREAD_CREATE_DETACHED 1
11702 int detach = PTHREAD_CREATE_DETACHED;
11704 #if HAVE_PTHREADS > 4
11705 /* Final pthreads */
11706 pthread_attr_t attr;
11708 status = pthread_attr_init(&attr);
11709 if( status ) return status;
11711 #if HAVE_PTHREADS < 7
11712 status = pthread_attr_setdetachstate(&attr, &detach);
11713 if( status < 0 ) status = errno;
11715 status = pthread_attr_setdetachstate(&attr, detach);
11717 if( status ) return status;
11718 status = pthread_create( &t, &attr, task, NULL );
11719 #if HAVE_PTHREADS < 7
11720 if( status < 0 ) status = errno;
11722 if( status ) return status;
11724 /* Draft 4 pthreads */
11725 status = pthread_create( &t, pthread_attr_default, task, NULL );
11726 if( status ) return errno;
11728 /* give thread a chance to complete */
11729 /* it should remain joinable and hence detachable */
11732 status = pthread_detach( &t );
11733 if( status ) return errno;
11736 #ifdef HAVE_LINUX_THREADS
11737 pthread_kill_other_threads_np();
11744 if { (eval echo configure:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11746 ol_cv_pthread_pthread=yes
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11751 ol_cv_pthread_pthread=no
11755 cat > conftest.$ac_ext <<EOF
11756 #line 11757 "configure"
11757 #include "confdefs.h"
11758 /* pthread test headers */
11759 #include <pthread.h>
11760 #if HAVE_PTHREADS < 7
11764 #define NULL (void*)0
11767 static void *task(p)
11770 return (void *) (p == NULL);
11774 int main(argc, argv)
11779 /* pthread test function */
11780 #ifndef PTHREAD_CREATE_DETACHED
11781 #define PTHREAD_CREATE_DETACHED 1
11785 int detach = PTHREAD_CREATE_DETACHED;
11787 #if HAVE_PTHREADS > 4
11788 /* Final pthreads */
11789 pthread_attr_t attr;
11791 status = pthread_attr_init(&attr);
11792 if( status ) return status;
11794 #if HAVE_PTHREADS < 7
11795 status = pthread_attr_setdetachstate(&attr, &detach);
11796 if( status < 0 ) status = errno;
11798 status = pthread_attr_setdetachstate(&attr, detach);
11800 if( status ) return status;
11801 status = pthread_create( &t, &attr, task, NULL );
11802 #if HAVE_PTHREADS < 7
11803 if( status < 0 ) status = errno;
11805 if( status ) return status;
11807 /* Draft 4 pthreads */
11808 status = pthread_create( &t, pthread_attr_default, task, NULL );
11809 if( status ) return errno;
11811 /* give thread a chance to complete */
11812 /* it should remain joinable and hence detachable */
11815 status = pthread_detach( &t );
11816 if( status ) return errno;
11819 #ifdef HAVE_LINUX_THREADS
11820 pthread_kill_other_threads_np();
11828 if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
11830 ol_cv_pthread_pthread=yes
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11835 ol_cv_pthread_pthread=no
11846 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11848 if test $ol_cv_pthread_pthread = yes ; then
11849 ol_link_pthreads="-pthread"
11850 ol_link_threads=posix
11854 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11855 if test "$ol_link_threads" = no ; then
11857 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11858 echo "configure:11859: checking for pthread link with -pthreads" >&5
11859 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11860 echo $ac_n "(cached) $ac_c" 1>&6
11865 LIBS="-pthreads $LIBS"
11867 if test "$cross_compiling" = yes; then
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11871 /* pthread test headers */
11872 #include <pthread.h>
11873 #if HAVE_PTHREADS < 7
11877 #define NULL (void*)0
11880 static void *task(p)
11883 return (void *) (p == NULL);
11888 /* pthread test function */
11889 #ifndef PTHREAD_CREATE_DETACHED
11890 #define PTHREAD_CREATE_DETACHED 1
11894 int detach = PTHREAD_CREATE_DETACHED;
11896 #if HAVE_PTHREADS > 4
11897 /* Final pthreads */
11898 pthread_attr_t attr;
11900 status = pthread_attr_init(&attr);
11901 if( status ) return status;
11903 #if HAVE_PTHREADS < 7
11904 status = pthread_attr_setdetachstate(&attr, &detach);
11905 if( status < 0 ) status = errno;
11907 status = pthread_attr_setdetachstate(&attr, detach);
11909 if( status ) return status;
11910 status = pthread_create( &t, &attr, task, NULL );
11911 #if HAVE_PTHREADS < 7
11912 if( status < 0 ) status = errno;
11914 if( status ) return status;
11916 /* Draft 4 pthreads */
11917 status = pthread_create( &t, pthread_attr_default, task, NULL );
11918 if( status ) return errno;
11920 /* give thread a chance to complete */
11921 /* it should remain joinable and hence detachable */
11924 status = pthread_detach( &t );
11925 if( status ) return errno;
11928 #ifdef HAVE_LINUX_THREADS
11929 pthread_kill_other_threads_np();
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11938 ol_cv_pthread_pthreads=yes
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11943 ol_cv_pthread_pthreads=no
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950 /* pthread test headers */
11951 #include <pthread.h>
11952 #if HAVE_PTHREADS < 7
11956 #define NULL (void*)0
11959 static void *task(p)
11962 return (void *) (p == NULL);
11966 int main(argc, argv)
11971 /* pthread test function */
11972 #ifndef PTHREAD_CREATE_DETACHED
11973 #define PTHREAD_CREATE_DETACHED 1
11977 int detach = PTHREAD_CREATE_DETACHED;
11979 #if HAVE_PTHREADS > 4
11980 /* Final pthreads */
11981 pthread_attr_t attr;
11983 status = pthread_attr_init(&attr);
11984 if( status ) return status;
11986 #if HAVE_PTHREADS < 7
11987 status = pthread_attr_setdetachstate(&attr, &detach);
11988 if( status < 0 ) status = errno;
11990 status = pthread_attr_setdetachstate(&attr, detach);
11992 if( status ) return status;
11993 status = pthread_create( &t, &attr, task, NULL );
11994 #if HAVE_PTHREADS < 7
11995 if( status < 0 ) status = errno;
11997 if( status ) return status;
11999 /* Draft 4 pthreads */
12000 status = pthread_create( &t, pthread_attr_default, task, NULL );
12001 if( status ) return errno;
12003 /* give thread a chance to complete */
12004 /* it should remain joinable and hence detachable */
12007 status = pthread_detach( &t );
12008 if( status ) return errno;
12011 #ifdef HAVE_LINUX_THREADS
12012 pthread_kill_other_threads_np();
12020 if { (eval echo configure:12021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12022 ol_cv_pthread_pthreads=yes
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12027 ol_cv_pthread_pthreads=no
12038 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12040 if test $ol_cv_pthread_pthreads = yes ; then
12041 ol_link_pthreads="-pthreads"
12042 ol_link_threads=posix
12046 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12047 if test "$ol_link_threads" = no ; then
12049 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12050 echo "configure:12051: checking for pthread link with -mthreads" >&5
12051 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12052 echo $ac_n "(cached) $ac_c" 1>&6
12057 LIBS="-mthreads $LIBS"
12059 if test "$cross_compiling" = yes; then
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 /* pthread test headers */
12064 #include <pthread.h>
12065 #if HAVE_PTHREADS < 7
12069 #define NULL (void*)0
12072 static void *task(p)
12075 return (void *) (p == NULL);
12080 /* pthread test function */
12081 #ifndef PTHREAD_CREATE_DETACHED
12082 #define PTHREAD_CREATE_DETACHED 1
12086 int detach = PTHREAD_CREATE_DETACHED;
12088 #if HAVE_PTHREADS > 4
12089 /* Final pthreads */
12090 pthread_attr_t attr;
12092 status = pthread_attr_init(&attr);
12093 if( status ) return status;
12095 #if HAVE_PTHREADS < 7
12096 status = pthread_attr_setdetachstate(&attr, &detach);
12097 if( status < 0 ) status = errno;
12099 status = pthread_attr_setdetachstate(&attr, detach);
12101 if( status ) return status;
12102 status = pthread_create( &t, &attr, task, NULL );
12103 #if HAVE_PTHREADS < 7
12104 if( status < 0 ) status = errno;
12106 if( status ) return status;
12108 /* Draft 4 pthreads */
12109 status = pthread_create( &t, pthread_attr_default, task, NULL );
12110 if( status ) return errno;
12112 /* give thread a chance to complete */
12113 /* it should remain joinable and hence detachable */
12116 status = pthread_detach( &t );
12117 if( status ) return errno;
12120 #ifdef HAVE_LINUX_THREADS
12121 pthread_kill_other_threads_np();
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12130 ol_cv_pthread_mthreads=yes
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12135 ol_cv_pthread_mthreads=no
12139 cat > conftest.$ac_ext <<EOF
12140 #line 12141 "configure"
12141 #include "confdefs.h"
12142 /* pthread test headers */
12143 #include <pthread.h>
12144 #if HAVE_PTHREADS < 7
12148 #define NULL (void*)0
12151 static void *task(p)
12154 return (void *) (p == NULL);
12158 int main(argc, argv)
12163 /* pthread test function */
12164 #ifndef PTHREAD_CREATE_DETACHED
12165 #define PTHREAD_CREATE_DETACHED 1
12169 int detach = PTHREAD_CREATE_DETACHED;
12171 #if HAVE_PTHREADS > 4
12172 /* Final pthreads */
12173 pthread_attr_t attr;
12175 status = pthread_attr_init(&attr);
12176 if( status ) return status;
12178 #if HAVE_PTHREADS < 7
12179 status = pthread_attr_setdetachstate(&attr, &detach);
12180 if( status < 0 ) status = errno;
12182 status = pthread_attr_setdetachstate(&attr, detach);
12184 if( status ) return status;
12185 status = pthread_create( &t, &attr, task, NULL );
12186 #if HAVE_PTHREADS < 7
12187 if( status < 0 ) status = errno;
12189 if( status ) return status;
12191 /* Draft 4 pthreads */
12192 status = pthread_create( &t, pthread_attr_default, task, NULL );
12193 if( status ) return errno;
12195 /* give thread a chance to complete */
12196 /* it should remain joinable and hence detachable */
12199 status = pthread_detach( &t );
12200 if( status ) return errno;
12203 #ifdef HAVE_LINUX_THREADS
12204 pthread_kill_other_threads_np();
12212 if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12214 ol_cv_pthread_mthreads=yes
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12219 ol_cv_pthread_mthreads=no
12230 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12232 if test $ol_cv_pthread_mthreads = yes ; then
12233 ol_link_pthreads="-mthreads"
12234 ol_link_threads=posix
12238 # Pthread try link: -thread (ol_cv_pthread_thread)
12239 if test "$ol_link_threads" = no ; then
12241 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12242 echo "configure:12243: checking for pthread link with -thread" >&5
12243 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12244 echo $ac_n "(cached) $ac_c" 1>&6
12249 LIBS="-thread $LIBS"
12251 if test "$cross_compiling" = yes; then
12252 cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 /* pthread test headers */
12256 #include <pthread.h>
12257 #if HAVE_PTHREADS < 7
12261 #define NULL (void*)0
12264 static void *task(p)
12267 return (void *) (p == NULL);
12272 /* pthread test function */
12273 #ifndef PTHREAD_CREATE_DETACHED
12274 #define PTHREAD_CREATE_DETACHED 1
12278 int detach = PTHREAD_CREATE_DETACHED;
12280 #if HAVE_PTHREADS > 4
12281 /* Final pthreads */
12282 pthread_attr_t attr;
12284 status = pthread_attr_init(&attr);
12285 if( status ) return status;
12287 #if HAVE_PTHREADS < 7
12288 status = pthread_attr_setdetachstate(&attr, &detach);
12289 if( status < 0 ) status = errno;
12291 status = pthread_attr_setdetachstate(&attr, detach);
12293 if( status ) return status;
12294 status = pthread_create( &t, &attr, task, NULL );
12295 #if HAVE_PTHREADS < 7
12296 if( status < 0 ) status = errno;
12298 if( status ) return status;
12300 /* Draft 4 pthreads */
12301 status = pthread_create( &t, pthread_attr_default, task, NULL );
12302 if( status ) return errno;
12304 /* give thread a chance to complete */
12305 /* it should remain joinable and hence detachable */
12308 status = pthread_detach( &t );
12309 if( status ) return errno;
12312 #ifdef HAVE_LINUX_THREADS
12313 pthread_kill_other_threads_np();
12320 if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12322 ol_cv_pthread_thread=yes
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12327 ol_cv_pthread_thread=no
12331 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12334 /* pthread test headers */
12335 #include <pthread.h>
12336 #if HAVE_PTHREADS < 7
12340 #define NULL (void*)0
12343 static void *task(p)
12346 return (void *) (p == NULL);
12350 int main(argc, argv)
12355 /* pthread test function */
12356 #ifndef PTHREAD_CREATE_DETACHED
12357 #define PTHREAD_CREATE_DETACHED 1
12361 int detach = PTHREAD_CREATE_DETACHED;
12363 #if HAVE_PTHREADS > 4
12364 /* Final pthreads */
12365 pthread_attr_t attr;
12367 status = pthread_attr_init(&attr);
12368 if( status ) return status;
12370 #if HAVE_PTHREADS < 7
12371 status = pthread_attr_setdetachstate(&attr, &detach);
12372 if( status < 0 ) status = errno;
12374 status = pthread_attr_setdetachstate(&attr, detach);
12376 if( status ) return status;
12377 status = pthread_create( &t, &attr, task, NULL );
12378 #if HAVE_PTHREADS < 7
12379 if( status < 0 ) status = errno;
12381 if( status ) return status;
12383 /* Draft 4 pthreads */
12384 status = pthread_create( &t, pthread_attr_default, task, NULL );
12385 if( status ) return errno;
12387 /* give thread a chance to complete */
12388 /* it should remain joinable and hence detachable */
12391 status = pthread_detach( &t );
12392 if( status ) return errno;
12395 #ifdef HAVE_LINUX_THREADS
12396 pthread_kill_other_threads_np();
12404 if { (eval echo configure:12405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12406 ol_cv_pthread_thread=yes
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12411 ol_cv_pthread_thread=no
12422 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12424 if test $ol_cv_pthread_thread = yes ; then
12425 ol_link_pthreads="-thread"
12426 ol_link_threads=posix
12431 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12432 if test "$ol_link_threads" = no ; then
12433 # try -lpthread -lmach -lexc -lc_r
12434 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12435 echo "configure:12436: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12436 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12437 echo $ac_n "(cached) $ac_c" 1>&6
12442 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12444 if test "$cross_compiling" = yes; then
12445 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 /* pthread test headers */
12449 #include <pthread.h>
12450 #if HAVE_PTHREADS < 7
12454 #define NULL (void*)0
12457 static void *task(p)
12460 return (void *) (p == NULL);
12465 /* pthread test function */
12466 #ifndef PTHREAD_CREATE_DETACHED
12467 #define PTHREAD_CREATE_DETACHED 1
12471 int detach = PTHREAD_CREATE_DETACHED;
12473 #if HAVE_PTHREADS > 4
12474 /* Final pthreads */
12475 pthread_attr_t attr;
12477 status = pthread_attr_init(&attr);
12478 if( status ) return status;
12480 #if HAVE_PTHREADS < 7
12481 status = pthread_attr_setdetachstate(&attr, &detach);
12482 if( status < 0 ) status = errno;
12484 status = pthread_attr_setdetachstate(&attr, detach);
12486 if( status ) return status;
12487 status = pthread_create( &t, &attr, task, NULL );
12488 #if HAVE_PTHREADS < 7
12489 if( status < 0 ) status = errno;
12491 if( status ) return status;
12493 /* Draft 4 pthreads */
12494 status = pthread_create( &t, pthread_attr_default, task, NULL );
12495 if( status ) return errno;
12497 /* give thread a chance to complete */
12498 /* it should remain joinable and hence detachable */
12501 status = pthread_detach( &t );
12502 if( status ) return errno;
12505 #ifdef HAVE_LINUX_THREADS
12506 pthread_kill_other_threads_np();
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12524 cat > conftest.$ac_ext <<EOF
12525 #line 12526 "configure"
12526 #include "confdefs.h"
12527 /* pthread test headers */
12528 #include <pthread.h>
12529 #if HAVE_PTHREADS < 7
12533 #define NULL (void*)0
12536 static void *task(p)
12539 return (void *) (p == NULL);
12543 int main(argc, argv)
12548 /* pthread test function */
12549 #ifndef PTHREAD_CREATE_DETACHED
12550 #define PTHREAD_CREATE_DETACHED 1
12554 int detach = PTHREAD_CREATE_DETACHED;
12556 #if HAVE_PTHREADS > 4
12557 /* Final pthreads */
12558 pthread_attr_t attr;
12560 status = pthread_attr_init(&attr);
12561 if( status ) return status;
12563 #if HAVE_PTHREADS < 7
12564 status = pthread_attr_setdetachstate(&attr, &detach);
12565 if( status < 0 ) status = errno;
12567 status = pthread_attr_setdetachstate(&attr, detach);
12569 if( status ) return status;
12570 status = pthread_create( &t, &attr, task, NULL );
12571 #if HAVE_PTHREADS < 7
12572 if( status < 0 ) status = errno;
12574 if( status ) return status;
12576 /* Draft 4 pthreads */
12577 status = pthread_create( &t, pthread_attr_default, task, NULL );
12578 if( status ) return errno;
12580 /* give thread a chance to complete */
12581 /* it should remain joinable and hence detachable */
12584 status = pthread_detach( &t );
12585 if( status ) return errno;
12588 #ifdef HAVE_LINUX_THREADS
12589 pthread_kill_other_threads_np();
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12599 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12604 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12615 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12617 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12618 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12619 ol_link_threads=posix
12623 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12624 if test "$ol_link_threads" = no ; then
12625 # try -lpthread -lmach -lexc
12626 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12627 echo "configure:12628: checking for pthread link with -lpthread -lmach -lexc" >&5
12628 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12629 echo $ac_n "(cached) $ac_c" 1>&6
12634 LIBS="-lpthread -lmach -lexc $LIBS"
12636 if test "$cross_compiling" = yes; then
12637 cat > conftest.$ac_ext <<EOF
12638 #line 12639 "configure"
12639 #include "confdefs.h"
12640 /* pthread test headers */
12641 #include <pthread.h>
12642 #if HAVE_PTHREADS < 7
12646 #define NULL (void*)0
12649 static void *task(p)
12652 return (void *) (p == NULL);
12657 /* pthread test function */
12658 #ifndef PTHREAD_CREATE_DETACHED
12659 #define PTHREAD_CREATE_DETACHED 1
12663 int detach = PTHREAD_CREATE_DETACHED;
12665 #if HAVE_PTHREADS > 4
12666 /* Final pthreads */
12667 pthread_attr_t attr;
12669 status = pthread_attr_init(&attr);
12670 if( status ) return status;
12672 #if HAVE_PTHREADS < 7
12673 status = pthread_attr_setdetachstate(&attr, &detach);
12674 if( status < 0 ) status = errno;
12676 status = pthread_attr_setdetachstate(&attr, detach);
12678 if( status ) return status;
12679 status = pthread_create( &t, &attr, task, NULL );
12680 #if HAVE_PTHREADS < 7
12681 if( status < 0 ) status = errno;
12683 if( status ) return status;
12685 /* Draft 4 pthreads */
12686 status = pthread_create( &t, pthread_attr_default, task, NULL );
12687 if( status ) return errno;
12689 /* give thread a chance to complete */
12690 /* it should remain joinable and hence detachable */
12693 status = pthread_detach( &t );
12694 if( status ) return errno;
12697 #ifdef HAVE_LINUX_THREADS
12698 pthread_kill_other_threads_np();
12705 if { (eval echo configure:12706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12707 ol_cv_pthread_lpthread_lmach_lexc=yes
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 ol_cv_pthread_lpthread_lmach_lexc=no
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* pthread test headers */
12720 #include <pthread.h>
12721 #if HAVE_PTHREADS < 7
12725 #define NULL (void*)0
12728 static void *task(p)
12731 return (void *) (p == NULL);
12735 int main(argc, argv)
12740 /* pthread test function */
12741 #ifndef PTHREAD_CREATE_DETACHED
12742 #define PTHREAD_CREATE_DETACHED 1
12746 int detach = PTHREAD_CREATE_DETACHED;
12748 #if HAVE_PTHREADS > 4
12749 /* Final pthreads */
12750 pthread_attr_t attr;
12752 status = pthread_attr_init(&attr);
12753 if( status ) return status;
12755 #if HAVE_PTHREADS < 7
12756 status = pthread_attr_setdetachstate(&attr, &detach);
12757 if( status < 0 ) status = errno;
12759 status = pthread_attr_setdetachstate(&attr, detach);
12761 if( status ) return status;
12762 status = pthread_create( &t, &attr, task, NULL );
12763 #if HAVE_PTHREADS < 7
12764 if( status < 0 ) status = errno;
12766 if( status ) return status;
12768 /* Draft 4 pthreads */
12769 status = pthread_create( &t, pthread_attr_default, task, NULL );
12770 if( status ) return errno;
12772 /* give thread a chance to complete */
12773 /* it should remain joinable and hence detachable */
12776 status = pthread_detach( &t );
12777 if( status ) return errno;
12780 #ifdef HAVE_LINUX_THREADS
12781 pthread_kill_other_threads_np();
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12791 ol_cv_pthread_lpthread_lmach_lexc=yes
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 ol_cv_pthread_lpthread_lmach_lexc=no
12807 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12809 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12810 ol_link_pthreads="-lpthread -lmach -lexc"
12811 ol_link_threads=posix
12816 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12817 if test "$ol_link_threads" = no ; then
12818 # try -lpthread -Wl,-woff,85
12819 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12820 echo "configure:12821: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12821 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12822 echo $ac_n "(cached) $ac_c" 1>&6
12827 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12829 if test "$cross_compiling" = yes; then
12830 cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12833 /* pthread test headers */
12834 #include <pthread.h>
12835 #if HAVE_PTHREADS < 7
12839 #define NULL (void*)0
12842 static void *task(p)
12845 return (void *) (p == NULL);
12850 /* pthread test function */
12851 #ifndef PTHREAD_CREATE_DETACHED
12852 #define PTHREAD_CREATE_DETACHED 1
12856 int detach = PTHREAD_CREATE_DETACHED;
12858 #if HAVE_PTHREADS > 4
12859 /* Final pthreads */
12860 pthread_attr_t attr;
12862 status = pthread_attr_init(&attr);
12863 if( status ) return status;
12865 #if HAVE_PTHREADS < 7
12866 status = pthread_attr_setdetachstate(&attr, &detach);
12867 if( status < 0 ) status = errno;
12869 status = pthread_attr_setdetachstate(&attr, detach);
12871 if( status ) return status;
12872 status = pthread_create( &t, &attr, task, NULL );
12873 #if HAVE_PTHREADS < 7
12874 if( status < 0 ) status = errno;
12876 if( status ) return status;
12878 /* Draft 4 pthreads */
12879 status = pthread_create( &t, pthread_attr_default, task, NULL );
12880 if( status ) return errno;
12882 /* give thread a chance to complete */
12883 /* it should remain joinable and hence detachable */
12886 status = pthread_detach( &t );
12887 if( status ) return errno;
12890 #ifdef HAVE_LINUX_THREADS
12891 pthread_kill_other_threads_np();
12898 if { (eval echo configure:12899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12900 ol_cv_pthread_lib_lpthread_woff=yes
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12905 ol_cv_pthread_lib_lpthread_woff=no
12909 cat > conftest.$ac_ext <<EOF
12910 #line 12911 "configure"
12911 #include "confdefs.h"
12912 /* pthread test headers */
12913 #include <pthread.h>
12914 #if HAVE_PTHREADS < 7
12918 #define NULL (void*)0
12921 static void *task(p)
12924 return (void *) (p == NULL);
12928 int main(argc, argv)
12933 /* pthread test function */
12934 #ifndef PTHREAD_CREATE_DETACHED
12935 #define PTHREAD_CREATE_DETACHED 1
12939 int detach = PTHREAD_CREATE_DETACHED;
12941 #if HAVE_PTHREADS > 4
12942 /* Final pthreads */
12943 pthread_attr_t attr;
12945 status = pthread_attr_init(&attr);
12946 if( status ) return status;
12948 #if HAVE_PTHREADS < 7
12949 status = pthread_attr_setdetachstate(&attr, &detach);
12950 if( status < 0 ) status = errno;
12952 status = pthread_attr_setdetachstate(&attr, detach);
12954 if( status ) return status;
12955 status = pthread_create( &t, &attr, task, NULL );
12956 #if HAVE_PTHREADS < 7
12957 if( status < 0 ) status = errno;
12959 if( status ) return status;
12961 /* Draft 4 pthreads */
12962 status = pthread_create( &t, pthread_attr_default, task, NULL );
12963 if( status ) return errno;
12965 /* give thread a chance to complete */
12966 /* it should remain joinable and hence detachable */
12969 status = pthread_detach( &t );
12970 if( status ) return errno;
12973 #ifdef HAVE_LINUX_THREADS
12974 pthread_kill_other_threads_np();
12982 if { (eval echo configure:12983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12984 ol_cv_pthread_lib_lpthread_woff=yes
12986 echo "configure: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12989 ol_cv_pthread_lib_lpthread_woff=no
13000 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13002 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13003 ol_link_pthreads="-lpthread -Wl,-woff,85"
13004 ol_link_threads=posix
13009 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13010 if test "$ol_link_threads" = no ; then
13012 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13013 echo "configure:13014: checking for pthread link with -lpthread" >&5
13014 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13020 LIBS="-lpthread $LIBS"
13022 if test "$cross_compiling" = yes; then
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13026 /* pthread test headers */
13027 #include <pthread.h>
13028 #if HAVE_PTHREADS < 7
13032 #define NULL (void*)0
13035 static void *task(p)
13038 return (void *) (p == NULL);
13043 /* pthread test function */
13044 #ifndef PTHREAD_CREATE_DETACHED
13045 #define PTHREAD_CREATE_DETACHED 1
13049 int detach = PTHREAD_CREATE_DETACHED;
13051 #if HAVE_PTHREADS > 4
13052 /* Final pthreads */
13053 pthread_attr_t attr;
13055 status = pthread_attr_init(&attr);
13056 if( status ) return status;
13058 #if HAVE_PTHREADS < 7
13059 status = pthread_attr_setdetachstate(&attr, &detach);
13060 if( status < 0 ) status = errno;
13062 status = pthread_attr_setdetachstate(&attr, detach);
13064 if( status ) return status;
13065 status = pthread_create( &t, &attr, task, NULL );
13066 #if HAVE_PTHREADS < 7
13067 if( status < 0 ) status = errno;
13069 if( status ) return status;
13071 /* Draft 4 pthreads */
13072 status = pthread_create( &t, pthread_attr_default, task, NULL );
13073 if( status ) return errno;
13075 /* give thread a chance to complete */
13076 /* it should remain joinable and hence detachable */
13079 status = pthread_detach( &t );
13080 if( status ) return errno;
13083 #ifdef HAVE_LINUX_THREADS
13084 pthread_kill_other_threads_np();
13091 if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13093 ol_cv_pthread_lpthread=yes
13095 echo "configure: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13098 ol_cv_pthread_lpthread=no
13102 cat > conftest.$ac_ext <<EOF
13103 #line 13104 "configure"
13104 #include "confdefs.h"
13105 /* pthread test headers */
13106 #include <pthread.h>
13107 #if HAVE_PTHREADS < 7
13111 #define NULL (void*)0
13114 static void *task(p)
13117 return (void *) (p == NULL);
13121 int main(argc, argv)
13126 /* pthread test function */
13127 #ifndef PTHREAD_CREATE_DETACHED
13128 #define PTHREAD_CREATE_DETACHED 1
13132 int detach = PTHREAD_CREATE_DETACHED;
13134 #if HAVE_PTHREADS > 4
13135 /* Final pthreads */
13136 pthread_attr_t attr;
13138 status = pthread_attr_init(&attr);
13139 if( status ) return status;
13141 #if HAVE_PTHREADS < 7
13142 status = pthread_attr_setdetachstate(&attr, &detach);
13143 if( status < 0 ) status = errno;
13145 status = pthread_attr_setdetachstate(&attr, detach);
13147 if( status ) return status;
13148 status = pthread_create( &t, &attr, task, NULL );
13149 #if HAVE_PTHREADS < 7
13150 if( status < 0 ) status = errno;
13152 if( status ) return status;
13154 /* Draft 4 pthreads */
13155 status = pthread_create( &t, pthread_attr_default, task, NULL );
13156 if( status ) return errno;
13158 /* give thread a chance to complete */
13159 /* it should remain joinable and hence detachable */
13162 status = pthread_detach( &t );
13163 if( status ) return errno;
13166 #ifdef HAVE_LINUX_THREADS
13167 pthread_kill_other_threads_np();
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13177 ol_cv_pthread_lpthread=yes
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13182 ol_cv_pthread_lpthread=no
13193 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13195 if test $ol_cv_pthread_lpthread = yes ; then
13196 ol_link_pthreads="-lpthread"
13197 ol_link_threads=posix
13201 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13202 if test "$ol_link_threads" = no ; then
13204 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13205 echo "configure:13206: checking for pthread link with -lc_r" >&5
13206 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13207 echo $ac_n "(cached) $ac_c" 1>&6
13214 if test "$cross_compiling" = yes; then
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* pthread test headers */
13219 #include <pthread.h>
13220 #if HAVE_PTHREADS < 7
13224 #define NULL (void*)0
13227 static void *task(p)
13230 return (void *) (p == NULL);
13235 /* pthread test function */
13236 #ifndef PTHREAD_CREATE_DETACHED
13237 #define PTHREAD_CREATE_DETACHED 1
13241 int detach = PTHREAD_CREATE_DETACHED;
13243 #if HAVE_PTHREADS > 4
13244 /* Final pthreads */
13245 pthread_attr_t attr;
13247 status = pthread_attr_init(&attr);
13248 if( status ) return status;
13250 #if HAVE_PTHREADS < 7
13251 status = pthread_attr_setdetachstate(&attr, &detach);
13252 if( status < 0 ) status = errno;
13254 status = pthread_attr_setdetachstate(&attr, detach);
13256 if( status ) return status;
13257 status = pthread_create( &t, &attr, task, NULL );
13258 #if HAVE_PTHREADS < 7
13259 if( status < 0 ) status = errno;
13261 if( status ) return status;
13263 /* Draft 4 pthreads */
13264 status = pthread_create( &t, pthread_attr_default, task, NULL );
13265 if( status ) return errno;
13267 /* give thread a chance to complete */
13268 /* it should remain joinable and hence detachable */
13271 status = pthread_detach( &t );
13272 if( status ) return errno;
13275 #ifdef HAVE_LINUX_THREADS
13276 pthread_kill_other_threads_np();
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13285 ol_cv_pthread_lc_r=yes
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13290 ol_cv_pthread_lc_r=no
13294 cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13297 /* pthread test headers */
13298 #include <pthread.h>
13299 #if HAVE_PTHREADS < 7
13303 #define NULL (void*)0
13306 static void *task(p)
13309 return (void *) (p == NULL);
13313 int main(argc, argv)
13318 /* pthread test function */
13319 #ifndef PTHREAD_CREATE_DETACHED
13320 #define PTHREAD_CREATE_DETACHED 1
13324 int detach = PTHREAD_CREATE_DETACHED;
13326 #if HAVE_PTHREADS > 4
13327 /* Final pthreads */
13328 pthread_attr_t attr;
13330 status = pthread_attr_init(&attr);
13331 if( status ) return status;
13333 #if HAVE_PTHREADS < 7
13334 status = pthread_attr_setdetachstate(&attr, &detach);
13335 if( status < 0 ) status = errno;
13337 status = pthread_attr_setdetachstate(&attr, detach);
13339 if( status ) return status;
13340 status = pthread_create( &t, &attr, task, NULL );
13341 #if HAVE_PTHREADS < 7
13342 if( status < 0 ) status = errno;
13344 if( status ) return status;
13346 /* Draft 4 pthreads */
13347 status = pthread_create( &t, pthread_attr_default, task, NULL );
13348 if( status ) return errno;
13350 /* give thread a chance to complete */
13351 /* it should remain joinable and hence detachable */
13354 status = pthread_detach( &t );
13355 if( status ) return errno;
13358 #ifdef HAVE_LINUX_THREADS
13359 pthread_kill_other_threads_np();
13367 if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13369 ol_cv_pthread_lc_r=yes
13371 echo "configure: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13374 ol_cv_pthread_lc_r=no
13385 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13387 if test $ol_cv_pthread_lc_r = yes ; then
13388 ol_link_pthreads="-lc_r"
13389 ol_link_threads=posix
13394 # Pthread try link: -threads (ol_cv_pthread_threads)
13395 if test "$ol_link_threads" = no ; then
13397 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13398 echo "configure:13399: checking for pthread link with -threads" >&5
13399 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13400 echo $ac_n "(cached) $ac_c" 1>&6
13405 LIBS="-threads $LIBS"
13407 if test "$cross_compiling" = yes; then
13408 cat > conftest.$ac_ext <<EOF
13409 #line 13410 "configure"
13410 #include "confdefs.h"
13411 /* pthread test headers */
13412 #include <pthread.h>
13413 #if HAVE_PTHREADS < 7
13417 #define NULL (void*)0
13420 static void *task(p)
13423 return (void *) (p == NULL);
13428 /* pthread test function */
13429 #ifndef PTHREAD_CREATE_DETACHED
13430 #define PTHREAD_CREATE_DETACHED 1
13434 int detach = PTHREAD_CREATE_DETACHED;
13436 #if HAVE_PTHREADS > 4
13437 /* Final pthreads */
13438 pthread_attr_t attr;
13440 status = pthread_attr_init(&attr);
13441 if( status ) return status;
13443 #if HAVE_PTHREADS < 7
13444 status = pthread_attr_setdetachstate(&attr, &detach);
13445 if( status < 0 ) status = errno;
13447 status = pthread_attr_setdetachstate(&attr, detach);
13449 if( status ) return status;
13450 status = pthread_create( &t, &attr, task, NULL );
13451 #if HAVE_PTHREADS < 7
13452 if( status < 0 ) status = errno;
13454 if( status ) return status;
13456 /* Draft 4 pthreads */
13457 status = pthread_create( &t, pthread_attr_default, task, NULL );
13458 if( status ) return errno;
13460 /* give thread a chance to complete */
13461 /* it should remain joinable and hence detachable */
13464 status = pthread_detach( &t );
13465 if( status ) return errno;
13468 #ifdef HAVE_LINUX_THREADS
13469 pthread_kill_other_threads_np();
13476 if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13478 ol_cv_pthread_threads=yes
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13483 ol_cv_pthread_threads=no
13487 cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13490 /* pthread test headers */
13491 #include <pthread.h>
13492 #if HAVE_PTHREADS < 7
13496 #define NULL (void*)0
13499 static void *task(p)
13502 return (void *) (p == NULL);
13506 int main(argc, argv)
13511 /* pthread test function */
13512 #ifndef PTHREAD_CREATE_DETACHED
13513 #define PTHREAD_CREATE_DETACHED 1
13517 int detach = PTHREAD_CREATE_DETACHED;
13519 #if HAVE_PTHREADS > 4
13520 /* Final pthreads */
13521 pthread_attr_t attr;
13523 status = pthread_attr_init(&attr);
13524 if( status ) return status;
13526 #if HAVE_PTHREADS < 7
13527 status = pthread_attr_setdetachstate(&attr, &detach);
13528 if( status < 0 ) status = errno;
13530 status = pthread_attr_setdetachstate(&attr, detach);
13532 if( status ) return status;
13533 status = pthread_create( &t, &attr, task, NULL );
13534 #if HAVE_PTHREADS < 7
13535 if( status < 0 ) status = errno;
13537 if( status ) return status;
13539 /* Draft 4 pthreads */
13540 status = pthread_create( &t, pthread_attr_default, task, NULL );
13541 if( status ) return errno;
13543 /* give thread a chance to complete */
13544 /* it should remain joinable and hence detachable */
13547 status = pthread_detach( &t );
13548 if( status ) return errno;
13551 #ifdef HAVE_LINUX_THREADS
13552 pthread_kill_other_threads_np();
13560 if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13562 ol_cv_pthread_threads=yes
13564 echo "configure: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13567 ol_cv_pthread_threads=no
13578 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13580 if test $ol_cv_pthread_threads = yes ; then
13581 ol_link_pthreads="-threads"
13582 ol_link_threads=posix
13587 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13588 if test "$ol_link_threads" = no ; then
13589 # try -lpthreads -lmach -lexc -lc_r
13590 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13591 echo "configure:13592: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13592 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13593 echo $ac_n "(cached) $ac_c" 1>&6
13598 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13600 if test "$cross_compiling" = yes; then
13601 cat > conftest.$ac_ext <<EOF
13602 #line 13603 "configure"
13603 #include "confdefs.h"
13604 /* pthread test headers */
13605 #include <pthread.h>
13606 #if HAVE_PTHREADS < 7
13610 #define NULL (void*)0
13613 static void *task(p)
13616 return (void *) (p == NULL);
13621 /* pthread test function */
13622 #ifndef PTHREAD_CREATE_DETACHED
13623 #define PTHREAD_CREATE_DETACHED 1
13627 int detach = PTHREAD_CREATE_DETACHED;
13629 #if HAVE_PTHREADS > 4
13630 /* Final pthreads */
13631 pthread_attr_t attr;
13633 status = pthread_attr_init(&attr);
13634 if( status ) return status;
13636 #if HAVE_PTHREADS < 7
13637 status = pthread_attr_setdetachstate(&attr, &detach);
13638 if( status < 0 ) status = errno;
13640 status = pthread_attr_setdetachstate(&attr, detach);
13642 if( status ) return status;
13643 status = pthread_create( &t, &attr, task, NULL );
13644 #if HAVE_PTHREADS < 7
13645 if( status < 0 ) status = errno;
13647 if( status ) return status;
13649 /* Draft 4 pthreads */
13650 status = pthread_create( &t, pthread_attr_default, task, NULL );
13651 if( status ) return errno;
13653 /* give thread a chance to complete */
13654 /* it should remain joinable and hence detachable */
13657 status = pthread_detach( &t );
13658 if( status ) return errno;
13661 #ifdef HAVE_LINUX_THREADS
13662 pthread_kill_other_threads_np();
13669 if { (eval echo configure:13670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13671 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13673 echo "configure: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13676 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13680 cat > conftest.$ac_ext <<EOF
13681 #line 13682 "configure"
13682 #include "confdefs.h"
13683 /* pthread test headers */
13684 #include <pthread.h>
13685 #if HAVE_PTHREADS < 7
13689 #define NULL (void*)0
13692 static void *task(p)
13695 return (void *) (p == NULL);
13699 int main(argc, argv)
13704 /* pthread test function */
13705 #ifndef PTHREAD_CREATE_DETACHED
13706 #define PTHREAD_CREATE_DETACHED 1
13710 int detach = PTHREAD_CREATE_DETACHED;
13712 #if HAVE_PTHREADS > 4
13713 /* Final pthreads */
13714 pthread_attr_t attr;
13716 status = pthread_attr_init(&attr);
13717 if( status ) return status;
13719 #if HAVE_PTHREADS < 7
13720 status = pthread_attr_setdetachstate(&attr, &detach);
13721 if( status < 0 ) status = errno;
13723 status = pthread_attr_setdetachstate(&attr, detach);
13725 if( status ) return status;
13726 status = pthread_create( &t, &attr, task, NULL );
13727 #if HAVE_PTHREADS < 7
13728 if( status < 0 ) status = errno;
13730 if( status ) return status;
13732 /* Draft 4 pthreads */
13733 status = pthread_create( &t, pthread_attr_default, task, NULL );
13734 if( status ) return errno;
13736 /* give thread a chance to complete */
13737 /* it should remain joinable and hence detachable */
13740 status = pthread_detach( &t );
13741 if( status ) return errno;
13744 #ifdef HAVE_LINUX_THREADS
13745 pthread_kill_other_threads_np();
13753 if { (eval echo configure:13754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13755 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13757 echo "configure: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13760 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13771 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13773 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13774 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13775 ol_link_threads=posix
13779 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13780 if test "$ol_link_threads" = no ; then
13781 # try -lpthreads -lmach -lexc
13782 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13783 echo "configure:13784: checking for pthread link with -lpthreads -lmach -lexc" >&5
13784 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13785 echo $ac_n "(cached) $ac_c" 1>&6
13790 LIBS="-lpthreads -lmach -lexc $LIBS"
13792 if test "$cross_compiling" = yes; then
13793 cat > conftest.$ac_ext <<EOF
13794 #line 13795 "configure"
13795 #include "confdefs.h"
13796 /* pthread test headers */
13797 #include <pthread.h>
13798 #if HAVE_PTHREADS < 7
13802 #define NULL (void*)0
13805 static void *task(p)
13808 return (void *) (p == NULL);
13813 /* pthread test function */
13814 #ifndef PTHREAD_CREATE_DETACHED
13815 #define PTHREAD_CREATE_DETACHED 1
13819 int detach = PTHREAD_CREATE_DETACHED;
13821 #if HAVE_PTHREADS > 4
13822 /* Final pthreads */
13823 pthread_attr_t attr;
13825 status = pthread_attr_init(&attr);
13826 if( status ) return status;
13828 #if HAVE_PTHREADS < 7
13829 status = pthread_attr_setdetachstate(&attr, &detach);
13830 if( status < 0 ) status = errno;
13832 status = pthread_attr_setdetachstate(&attr, detach);
13834 if( status ) return status;
13835 status = pthread_create( &t, &attr, task, NULL );
13836 #if HAVE_PTHREADS < 7
13837 if( status < 0 ) status = errno;
13839 if( status ) return status;
13841 /* Draft 4 pthreads */
13842 status = pthread_create( &t, pthread_attr_default, task, NULL );
13843 if( status ) return errno;
13845 /* give thread a chance to complete */
13846 /* it should remain joinable and hence detachable */
13849 status = pthread_detach( &t );
13850 if( status ) return errno;
13853 #ifdef HAVE_LINUX_THREADS
13854 pthread_kill_other_threads_np();
13861 if { (eval echo configure:13862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13863 ol_cv_pthread_lpthreads_lmach_lexc=yes
13865 echo "configure: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13868 ol_cv_pthread_lpthreads_lmach_lexc=no
13872 cat > conftest.$ac_ext <<EOF
13873 #line 13874 "configure"
13874 #include "confdefs.h"
13875 /* pthread test headers */
13876 #include <pthread.h>
13877 #if HAVE_PTHREADS < 7
13881 #define NULL (void*)0
13884 static void *task(p)
13887 return (void *) (p == NULL);
13891 int main(argc, argv)
13896 /* pthread test function */
13897 #ifndef PTHREAD_CREATE_DETACHED
13898 #define PTHREAD_CREATE_DETACHED 1
13902 int detach = PTHREAD_CREATE_DETACHED;
13904 #if HAVE_PTHREADS > 4
13905 /* Final pthreads */
13906 pthread_attr_t attr;
13908 status = pthread_attr_init(&attr);
13909 if( status ) return status;
13911 #if HAVE_PTHREADS < 7
13912 status = pthread_attr_setdetachstate(&attr, &detach);
13913 if( status < 0 ) status = errno;
13915 status = pthread_attr_setdetachstate(&attr, detach);
13917 if( status ) return status;
13918 status = pthread_create( &t, &attr, task, NULL );
13919 #if HAVE_PTHREADS < 7
13920 if( status < 0 ) status = errno;
13922 if( status ) return status;
13924 /* Draft 4 pthreads */
13925 status = pthread_create( &t, pthread_attr_default, task, NULL );
13926 if( status ) return errno;
13928 /* give thread a chance to complete */
13929 /* it should remain joinable and hence detachable */
13932 status = pthread_detach( &t );
13933 if( status ) return errno;
13936 #ifdef HAVE_LINUX_THREADS
13937 pthread_kill_other_threads_np();
13945 if { (eval echo configure:13946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13947 ol_cv_pthread_lpthreads_lmach_lexc=yes
13949 echo "configure: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13952 ol_cv_pthread_lpthreads_lmach_lexc=no
13963 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
13965 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13966 ol_link_pthreads="-lpthreads -lmach -lexc"
13967 ol_link_threads=posix
13971 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13972 if test "$ol_link_threads" = no ; then
13973 # try -lpthreads -lexc
13974 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
13975 echo "configure:13976: checking for pthread link with -lpthreads -lexc" >&5
13976 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13982 LIBS="-lpthreads -lexc $LIBS"
13984 if test "$cross_compiling" = yes; then
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 /* pthread test headers */
13989 #include <pthread.h>
13990 #if HAVE_PTHREADS < 7
13994 #define NULL (void*)0
13997 static void *task(p)
14000 return (void *) (p == NULL);
14005 /* pthread test function */
14006 #ifndef PTHREAD_CREATE_DETACHED
14007 #define PTHREAD_CREATE_DETACHED 1
14011 int detach = PTHREAD_CREATE_DETACHED;
14013 #if HAVE_PTHREADS > 4
14014 /* Final pthreads */
14015 pthread_attr_t attr;
14017 status = pthread_attr_init(&attr);
14018 if( status ) return status;
14020 #if HAVE_PTHREADS < 7
14021 status = pthread_attr_setdetachstate(&attr, &detach);
14022 if( status < 0 ) status = errno;
14024 status = pthread_attr_setdetachstate(&attr, detach);
14026 if( status ) return status;
14027 status = pthread_create( &t, &attr, task, NULL );
14028 #if HAVE_PTHREADS < 7
14029 if( status < 0 ) status = errno;
14031 if( status ) return status;
14033 /* Draft 4 pthreads */
14034 status = pthread_create( &t, pthread_attr_default, task, NULL );
14035 if( status ) return errno;
14037 /* give thread a chance to complete */
14038 /* it should remain joinable and hence detachable */
14041 status = pthread_detach( &t );
14042 if( status ) return errno;
14045 #ifdef HAVE_LINUX_THREADS
14046 pthread_kill_other_threads_np();
14053 if { (eval echo configure:14054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14055 ol_cv_pthread_lpthreads_lexc=yes
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14060 ol_cv_pthread_lpthreads_lexc=no
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 /* pthread test headers */
14068 #include <pthread.h>
14069 #if HAVE_PTHREADS < 7
14073 #define NULL (void*)0
14076 static void *task(p)
14079 return (void *) (p == NULL);
14083 int main(argc, argv)
14088 /* pthread test function */
14089 #ifndef PTHREAD_CREATE_DETACHED
14090 #define PTHREAD_CREATE_DETACHED 1
14094 int detach = PTHREAD_CREATE_DETACHED;
14096 #if HAVE_PTHREADS > 4
14097 /* Final pthreads */
14098 pthread_attr_t attr;
14100 status = pthread_attr_init(&attr);
14101 if( status ) return status;
14103 #if HAVE_PTHREADS < 7
14104 status = pthread_attr_setdetachstate(&attr, &detach);
14105 if( status < 0 ) status = errno;
14107 status = pthread_attr_setdetachstate(&attr, detach);
14109 if( status ) return status;
14110 status = pthread_create( &t, &attr, task, NULL );
14111 #if HAVE_PTHREADS < 7
14112 if( status < 0 ) status = errno;
14114 if( status ) return status;
14116 /* Draft 4 pthreads */
14117 status = pthread_create( &t, pthread_attr_default, task, NULL );
14118 if( status ) return errno;
14120 /* give thread a chance to complete */
14121 /* it should remain joinable and hence detachable */
14124 status = pthread_detach( &t );
14125 if( status ) return errno;
14128 #ifdef HAVE_LINUX_THREADS
14129 pthread_kill_other_threads_np();
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14139 ol_cv_pthread_lpthreads_lexc=yes
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 ol_cv_pthread_lpthreads_lexc=no
14155 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14157 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14158 ol_link_pthreads="-lpthreads -lexc"
14159 ol_link_threads=posix
14164 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14165 if test "$ol_link_threads" = no ; then
14167 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14168 echo "configure:14169: checking for pthread link with -lpthreads" >&5
14169 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14175 LIBS="-lpthreads $LIBS"
14177 if test "$cross_compiling" = yes; then
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 /* pthread test headers */
14182 #include <pthread.h>
14183 #if HAVE_PTHREADS < 7
14187 #define NULL (void*)0
14190 static void *task(p)
14193 return (void *) (p == NULL);
14198 /* pthread test function */
14199 #ifndef PTHREAD_CREATE_DETACHED
14200 #define PTHREAD_CREATE_DETACHED 1
14204 int detach = PTHREAD_CREATE_DETACHED;
14206 #if HAVE_PTHREADS > 4
14207 /* Final pthreads */
14208 pthread_attr_t attr;
14210 status = pthread_attr_init(&attr);
14211 if( status ) return status;
14213 #if HAVE_PTHREADS < 7
14214 status = pthread_attr_setdetachstate(&attr, &detach);
14215 if( status < 0 ) status = errno;
14217 status = pthread_attr_setdetachstate(&attr, detach);
14219 if( status ) return status;
14220 status = pthread_create( &t, &attr, task, NULL );
14221 #if HAVE_PTHREADS < 7
14222 if( status < 0 ) status = errno;
14224 if( status ) return status;
14226 /* Draft 4 pthreads */
14227 status = pthread_create( &t, pthread_attr_default, task, NULL );
14228 if( status ) return errno;
14230 /* give thread a chance to complete */
14231 /* it should remain joinable and hence detachable */
14234 status = pthread_detach( &t );
14235 if( status ) return errno;
14238 #ifdef HAVE_LINUX_THREADS
14239 pthread_kill_other_threads_np();
14246 if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14248 ol_cv_pthread_lib_lpthreads=yes
14250 echo "configure: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14253 ol_cv_pthread_lib_lpthreads=no
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* pthread test headers */
14261 #include <pthread.h>
14262 #if HAVE_PTHREADS < 7
14266 #define NULL (void*)0
14269 static void *task(p)
14272 return (void *) (p == NULL);
14276 int main(argc, argv)
14281 /* pthread test function */
14282 #ifndef PTHREAD_CREATE_DETACHED
14283 #define PTHREAD_CREATE_DETACHED 1
14287 int detach = PTHREAD_CREATE_DETACHED;
14289 #if HAVE_PTHREADS > 4
14290 /* Final pthreads */
14291 pthread_attr_t attr;
14293 status = pthread_attr_init(&attr);
14294 if( status ) return status;
14296 #if HAVE_PTHREADS < 7
14297 status = pthread_attr_setdetachstate(&attr, &detach);
14298 if( status < 0 ) status = errno;
14300 status = pthread_attr_setdetachstate(&attr, detach);
14302 if( status ) return status;
14303 status = pthread_create( &t, &attr, task, NULL );
14304 #if HAVE_PTHREADS < 7
14305 if( status < 0 ) status = errno;
14307 if( status ) return status;
14309 /* Draft 4 pthreads */
14310 status = pthread_create( &t, pthread_attr_default, task, NULL );
14311 if( status ) return errno;
14313 /* give thread a chance to complete */
14314 /* it should remain joinable and hence detachable */
14317 status = pthread_detach( &t );
14318 if( status ) return errno;
14321 #ifdef HAVE_LINUX_THREADS
14322 pthread_kill_other_threads_np();
14330 if { (eval echo configure:14331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14332 ol_cv_pthread_lib_lpthreads=yes
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14337 ol_cv_pthread_lib_lpthreads=no
14348 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14350 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14351 ol_link_pthreads="-lpthreads"
14352 ol_link_threads=posix
14357 if test $ol_link_threads != no ; then
14358 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14360 save_CPPFLAGS="$CPPFLAGS"
14362 LIBS="$LTHREAD_LIBS $LIBS"
14364 for ac_func in sched_yield pthread_yield thr_yield
14366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14367 echo "configure:14368: checking for $ac_func" >&5
14368 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14369 echo $ac_n "(cached) $ac_c" 1>&6
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374 /* System header to define __stub macros and hopefully few prototypes,
14375 which can conflict with char $ac_func(); below. */
14376 #include <assert.h>
14377 /* Override any gcc2 internal prototype to avoid an error. */
14378 /* We use char because int might match the return type of a gcc2
14379 builtin and then its argument prototype would still apply. */
14385 /* The GNU C library defines this for functions which it implements
14386 to always fail with ENOSYS. Some functions are actually named
14387 something starting with __ and the normal name is an alias. */
14388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14396 if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14398 eval "ac_cv_func_$ac_func=yes"
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14403 eval "ac_cv_func_$ac_func=no"
14408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14409 echo "$ac_t""yes" 1>&6
14410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14411 cat >> confdefs.h <<EOF
14412 #define $ac_tr_func 1
14416 echo "$ac_t""no" 1>&6
14421 if test $ac_cv_func_sched_yield = no -a \
14422 $ac_cv_func_pthread_yield = no -a \
14423 $ac_cv_func_thr_yield = no ; then
14424 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14425 echo "configure:14426: checking for sched_yield in -lrt" >&5
14426 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14427 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14430 ac_save_LIBS="$LIBS"
14432 cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 /* Override any gcc2 internal prototype to avoid an error. */
14436 /* We use char because int might match the return type of a gcc2
14437 builtin and then its argument prototype would still apply. */
14438 char sched_yield();
14444 if { (eval echo configure:14445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446 eval "ac_cv_lib_$ac_lib_var=yes"
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14451 eval "ac_cv_lib_$ac_lib_var=no"
14454 LIBS="$ac_save_LIBS"
14457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14458 echo "$ac_t""yes" 1>&6
14459 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14460 cat >> confdefs.h <<\EOF
14461 #define HAVE_SCHED_YIELD 1
14464 ac_cv_func_sched_yield=yes
14466 echo "$ac_t""no" 1>&6
14467 ac_cv_func_sched_yield=no
14471 if test $ac_cv_func_sched_yield = no -a \
14472 $ac_cv_func_pthread_yield = no -a \
14473 "$ac_cv_func_thr_yield" = no ; then
14474 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14477 for ac_func in pthread_kill pthread_rwlock_destroy
14479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14480 echo "configure:14481: checking for $ac_func" >&5
14481 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14482 echo $ac_n "(cached) $ac_c" 1>&6
14484 cat > conftest.$ac_ext <<EOF
14485 #line 14486 "configure"
14486 #include "confdefs.h"
14487 /* System header to define __stub macros and hopefully few prototypes,
14488 which can conflict with char $ac_func(); below. */
14489 #include <assert.h>
14490 /* Override any gcc2 internal prototype to avoid an error. */
14491 /* We use char because int might match the return type of a gcc2
14492 builtin and then its argument prototype would still apply. */
14498 /* The GNU C library defines this for functions which it implements
14499 to always fail with ENOSYS. Some functions are actually named
14500 something starting with __ and the normal name is an alias. */
14501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14509 if { (eval echo configure:14510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14511 eval "ac_cv_func_$ac_func=yes"
14513 echo "configure: failed program was:" >&5
14514 cat conftest.$ac_ext >&5
14516 eval "ac_cv_func_$ac_func=no"
14521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14522 echo "$ac_t""yes" 1>&6
14523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14524 cat >> confdefs.h <<EOF
14525 #define $ac_tr_func 1
14529 echo "$ac_t""no" 1>&6
14534 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14535 echo "configure:14536: checking for pthread_detach with <pthread.h>" >&5
14536 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14537 echo $ac_n "(cached) $ac_c" 1>&6
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14542 "configure"
14542 #include "confdefs.h"
14544 #include <pthread.h>
14546 #define NULL (void*)0
14550 pthread_detach(NULL);
14553 if { (eval echo configure:14554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14555 ol_cv_func_pthread_detach=yes
14557 echo "configure: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14560 ol_cv_func_pthread_detach=no
14566 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14568 if test $ol_cv_func_pthread_detach = no ; then
14569 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14572 cat >> confdefs.h <<\EOF
14573 #define HAVE_PTHREAD_DETACH 1
14578 pthread_setconcurrency \
14579 pthread_getconcurrency \
14580 thr_setconcurrency \
14581 thr_getconcurrency \
14584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14585 echo "configure:14586: checking for $ac_func" >&5
14586 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14587 echo $ac_n "(cached) $ac_c" 1>&6
14589 cat > conftest.$ac_ext <<EOF
14590 #line 14591 "configure"
14591 #include "confdefs.h"
14592 /* System header to define __stub macros and hopefully few prototypes,
14593 which can conflict with char $ac_func(); below. */
14594 #include <assert.h>
14595 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14614 if { (eval echo configure:14615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14616 eval "ac_cv_func_$ac_func=yes"
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14621 eval "ac_cv_func_$ac_func=no"
14626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14627 echo "$ac_t""yes" 1>&6
14628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14629 cat >> confdefs.h <<EOF
14630 #define $ac_tr_func 1
14634 echo "$ac_t""no" 1>&6
14640 for ac_func in pthread_kill_other_threads_np
14642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14643 echo "configure:14644: checking for $ac_func" >&5
14644 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14645 echo $ac_n "(cached) $ac_c" 1>&6
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 /* System header to define __stub macros and hopefully few prototypes,
14651 which can conflict with char $ac_func(); below. */
14652 #include <assert.h>
14653 /* Override any gcc2 internal prototype to avoid an error. */
14654 /* We use char because int might match the return type of a gcc2
14655 builtin and then its argument prototype would still apply. */
14661 /* The GNU C library defines this for functions which it implements
14662 to always fail with ENOSYS. Some functions are actually named
14663 something starting with __ and the normal name is an alias. */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14672 if { (eval echo configure:14673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14674 eval "ac_cv_func_$ac_func=yes"
14676 echo "configure: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14679 eval "ac_cv_func_$ac_func=no"
14684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14685 echo "$ac_t""yes" 1>&6
14686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14687 cat >> confdefs.h <<EOF
14688 #define $ac_tr_func 1
14692 echo "$ac_t""no" 1>&6
14696 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14697 echo "configure:14698: checking for LinuxThreads implementation" >&5
14698 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14699 echo $ac_n "(cached) $ac_c" 1>&6
14701 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14704 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14709 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14710 echo "configure:14711: checking for LinuxThreads consistency" >&5
14711 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14712 echo $ac_n "(cached) $ac_c" 1>&6
14715 if test $ol_cv_header_linux_threads = yes -a \
14716 $ol_cv_sys_linux_threads = yes; then
14717 ol_cv_linux_threads=yes
14718 elif test $ol_cv_header_linux_threads = no -a \
14719 $ol_cv_sys_linux_threads = no; then
14720 ol_cv_linux_threads=no
14722 ol_cv_linux_threads=error
14727 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14730 if test $ol_cv_linux_threads = error; then
14731 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14734 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14735 echo "configure:14736: checking if pthread_create() works" >&5
14736 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
14740 if test "$cross_compiling" = yes; then
14741 ol_cv_pthread_create_works=yes
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* pthread test headers */
14747 #include <pthread.h>
14748 #if HAVE_PTHREADS < 7
14752 #define NULL (void*)0
14755 static void *task(p)
14758 return (void *) (p == NULL);
14762 int main(argc, argv)
14767 /* pthread test function */
14768 #ifndef PTHREAD_CREATE_DETACHED
14769 #define PTHREAD_CREATE_DETACHED 1
14773 int detach = PTHREAD_CREATE_DETACHED;
14775 #if HAVE_PTHREADS > 4
14776 /* Final pthreads */
14777 pthread_attr_t attr;
14779 status = pthread_attr_init(&attr);
14780 if( status ) return status;
14782 #if HAVE_PTHREADS < 7
14783 status = pthread_attr_setdetachstate(&attr, &detach);
14784 if( status < 0 ) status = errno;
14786 status = pthread_attr_setdetachstate(&attr, detach);
14788 if( status ) return status;
14789 status = pthread_create( &t, &attr, task, NULL );
14790 #if HAVE_PTHREADS < 7
14791 if( status < 0 ) status = errno;
14793 if( status ) return status;
14795 /* Draft 4 pthreads */
14796 status = pthread_create( &t, pthread_attr_default, task, NULL );
14797 if( status ) return errno;
14799 /* give thread a chance to complete */
14800 /* it should remain joinable and hence detachable */
14803 status = pthread_detach( &t );
14804 if( status ) return errno;
14807 #ifdef HAVE_LINUX_THREADS
14808 pthread_kill_other_threads_np();
14816 if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14818 ol_cv_pthread_create_works=yes
14820 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14823 ol_cv_pthread_create_works=no
14830 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14832 if test $ol_cv_pthread_create_works = no ; then
14833 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14836 if test $ol_with_yielding_select = auto ; then
14837 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14838 echo "configure:14839: checking if select yields when using pthreads" >&5
14839 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14840 echo $ac_n "(cached) $ac_c" 1>&6
14843 if test "$cross_compiling" = yes; then
14844 ol_cv_pthread_select_yields=cross
14846 cat > conftest.$ac_ext <<EOF
14847 #line 14848 "configure"
14848 #include "confdefs.h"
14850 #include <sys/types.h>
14851 #include <sys/time.h>
14852 #include <unistd.h>
14853 #include <pthread.h>
14855 #define NULL (void*) 0
14858 static int fildes[2];
14860 static void *task(p)
14872 FD_SET(fildes[0], &rfds);
14874 /* we're not interested in any fds */
14875 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14882 exit(0); /* if we exit here, the select blocked the whole process */
14885 int main(argc, argv)
14891 /* create a pipe to select */
14892 if(pipe(&fildes[0])) {
14897 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14898 (void) pthread_setconcurrency(2);
14900 #ifdef HAVE_THR_SETCONCURRENCY
14901 /* Set Solaris LWP concurrency to 2 */
14902 thr_setconcurrency(2);
14906 #if HAVE_PTHREADS < 6
14907 pthread_create(&t, pthread_attr_default, task, NULL);
14909 pthread_create(&t, NULL, task, NULL);
14912 /* make sure task runs first */
14915 #elif defined( HAVE_SCHED_YIELD )
14917 #elif defined( HAVE_PTHREAD_YIELD )
14924 if { (eval echo configure:14925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14926 ol_cv_pthread_select_yields=no
14928 echo "configure: failed program was:" >&5
14929 cat conftest.$ac_ext >&5
14931 ol_cv_pthread_select_yields=yes
14938 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14940 if test $ol_cv_pthread_select_yields = cross ; then
14941 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14944 if test $ol_cv_pthread_select_yields = yes ; then
14945 ol_with_yielding_select=yes
14949 CPPFLAGS="$save_CPPFLAGS"
14952 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
14956 if test $ol_with_threads = posix ; then
14957 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
14961 if test $ol_with_threads = auto -o $ol_with_threads = yes \
14962 -o $ol_with_threads = mach ; then
14964 for ac_hdr in mach/cthreads.h cthreads.h
14966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14968 echo "configure:14969: checking for $ac_hdr" >&5
14969 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14972 cat > conftest.$ac_ext <<EOF
14973 #line 14974 "configure"
14974 #include "confdefs.h"
14977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14978 { (eval echo configure:14979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14980 if test -z "$ac_err"; then
14982 eval "ac_cv_header_$ac_safe=yes"
14985 echo "configure: failed program was:" >&5
14986 cat conftest.$ac_ext >&5
14988 eval "ac_cv_header_$ac_safe=no"
14992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14993 echo "$ac_t""yes" 1>&6
14994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14995 cat >> confdefs.h <<EOF
14996 #define $ac_tr_hdr 1
15000 echo "$ac_t""no" 1>&6
15004 if test $ac_cv_header_mach_cthreads_h = yes ; then
15005 ol_with_threads=found
15007 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15008 echo "configure:15009: checking for cthread_fork" >&5
15009 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15010 echo $ac_n "(cached) $ac_c" 1>&6
15012 cat > conftest.$ac_ext <<EOF
15013 #line 15014 "configure"
15014 #include "confdefs.h"
15015 /* System header to define __stub macros and hopefully few prototypes,
15016 which can conflict with char cthread_fork(); below. */
15017 #include <assert.h>
15018 /* Override any gcc2 internal prototype to avoid an error. */
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15021 char cthread_fork();
15026 /* The GNU C library defines this for functions which it implements
15027 to always fail with ENOSYS. Some functions are actually named
15028 something starting with __ and the normal name is an alias. */
15029 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15037 if { (eval echo configure:15038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15039 eval "ac_cv_func_cthread_fork=yes"
15041 echo "configure: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15044 eval "ac_cv_func_cthread_fork=no"
15049 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15050 echo "$ac_t""yes" 1>&6
15051 ol_link_threads=yes
15053 echo "$ac_t""no" 1>&6
15057 if test $ol_link_threads = no ; then
15058 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15059 echo "configure:15060: checking for cthread_fork with -all_load" >&5
15060 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15061 echo $ac_n "(cached) $ac_c" 1>&6
15065 LIBS="-all_load $LIBS"
15066 cat > conftest.$ac_ext <<EOF
15067 #line 15068 "configure"
15068 #include "confdefs.h"
15069 #include <mach/cthreads.h>
15072 cthread_fork((void *)0, (void *)0);
15076 if { (eval echo configure:15077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15078 ol_cv_cthread_all_load=yes
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15083 ol_cv_cthread_all_load=no
15090 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15092 if test $ol_cv_cthread_all_load = yes ; then
15093 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15094 ol_link_threads=mach
15095 ol_with_threads=found
15099 elif test $ac_cv_header_cthreads_h = yes ; then
15101 ol_with_threads=found
15104 LIBS="$LIBS -lthreads"
15105 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15106 echo "configure:15107: checking for cthread_fork" >&5
15107 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15108 echo $ac_n "(cached) $ac_c" 1>&6
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 /* System header to define __stub macros and hopefully few prototypes,
15114 which can conflict with char cthread_fork(); below. */
15115 #include <assert.h>
15116 /* Override any gcc2 internal prototype to avoid an error. */
15117 /* We use char because int might match the return type of a gcc2
15118 builtin and then its argument prototype would still apply. */
15119 char cthread_fork();
15124 /* The GNU C library defines this for functions which it implements
15125 to always fail with ENOSYS. Some functions are actually named
15126 something starting with __ and the normal name is an alias. */
15127 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15135 if { (eval echo configure:15136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137 eval "ac_cv_func_cthread_fork=yes"
15139 echo "configure: failed program was:" >&5
15140 cat conftest.$ac_ext >&5
15142 eval "ac_cv_func_cthread_fork=no"
15147 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15148 echo "$ac_t""yes" 1>&6
15149 ol_link_threads=yes
15151 echo "$ac_t""no" 1>&6
15156 if test $ol_link_threads = yes ; then
15157 LTHREAD_LIBS="-lthreads"
15158 ol_link_threads=mach
15159 ol_with_threads=found
15161 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15164 elif test $ol_with_threads = mach ; then
15165 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15168 if test $ol_link_threads = mach ; then
15169 cat >> confdefs.h <<\EOF
15170 #define HAVE_MACH_CTHREADS 1
15173 elif test $ol_with_threads = found ; then
15174 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15178 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15179 -o $ol_with_threads = pth ; then
15181 for ac_hdr in pth.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
15222 if test $ac_cv_header_pth_h = yes ; then
15223 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15224 echo "configure:15225: checking for pth_version in -lpth" >&5
15225 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15227 echo $ac_n "(cached) $ac_c" 1>&6
15229 ac_save_LIBS="$LIBS"
15231 cat > conftest.$ac_ext <<EOF
15232 #line 15233 "configure"
15233 #include "confdefs.h"
15234 /* Override any gcc2 internal prototype to avoid an error. */
15235 /* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15237 char pth_version();
15243 if { (eval echo configure:15244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15245 eval "ac_cv_lib_$ac_lib_var=yes"
15247 echo "configure: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15250 eval "ac_cv_lib_$ac_lib_var=no"
15253 LIBS="$ac_save_LIBS"
15256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15257 echo "$ac_t""yes" 1>&6
15260 echo "$ac_t""no" 1>&6
15265 if test $have_pth = yes ; then
15266 cat >> confdefs.h <<\EOF
15267 #define HAVE_GNU_PTH 1
15270 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15271 ol_link_threads=pth
15272 ol_with_threads=found
15274 if test $ol_with_yielding_select = auto ; then
15275 ol_with_yielding_select=yes
15281 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15282 -o $ol_with_threads = lwp ; then
15284 for ac_hdr in thread.h synch.h
15286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15288 echo "configure:15289: checking for $ac_hdr" >&5
15289 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15290 echo $ac_n "(cached) $ac_c" 1>&6
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15298 { (eval echo configure:15299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15300 if test -z "$ac_err"; then
15302 eval "ac_cv_header_$ac_safe=yes"
15305 echo "configure: failed program was:" >&5
15306 cat conftest.$ac_ext >&5
15308 eval "ac_cv_header_$ac_safe=no"
15312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15313 echo "$ac_t""yes" 1>&6
15314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15315 cat >> confdefs.h <<EOF
15316 #define $ac_tr_hdr 1
15320 echo "$ac_t""no" 1>&6
15324 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15325 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15326 echo "configure:15327: checking for thr_create in -lthread" >&5
15327 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
15331 ac_save_LIBS="$LIBS"
15332 LIBS="-lthread $LIBS"
15333 cat > conftest.$ac_ext <<EOF
15334 #line 15335 "configure"
15335 #include "confdefs.h"
15336 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15345 if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15347 eval "ac_cv_lib_$ac_lib_var=yes"
15349 echo "configure: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15352 eval "ac_cv_lib_$ac_lib_var=no"
15355 LIBS="$ac_save_LIBS"
15358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15359 echo "$ac_t""yes" 1>&6
15362 echo "$ac_t""no" 1>&6
15367 if test $have_thr = yes ; then
15368 cat >> confdefs.h <<\EOF
15372 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15373 ol_link_threads=thr
15375 if test $ol_with_yielding_select = auto ; then
15376 ol_with_yielding_select=yes
15380 thr_setconcurrency \
15381 thr_getconcurrency \
15384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15385 echo "configure:15386: checking for $ac_func" >&5
15386 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15387 echo $ac_n "(cached) $ac_c" 1>&6
15389 cat > conftest.$ac_ext <<EOF
15390 #line 15391 "configure"
15391 #include "confdefs.h"
15392 /* System header to define __stub macros and hopefully few prototypes,
15393 which can conflict with char $ac_func(); below. */
15394 #include <assert.h>
15395 /* Override any gcc2 internal prototype to avoid an error. */
15396 /* We use char because int might match the return type of a gcc2
15397 builtin and then its argument prototype would still apply. */
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15414 if { (eval echo configure:15415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15416 eval "ac_cv_func_$ac_func=yes"
15418 echo "configure: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15421 eval "ac_cv_func_$ac_func=no"
15426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15427 echo "$ac_t""yes" 1>&6
15428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15429 cat >> confdefs.h <<EOF
15430 #define $ac_tr_func 1
15434 echo "$ac_t""no" 1>&6
15441 for ac_hdr in lwp/lwp.h
15443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15445 echo "configure:15446: checking for $ac_hdr" >&5
15446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
15449 cat > conftest.$ac_ext <<EOF
15450 #line 15451 "configure"
15451 #include "confdefs.h"
15454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15455 { (eval echo configure:15456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15457 if test -z "$ac_err"; then
15459 eval "ac_cv_header_$ac_safe=yes"
15462 echo "configure: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15465 eval "ac_cv_header_$ac_safe=no"
15469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15470 echo "$ac_t""yes" 1>&6
15471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15472 cat >> confdefs.h <<EOF
15473 #define $ac_tr_hdr 1
15477 echo "$ac_t""no" 1>&6
15481 if test $ac_cv_header_lwp_lwp_h = yes ; then
15482 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15483 echo "configure:15484: checking for lwp_create in -llwp" >&5
15484 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15485 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15486 echo $ac_n "(cached) $ac_c" 1>&6
15488 ac_save_LIBS="$LIBS"
15490 cat > conftest.$ac_ext <<EOF
15491 #line 15492 "configure"
15492 #include "confdefs.h"
15493 /* Override any gcc2 internal prototype to avoid an error. */
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15502 if { (eval echo configure:15503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15504 eval "ac_cv_lib_$ac_lib_var=yes"
15506 echo "configure: failed program was:" >&5
15507 cat conftest.$ac_ext >&5
15509 eval "ac_cv_lib_$ac_lib_var=no"
15512 LIBS="$ac_save_LIBS"
15515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15516 echo "$ac_t""yes" 1>&6
15519 echo "$ac_t""no" 1>&6
15524 if test $have_lwp = yes ; then
15525 cat >> confdefs.h <<\EOF
15529 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15530 ol_link_threads=lwp
15532 if test $ol_with_yielding_select = auto ; then
15533 ol_with_yielding_select=no
15539 if test $ol_with_yielding_select = yes ; then
15540 cat >> confdefs.h <<\EOF
15541 #define HAVE_YIELDING_SELECT 1
15546 if test $ol_with_threads = manual ; then
15547 ol_link_threads=yes
15549 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15551 for ac_hdr in pthread.h sched.h
15553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15555 echo "configure:15556: checking for $ac_hdr" >&5
15556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15559 cat > conftest.$ac_ext <<EOF
15560 #line 15561 "configure"
15561 #include "confdefs.h"
15564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15565 { (eval echo configure:15566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15567 if test -z "$ac_err"; then
15569 eval "ac_cv_header_$ac_safe=yes"
15572 echo "configure: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15575 eval "ac_cv_header_$ac_safe=no"
15579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15580 echo "$ac_t""yes" 1>&6
15581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15582 cat >> confdefs.h <<EOF
15583 #define $ac_tr_hdr 1
15587 echo "$ac_t""no" 1>&6
15591 for ac_func in sched_yield pthread_yield
15593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15594 echo "configure:15595: checking for $ac_func" >&5
15595 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15596 echo $ac_n "(cached) $ac_c" 1>&6
15598 cat > conftest.$ac_ext <<EOF
15599 #line 15600 "configure"
15600 #include "confdefs.h"
15601 /* System header to define __stub macros and hopefully few prototypes,
15602 which can conflict with char $ac_func(); below. */
15603 #include <assert.h>
15604 /* Override any gcc2 internal prototype to avoid an error. */
15605 /* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15612 /* The GNU C library defines this for functions which it implements
15613 to always fail with ENOSYS. Some functions are actually named
15614 something starting with __ and the normal name is an alias. */
15615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15623 if { (eval echo configure:15624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15625 eval "ac_cv_func_$ac_func=yes"
15627 echo "configure: failed program was:" >&5
15628 cat conftest.$ac_ext >&5
15630 eval "ac_cv_func_$ac_func=no"
15635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15636 echo "$ac_t""yes" 1>&6
15637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15638 cat >> confdefs.h <<EOF
15639 #define $ac_tr_func 1
15643 echo "$ac_t""no" 1>&6
15648 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15649 echo "configure:15650: checking for LinuxThreads pthread.h" >&5
15650 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15651 echo $ac_n "(cached) $ac_c" 1>&6
15653 cat > conftest.$ac_ext <<EOF
15654 #line 15655 "configure"
15655 #include "confdefs.h"
15656 #include <pthread.h>
15658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15659 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15661 ol_cv_header_linux_threads=yes
15664 ol_cv_header_linux_threads=no
15671 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15672 if test $ol_cv_header_linux_threads = yes; then
15673 cat >> confdefs.h <<\EOF
15674 #define HAVE_LINUX_THREADS 1
15680 for ac_hdr in mach/cthreads.h
15682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15684 echo "configure:15685: checking for $ac_hdr" >&5
15685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15686 echo $ac_n "(cached) $ac_c" 1>&6
15688 cat > conftest.$ac_ext <<EOF
15689 #line 15690 "configure"
15690 #include "confdefs.h"
15693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15694 { (eval echo configure:15695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15696 if test -z "$ac_err"; then
15698 eval "ac_cv_header_$ac_safe=yes"
15701 echo "configure: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 eval "ac_cv_header_$ac_safe=no"
15708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15709 echo "$ac_t""yes" 1>&6
15710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15711 cat >> confdefs.h <<EOF
15712 #define $ac_tr_hdr 1
15716 echo "$ac_t""no" 1>&6
15720 for ac_hdr in lwp/lwp.h
15722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15724 echo "configure:15725: checking for $ac_hdr" >&5
15725 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15726 echo $ac_n "(cached) $ac_c" 1>&6
15728 cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure"
15730 #include "confdefs.h"
15733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15734 { (eval echo configure:15735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15736 if test -z "$ac_err"; then
15738 eval "ac_cv_header_$ac_safe=yes"
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15744 eval "ac_cv_header_$ac_safe=no"
15748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15749 echo "$ac_t""yes" 1>&6
15750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15751 cat >> confdefs.h <<EOF
15752 #define $ac_tr_hdr 1
15756 echo "$ac_t""no" 1>&6
15760 for ac_hdr in thread.h synch.h
15762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15764 echo "configure:15765: checking for $ac_hdr" >&5
15765 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15766 echo $ac_n "(cached) $ac_c" 1>&6
15768 cat > conftest.$ac_ext <<EOF
15769 #line 15770 "configure"
15770 #include "confdefs.h"
15773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15774 { (eval echo configure:15775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15776 if test -z "$ac_err"; then
15778 eval "ac_cv_header_$ac_safe=yes"
15781 echo "configure: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15784 eval "ac_cv_header_$ac_safe=no"
15788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15789 echo "$ac_t""yes" 1>&6
15790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15791 cat >> confdefs.h <<EOF
15792 #define $ac_tr_hdr 1
15796 echo "$ac_t""no" 1>&6
15802 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15803 cat >> confdefs.h <<\EOF
15804 #define REENTRANT 1
15807 cat >> confdefs.h <<\EOF
15808 #define _REENTRANT 1
15811 cat >> confdefs.h <<\EOF
15812 #define THREAD_SAFE 1
15815 cat >> confdefs.h <<\EOF
15816 #define _THREAD_SAFE 1
15819 cat >> confdefs.h <<\EOF
15820 #define THREADSAFE 1
15823 cat >> confdefs.h <<\EOF
15824 #define _THREADSAFE 1
15827 cat >> confdefs.h <<\EOF
15828 #define _SGI_MP_SOURCE 1
15832 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15833 echo "configure:15834: checking for thread specific errno" >&5
15834 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15835 echo $ac_n "(cached) $ac_c" 1>&6
15838 cat > conftest.$ac_ext <<EOF
15839 #line 15840 "configure"
15840 #include "confdefs.h"
15846 if { (eval echo configure:15847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15848 ol_cv_errno_thread_specific=yes
15850 echo "configure: failed program was:" >&5
15851 cat conftest.$ac_ext >&5
15853 ol_cv_errno_thread_specific=no
15859 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15861 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15862 echo "configure:15863: checking for thread specific h_errno" >&5
15863 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15864 echo $ac_n "(cached) $ac_c" 1>&6
15867 cat > conftest.$ac_ext <<EOF
15868 #line 15869 "configure"
15869 #include "confdefs.h"
15875 if { (eval echo configure:15876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15877 ol_cv_h_errno_thread_specific=yes
15879 echo "configure: failed program was:" >&5
15880 cat conftest.$ac_ext >&5
15882 ol_cv_h_errno_thread_specific=no
15888 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15890 if test $ol_cv_errno_thread_specific != yes \
15891 -o $ol_cv_h_errno_thread_specific != yes ; then
15892 LIBS="$LTHREAD_LIBS $LIBS"
15898 if test $ol_link_threads = no ; then
15899 if test $ol_with_threads = yes ; then
15900 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15903 if test $ol_with_threads = auto ; then
15904 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15908 cat >> confdefs.h <<\EOF
15909 #define NO_THREADS 1
15915 if test $ol_link_threads != no ; then
15916 cat >> confdefs.h <<\EOF
15917 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15924 gethostbyname_r gethostbyaddr_r \
15927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15928 echo "configure:15929: checking for $ac_func" >&5
15929 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15930 echo $ac_n "(cached) $ac_c" 1>&6
15932 cat > conftest.$ac_ext <<EOF
15933 #line 15934 "configure"
15934 #include "confdefs.h"
15935 /* System header to define __stub macros and hopefully few prototypes,
15936 which can conflict with char $ac_func(); below. */
15937 #include <assert.h>
15938 /* Override any gcc2 internal prototype to avoid an error. */
15939 /* We use char because int might match the return type of a gcc2
15940 builtin and then its argument prototype would still apply. */
15946 /* The GNU C library defines this for functions which it implements
15947 to always fail with ENOSYS. Some functions are actually named
15948 something starting with __ and the normal name is an alias. */
15949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15957 if { (eval echo configure:15958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15959 eval "ac_cv_func_$ac_func=yes"
15961 echo "configure: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15964 eval "ac_cv_func_$ac_func=no"
15969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15970 echo "$ac_t""yes" 1>&6
15971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15972 cat >> confdefs.h <<EOF
15973 #define $ac_tr_func 1
15977 echo "$ac_t""no" 1>&6
15982 if test "$ac_cv_func_ctime_r" = no ; then
15983 ol_cv_func_ctime_r_nargs=0
15985 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
15986 echo "configure:15987: checking number of arguments of ctime_r" >&5
15987 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15990 cat > conftest.$ac_ext <<EOF
15991 #line 15992 "configure"
15992 #include "confdefs.h"
15995 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
15998 if { (eval echo configure:15999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16000 ol_cv_func_ctime_r_nargs3=yes
16002 echo "configure: failed program was:" >&5
16003 cat conftest.$ac_ext >&5
16005 ol_cv_func_ctime_r_nargs3=no
16009 cat > conftest.$ac_ext <<EOF
16010 #line 16011 "configure"
16011 #include "confdefs.h"
16014 time_t ti; char *buffer; ctime_r(&ti,buffer);
16017 if { (eval echo configure:16018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16019 ol_cv_func_ctime_r_nargs2=yes
16021 echo "configure: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16024 ol_cv_func_ctime_r_nargs2=no
16028 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16029 $ol_cv_func_ctime_r_nargs2 = no ; then
16031 ol_cv_func_ctime_r_nargs=3
16033 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16034 $ol_cv_func_ctime_r_nargs2 = yes ; then
16036 ol_cv_func_ctime_r_nargs=2
16039 ol_cv_func_ctime_r_nargs=0
16044 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16046 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16047 cat >> confdefs.h <<EOF
16048 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16055 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16056 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16057 echo "configure:16058: checking number of arguments of gethostbyname_r" >&5
16058 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16059 echo $ac_n "(cached) $ac_c" 1>&6
16061 cat > conftest.$ac_ext <<EOF
16062 #line 16063 "configure"
16063 #include "confdefs.h"
16064 #include <sys/types.h>
16065 #include <sys/socket.h>
16066 #include <netinet/in.h>
16068 #define BUFSIZE (sizeof(struct hostent)+10)
16070 struct hostent hent; char buffer[BUFSIZE];
16071 int bufsize=BUFSIZE;int h_errno;
16072 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16073 buffer, bufsize, &h_errno);
16076 if { (eval echo configure:16077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16078 ol_cv_func_gethostbyname_r_nargs5=yes
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16083 ol_cv_func_gethostbyname_r_nargs5=no
16087 cat > conftest.$ac_ext <<EOF
16088 #line 16089 "configure"
16089 #include "confdefs.h"
16090 #include <sys/types.h>
16091 #include <sys/socket.h>
16092 #include <netinet/in.h>
16094 #define BUFSIZE (sizeof(struct hostent)+10)
16096 struct hostent hent;struct hostent *rhent;
16097 char buffer[BUFSIZE];
16098 int bufsize=BUFSIZE;int h_errno;
16099 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16103 if { (eval echo configure:16104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16105 ol_cv_func_gethostbyname_r_nargs6=yes
16107 echo "configure: failed program was:" >&5
16108 cat conftest.$ac_ext >&5
16110 ol_cv_func_gethostbyname_r_nargs6=no
16114 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16115 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16117 ol_cv_func_gethostbyname_r_nargs=5
16119 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16120 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16122 ol_cv_func_gethostbyname_r_nargs=6
16125 ol_cv_func_gethostbyname_r_nargs=0
16130 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16131 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16132 cat >> confdefs.h <<EOF
16133 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16139 ol_cv_func_gethostbyname_r_nargs=0
16142 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16143 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16144 echo "configure:16145: checking number of arguments of gethostbyaddr_r" >&5
16145 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16146 echo $ac_n "(cached) $ac_c" 1>&6
16148 cat > conftest.$ac_ext <<EOF
16149 #line 16150 "configure"
16150 #include "confdefs.h"
16151 #include <sys/types.h>
16152 #include <sys/socket.h>
16153 #include <netinet/in.h>
16155 #define BUFSIZE (sizeof(struct hostent)+10)
16157 struct hostent hent; char buffer[BUFSIZE];
16158 struct in_addr add;
16159 size_t alen=sizeof(struct in_addr);
16160 int bufsize=BUFSIZE;int h_errno;
16161 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16162 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16165 if { (eval echo configure:16166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16167 ol_cv_func_gethostbyaddr_r_nargs7=yes
16169 echo "configure: failed program was:" >&5
16170 cat conftest.$ac_ext >&5
16172 ol_cv_func_gethostbyaddr_r_nargs7=no
16176 cat > conftest.$ac_ext <<EOF
16177 #line 16178 "configure"
16178 #include "confdefs.h"
16179 #include <sys/types.h>
16180 #include <sys/socket.h>
16181 #include <netinet/in.h>
16183 #define BUFSIZE (sizeof(struct hostent)+10)
16185 struct hostent hent;
16186 struct hostent *rhent; char buffer[BUFSIZE];
16187 struct in_addr add;
16188 size_t alen=sizeof(struct in_addr);
16189 int bufsize=BUFSIZE;int h_errno;
16190 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16191 alen, AF_INET, &hent, buffer, bufsize,
16195 if { (eval echo configure:16196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16197 ol_cv_func_gethostbyaddr_r_nargs8=yes
16199 echo "configure: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16202 ol_cv_func_gethostbyaddr_r_nargs8=no
16206 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16207 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16209 ol_cv_func_gethostbyaddr_r_nargs=7
16211 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16212 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16214 ol_cv_func_gethostbyaddr_r_nargs=8
16217 ol_cv_func_gethostbyaddr_r_nargs=0
16222 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16223 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16224 cat >> confdefs.h <<EOF
16225 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16231 ol_cv_func_gethostbyaddr_r_nargs=0
16236 if test $ol_with_ldbm_api = auto \
16237 -o $ol_with_ldbm_api = berkeley \
16238 -o $ol_with_ldbm_api = bcompat ; then
16240 if test $ol_with_ldbm_api = bcompat; then \
16241 for ac_hdr in db_185.h db.h
16243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16245 echo "configure:16246: checking for $ac_hdr" >&5
16246 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16249 cat > conftest.$ac_ext <<EOF
16250 #line 16251 "configure"
16251 #include "confdefs.h"
16254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16255 { (eval echo configure:16256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16257 if test -z "$ac_err"; then
16259 eval "ac_cv_header_$ac_safe=yes"
16262 echo "configure: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16265 eval "ac_cv_header_$ac_safe=no"
16269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16270 echo "$ac_t""yes" 1>&6
16271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16272 cat >> confdefs.h <<EOF
16273 #define $ac_tr_hdr 1
16277 echo "$ac_t""no" 1>&6
16281 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16282 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16283 echo "configure:16284: checking if Berkeley DB header compatibility" >&5
16284 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16285 echo $ac_n "(cached) $ac_c" 1>&6
16288 cat > conftest.$ac_ext <<EOF
16289 #line 16290 "configure"
16290 #include "confdefs.h"
16293 # include <db_185.h>
16298 /* this check could be improved */
16299 #ifndef DB_VERSION_MAJOR
16300 # define DB_VERSION_MAJOR 1
16303 #if DB_VERSION_MAJOR == 1
16308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16309 egrep "__db_version_1" >/dev/null 2>&1; then
16311 ol_cv_header_db1=yes
16314 ol_cv_header_db1=no
16320 echo "$ac_t""$ol_cv_header_db1" 1>&6
16322 if test $ol_cv_header_db1 = yes ; then
16324 if test $ol_cv_lib_db = no ; then
16325 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16326 echo "configure:16327: checking for Berkeley DB link (default)" >&5
16327 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16328 echo $ac_n "(cached) $ac_c" 1>&6
16333 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16335 cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16339 #ifdef HAVE_DB_185_H
16340 # include <db_185.h>
16345 #ifndef DB_VERSION_MAJOR
16346 # define DB_VERSION_MAJOR 1
16350 #define NULL ((void*)0)
16355 #if DB_VERSION_MAJOR > 1
16358 int major, minor, patch;
16360 version = db_version( &major, &minor, &patch );
16362 if( major != DB_VERSION_MAJOR ||
16363 minor < DB_VERSION_MINOR )
16365 printf("Berkeley DB version mismatch\n"
16366 "\theader: %s\n\tlibrary: %s\n",
16367 DB_VERSION_STRING, version);
16373 #if DB_VERSION_MAJOR > 2
16374 db_env_create( NULL, 0 );
16375 #elif DB_VERSION_MAJOR > 1
16376 db_appexit( NULL );
16378 (void) dbopen( NULL, 0, 0, 0, NULL);
16383 if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16387 echo "configure: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16398 echo "$ac_t""$ol_cv_db_none" 1>&6
16400 if test $ol_cv_db_none = yes ; then
16405 if test $ol_cv_lib_db = no ; then
16406 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
16407 echo "configure:16408: checking for Berkeley DB link (-ldb43)" >&5
16408 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
16409 echo $ac_n "(cached) $ac_c" 1>&6
16414 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16416 cat > conftest.$ac_ext <<EOF
16417 #line 16418 "configure"
16418 #include "confdefs.h"
16420 #ifdef HAVE_DB_185_H
16421 # include <db_185.h>
16426 #ifndef DB_VERSION_MAJOR
16427 # define DB_VERSION_MAJOR 1
16431 #define NULL ((void*)0)
16436 #if DB_VERSION_MAJOR > 1
16439 int major, minor, patch;
16441 version = db_version( &major, &minor, &patch );
16443 if( major != DB_VERSION_MAJOR ||
16444 minor < DB_VERSION_MINOR )
16446 printf("Berkeley DB version mismatch\n"
16447 "\theader: %s\n\tlibrary: %s\n",
16448 DB_VERSION_STRING, version);
16454 #if DB_VERSION_MAJOR > 2
16455 db_env_create( NULL, 0 );
16456 #elif DB_VERSION_MAJOR > 1
16457 db_appexit( NULL );
16459 (void) dbopen( NULL, 0, 0, 0, NULL);
16464 if { (eval echo configure:16465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16468 echo "configure: failed program was:" >&5
16469 cat conftest.$ac_ext >&5
16479 echo "$ac_t""$ol_cv_db_db43" 1>&6
16481 if test $ol_cv_db_db43 = yes ; then
16482 ol_cv_lib_db=-ldb43
16486 if test $ol_cv_lib_db = no ; then
16487 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
16488 echo "configure:16489: checking for Berkeley DB link (-ldb-43)" >&5
16489 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
16490 echo $ac_n "(cached) $ac_c" 1>&6
16495 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16497 cat > conftest.$ac_ext <<EOF
16498 #line 16499 "configure"
16499 #include "confdefs.h"
16501 #ifdef HAVE_DB_185_H
16502 # include <db_185.h>
16507 #ifndef DB_VERSION_MAJOR
16508 # define DB_VERSION_MAJOR 1
16512 #define NULL ((void*)0)
16517 #if DB_VERSION_MAJOR > 1
16520 int major, minor, patch;
16522 version = db_version( &major, &minor, &patch );
16524 if( major != DB_VERSION_MAJOR ||
16525 minor < DB_VERSION_MINOR )
16527 printf("Berkeley DB version mismatch\n"
16528 "\theader: %s\n\tlibrary: %s\n",
16529 DB_VERSION_STRING, version);
16535 #if DB_VERSION_MAJOR > 2
16536 db_env_create( NULL, 0 );
16537 #elif DB_VERSION_MAJOR > 1
16538 db_appexit( NULL );
16540 (void) dbopen( NULL, 0, 0, 0, NULL);
16545 if { (eval echo configure:16546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16549 echo "configure: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16560 echo "$ac_t""$ol_cv_db_db_43" 1>&6
16562 if test $ol_cv_db_db_43 = yes ; then
16563 ol_cv_lib_db=-ldb-43
16567 if test $ol_cv_lib_db = no ; then
16568 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
16569 echo "configure:16570: checking for Berkeley DB link (-ldb-4.3)" >&5
16570 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
16571 echo $ac_n "(cached) $ac_c" 1>&6
16576 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16578 cat > conftest.$ac_ext <<EOF
16579 #line 16580 "configure"
16580 #include "confdefs.h"
16582 #ifdef HAVE_DB_185_H
16583 # include <db_185.h>
16588 #ifndef DB_VERSION_MAJOR
16589 # define DB_VERSION_MAJOR 1
16593 #define NULL ((void*)0)
16598 #if DB_VERSION_MAJOR > 1
16601 int major, minor, patch;
16603 version = db_version( &major, &minor, &patch );
16605 if( major != DB_VERSION_MAJOR ||
16606 minor < DB_VERSION_MINOR )
16608 printf("Berkeley DB version mismatch\n"
16609 "\theader: %s\n\tlibrary: %s\n",
16610 DB_VERSION_STRING, version);
16616 #if DB_VERSION_MAJOR > 2
16617 db_env_create( NULL, 0 );
16618 #elif DB_VERSION_MAJOR > 1
16619 db_appexit( NULL );
16621 (void) dbopen( NULL, 0, 0, 0, NULL);
16626 if { (eval echo configure:16627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16628 ol_cv_db_db_4_dot_3=yes
16630 echo "configure: failed program was:" >&5
16631 cat conftest.$ac_ext >&5
16633 ol_cv_db_db_4_dot_3=no
16641 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
16643 if test $ol_cv_db_db_4_dot_3 = yes ; then
16644 ol_cv_lib_db=-ldb-4.3
16648 if test $ol_cv_lib_db = no ; then
16649 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
16650 echo "configure:16651: checking for Berkeley DB link (-ldb-4-3)" >&5
16651 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
16652 echo $ac_n "(cached) $ac_c" 1>&6
16657 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16659 cat > conftest.$ac_ext <<EOF
16660 #line 16661 "configure"
16661 #include "confdefs.h"
16663 #ifdef HAVE_DB_185_H
16664 # include <db_185.h>
16669 #ifndef DB_VERSION_MAJOR
16670 # define DB_VERSION_MAJOR 1
16674 #define NULL ((void*)0)
16679 #if DB_VERSION_MAJOR > 1
16682 int major, minor, patch;
16684 version = db_version( &major, &minor, &patch );
16686 if( major != DB_VERSION_MAJOR ||
16687 minor < DB_VERSION_MINOR )
16689 printf("Berkeley DB version mismatch\n"
16690 "\theader: %s\n\tlibrary: %s\n",
16691 DB_VERSION_STRING, version);
16697 #if DB_VERSION_MAJOR > 2
16698 db_env_create( NULL, 0 );
16699 #elif DB_VERSION_MAJOR > 1
16700 db_appexit( NULL );
16702 (void) dbopen( NULL, 0, 0, 0, NULL);
16707 if { (eval echo configure:16708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16709 ol_cv_db_db_4_3=yes
16711 echo "configure: failed program was:" >&5
16712 cat conftest.$ac_ext >&5
16722 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
16724 if test $ol_cv_db_db_4_3 = yes ; then
16725 ol_cv_lib_db=-ldb-4-3
16729 if test $ol_cv_lib_db = no ; then
16730 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16731 echo "configure:16732: checking for Berkeley DB link (-ldb42)" >&5
16732 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16733 echo $ac_n "(cached) $ac_c" 1>&6
16738 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16740 cat > conftest.$ac_ext <<EOF
16741 #line 16742 "configure"
16742 #include "confdefs.h"
16744 #ifdef HAVE_DB_185_H
16745 # include <db_185.h>
16750 #ifndef DB_VERSION_MAJOR
16751 # define DB_VERSION_MAJOR 1
16755 #define NULL ((void*)0)
16760 #if DB_VERSION_MAJOR > 1
16763 int major, minor, patch;
16765 version = db_version( &major, &minor, &patch );
16767 if( major != DB_VERSION_MAJOR ||
16768 minor < DB_VERSION_MINOR )
16770 printf("Berkeley DB version mismatch\n"
16771 "\theader: %s\n\tlibrary: %s\n",
16772 DB_VERSION_STRING, version);
16778 #if DB_VERSION_MAJOR > 2
16779 db_env_create( NULL, 0 );
16780 #elif DB_VERSION_MAJOR > 1
16781 db_appexit( NULL );
16783 (void) dbopen( NULL, 0, 0, 0, NULL);
16788 if { (eval echo configure:16789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16792 echo "configure: failed program was:" >&5
16793 cat conftest.$ac_ext >&5
16803 echo "$ac_t""$ol_cv_db_db42" 1>&6
16805 if test $ol_cv_db_db42 = yes ; then
16806 ol_cv_lib_db=-ldb42
16810 if test $ol_cv_lib_db = no ; then
16811 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16812 echo "configure:16813: checking for Berkeley DB link (-ldb-42)" >&5
16813 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16819 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16821 cat > conftest.$ac_ext <<EOF
16822 #line 16823 "configure"
16823 #include "confdefs.h"
16825 #ifdef HAVE_DB_185_H
16826 # include <db_185.h>
16831 #ifndef DB_VERSION_MAJOR
16832 # define DB_VERSION_MAJOR 1
16836 #define NULL ((void*)0)
16841 #if DB_VERSION_MAJOR > 1
16844 int major, minor, patch;
16846 version = db_version( &major, &minor, &patch );
16848 if( major != DB_VERSION_MAJOR ||
16849 minor < DB_VERSION_MINOR )
16851 printf("Berkeley DB version mismatch\n"
16852 "\theader: %s\n\tlibrary: %s\n",
16853 DB_VERSION_STRING, version);
16859 #if DB_VERSION_MAJOR > 2
16860 db_env_create( NULL, 0 );
16861 #elif DB_VERSION_MAJOR > 1
16862 db_appexit( NULL );
16864 (void) dbopen( NULL, 0, 0, 0, NULL);
16869 if { (eval echo configure:16870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16873 echo "configure: failed program was:" >&5
16874 cat conftest.$ac_ext >&5
16884 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16886 if test $ol_cv_db_db_42 = yes ; then
16887 ol_cv_lib_db=-ldb-42
16891 if test $ol_cv_lib_db = no ; then
16892 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16893 echo "configure:16894: checking for Berkeley DB link (-ldb-4.2)" >&5
16894 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16895 echo $ac_n "(cached) $ac_c" 1>&6
16900 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16902 cat > conftest.$ac_ext <<EOF
16903 #line 16904 "configure"
16904 #include "confdefs.h"
16906 #ifdef HAVE_DB_185_H
16907 # include <db_185.h>
16912 #ifndef DB_VERSION_MAJOR
16913 # define DB_VERSION_MAJOR 1
16917 #define NULL ((void*)0)
16922 #if DB_VERSION_MAJOR > 1
16925 int major, minor, patch;
16927 version = db_version( &major, &minor, &patch );
16929 if( major != DB_VERSION_MAJOR ||
16930 minor < DB_VERSION_MINOR )
16932 printf("Berkeley DB version mismatch\n"
16933 "\theader: %s\n\tlibrary: %s\n",
16934 DB_VERSION_STRING, version);
16940 #if DB_VERSION_MAJOR > 2
16941 db_env_create( NULL, 0 );
16942 #elif DB_VERSION_MAJOR > 1
16943 db_appexit( NULL );
16945 (void) dbopen( NULL, 0, 0, 0, NULL);
16950 if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16952 ol_cv_db_db_4_dot_2=yes
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16957 ol_cv_db_db_4_dot_2=no
16965 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16967 if test $ol_cv_db_db_4_dot_2 = yes ; then
16968 ol_cv_lib_db=-ldb-4.2
16972 if test $ol_cv_lib_db = no ; then
16973 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16974 echo "configure:16975: checking for Berkeley DB link (-ldb-4-2)" >&5
16975 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16976 echo $ac_n "(cached) $ac_c" 1>&6
16981 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16983 cat > conftest.$ac_ext <<EOF
16984 #line 16985 "configure"
16985 #include "confdefs.h"
16987 #ifdef HAVE_DB_185_H
16988 # include <db_185.h>
16993 #ifndef DB_VERSION_MAJOR
16994 # define DB_VERSION_MAJOR 1
16998 #define NULL ((void*)0)
17003 #if DB_VERSION_MAJOR > 1
17006 int major, minor, patch;
17008 version = db_version( &major, &minor, &patch );
17010 if( major != DB_VERSION_MAJOR ||
17011 minor < DB_VERSION_MINOR )
17013 printf("Berkeley DB version mismatch\n"
17014 "\theader: %s\n\tlibrary: %s\n",
17015 DB_VERSION_STRING, version);
17021 #if DB_VERSION_MAJOR > 2
17022 db_env_create( NULL, 0 );
17023 #elif DB_VERSION_MAJOR > 1
17024 db_appexit( NULL );
17026 (void) dbopen( NULL, 0, 0, 0, NULL);
17031 if { (eval echo configure:17032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17033 ol_cv_db_db_4_2=yes
17035 echo "configure: failed program was:" >&5
17036 cat conftest.$ac_ext >&5
17046 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17048 if test $ol_cv_db_db_4_2 = yes ; then
17049 ol_cv_lib_db=-ldb-4-2
17053 if test $ol_cv_lib_db = no ; then
17054 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17055 echo "configure:17056: checking for Berkeley DB link (-ldb-4)" >&5
17056 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17057 echo $ac_n "(cached) $ac_c" 1>&6
17062 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17064 cat > conftest.$ac_ext <<EOF
17065 #line 17066 "configure"
17066 #include "confdefs.h"
17068 #ifdef HAVE_DB_185_H
17069 # include <db_185.h>
17074 #ifndef DB_VERSION_MAJOR
17075 # define DB_VERSION_MAJOR 1
17079 #define NULL ((void*)0)
17084 #if DB_VERSION_MAJOR > 1
17087 int major, minor, patch;
17089 version = db_version( &major, &minor, &patch );
17091 if( major != DB_VERSION_MAJOR ||
17092 minor < DB_VERSION_MINOR )
17094 printf("Berkeley DB version mismatch\n"
17095 "\theader: %s\n\tlibrary: %s\n",
17096 DB_VERSION_STRING, version);
17102 #if DB_VERSION_MAJOR > 2
17103 db_env_create( NULL, 0 );
17104 #elif DB_VERSION_MAJOR > 1
17105 db_appexit( NULL );
17107 (void) dbopen( NULL, 0, 0, 0, NULL);
17112 if { (eval echo configure:17113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17116 echo "configure: failed program was:" >&5
17117 cat conftest.$ac_ext >&5
17127 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17129 if test $ol_cv_db_db_4 = yes ; then
17130 ol_cv_lib_db=-ldb-4
17134 if test $ol_cv_lib_db = no ; then
17135 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17136 echo "configure:17137: checking for Berkeley DB link (-ldb4)" >&5
17137 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17138 echo $ac_n "(cached) $ac_c" 1>&6
17143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17145 cat > conftest.$ac_ext <<EOF
17146 #line 17147 "configure"
17147 #include "confdefs.h"
17149 #ifdef HAVE_DB_185_H
17150 # include <db_185.h>
17155 #ifndef DB_VERSION_MAJOR
17156 # define DB_VERSION_MAJOR 1
17160 #define NULL ((void*)0)
17165 #if DB_VERSION_MAJOR > 1
17168 int major, minor, patch;
17170 version = db_version( &major, &minor, &patch );
17172 if( major != DB_VERSION_MAJOR ||
17173 minor < DB_VERSION_MINOR )
17175 printf("Berkeley DB version mismatch\n"
17176 "\theader: %s\n\tlibrary: %s\n",
17177 DB_VERSION_STRING, version);
17183 #if DB_VERSION_MAJOR > 2
17184 db_env_create( NULL, 0 );
17185 #elif DB_VERSION_MAJOR > 1
17186 db_appexit( NULL );
17188 (void) dbopen( NULL, 0, 0, 0, NULL);
17193 if { (eval echo configure:17194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17197 echo "configure: failed program was:" >&5
17198 cat conftest.$ac_ext >&5
17208 echo "$ac_t""$ol_cv_db_db4" 1>&6
17210 if test $ol_cv_db_db4 = yes ; then
17215 if test $ol_cv_lib_db = no ; then
17216 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17217 echo "configure:17218: checking for Berkeley DB link (-ldb)" >&5
17218 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17219 echo $ac_n "(cached) $ac_c" 1>&6
17224 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17226 cat > conftest.$ac_ext <<EOF
17227 #line 17228 "configure"
17228 #include "confdefs.h"
17230 #ifdef HAVE_DB_185_H
17231 # include <db_185.h>
17236 #ifndef DB_VERSION_MAJOR
17237 # define DB_VERSION_MAJOR 1
17241 #define NULL ((void*)0)
17246 #if DB_VERSION_MAJOR > 1
17249 int major, minor, patch;
17251 version = db_version( &major, &minor, &patch );
17253 if( major != DB_VERSION_MAJOR ||
17254 minor < DB_VERSION_MINOR )
17256 printf("Berkeley DB version mismatch\n"
17257 "\theader: %s\n\tlibrary: %s\n",
17258 DB_VERSION_STRING, version);
17264 #if DB_VERSION_MAJOR > 2
17265 db_env_create( NULL, 0 );
17266 #elif DB_VERSION_MAJOR > 1
17267 db_appexit( NULL );
17269 (void) dbopen( NULL, 0, 0, 0, NULL);
17274 if { (eval echo configure:17275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17278 echo "configure: failed program was:" >&5
17279 cat conftest.$ac_ext >&5
17289 echo "$ac_t""$ol_cv_db_db" 1>&6
17291 if test $ol_cv_db_db = yes ; then
17296 if test $ol_cv_lib_db = no ; then
17297 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17298 echo "configure:17299: checking for Berkeley DB link (-ldb41)" >&5
17299 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17300 echo $ac_n "(cached) $ac_c" 1>&6
17305 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17307 cat > conftest.$ac_ext <<EOF
17308 #line 17309 "configure"
17309 #include "confdefs.h"
17311 #ifdef HAVE_DB_185_H
17312 # include <db_185.h>
17317 #ifndef DB_VERSION_MAJOR
17318 # define DB_VERSION_MAJOR 1
17322 #define NULL ((void*)0)
17327 #if DB_VERSION_MAJOR > 1
17330 int major, minor, patch;
17332 version = db_version( &major, &minor, &patch );
17334 if( major != DB_VERSION_MAJOR ||
17335 minor < DB_VERSION_MINOR )
17337 printf("Berkeley DB version mismatch\n"
17338 "\theader: %s\n\tlibrary: %s\n",
17339 DB_VERSION_STRING, version);
17345 #if DB_VERSION_MAJOR > 2
17346 db_env_create( NULL, 0 );
17347 #elif DB_VERSION_MAJOR > 1
17348 db_appexit( NULL );
17350 (void) dbopen( NULL, 0, 0, 0, NULL);
17355 if { (eval echo configure:17356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17359 echo "configure: failed program was:" >&5
17360 cat conftest.$ac_ext >&5
17370 echo "$ac_t""$ol_cv_db_db41" 1>&6
17372 if test $ol_cv_db_db41 = yes ; then
17373 ol_cv_lib_db=-ldb41
17377 if test $ol_cv_lib_db = no ; then
17378 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17379 echo "configure:17380: checking for Berkeley DB link (-ldb-41)" >&5
17380 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17381 echo $ac_n "(cached) $ac_c" 1>&6
17386 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17388 cat > conftest.$ac_ext <<EOF
17389 #line 17390 "configure"
17390 #include "confdefs.h"
17392 #ifdef HAVE_DB_185_H
17393 # include <db_185.h>
17398 #ifndef DB_VERSION_MAJOR
17399 # define DB_VERSION_MAJOR 1
17403 #define NULL ((void*)0)
17408 #if DB_VERSION_MAJOR > 1
17411 int major, minor, patch;
17413 version = db_version( &major, &minor, &patch );
17415 if( major != DB_VERSION_MAJOR ||
17416 minor < DB_VERSION_MINOR )
17418 printf("Berkeley DB version mismatch\n"
17419 "\theader: %s\n\tlibrary: %s\n",
17420 DB_VERSION_STRING, version);
17426 #if DB_VERSION_MAJOR > 2
17427 db_env_create( NULL, 0 );
17428 #elif DB_VERSION_MAJOR > 1
17429 db_appexit( NULL );
17431 (void) dbopen( NULL, 0, 0, 0, NULL);
17436 if { (eval echo configure:17437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17440 echo "configure: failed program was:" >&5
17441 cat conftest.$ac_ext >&5
17451 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17453 if test $ol_cv_db_db_41 = yes ; then
17454 ol_cv_lib_db=-ldb-41
17458 if test $ol_cv_lib_db = no ; then
17459 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17460 echo "configure:17461: checking for Berkeley DB link (-ldb-4.1)" >&5
17461 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17462 echo $ac_n "(cached) $ac_c" 1>&6
17467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17469 cat > conftest.$ac_ext <<EOF
17470 #line 17471 "configure"
17471 #include "confdefs.h"
17473 #ifdef HAVE_DB_185_H
17474 # include <db_185.h>
17479 #ifndef DB_VERSION_MAJOR
17480 # define DB_VERSION_MAJOR 1
17484 #define NULL ((void*)0)
17489 #if DB_VERSION_MAJOR > 1
17492 int major, minor, patch;
17494 version = db_version( &major, &minor, &patch );
17496 if( major != DB_VERSION_MAJOR ||
17497 minor < DB_VERSION_MINOR )
17499 printf("Berkeley DB version mismatch\n"
17500 "\theader: %s\n\tlibrary: %s\n",
17501 DB_VERSION_STRING, version);
17507 #if DB_VERSION_MAJOR > 2
17508 db_env_create( NULL, 0 );
17509 #elif DB_VERSION_MAJOR > 1
17510 db_appexit( NULL );
17512 (void) dbopen( NULL, 0, 0, 0, NULL);
17517 if { (eval echo configure:17518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17519 ol_cv_db_db_4_dot_1=yes
17521 echo "configure: failed program was:" >&5
17522 cat conftest.$ac_ext >&5
17524 ol_cv_db_db_4_dot_1=no
17532 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17534 if test $ol_cv_db_db_4_dot_1 = yes ; then
17535 ol_cv_lib_db=-ldb-4.1
17539 if test $ol_cv_lib_db = no ; then
17540 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17541 echo "configure:17542: checking for Berkeley DB link (-ldb-4-1)" >&5
17542 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17543 echo $ac_n "(cached) $ac_c" 1>&6
17548 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17550 cat > conftest.$ac_ext <<EOF
17551 #line 17552 "configure"
17552 #include "confdefs.h"
17554 #ifdef HAVE_DB_185_H
17555 # include <db_185.h>
17560 #ifndef DB_VERSION_MAJOR
17561 # define DB_VERSION_MAJOR 1
17565 #define NULL ((void*)0)
17570 #if DB_VERSION_MAJOR > 1
17573 int major, minor, patch;
17575 version = db_version( &major, &minor, &patch );
17577 if( major != DB_VERSION_MAJOR ||
17578 minor < DB_VERSION_MINOR )
17580 printf("Berkeley DB version mismatch\n"
17581 "\theader: %s\n\tlibrary: %s\n",
17582 DB_VERSION_STRING, version);
17588 #if DB_VERSION_MAJOR > 2
17589 db_env_create( NULL, 0 );
17590 #elif DB_VERSION_MAJOR > 1
17591 db_appexit( NULL );
17593 (void) dbopen( NULL, 0, 0, 0, NULL);
17598 if { (eval echo configure:17599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17600 ol_cv_db_db_4_1=yes
17602 echo "configure: failed program was:" >&5
17603 cat conftest.$ac_ext >&5
17613 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17615 if test $ol_cv_db_db_4_1 = yes ; then
17616 ol_cv_lib_db=-ldb-4-1
17620 if test $ol_cv_lib_db = no ; then
17621 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17622 echo "configure:17623: checking for Berkeley DB link (-ldb3)" >&5
17623 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17624 echo $ac_n "(cached) $ac_c" 1>&6
17629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17631 cat > conftest.$ac_ext <<EOF
17632 #line 17633 "configure"
17633 #include "confdefs.h"
17635 #ifdef HAVE_DB_185_H
17636 # include <db_185.h>
17641 #ifndef DB_VERSION_MAJOR
17642 # define DB_VERSION_MAJOR 1
17646 #define NULL ((void*)0)
17651 #if DB_VERSION_MAJOR > 1
17654 int major, minor, patch;
17656 version = db_version( &major, &minor, &patch );
17658 if( major != DB_VERSION_MAJOR ||
17659 minor < DB_VERSION_MINOR )
17661 printf("Berkeley DB version mismatch\n"
17662 "\theader: %s\n\tlibrary: %s\n",
17663 DB_VERSION_STRING, version);
17669 #if DB_VERSION_MAJOR > 2
17670 db_env_create( NULL, 0 );
17671 #elif DB_VERSION_MAJOR > 1
17672 db_appexit( NULL );
17674 (void) dbopen( NULL, 0, 0, 0, NULL);
17679 if { (eval echo configure:17680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17683 echo "configure: failed program was:" >&5
17684 cat conftest.$ac_ext >&5
17694 echo "$ac_t""$ol_cv_db_db3" 1>&6
17696 if test $ol_cv_db_db3 = yes ; then
17701 if test $ol_cv_lib_db = no ; then
17702 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17703 echo "configure:17704: checking for Berkeley DB link (-ldb-3)" >&5
17704 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17705 echo $ac_n "(cached) $ac_c" 1>&6
17710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17712 cat > conftest.$ac_ext <<EOF
17713 #line 17714 "configure"
17714 #include "confdefs.h"
17716 #ifdef HAVE_DB_185_H
17717 # include <db_185.h>
17722 #ifndef DB_VERSION_MAJOR
17723 # define DB_VERSION_MAJOR 1
17727 #define NULL ((void*)0)
17732 #if DB_VERSION_MAJOR > 1
17735 int major, minor, patch;
17737 version = db_version( &major, &minor, &patch );
17739 if( major != DB_VERSION_MAJOR ||
17740 minor < DB_VERSION_MINOR )
17742 printf("Berkeley DB version mismatch\n"
17743 "\theader: %s\n\tlibrary: %s\n",
17744 DB_VERSION_STRING, version);
17750 #if DB_VERSION_MAJOR > 2
17751 db_env_create( NULL, 0 );
17752 #elif DB_VERSION_MAJOR > 1
17753 db_appexit( NULL );
17755 (void) dbopen( NULL, 0, 0, 0, NULL);
17760 if { (eval echo configure:17761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17764 echo "configure: failed program was:" >&5
17765 cat conftest.$ac_ext >&5
17775 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17777 if test $ol_cv_db_db_3 = yes ; then
17778 ol_cv_lib_db=-ldb-3
17782 if test $ol_cv_lib_db = no ; then
17783 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17784 echo "configure:17785: checking for Berkeley DB link (-ldb2)" >&5
17785 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17786 echo $ac_n "(cached) $ac_c" 1>&6
17791 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17793 cat > conftest.$ac_ext <<EOF
17794 #line 17795 "configure"
17795 #include "confdefs.h"
17797 #ifdef HAVE_DB_185_H
17798 # include <db_185.h>
17803 #ifndef DB_VERSION_MAJOR
17804 # define DB_VERSION_MAJOR 1
17808 #define NULL ((void*)0)
17813 #if DB_VERSION_MAJOR > 1
17816 int major, minor, patch;
17818 version = db_version( &major, &minor, &patch );
17820 if( major != DB_VERSION_MAJOR ||
17821 minor < DB_VERSION_MINOR )
17823 printf("Berkeley DB version mismatch\n"
17824 "\theader: %s\n\tlibrary: %s\n",
17825 DB_VERSION_STRING, version);
17831 #if DB_VERSION_MAJOR > 2
17832 db_env_create( NULL, 0 );
17833 #elif DB_VERSION_MAJOR > 1
17834 db_appexit( NULL );
17836 (void) dbopen( NULL, 0, 0, 0, NULL);
17841 if { (eval echo configure:17842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17845 echo "configure: failed program was:" >&5
17846 cat conftest.$ac_ext >&5
17856 echo "$ac_t""$ol_cv_db_db2" 1>&6
17858 if test $ol_cv_db_db2 = yes ; then
17863 if test $ol_cv_lib_db = no ; then
17864 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17865 echo "configure:17866: checking for Berkeley DB link (-ldb-2)" >&5
17866 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17867 echo $ac_n "(cached) $ac_c" 1>&6
17872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17874 cat > conftest.$ac_ext <<EOF
17875 #line 17876 "configure"
17876 #include "confdefs.h"
17878 #ifdef HAVE_DB_185_H
17879 # include <db_185.h>
17884 #ifndef DB_VERSION_MAJOR
17885 # define DB_VERSION_MAJOR 1
17889 #define NULL ((void*)0)
17894 #if DB_VERSION_MAJOR > 1
17897 int major, minor, patch;
17899 version = db_version( &major, &minor, &patch );
17901 if( major != DB_VERSION_MAJOR ||
17902 minor < DB_VERSION_MINOR )
17904 printf("Berkeley DB version mismatch\n"
17905 "\theader: %s\n\tlibrary: %s\n",
17906 DB_VERSION_STRING, version);
17912 #if DB_VERSION_MAJOR > 2
17913 db_env_create( NULL, 0 );
17914 #elif DB_VERSION_MAJOR > 1
17915 db_appexit( NULL );
17917 (void) dbopen( NULL, 0, 0, 0, NULL);
17922 if { (eval echo configure:17923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17926 echo "configure: failed program was:" >&5
17927 cat conftest.$ac_ext >&5
17937 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17939 if test $ol_cv_db_db_2 = yes ; then
17940 ol_cv_lib_db=-ldb-2
17944 if test $ol_cv_lib_db = no ; then
17945 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17946 echo "configure:17947: checking for Berkeley DB link (-ldb1)" >&5
17947 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17948 echo $ac_n "(cached) $ac_c" 1>&6
17953 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17955 cat > conftest.$ac_ext <<EOF
17956 #line 17957 "configure"
17957 #include "confdefs.h"
17959 #ifdef HAVE_DB_185_H
17960 # include <db_185.h>
17965 #ifndef DB_VERSION_MAJOR
17966 # define DB_VERSION_MAJOR 1
17970 #define NULL ((void*)0)
17975 #if DB_VERSION_MAJOR > 1
17978 int major, minor, patch;
17980 version = db_version( &major, &minor, &patch );
17982 if( major != DB_VERSION_MAJOR ||
17983 minor < DB_VERSION_MINOR )
17985 printf("Berkeley DB version mismatch\n"
17986 "\theader: %s\n\tlibrary: %s\n",
17987 DB_VERSION_STRING, version);
17993 #if DB_VERSION_MAJOR > 2
17994 db_env_create( NULL, 0 );
17995 #elif DB_VERSION_MAJOR > 1
17996 db_appexit( NULL );
17998 (void) dbopen( NULL, 0, 0, 0, NULL);
18003 if { (eval echo configure:18004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18007 echo "configure: failed program was:" >&5
18008 cat conftest.$ac_ext >&5
18018 echo "$ac_t""$ol_cv_db_db1" 1>&6
18020 if test $ol_cv_db_db1 = yes ; then
18025 if test $ol_cv_lib_db = no ; then
18026 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18027 echo "configure:18028: checking for Berkeley DB link (-ldb-1)" >&5
18028 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18029 echo $ac_n "(cached) $ac_c" 1>&6
18034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18036 cat > conftest.$ac_ext <<EOF
18037 #line 18038 "configure"
18038 #include "confdefs.h"
18040 #ifdef HAVE_DB_185_H
18041 # include <db_185.h>
18046 #ifndef DB_VERSION_MAJOR
18047 # define DB_VERSION_MAJOR 1
18051 #define NULL ((void*)0)
18056 #if DB_VERSION_MAJOR > 1
18059 int major, minor, patch;
18061 version = db_version( &major, &minor, &patch );
18063 if( major != DB_VERSION_MAJOR ||
18064 minor < DB_VERSION_MINOR )
18066 printf("Berkeley DB version mismatch\n"
18067 "\theader: %s\n\tlibrary: %s\n",
18068 DB_VERSION_STRING, version);
18074 #if DB_VERSION_MAJOR > 2
18075 db_env_create( NULL, 0 );
18076 #elif DB_VERSION_MAJOR > 1
18077 db_appexit( NULL );
18079 (void) dbopen( NULL, 0, 0, 0, NULL);
18084 if { (eval echo configure:18085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18088 echo "configure: failed program was:" >&5
18089 cat conftest.$ac_ext >&5
18099 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18101 if test $ol_cv_db_db_1 = yes ; then
18102 ol_cv_lib_db=-ldb-1
18107 if test "$ol_cv_lib_db" != no ; then
18108 ol_cv_berkeley_db=yes
18114 ol_cv_berkeley_db=no
18117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18119 echo "configure:18120: checking for $ac_hdr" >&5
18120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18121 echo $ac_n "(cached) $ac_c" 1>&6
18123 cat > conftest.$ac_ext <<EOF
18124 #line 18125 "configure"
18125 #include "confdefs.h"
18128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18129 { (eval echo configure:18130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18131 if test -z "$ac_err"; then
18133 eval "ac_cv_header_$ac_safe=yes"
18136 echo "configure: failed program was:" >&5
18137 cat conftest.$ac_ext >&5
18139 eval "ac_cv_header_$ac_safe=no"
18143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18144 echo "$ac_t""yes" 1>&6
18145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18146 cat >> confdefs.h <<EOF
18147 #define $ac_tr_hdr 1
18151 echo "$ac_t""no" 1>&6
18155 if test $ac_cv_header_db_h = yes; then
18157 if test $ol_cv_lib_db = no ; then
18158 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18159 echo "configure:18160: checking for Berkeley DB link (default)" >&5
18160 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18161 echo $ac_n "(cached) $ac_c" 1>&6
18166 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18168 cat > conftest.$ac_ext <<EOF
18169 #line 18170 "configure"
18170 #include "confdefs.h"
18172 #ifdef HAVE_DB_185_H
18173 # include <db_185.h>
18178 #ifndef DB_VERSION_MAJOR
18179 # define DB_VERSION_MAJOR 1
18183 #define NULL ((void*)0)
18188 #if DB_VERSION_MAJOR > 1
18191 int major, minor, patch;
18193 version = db_version( &major, &minor, &patch );
18195 if( major != DB_VERSION_MAJOR ||
18196 minor < DB_VERSION_MINOR )
18198 printf("Berkeley DB version mismatch\n"
18199 "\theader: %s\n\tlibrary: %s\n",
18200 DB_VERSION_STRING, version);
18206 #if DB_VERSION_MAJOR > 2
18207 db_env_create( NULL, 0 );
18208 #elif DB_VERSION_MAJOR > 1
18209 db_appexit( NULL );
18211 (void) dbopen( NULL, 0, 0, 0, NULL);
18216 if { (eval echo configure:18217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18220 echo "configure: failed program was:" >&5
18221 cat conftest.$ac_ext >&5
18231 echo "$ac_t""$ol_cv_db_none" 1>&6
18233 if test $ol_cv_db_none = yes ; then
18238 if test $ol_cv_lib_db = no ; then
18239 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18240 echo "configure:18241: checking for Berkeley DB link (-ldb43)" >&5
18241 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18242 echo $ac_n "(cached) $ac_c" 1>&6
18247 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18249 cat > conftest.$ac_ext <<EOF
18250 #line 18251 "configure"
18251 #include "confdefs.h"
18253 #ifdef HAVE_DB_185_H
18254 # include <db_185.h>
18259 #ifndef DB_VERSION_MAJOR
18260 # define DB_VERSION_MAJOR 1
18264 #define NULL ((void*)0)
18269 #if DB_VERSION_MAJOR > 1
18272 int major, minor, patch;
18274 version = db_version( &major, &minor, &patch );
18276 if( major != DB_VERSION_MAJOR ||
18277 minor < DB_VERSION_MINOR )
18279 printf("Berkeley DB version mismatch\n"
18280 "\theader: %s\n\tlibrary: %s\n",
18281 DB_VERSION_STRING, version);
18287 #if DB_VERSION_MAJOR > 2
18288 db_env_create( NULL, 0 );
18289 #elif DB_VERSION_MAJOR > 1
18290 db_appexit( NULL );
18292 (void) dbopen( NULL, 0, 0, 0, NULL);
18297 if { (eval echo configure:18298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18301 echo "configure: failed program was:" >&5
18302 cat conftest.$ac_ext >&5
18312 echo "$ac_t""$ol_cv_db_db43" 1>&6
18314 if test $ol_cv_db_db43 = yes ; then
18315 ol_cv_lib_db=-ldb43
18319 if test $ol_cv_lib_db = no ; then
18320 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
18321 echo "configure:18322: checking for Berkeley DB link (-ldb-43)" >&5
18322 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
18323 echo $ac_n "(cached) $ac_c" 1>&6
18328 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18330 cat > conftest.$ac_ext <<EOF
18331 #line 18332 "configure"
18332 #include "confdefs.h"
18334 #ifdef HAVE_DB_185_H
18335 # include <db_185.h>
18340 #ifndef DB_VERSION_MAJOR
18341 # define DB_VERSION_MAJOR 1
18345 #define NULL ((void*)0)
18350 #if DB_VERSION_MAJOR > 1
18353 int major, minor, patch;
18355 version = db_version( &major, &minor, &patch );
18357 if( major != DB_VERSION_MAJOR ||
18358 minor < DB_VERSION_MINOR )
18360 printf("Berkeley DB version mismatch\n"
18361 "\theader: %s\n\tlibrary: %s\n",
18362 DB_VERSION_STRING, version);
18368 #if DB_VERSION_MAJOR > 2
18369 db_env_create( NULL, 0 );
18370 #elif DB_VERSION_MAJOR > 1
18371 db_appexit( NULL );
18373 (void) dbopen( NULL, 0, 0, 0, NULL);
18378 if { (eval echo configure:18379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18382 echo "configure: failed program was:" >&5
18383 cat conftest.$ac_ext >&5
18393 echo "$ac_t""$ol_cv_db_db_43" 1>&6
18395 if test $ol_cv_db_db_43 = yes ; then
18396 ol_cv_lib_db=-ldb-43
18400 if test $ol_cv_lib_db = no ; then
18401 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
18402 echo "configure:18403: checking for Berkeley DB link (-ldb-4.3)" >&5
18403 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
18404 echo $ac_n "(cached) $ac_c" 1>&6
18409 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18411 cat > conftest.$ac_ext <<EOF
18412 #line 18413 "configure"
18413 #include "confdefs.h"
18415 #ifdef HAVE_DB_185_H
18416 # include <db_185.h>
18421 #ifndef DB_VERSION_MAJOR
18422 # define DB_VERSION_MAJOR 1
18426 #define NULL ((void*)0)
18431 #if DB_VERSION_MAJOR > 1
18434 int major, minor, patch;
18436 version = db_version( &major, &minor, &patch );
18438 if( major != DB_VERSION_MAJOR ||
18439 minor < DB_VERSION_MINOR )
18441 printf("Berkeley DB version mismatch\n"
18442 "\theader: %s\n\tlibrary: %s\n",
18443 DB_VERSION_STRING, version);
18449 #if DB_VERSION_MAJOR > 2
18450 db_env_create( NULL, 0 );
18451 #elif DB_VERSION_MAJOR > 1
18452 db_appexit( NULL );
18454 (void) dbopen( NULL, 0, 0, 0, NULL);
18459 if { (eval echo configure:18460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18461 ol_cv_db_db_4_dot_3=yes
18463 echo "configure: failed program was:" >&5
18464 cat conftest.$ac_ext >&5
18466 ol_cv_db_db_4_dot_3=no
18474 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
18476 if test $ol_cv_db_db_4_dot_3 = yes ; then
18477 ol_cv_lib_db=-ldb-4.3
18481 if test $ol_cv_lib_db = no ; then
18482 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
18483 echo "configure:18484: checking for Berkeley DB link (-ldb-4-3)" >&5
18484 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
18485 echo $ac_n "(cached) $ac_c" 1>&6
18490 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18492 cat > conftest.$ac_ext <<EOF
18493 #line 18494 "configure"
18494 #include "confdefs.h"
18496 #ifdef HAVE_DB_185_H
18497 # include <db_185.h>
18502 #ifndef DB_VERSION_MAJOR
18503 # define DB_VERSION_MAJOR 1
18507 #define NULL ((void*)0)
18512 #if DB_VERSION_MAJOR > 1
18515 int major, minor, patch;
18517 version = db_version( &major, &minor, &patch );
18519 if( major != DB_VERSION_MAJOR ||
18520 minor < DB_VERSION_MINOR )
18522 printf("Berkeley DB version mismatch\n"
18523 "\theader: %s\n\tlibrary: %s\n",
18524 DB_VERSION_STRING, version);
18530 #if DB_VERSION_MAJOR > 2
18531 db_env_create( NULL, 0 );
18532 #elif DB_VERSION_MAJOR > 1
18533 db_appexit( NULL );
18535 (void) dbopen( NULL, 0, 0, 0, NULL);
18540 if { (eval echo configure:18541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18542 ol_cv_db_db_4_3=yes
18544 echo "configure: failed program was:" >&5
18545 cat conftest.$ac_ext >&5
18555 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
18557 if test $ol_cv_db_db_4_3 = yes ; then
18558 ol_cv_lib_db=-ldb-4-3
18562 if test $ol_cv_lib_db = no ; then
18563 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18564 echo "configure:18565: checking for Berkeley DB link (-ldb42)" >&5
18565 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18566 echo $ac_n "(cached) $ac_c" 1>&6
18571 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18573 cat > conftest.$ac_ext <<EOF
18574 #line 18575 "configure"
18575 #include "confdefs.h"
18577 #ifdef HAVE_DB_185_H
18578 # include <db_185.h>
18583 #ifndef DB_VERSION_MAJOR
18584 # define DB_VERSION_MAJOR 1
18588 #define NULL ((void*)0)
18593 #if DB_VERSION_MAJOR > 1
18596 int major, minor, patch;
18598 version = db_version( &major, &minor, &patch );
18600 if( major != DB_VERSION_MAJOR ||
18601 minor < DB_VERSION_MINOR )
18603 printf("Berkeley DB version mismatch\n"
18604 "\theader: %s\n\tlibrary: %s\n",
18605 DB_VERSION_STRING, version);
18611 #if DB_VERSION_MAJOR > 2
18612 db_env_create( NULL, 0 );
18613 #elif DB_VERSION_MAJOR > 1
18614 db_appexit( NULL );
18616 (void) dbopen( NULL, 0, 0, 0, NULL);
18621 if { (eval echo configure:18622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18625 echo "configure: failed program was:" >&5
18626 cat conftest.$ac_ext >&5
18636 echo "$ac_t""$ol_cv_db_db42" 1>&6
18638 if test $ol_cv_db_db42 = yes ; then
18639 ol_cv_lib_db=-ldb42
18643 if test $ol_cv_lib_db = no ; then
18644 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18645 echo "configure:18646: checking for Berkeley DB link (-ldb-42)" >&5
18646 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18647 echo $ac_n "(cached) $ac_c" 1>&6
18652 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18654 cat > conftest.$ac_ext <<EOF
18655 #line 18656 "configure"
18656 #include "confdefs.h"
18658 #ifdef HAVE_DB_185_H
18659 # include <db_185.h>
18664 #ifndef DB_VERSION_MAJOR
18665 # define DB_VERSION_MAJOR 1
18669 #define NULL ((void*)0)
18674 #if DB_VERSION_MAJOR > 1
18677 int major, minor, patch;
18679 version = db_version( &major, &minor, &patch );
18681 if( major != DB_VERSION_MAJOR ||
18682 minor < DB_VERSION_MINOR )
18684 printf("Berkeley DB version mismatch\n"
18685 "\theader: %s\n\tlibrary: %s\n",
18686 DB_VERSION_STRING, version);
18692 #if DB_VERSION_MAJOR > 2
18693 db_env_create( NULL, 0 );
18694 #elif DB_VERSION_MAJOR > 1
18695 db_appexit( NULL );
18697 (void) dbopen( NULL, 0, 0, 0, NULL);
18702 if { (eval echo configure:18703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18706 echo "configure: failed program was:" >&5
18707 cat conftest.$ac_ext >&5
18717 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18719 if test $ol_cv_db_db_42 = yes ; then
18720 ol_cv_lib_db=-ldb-42
18724 if test $ol_cv_lib_db = no ; then
18725 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18726 echo "configure:18727: checking for Berkeley DB link (-ldb-4.2)" >&5
18727 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18728 echo $ac_n "(cached) $ac_c" 1>&6
18733 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18735 cat > conftest.$ac_ext <<EOF
18736 #line 18737 "configure"
18737 #include "confdefs.h"
18739 #ifdef HAVE_DB_185_H
18740 # include <db_185.h>
18745 #ifndef DB_VERSION_MAJOR
18746 # define DB_VERSION_MAJOR 1
18750 #define NULL ((void*)0)
18755 #if DB_VERSION_MAJOR > 1
18758 int major, minor, patch;
18760 version = db_version( &major, &minor, &patch );
18762 if( major != DB_VERSION_MAJOR ||
18763 minor < DB_VERSION_MINOR )
18765 printf("Berkeley DB version mismatch\n"
18766 "\theader: %s\n\tlibrary: %s\n",
18767 DB_VERSION_STRING, version);
18773 #if DB_VERSION_MAJOR > 2
18774 db_env_create( NULL, 0 );
18775 #elif DB_VERSION_MAJOR > 1
18776 db_appexit( NULL );
18778 (void) dbopen( NULL, 0, 0, 0, NULL);
18783 if { (eval echo configure:18784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18785 ol_cv_db_db_4_dot_2=yes
18787 echo "configure: failed program was:" >&5
18788 cat conftest.$ac_ext >&5
18790 ol_cv_db_db_4_dot_2=no
18798 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18800 if test $ol_cv_db_db_4_dot_2 = yes ; then
18801 ol_cv_lib_db=-ldb-4.2
18805 if test $ol_cv_lib_db = no ; then
18806 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18807 echo "configure:18808: checking for Berkeley DB link (-ldb-4-2)" >&5
18808 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18809 echo $ac_n "(cached) $ac_c" 1>&6
18814 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18816 cat > conftest.$ac_ext <<EOF
18817 #line 18818 "configure"
18818 #include "confdefs.h"
18820 #ifdef HAVE_DB_185_H
18821 # include <db_185.h>
18826 #ifndef DB_VERSION_MAJOR
18827 # define DB_VERSION_MAJOR 1
18831 #define NULL ((void*)0)
18836 #if DB_VERSION_MAJOR > 1
18839 int major, minor, patch;
18841 version = db_version( &major, &minor, &patch );
18843 if( major != DB_VERSION_MAJOR ||
18844 minor < DB_VERSION_MINOR )
18846 printf("Berkeley DB version mismatch\n"
18847 "\theader: %s\n\tlibrary: %s\n",
18848 DB_VERSION_STRING, version);
18854 #if DB_VERSION_MAJOR > 2
18855 db_env_create( NULL, 0 );
18856 #elif DB_VERSION_MAJOR > 1
18857 db_appexit( NULL );
18859 (void) dbopen( NULL, 0, 0, 0, NULL);
18864 if { (eval echo configure:18865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18866 ol_cv_db_db_4_2=yes
18868 echo "configure: failed program was:" >&5
18869 cat conftest.$ac_ext >&5
18879 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18881 if test $ol_cv_db_db_4_2 = yes ; then
18882 ol_cv_lib_db=-ldb-4-2
18886 if test $ol_cv_lib_db = no ; then
18887 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18888 echo "configure:18889: checking for Berkeley DB link (-ldb-4)" >&5
18889 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18890 echo $ac_n "(cached) $ac_c" 1>&6
18895 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18897 cat > conftest.$ac_ext <<EOF
18898 #line 18899 "configure"
18899 #include "confdefs.h"
18901 #ifdef HAVE_DB_185_H
18902 # include <db_185.h>
18907 #ifndef DB_VERSION_MAJOR
18908 # define DB_VERSION_MAJOR 1
18912 #define NULL ((void*)0)
18917 #if DB_VERSION_MAJOR > 1
18920 int major, minor, patch;
18922 version = db_version( &major, &minor, &patch );
18924 if( major != DB_VERSION_MAJOR ||
18925 minor < DB_VERSION_MINOR )
18927 printf("Berkeley DB version mismatch\n"
18928 "\theader: %s\n\tlibrary: %s\n",
18929 DB_VERSION_STRING, version);
18935 #if DB_VERSION_MAJOR > 2
18936 db_env_create( NULL, 0 );
18937 #elif DB_VERSION_MAJOR > 1
18938 db_appexit( NULL );
18940 (void) dbopen( NULL, 0, 0, 0, NULL);
18945 if { (eval echo configure:18946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18949 echo "configure: failed program was:" >&5
18950 cat conftest.$ac_ext >&5
18960 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18962 if test $ol_cv_db_db_4 = yes ; then
18963 ol_cv_lib_db=-ldb-4
18967 if test $ol_cv_lib_db = no ; then
18968 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18969 echo "configure:18970: checking for Berkeley DB link (-ldb4)" >&5
18970 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18971 echo $ac_n "(cached) $ac_c" 1>&6
18976 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18978 cat > conftest.$ac_ext <<EOF
18979 #line 18980 "configure"
18980 #include "confdefs.h"
18982 #ifdef HAVE_DB_185_H
18983 # include <db_185.h>
18988 #ifndef DB_VERSION_MAJOR
18989 # define DB_VERSION_MAJOR 1
18993 #define NULL ((void*)0)
18998 #if DB_VERSION_MAJOR > 1
19001 int major, minor, patch;
19003 version = db_version( &major, &minor, &patch );
19005 if( major != DB_VERSION_MAJOR ||
19006 minor < DB_VERSION_MINOR )
19008 printf("Berkeley DB version mismatch\n"
19009 "\theader: %s\n\tlibrary: %s\n",
19010 DB_VERSION_STRING, version);
19016 #if DB_VERSION_MAJOR > 2
19017 db_env_create( NULL, 0 );
19018 #elif DB_VERSION_MAJOR > 1
19019 db_appexit( NULL );
19021 (void) dbopen( NULL, 0, 0, 0, NULL);
19026 if { (eval echo configure:19027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19030 echo "configure: failed program was:" >&5
19031 cat conftest.$ac_ext >&5
19041 echo "$ac_t""$ol_cv_db_db4" 1>&6
19043 if test $ol_cv_db_db4 = yes ; then
19048 if test $ol_cv_lib_db = no ; then
19049 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19050 echo "configure:19051: checking for Berkeley DB link (-ldb)" >&5
19051 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19052 echo $ac_n "(cached) $ac_c" 1>&6
19057 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19059 cat > conftest.$ac_ext <<EOF
19060 #line 19061 "configure"
19061 #include "confdefs.h"
19063 #ifdef HAVE_DB_185_H
19064 # include <db_185.h>
19069 #ifndef DB_VERSION_MAJOR
19070 # define DB_VERSION_MAJOR 1
19074 #define NULL ((void*)0)
19079 #if DB_VERSION_MAJOR > 1
19082 int major, minor, patch;
19084 version = db_version( &major, &minor, &patch );
19086 if( major != DB_VERSION_MAJOR ||
19087 minor < DB_VERSION_MINOR )
19089 printf("Berkeley DB version mismatch\n"
19090 "\theader: %s\n\tlibrary: %s\n",
19091 DB_VERSION_STRING, version);
19097 #if DB_VERSION_MAJOR > 2
19098 db_env_create( NULL, 0 );
19099 #elif DB_VERSION_MAJOR > 1
19100 db_appexit( NULL );
19102 (void) dbopen( NULL, 0, 0, 0, NULL);
19107 if { (eval echo configure:19108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19111 echo "configure: failed program was:" >&5
19112 cat conftest.$ac_ext >&5
19122 echo "$ac_t""$ol_cv_db_db" 1>&6
19124 if test $ol_cv_db_db = yes ; then
19129 if test $ol_cv_lib_db = no ; then
19130 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19131 echo "configure:19132: checking for Berkeley DB link (-ldb41)" >&5
19132 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19133 echo $ac_n "(cached) $ac_c" 1>&6
19138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19140 cat > conftest.$ac_ext <<EOF
19141 #line 19142 "configure"
19142 #include "confdefs.h"
19144 #ifdef HAVE_DB_185_H
19145 # include <db_185.h>
19150 #ifndef DB_VERSION_MAJOR
19151 # define DB_VERSION_MAJOR 1
19155 #define NULL ((void*)0)
19160 #if DB_VERSION_MAJOR > 1
19163 int major, minor, patch;
19165 version = db_version( &major, &minor, &patch );
19167 if( major != DB_VERSION_MAJOR ||
19168 minor < DB_VERSION_MINOR )
19170 printf("Berkeley DB version mismatch\n"
19171 "\theader: %s\n\tlibrary: %s\n",
19172 DB_VERSION_STRING, version);
19178 #if DB_VERSION_MAJOR > 2
19179 db_env_create( NULL, 0 );
19180 #elif DB_VERSION_MAJOR > 1
19181 db_appexit( NULL );
19183 (void) dbopen( NULL, 0, 0, 0, NULL);
19188 if { (eval echo configure:19189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19192 echo "configure: failed program was:" >&5
19193 cat conftest.$ac_ext >&5
19203 echo "$ac_t""$ol_cv_db_db41" 1>&6
19205 if test $ol_cv_db_db41 = yes ; then
19206 ol_cv_lib_db=-ldb41
19210 if test $ol_cv_lib_db = no ; then
19211 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19212 echo "configure:19213: checking for Berkeley DB link (-ldb-41)" >&5
19213 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19214 echo $ac_n "(cached) $ac_c" 1>&6
19219 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19221 cat > conftest.$ac_ext <<EOF
19222 #line 19223 "configure"
19223 #include "confdefs.h"
19225 #ifdef HAVE_DB_185_H
19226 # include <db_185.h>
19231 #ifndef DB_VERSION_MAJOR
19232 # define DB_VERSION_MAJOR 1
19236 #define NULL ((void*)0)
19241 #if DB_VERSION_MAJOR > 1
19244 int major, minor, patch;
19246 version = db_version( &major, &minor, &patch );
19248 if( major != DB_VERSION_MAJOR ||
19249 minor < DB_VERSION_MINOR )
19251 printf("Berkeley DB version mismatch\n"
19252 "\theader: %s\n\tlibrary: %s\n",
19253 DB_VERSION_STRING, version);
19259 #if DB_VERSION_MAJOR > 2
19260 db_env_create( NULL, 0 );
19261 #elif DB_VERSION_MAJOR > 1
19262 db_appexit( NULL );
19264 (void) dbopen( NULL, 0, 0, 0, NULL);
19269 if { (eval echo configure:19270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19273 echo "configure: failed program was:" >&5
19274 cat conftest.$ac_ext >&5
19284 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19286 if test $ol_cv_db_db_41 = yes ; then
19287 ol_cv_lib_db=-ldb-41
19291 if test $ol_cv_lib_db = no ; then
19292 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19293 echo "configure:19294: checking for Berkeley DB link (-ldb-4.1)" >&5
19294 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19295 echo $ac_n "(cached) $ac_c" 1>&6
19300 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19302 cat > conftest.$ac_ext <<EOF
19303 #line 19304 "configure"
19304 #include "confdefs.h"
19306 #ifdef HAVE_DB_185_H
19307 # include <db_185.h>
19312 #ifndef DB_VERSION_MAJOR
19313 # define DB_VERSION_MAJOR 1
19317 #define NULL ((void*)0)
19322 #if DB_VERSION_MAJOR > 1
19325 int major, minor, patch;
19327 version = db_version( &major, &minor, &patch );
19329 if( major != DB_VERSION_MAJOR ||
19330 minor < DB_VERSION_MINOR )
19332 printf("Berkeley DB version mismatch\n"
19333 "\theader: %s\n\tlibrary: %s\n",
19334 DB_VERSION_STRING, version);
19340 #if DB_VERSION_MAJOR > 2
19341 db_env_create( NULL, 0 );
19342 #elif DB_VERSION_MAJOR > 1
19343 db_appexit( NULL );
19345 (void) dbopen( NULL, 0, 0, 0, NULL);
19350 if { (eval echo configure:19351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19352 ol_cv_db_db_4_dot_1=yes
19354 echo "configure: failed program was:" >&5
19355 cat conftest.$ac_ext >&5
19357 ol_cv_db_db_4_dot_1=no
19365 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19367 if test $ol_cv_db_db_4_dot_1 = yes ; then
19368 ol_cv_lib_db=-ldb-4.1
19372 if test $ol_cv_lib_db = no ; then
19373 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19374 echo "configure:19375: checking for Berkeley DB link (-ldb-4-1)" >&5
19375 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19376 echo $ac_n "(cached) $ac_c" 1>&6
19381 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19383 cat > conftest.$ac_ext <<EOF
19384 #line 19385 "configure"
19385 #include "confdefs.h"
19387 #ifdef HAVE_DB_185_H
19388 # include <db_185.h>
19393 #ifndef DB_VERSION_MAJOR
19394 # define DB_VERSION_MAJOR 1
19398 #define NULL ((void*)0)
19403 #if DB_VERSION_MAJOR > 1
19406 int major, minor, patch;
19408 version = db_version( &major, &minor, &patch );
19410 if( major != DB_VERSION_MAJOR ||
19411 minor < DB_VERSION_MINOR )
19413 printf("Berkeley DB version mismatch\n"
19414 "\theader: %s\n\tlibrary: %s\n",
19415 DB_VERSION_STRING, version);
19421 #if DB_VERSION_MAJOR > 2
19422 db_env_create( NULL, 0 );
19423 #elif DB_VERSION_MAJOR > 1
19424 db_appexit( NULL );
19426 (void) dbopen( NULL, 0, 0, 0, NULL);
19431 if { (eval echo configure:19432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19433 ol_cv_db_db_4_1=yes
19435 echo "configure: failed program was:" >&5
19436 cat conftest.$ac_ext >&5
19446 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19448 if test $ol_cv_db_db_4_1 = yes ; then
19449 ol_cv_lib_db=-ldb-4-1
19453 if test $ol_cv_lib_db = no ; then
19454 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19455 echo "configure:19456: checking for Berkeley DB link (-ldb3)" >&5
19456 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19457 echo $ac_n "(cached) $ac_c" 1>&6
19462 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19464 cat > conftest.$ac_ext <<EOF
19465 #line 19466 "configure"
19466 #include "confdefs.h"
19468 #ifdef HAVE_DB_185_H
19469 # include <db_185.h>
19474 #ifndef DB_VERSION_MAJOR
19475 # define DB_VERSION_MAJOR 1
19479 #define NULL ((void*)0)
19484 #if DB_VERSION_MAJOR > 1
19487 int major, minor, patch;
19489 version = db_version( &major, &minor, &patch );
19491 if( major != DB_VERSION_MAJOR ||
19492 minor < DB_VERSION_MINOR )
19494 printf("Berkeley DB version mismatch\n"
19495 "\theader: %s\n\tlibrary: %s\n",
19496 DB_VERSION_STRING, version);
19502 #if DB_VERSION_MAJOR > 2
19503 db_env_create( NULL, 0 );
19504 #elif DB_VERSION_MAJOR > 1
19505 db_appexit( NULL );
19507 (void) dbopen( NULL, 0, 0, 0, NULL);
19512 if { (eval echo configure:19513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19516 echo "configure: failed program was:" >&5
19517 cat conftest.$ac_ext >&5
19527 echo "$ac_t""$ol_cv_db_db3" 1>&6
19529 if test $ol_cv_db_db3 = yes ; then
19534 if test $ol_cv_lib_db = no ; then
19535 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19536 echo "configure:19537: checking for Berkeley DB link (-ldb-3)" >&5
19537 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19538 echo $ac_n "(cached) $ac_c" 1>&6
19543 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19545 cat > conftest.$ac_ext <<EOF
19546 #line 19547 "configure"
19547 #include "confdefs.h"
19549 #ifdef HAVE_DB_185_H
19550 # include <db_185.h>
19555 #ifndef DB_VERSION_MAJOR
19556 # define DB_VERSION_MAJOR 1
19560 #define NULL ((void*)0)
19565 #if DB_VERSION_MAJOR > 1
19568 int major, minor, patch;
19570 version = db_version( &major, &minor, &patch );
19572 if( major != DB_VERSION_MAJOR ||
19573 minor < DB_VERSION_MINOR )
19575 printf("Berkeley DB version mismatch\n"
19576 "\theader: %s\n\tlibrary: %s\n",
19577 DB_VERSION_STRING, version);
19583 #if DB_VERSION_MAJOR > 2
19584 db_env_create( NULL, 0 );
19585 #elif DB_VERSION_MAJOR > 1
19586 db_appexit( NULL );
19588 (void) dbopen( NULL, 0, 0, 0, NULL);
19593 if { (eval echo configure:19594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19597 echo "configure: failed program was:" >&5
19598 cat conftest.$ac_ext >&5
19608 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19610 if test $ol_cv_db_db_3 = yes ; then
19611 ol_cv_lib_db=-ldb-3
19615 if test $ol_cv_lib_db = no ; then
19616 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19617 echo "configure:19618: checking for Berkeley DB link (-ldb2)" >&5
19618 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19619 echo $ac_n "(cached) $ac_c" 1>&6
19624 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19626 cat > conftest.$ac_ext <<EOF
19627 #line 19628 "configure"
19628 #include "confdefs.h"
19630 #ifdef HAVE_DB_185_H
19631 # include <db_185.h>
19636 #ifndef DB_VERSION_MAJOR
19637 # define DB_VERSION_MAJOR 1
19641 #define NULL ((void*)0)
19646 #if DB_VERSION_MAJOR > 1
19649 int major, minor, patch;
19651 version = db_version( &major, &minor, &patch );
19653 if( major != DB_VERSION_MAJOR ||
19654 minor < DB_VERSION_MINOR )
19656 printf("Berkeley DB version mismatch\n"
19657 "\theader: %s\n\tlibrary: %s\n",
19658 DB_VERSION_STRING, version);
19664 #if DB_VERSION_MAJOR > 2
19665 db_env_create( NULL, 0 );
19666 #elif DB_VERSION_MAJOR > 1
19667 db_appexit( NULL );
19669 (void) dbopen( NULL, 0, 0, 0, NULL);
19674 if { (eval echo configure:19675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19678 echo "configure: failed program was:" >&5
19679 cat conftest.$ac_ext >&5
19689 echo "$ac_t""$ol_cv_db_db2" 1>&6
19691 if test $ol_cv_db_db2 = yes ; then
19696 if test $ol_cv_lib_db = no ; then
19697 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19698 echo "configure:19699: checking for Berkeley DB link (-ldb-2)" >&5
19699 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19700 echo $ac_n "(cached) $ac_c" 1>&6
19705 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19707 cat > conftest.$ac_ext <<EOF
19708 #line 19709 "configure"
19709 #include "confdefs.h"
19711 #ifdef HAVE_DB_185_H
19712 # include <db_185.h>
19717 #ifndef DB_VERSION_MAJOR
19718 # define DB_VERSION_MAJOR 1
19722 #define NULL ((void*)0)
19727 #if DB_VERSION_MAJOR > 1
19730 int major, minor, patch;
19732 version = db_version( &major, &minor, &patch );
19734 if( major != DB_VERSION_MAJOR ||
19735 minor < DB_VERSION_MINOR )
19737 printf("Berkeley DB version mismatch\n"
19738 "\theader: %s\n\tlibrary: %s\n",
19739 DB_VERSION_STRING, version);
19745 #if DB_VERSION_MAJOR > 2
19746 db_env_create( NULL, 0 );
19747 #elif DB_VERSION_MAJOR > 1
19748 db_appexit( NULL );
19750 (void) dbopen( NULL, 0, 0, 0, NULL);
19755 if { (eval echo configure:19756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19759 echo "configure: failed program was:" >&5
19760 cat conftest.$ac_ext >&5
19770 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19772 if test $ol_cv_db_db_2 = yes ; then
19773 ol_cv_lib_db=-ldb-2
19777 if test $ol_cv_lib_db = no ; then
19778 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19779 echo "configure:19780: checking for Berkeley DB link (-ldb1)" >&5
19780 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19781 echo $ac_n "(cached) $ac_c" 1>&6
19786 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19788 cat > conftest.$ac_ext <<EOF
19789 #line 19790 "configure"
19790 #include "confdefs.h"
19792 #ifdef HAVE_DB_185_H
19793 # include <db_185.h>
19798 #ifndef DB_VERSION_MAJOR
19799 # define DB_VERSION_MAJOR 1
19803 #define NULL ((void*)0)
19808 #if DB_VERSION_MAJOR > 1
19811 int major, minor, patch;
19813 version = db_version( &major, &minor, &patch );
19815 if( major != DB_VERSION_MAJOR ||
19816 minor < DB_VERSION_MINOR )
19818 printf("Berkeley DB version mismatch\n"
19819 "\theader: %s\n\tlibrary: %s\n",
19820 DB_VERSION_STRING, version);
19826 #if DB_VERSION_MAJOR > 2
19827 db_env_create( NULL, 0 );
19828 #elif DB_VERSION_MAJOR > 1
19829 db_appexit( NULL );
19831 (void) dbopen( NULL, 0, 0, 0, NULL);
19836 if { (eval echo configure:19837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19840 echo "configure: failed program was:" >&5
19841 cat conftest.$ac_ext >&5
19851 echo "$ac_t""$ol_cv_db_db1" 1>&6
19853 if test $ol_cv_db_db1 = yes ; then
19858 if test $ol_cv_lib_db = no ; then
19859 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19860 echo "configure:19861: checking for Berkeley DB link (-ldb-1)" >&5
19861 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19862 echo $ac_n "(cached) $ac_c" 1>&6
19867 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19869 cat > conftest.$ac_ext <<EOF
19870 #line 19871 "configure"
19871 #include "confdefs.h"
19873 #ifdef HAVE_DB_185_H
19874 # include <db_185.h>
19879 #ifndef DB_VERSION_MAJOR
19880 # define DB_VERSION_MAJOR 1
19884 #define NULL ((void*)0)
19889 #if DB_VERSION_MAJOR > 1
19892 int major, minor, patch;
19894 version = db_version( &major, &minor, &patch );
19896 if( major != DB_VERSION_MAJOR ||
19897 minor < DB_VERSION_MINOR )
19899 printf("Berkeley DB version mismatch\n"
19900 "\theader: %s\n\tlibrary: %s\n",
19901 DB_VERSION_STRING, version);
19907 #if DB_VERSION_MAJOR > 2
19908 db_env_create( NULL, 0 );
19909 #elif DB_VERSION_MAJOR > 1
19910 db_appexit( NULL );
19912 (void) dbopen( NULL, 0, 0, 0, NULL);
19917 if { (eval echo configure:19918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19921 echo "configure: failed program was:" >&5
19922 cat conftest.$ac_ext >&5
19932 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19934 if test $ol_cv_db_db_1 = yes ; then
19935 ol_cv_lib_db=-ldb-1
19940 if test "$ol_cv_lib_db" != no ; then
19941 ol_cv_berkeley_db=yes
19942 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
19943 echo "configure:19944: checking for Berkeley DB version match" >&5
19944 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
19945 echo $ac_n "(cached) $ac_c" 1>&6
19949 LIBS="$LTHREAD_LIBS $LIBS"
19950 if test $ol_cv_lib_db != yes ; then
19951 LIBS="$ol_cv_lib_db $LIBS"
19954 if test "$cross_compiling" = yes; then
19955 ol_cv_berkeley_db_version=cross
19957 cat > conftest.$ac_ext <<EOF
19958 #line 19959 "configure"
19959 #include "confdefs.h"
19961 #ifdef HAVE_DB_185_H
19966 #ifndef DB_VERSION_MAJOR
19967 # define DB_VERSION_MAJOR 1
19970 #define NULL ((void *)0)
19974 #if DB_VERSION_MAJOR > 1
19976 int major, minor, patch;
19978 version = db_version( &major, &minor, &patch );
19980 if( major != DB_VERSION_MAJOR ||
19981 minor != DB_VERSION_MINOR ||
19982 patch != DB_VERSION_PATCH )
19984 printf("Berkeley DB version mismatch\n"
19985 "\theader: %s\n\tlibrary: %s\n",
19986 DB_VERSION_STRING, version);
19994 if { (eval echo configure:19995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
19996 ol_cv_berkeley_db_version=yes
19998 echo "configure: failed program was:" >&5
19999 cat conftest.$ac_ext >&5
20001 ol_cv_berkeley_db_version=no
20011 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20013 if test $ol_cv_berkeley_db_version = no ; then
20014 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20017 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20018 echo "configure:20019: checking for Berkeley DB thread support" >&5
20019 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20020 echo $ac_n "(cached) $ac_c" 1>&6
20024 LIBS="$LTHREAD_LIBS $LIBS"
20025 if test $ol_cv_lib_db != yes ; then
20026 LIBS="$ol_cv_lib_db $LIBS"
20029 if test "$cross_compiling" = yes; then
20030 ol_cv_berkeley_db_thread=cross
20032 cat > conftest.$ac_ext <<EOF
20033 #line 20034 "configure"
20034 #include "confdefs.h"
20036 #ifdef HAVE_DB_185_H
20042 #define NULL ((void *)0)
20047 u_int32_t flags = DB_CREATE |
20053 #if DB_VERSION_MAJOR > 2
20054 DB_ENV *env = NULL;
20056 rc = db_env_create( &env, 0 );
20058 flags |= DB_INIT_MPOOL;
20059 #ifdef DB_MPOOL_PRIVATE
20060 flags |= DB_MPOOL_PRIVATE;
20064 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20068 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20069 rc = env->open( env, NULL, flags, 0 );
20071 rc = env->open( env, NULL, NULL, flags, 0 );
20075 rc = env->close( env, 0 );
20079 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20085 memset( &env, '\0', sizeof(env) );
20087 rc = db_appinit( NULL, NULL, &env, flags );
20090 db_appexit( &env );
20093 unlink("__db_mpool.share");
20094 unlink("__db_lock.share");
20100 if { (eval echo configure:20101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20102 ol_cv_berkeley_db_thread=yes
20104 echo "configure: failed program was:" >&5
20105 cat conftest.$ac_ext >&5
20107 ol_cv_berkeley_db_thread=no
20117 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20119 if test $ol_cv_berkeley_db_thread != no ; then
20120 cat >> confdefs.h <<\EOF
20121 #define HAVE_BERKELEY_DB_THREAD 1
20131 if test $ol_cv_berkeley_db != no ; then
20132 cat >> confdefs.h <<\EOF
20133 #define HAVE_BERKELEY_DB 1
20137 ol_link_ldbm=berkeley
20138 ol_with_ldbm_api=berkeley
20140 if test $ol_with_ldbm_type = hash ; then
20141 cat >> confdefs.h <<\EOF
20142 #define LDBM_USE_DBHASH 1
20146 cat >> confdefs.h <<\EOF
20147 #define LDBM_USE_DBBTREE 1
20152 if test $ol_cv_lib_db != yes ; then
20153 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20158 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20159 if test $ol_link_ldbm != berkeley ; then
20160 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20162 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20163 echo "configure:20164: checking Berkeley DB version for BDB backend" >&5
20164 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20165 echo $ac_n "(cached) $ac_c" 1>&6
20168 cat > conftest.$ac_ext <<EOF
20169 #line 20170 "configure"
20170 #include "confdefs.h"
20174 /* this check could be improved */
20175 #ifndef DB_VERSION_MAJOR
20176 # define DB_VERSION_MAJOR 1
20178 #ifndef DB_VERSION_MINOR
20179 # define DB_VERSION_MINOR 0
20182 /* require 4.2 or later */
20183 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20184 __db_version_compat
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189 egrep "__db_version_compat" >/dev/null 2>&1; then
20191 ol_cv_bdb_compat=yes
20194 ol_cv_bdb_compat=no
20200 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20203 if test $ol_cv_bdb_compat != yes ; then
20204 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20209 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20210 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20211 ol_with_ldbm_api=none
20214 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20215 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20216 echo "configure:20217: checking for MDBM library" >&5
20217 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20218 echo $ac_n "(cached) $ac_c" 1>&6
20221 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20222 echo "configure:20223: checking for mdbm_set_chain" >&5
20223 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20224 echo $ac_n "(cached) $ac_c" 1>&6
20226 cat > conftest.$ac_ext <<EOF
20227 #line 20228 "configure"
20228 #include "confdefs.h"
20229 /* System header to define __stub macros and hopefully few prototypes,
20230 which can conflict with char mdbm_set_chain(); below. */
20231 #include <assert.h>
20232 /* Override any gcc2 internal prototype to avoid an error. */
20233 /* We use char because int might match the return type of a gcc2
20234 builtin and then its argument prototype would still apply. */
20235 char mdbm_set_chain();
20240 /* The GNU C library defines this for functions which it implements
20241 to always fail with ENOSYS. Some functions are actually named
20242 something starting with __ and the normal name is an alias. */
20243 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20246 f = mdbm_set_chain;
20251 if { (eval echo configure:20252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20253 eval "ac_cv_func_mdbm_set_chain=yes"
20255 echo "configure: failed program was:" >&5
20256 cat conftest.$ac_ext >&5
20258 eval "ac_cv_func_mdbm_set_chain=no"
20263 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20264 echo "$ac_t""yes" 1>&6
20267 echo "$ac_t""no" 1>&6
20269 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20270 echo "configure:20271: checking for mdbm_set_chain in -lmdbm" >&5
20271 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20273 echo $ac_n "(cached) $ac_c" 1>&6
20275 ac_save_LIBS="$LIBS"
20276 LIBS="-lmdbm $LIBS"
20277 cat > conftest.$ac_ext <<EOF
20278 #line 20279 "configure"
20279 #include "confdefs.h"
20280 /* Override any gcc2 internal prototype to avoid an error. */
20281 /* We use char because int might match the return type of a gcc2
20282 builtin and then its argument prototype would still apply. */
20283 char mdbm_set_chain();
20289 if { (eval echo configure:20290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20291 eval "ac_cv_lib_$ac_lib_var=yes"
20293 echo "configure: failed program was:" >&5
20294 cat conftest.$ac_ext >&5
20296 eval "ac_cv_lib_$ac_lib_var=no"
20299 LIBS="$ac_save_LIBS"
20302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20303 echo "$ac_t""yes" 1>&6
20304 ol_cv_lib_mdbm=-lmdbm
20306 echo "$ac_t""no" 1>&6
20317 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20320 for ac_hdr in mdbm.h
20322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20324 echo "configure:20325: checking for $ac_hdr" >&5
20325 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20326 echo $ac_n "(cached) $ac_c" 1>&6
20328 cat > conftest.$ac_ext <<EOF
20329 #line 20330 "configure"
20330 #include "confdefs.h"
20333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20334 { (eval echo configure:20335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20336 if test -z "$ac_err"; then
20338 eval "ac_cv_header_$ac_safe=yes"
20341 echo "configure: failed program was:" >&5
20342 cat conftest.$ac_ext >&5
20344 eval "ac_cv_header_$ac_safe=no"
20348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20349 echo "$ac_t""yes" 1>&6
20350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20351 cat >> confdefs.h <<EOF
20352 #define $ac_tr_hdr 1
20356 echo "$ac_t""no" 1>&6
20360 echo $ac_n "checking for db""... $ac_c" 1>&6
20361 echo "configure:20362: checking for db" >&5
20362 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20363 echo $ac_n "(cached) $ac_c" 1>&6
20366 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20374 echo "$ac_t""$ol_cv_mdbm" 1>&6
20375 if test $ol_cv_mdbm = yes ; then
20376 cat >> confdefs.h <<\EOF
20377 #define HAVE_MDBM 1
20383 if test $ol_cv_mdbm = yes ; then
20385 ol_with_ldbm_api=mdbm
20386 if test $ol_cv_lib_mdbm != yes ; then
20387 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20392 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20393 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20394 echo "configure:20395: checking for GDBM library" >&5
20395 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20396 echo $ac_n "(cached) $ac_c" 1>&6
20399 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20400 echo "configure:20401: checking for gdbm_open" >&5
20401 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20402 echo $ac_n "(cached) $ac_c" 1>&6
20404 cat > conftest.$ac_ext <<EOF
20405 #line 20406 "configure"
20406 #include "confdefs.h"
20407 /* System header to define __stub macros and hopefully few prototypes,
20408 which can conflict with char gdbm_open(); below. */
20409 #include <assert.h>
20410 /* Override any gcc2 internal prototype to avoid an error. */
20411 /* We use char because int might match the return type of a gcc2
20412 builtin and then its argument prototype would still apply. */
20418 /* The GNU C library defines this for functions which it implements
20419 to always fail with ENOSYS. Some functions are actually named
20420 something starting with __ and the normal name is an alias. */
20421 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20429 if { (eval echo configure:20430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20431 eval "ac_cv_func_gdbm_open=yes"
20433 echo "configure: failed program was:" >&5
20434 cat conftest.$ac_ext >&5
20436 eval "ac_cv_func_gdbm_open=no"
20441 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20442 echo "$ac_t""yes" 1>&6
20445 echo "$ac_t""no" 1>&6
20447 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20448 echo "configure:20449: checking for gdbm_open in -lgdbm" >&5
20449 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20451 echo $ac_n "(cached) $ac_c" 1>&6
20453 ac_save_LIBS="$LIBS"
20454 LIBS="-lgdbm $LIBS"
20455 cat > conftest.$ac_ext <<EOF
20456 #line 20457 "configure"
20457 #include "confdefs.h"
20458 /* Override any gcc2 internal prototype to avoid an error. */
20459 /* We use char because int might match the return type of a gcc2
20460 builtin and then its argument prototype would still apply. */
20467 if { (eval echo configure:20468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20469 eval "ac_cv_lib_$ac_lib_var=yes"
20471 echo "configure: failed program was:" >&5
20472 cat conftest.$ac_ext >&5
20474 eval "ac_cv_lib_$ac_lib_var=no"
20477 LIBS="$ac_save_LIBS"
20480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20481 echo "$ac_t""yes" 1>&6
20482 ol_cv_lib_gdbm=-lgdbm
20484 echo "$ac_t""no" 1>&6
20495 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20498 for ac_hdr in gdbm.h
20500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20502 echo "configure:20503: checking for $ac_hdr" >&5
20503 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20504 echo $ac_n "(cached) $ac_c" 1>&6
20506 cat > conftest.$ac_ext <<EOF
20507 #line 20508 "configure"
20508 #include "confdefs.h"
20511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20512 { (eval echo configure:20513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20514 if test -z "$ac_err"; then
20516 eval "ac_cv_header_$ac_safe=yes"
20519 echo "configure: failed program was:" >&5
20520 cat conftest.$ac_ext >&5
20522 eval "ac_cv_header_$ac_safe=no"
20526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20527 echo "$ac_t""yes" 1>&6
20528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20529 cat >> confdefs.h <<EOF
20530 #define $ac_tr_hdr 1
20534 echo "$ac_t""no" 1>&6
20538 echo $ac_n "checking for db""... $ac_c" 1>&6
20539 echo "configure:20540: checking for db" >&5
20540 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20541 echo $ac_n "(cached) $ac_c" 1>&6
20544 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20552 echo "$ac_t""$ol_cv_gdbm" 1>&6
20553 if test $ol_cv_gdbm = yes ; then
20554 cat >> confdefs.h <<\EOF
20555 #define HAVE_GDBM 1
20561 if test $ol_cv_gdbm = yes ; then
20563 ol_with_ldbm_api=gdbm
20565 if test $ol_cv_lib_gdbm != yes ; then
20566 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20571 if test $ol_with_ldbm_api = ndbm ; then
20572 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20573 echo "configure:20574: checking for NDBM library" >&5
20574 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20575 echo $ac_n "(cached) $ac_c" 1>&6
20578 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20579 echo "configure:20580: checking for dbm_open" >&5
20580 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20581 echo $ac_n "(cached) $ac_c" 1>&6
20583 cat > conftest.$ac_ext <<EOF
20584 #line 20585 "configure"
20585 #include "confdefs.h"
20586 /* System header to define __stub macros and hopefully few prototypes,
20587 which can conflict with char dbm_open(); below. */
20588 #include <assert.h>
20589 /* Override any gcc2 internal prototype to avoid an error. */
20590 /* We use char because int might match the return type of a gcc2
20591 builtin and then its argument prototype would still apply. */
20597 /* The GNU C library defines this for functions which it implements
20598 to always fail with ENOSYS. Some functions are actually named
20599 something starting with __ and the normal name is an alias. */
20600 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20608 if { (eval echo configure:20609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20610 eval "ac_cv_func_dbm_open=yes"
20612 echo "configure: failed program was:" >&5
20613 cat conftest.$ac_ext >&5
20615 eval "ac_cv_func_dbm_open=no"
20620 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20621 echo "$ac_t""yes" 1>&6
20624 echo "$ac_t""no" 1>&6
20626 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20627 echo "configure:20628: checking for dbm_open in -lndbm" >&5
20628 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20630 echo $ac_n "(cached) $ac_c" 1>&6
20632 ac_save_LIBS="$LIBS"
20633 LIBS="-lndbm $LIBS"
20634 cat > conftest.$ac_ext <<EOF
20635 #line 20636 "configure"
20636 #include "confdefs.h"
20637 /* Override any gcc2 internal prototype to avoid an error. */
20638 /* We use char because int might match the return type of a gcc2
20639 builtin and then its argument prototype would still apply. */
20646 if { (eval echo configure:20647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20648 eval "ac_cv_lib_$ac_lib_var=yes"
20650 echo "configure: failed program was:" >&5
20651 cat conftest.$ac_ext >&5
20653 eval "ac_cv_lib_$ac_lib_var=no"
20656 LIBS="$ac_save_LIBS"
20659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20660 echo "$ac_t""yes" 1>&6
20661 ol_cv_lib_ndbm=-lndbm
20663 echo "$ac_t""no" 1>&6
20665 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20666 echo "configure:20667: checking for dbm_open in -ldbm" >&5
20667 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20668 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20669 echo $ac_n "(cached) $ac_c" 1>&6
20671 ac_save_LIBS="$LIBS"
20673 cat > conftest.$ac_ext <<EOF
20674 #line 20675 "configure"
20675 #include "confdefs.h"
20676 /* Override any gcc2 internal prototype to avoid an error. */
20677 /* We use char because int might match the return type of a gcc2
20678 builtin and then its argument prototype would still apply. */
20685 if { (eval echo configure:20686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20687 eval "ac_cv_lib_$ac_lib_var=yes"
20689 echo "configure: failed program was:" >&5
20690 cat conftest.$ac_ext >&5
20692 eval "ac_cv_lib_$ac_lib_var=no"
20695 LIBS="$ac_save_LIBS"
20698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20699 echo "$ac_t""yes" 1>&6
20700 ol_cv_lib_ndbm=-ldbm
20702 echo "$ac_t""no" 1>&6
20715 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20718 for ac_hdr in ndbm.h
20720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20722 echo "configure:20723: checking for $ac_hdr" >&5
20723 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20724 echo $ac_n "(cached) $ac_c" 1>&6
20726 cat > conftest.$ac_ext <<EOF
20727 #line 20728 "configure"
20728 #include "confdefs.h"
20731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20732 { (eval echo configure:20733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20734 if test -z "$ac_err"; then
20736 eval "ac_cv_header_$ac_safe=yes"
20739 echo "configure: failed program was:" >&5
20740 cat conftest.$ac_ext >&5
20742 eval "ac_cv_header_$ac_safe=no"
20746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20747 echo "$ac_t""yes" 1>&6
20748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20749 cat >> confdefs.h <<EOF
20750 #define $ac_tr_hdr 1
20754 echo "$ac_t""no" 1>&6
20758 echo $ac_n "checking for db""... $ac_c" 1>&6
20759 echo "configure:20760: checking for db" >&5
20760 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20761 echo $ac_n "(cached) $ac_c" 1>&6
20764 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20772 echo "$ac_t""$ol_cv_ndbm" 1>&6
20773 if test $ol_cv_ndbm = yes ; then
20774 cat >> confdefs.h <<\EOF
20775 #define HAVE_NDBM 1
20781 if test $ol_cv_ndbm = yes ; then
20783 ol_with_ldbm_api=ndbm
20785 if test $ol_cv_lib_ndbm != yes ; then
20786 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20791 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20792 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20793 if test $ol_enable_ldbm = yes ; then
20794 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20797 echo "configure: warning: disabling LDBM" 1>&2
20801 if test $ol_enable_bdb = yes -o \
20802 $ol_enable_hdb = yes -o \
20803 $ol_enable_ldbm = yes ; then
20804 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
20808 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20809 BUILD_LIBS_DYNAMIC=shared
20810 cat >> confdefs.h <<\EOF
20811 #define LDAP_LIBS_DYNAMIC 1
20816 BUILD_LIBS_DYNAMIC=static
20820 if test $ol_enable_wrappers != no ; then
20821 for ac_hdr in tcpd.h
20823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20825 echo "configure:20826: checking for $ac_hdr" >&5
20826 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20827 echo $ac_n "(cached) $ac_c" 1>&6
20829 cat > conftest.$ac_ext <<EOF
20830 #line 20831 "configure"
20831 #include "confdefs.h"
20834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20835 { (eval echo configure:20836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20837 if test -z "$ac_err"; then
20839 eval "ac_cv_header_$ac_safe=yes"
20842 echo "configure: failed program was:" >&5
20843 cat conftest.$ac_ext >&5
20845 eval "ac_cv_header_$ac_safe=no"
20849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20850 echo "$ac_t""yes" 1>&6
20851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20852 cat >> confdefs.h <<EOF
20853 #define $ac_tr_hdr 1
20856 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20857 echo "configure:20858: checking for TCP wrappers library" >&5
20859 LIBS="$LIBS -lwrap"
20860 cat > conftest.$ac_ext <<EOF
20861 #line 20862 "configure"
20862 #include "confdefs.h"
20865 int allow_severity = 0;
20866 int deny_severity = 0;
20868 struct request_info *req;
20876 if { (eval echo configure:20877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20878 echo "$ac_t""-lwrap" 1>&6
20882 echo "configure: failed program was:" >&5
20883 cat conftest.$ac_ext >&5
20887 cat > conftest.$ac_ext <<EOF
20888 #line 20889 "configure"
20889 #include "confdefs.h"
20892 int allow_severity = 0;
20893 int deny_severity = 0;
20895 struct request_info *req;
20903 if { (eval echo configure:20904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20905 echo "$ac_t""-lwrap -lnsl" 1>&6
20907 LIBS="$save_LIBS -lnsl"
20909 echo "configure: failed program was:" >&5
20910 cat conftest.$ac_ext >&5
20913 echo "$ac_t""no" 1>&6
20921 echo "$ac_t""no" 1>&6
20927 if test $have_wrappers = yes ; then
20928 cat >> confdefs.h <<\EOF
20929 #define HAVE_TCPD 1
20933 elif test $ol_enable_wrappers = yes ; then
20934 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20936 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20941 if test $ol_enable_syslog != no ; then
20942 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20943 echo "configure:20944: checking for openlog" >&5
20944 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20945 echo $ac_n "(cached) $ac_c" 1>&6
20947 cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 /* System header to define __stub macros and hopefully few prototypes,
20951 which can conflict with char openlog(); below. */
20952 #include <assert.h>
20953 /* Override any gcc2 internal prototype to avoid an error. */
20954 /* We use char because int might match the return type of a gcc2
20955 builtin and then its argument prototype would still apply. */
20961 /* The GNU C library defines this for functions which it implements
20962 to always fail with ENOSYS. Some functions are actually named
20963 something starting with __ and the normal name is an alias. */
20964 #if defined (__stub_openlog) || defined (__stub___openlog)
20972 if { (eval echo configure:20973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20974 eval "ac_cv_func_openlog=yes"
20976 echo "configure: failed program was:" >&5
20977 cat conftest.$ac_ext >&5
20979 eval "ac_cv_func_openlog=no"
20984 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20985 echo "$ac_t""yes" 1>&6
20988 echo "$ac_t""no" 1>&6
20991 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20992 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20994 ol_enable_syslog=$ac_cv_func_openlog
20999 if test $ol_enable_sql != no ; then
21000 for ac_hdr in sql.h sqlext.h
21002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21004 echo "configure:21005: checking for $ac_hdr" >&5
21005 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21006 echo $ac_n "(cached) $ac_c" 1>&6
21008 cat > conftest.$ac_ext <<EOF
21009 #line 21010 "configure"
21010 #include "confdefs.h"
21013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21014 { (eval echo configure:21015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21016 if test -z "$ac_err"; then
21018 eval "ac_cv_header_$ac_safe=yes"
21021 echo "configure: failed program was:" >&5
21022 cat conftest.$ac_ext >&5
21024 eval "ac_cv_header_$ac_safe=no"
21028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21029 echo "$ac_t""yes" 1>&6
21030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21031 cat >> confdefs.h <<EOF
21032 #define $ac_tr_hdr 1
21036 echo "$ac_t""no" 1>&6
21037 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21043 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21044 echo "configure:21045: checking for SQLDriverConnect in -liodbc" >&5
21045 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21047 echo $ac_n "(cached) $ac_c" 1>&6
21049 ac_save_LIBS="$LIBS"
21050 LIBS="-liodbc $LIBS"
21051 cat > conftest.$ac_ext <<EOF
21052 #line 21053 "configure"
21053 #include "confdefs.h"
21054 /* Override any gcc2 internal prototype to avoid an error. */
21055 /* We use char because int might match the return type of a gcc2
21056 builtin and then its argument prototype would still apply. */
21057 char SQLDriverConnect();
21063 if { (eval echo configure:21064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21065 eval "ac_cv_lib_$ac_lib_var=yes"
21067 echo "configure: failed program was:" >&5
21068 cat conftest.$ac_ext >&5
21070 eval "ac_cv_lib_$ac_lib_var=no"
21073 LIBS="$ac_save_LIBS"
21076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21077 echo "$ac_t""yes" 1>&6
21080 echo "$ac_t""no" 1>&6
21084 if test $have_iodbc = yes ; then
21085 ol_link_sql="-liodbc"
21087 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21088 echo "configure:21089: checking for SQLDriverConnect in -lodbc" >&5
21089 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21091 echo $ac_n "(cached) $ac_c" 1>&6
21093 ac_save_LIBS="$LIBS"
21094 LIBS="-lodbc $LIBS"
21095 cat > conftest.$ac_ext <<EOF
21096 #line 21097 "configure"
21097 #include "confdefs.h"
21098 /* Override any gcc2 internal prototype to avoid an error. */
21099 /* We use char because int might match the return type of a gcc2
21100 builtin and then its argument prototype would still apply. */
21101 char SQLDriverConnect();
21107 if { (eval echo configure:21108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21109 eval "ac_cv_lib_$ac_lib_var=yes"
21111 echo "configure: failed program was:" >&5
21112 cat conftest.$ac_ext >&5
21114 eval "ac_cv_lib_$ac_lib_var=no"
21117 LIBS="$ac_save_LIBS"
21120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21121 echo "$ac_t""yes" 1>&6
21124 echo "$ac_t""no" 1>&6
21128 if test $have_odbc = yes ; then
21129 ol_link_sql="-lodbc"
21133 if test $ol_link_sql != no ; then
21134 SLAPD_SQL_LIBS="$ol_link_sql"
21136 elif test $ol_enable_sql != auto ; then
21137 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21143 if test $ol_with_cyrus_sasl != no ; then
21144 for ac_hdr in sasl/sasl.h sasl.h
21146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21148 echo "configure:21149: checking for $ac_hdr" >&5
21149 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21150 echo $ac_n "(cached) $ac_c" 1>&6
21152 cat > conftest.$ac_ext <<EOF
21153 #line 21154 "configure"
21154 #include "confdefs.h"
21157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21158 { (eval echo configure:21159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21160 if test -z "$ac_err"; then
21162 eval "ac_cv_header_$ac_safe=yes"
21165 echo "configure: failed program was:" >&5
21166 cat conftest.$ac_ext >&5
21168 eval "ac_cv_header_$ac_safe=no"
21172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21173 echo "$ac_t""yes" 1>&6
21174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21175 cat >> confdefs.h <<EOF
21176 #define $ac_tr_hdr 1
21180 echo "$ac_t""no" 1>&6
21185 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21186 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21187 echo "configure:21188: checking for sasl_client_init in -lsasl2" >&5
21188 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21190 echo $ac_n "(cached) $ac_c" 1>&6
21192 ac_save_LIBS="$LIBS"
21193 LIBS="-lsasl2 $LIBS"
21194 cat > conftest.$ac_ext <<EOF
21195 #line 21196 "configure"
21196 #include "confdefs.h"
21197 /* Override any gcc2 internal prototype to avoid an error. */
21198 /* We use char because int might match the return type of a gcc2
21199 builtin and then its argument prototype would still apply. */
21200 char sasl_client_init();
21206 if { (eval echo configure:21207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21208 eval "ac_cv_lib_$ac_lib_var=yes"
21210 echo "configure: failed program was:" >&5
21211 cat conftest.$ac_ext >&5
21213 eval "ac_cv_lib_$ac_lib_var=no"
21216 LIBS="$ac_save_LIBS"
21219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21220 echo "$ac_t""yes" 1>&6
21221 ol_link_sasl="-lsasl2"
21223 echo "$ac_t""no" 1>&6
21224 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21225 echo "configure:21226: checking for sasl_client_init in -lsasl" >&5
21226 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21227 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21228 echo $ac_n "(cached) $ac_c" 1>&6
21230 ac_save_LIBS="$LIBS"
21231 LIBS="-lsasl $LIBS"
21232 cat > conftest.$ac_ext <<EOF
21233 #line 21234 "configure"
21234 #include "confdefs.h"
21235 /* Override any gcc2 internal prototype to avoid an error. */
21236 /* We use char because int might match the return type of a gcc2
21237 builtin and then its argument prototype would still apply. */
21238 char sasl_client_init();
21244 if { (eval echo configure:21245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21246 eval "ac_cv_lib_$ac_lib_var=yes"
21248 echo "configure: failed program was:" >&5
21249 cat conftest.$ac_ext >&5
21251 eval "ac_cv_lib_$ac_lib_var=no"
21254 LIBS="$ac_save_LIBS"
21257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21258 echo "$ac_t""yes" 1>&6
21259 ol_link_sasl="-lsasl"
21261 echo "$ac_t""no" 1>&6
21268 if test $ol_link_sasl = no ; then
21269 if test $ol_with_cyrus_sasl != auto ; then
21270 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21272 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21273 echo "configure: warning: SASL authentication not supported!" 1>&2
21274 if test $ol_link_tls = no ; then
21275 echo "configure: warning: Strong authentication not supported!" 1>&2
21279 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21280 echo "configure:21281: checking Cyrus SASL library version" >&5
21281 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21282 echo $ac_n "(cached) $ac_c" 1>&6
21285 cat > conftest.$ac_ext <<EOF
21286 #line 21287 "configure"
21287 #include "confdefs.h"
21289 #ifdef HAVE_SASL_SASL_H
21290 #include <sasl/sasl.h>
21295 /* Require 2.1.15+ */
21296 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21297 char *__sasl_compat = "2.2+ or better okay (we guess)";
21298 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21299 && SASL_VERSION_STEP >=15
21300 char *__sasl_compat = "2.1.15+ or better okay";
21304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21305 egrep "__sasl_compat" >/dev/null 2>&1; then
21307 ol_cv_sasl_compat=yes
21310 ol_cv_sasl_compat=no
21316 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21318 if test $ol_cv_sasl_compat = no ; then
21320 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
21323 cat >> confdefs.h <<\EOF
21324 #define HAVE_CYRUS_SASL 1
21327 SASL_LIBS="$ol_link_sasl"
21328 if test $ol_enable_spasswd != no ; then
21329 ol_link_spasswd=yes
21332 ac_save_LIBS="$LIBS"
21333 LIBS="$LIBS $ol_link_sasl"
21334 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21335 echo "configure:21336: checking for sasl_version" >&5
21336 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21337 echo $ac_n "(cached) $ac_c" 1>&6
21339 cat > conftest.$ac_ext <<EOF
21340 #line 21341 "configure"
21341 #include "confdefs.h"
21342 /* System header to define __stub macros and hopefully few prototypes,
21343 which can conflict with char sasl_version(); below. */
21344 #include <assert.h>
21345 /* Override any gcc2 internal prototype to avoid an error. */
21346 /* We use char because int might match the return type of a gcc2
21347 builtin and then its argument prototype would still apply. */
21348 char sasl_version();
21353 /* The GNU C library defines this for functions which it implements
21354 to always fail with ENOSYS. Some functions are actually named
21355 something starting with __ and the normal name is an alias. */
21356 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21364 if { (eval echo configure:21365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21366 eval "ac_cv_func_sasl_version=yes"
21368 echo "configure: failed program was:" >&5
21369 cat conftest.$ac_ext >&5
21371 eval "ac_cv_func_sasl_version=no"
21376 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21377 echo "$ac_t""yes" 1>&6
21378 cat >> confdefs.h <<\EOF
21379 #define HAVE_SASL_VERSION 1
21383 echo "$ac_t""no" 1>&6
21386 LIBS="$ac_save_LIBS"
21390 echo "configure: warning: SASL authentication not supported!" 1>&2
21391 if test $ol_link_tls = no ; then
21392 echo "configure: warning: Strong authentication not supported!" 1>&2
21396 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21398 if test -r /dev/urandom ; then
21399 dev="/dev/urandom";
21400 elif test -r /idev/urandom ; then
21401 dev="/idev/urandom";
21402 elif test -r /dev/srandom ; then
21403 dev="/dev/srandom";
21404 elif test -r /dev/random ; then
21406 elif test -r /idev/random ; then
21407 dev="/idev/random";
21410 if test $dev != no ; then
21411 cat >> confdefs.h <<EOF
21412 #define URANDOM_DEVICE "$dev"
21419 if test $ol_with_fetch != no ; then
21421 LIBS="-lfetch -lcom_err $LIBS"
21422 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21423 echo "configure:21424: checking fetch(3) library" >&5
21424 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21425 echo $ac_n "(cached) $ac_c" 1>&6
21428 cat > conftest.$ac_ext <<EOF
21429 #line 21430 "configure"
21430 #include "confdefs.h"
21432 #include <sys/param.h>
21436 struct url *u = fetchParseURL("file:///");
21439 if { (eval echo configure:21440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21441 ol_cv_lib_fetch=yes
21443 echo "configure: failed program was:" >&5
21444 cat conftest.$ac_ext >&5
21451 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21453 if test $ol_cv_lib_fetch != no ; then
21454 ol_link_fetch="-lfetch -lcom_err"
21455 cat >> confdefs.h <<\EOF
21456 #define HAVE_FETCH 1
21462 if test $ol_cv_lib_fetch != no ; then
21463 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21464 ol_link_fetch=freebsd
21466 elif test $ol_with_fetch != auto ; then
21467 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21471 if test $ol_enable_crypt != no ; then
21473 LIBS="$TLS_LIBS $LIBS"
21475 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21476 echo "configure:21477: checking for crypt" >&5
21477 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21478 echo $ac_n "(cached) $ac_c" 1>&6
21480 cat > conftest.$ac_ext <<EOF
21481 #line 21482 "configure"
21482 #include "confdefs.h"
21483 /* System header to define __stub macros and hopefully few prototypes,
21484 which can conflict with char crypt(); below. */
21485 #include <assert.h>
21486 /* Override any gcc2 internal prototype to avoid an error. */
21487 /* We use char because int might match the return type of a gcc2
21488 builtin and then its argument prototype would still apply. */
21494 /* The GNU C library defines this for functions which it implements
21495 to always fail with ENOSYS. Some functions are actually named
21496 something starting with __ and the normal name is an alias. */
21497 #if defined (__stub_crypt) || defined (__stub___crypt)
21505 if { (eval echo configure:21506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21507 eval "ac_cv_func_crypt=yes"
21509 echo "configure: failed program was:" >&5
21510 cat conftest.$ac_ext >&5
21512 eval "ac_cv_func_crypt=no"
21517 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21518 echo "$ac_t""yes" 1>&6
21521 echo "$ac_t""no" 1>&6
21524 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21525 echo "configure:21526: checking for crypt in -lcrypt" >&5
21526 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21528 echo $ac_n "(cached) $ac_c" 1>&6
21530 ac_save_LIBS="$LIBS"
21531 LIBS="-lcrypt $LIBS"
21532 cat > conftest.$ac_ext <<EOF
21533 #line 21534 "configure"
21534 #include "confdefs.h"
21535 /* Override any gcc2 internal prototype to avoid an error. */
21536 /* We use char because int might match the return type of a gcc2
21537 builtin and then its argument prototype would still apply. */
21544 if { (eval echo configure:21545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21546 eval "ac_cv_lib_$ac_lib_var=yes"
21548 echo "configure: failed program was:" >&5
21549 cat conftest.$ac_ext >&5
21551 eval "ac_cv_lib_$ac_lib_var=no"
21554 LIBS="$ac_save_LIBS"
21557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21558 echo "$ac_t""yes" 1>&6
21559 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21562 echo "$ac_t""no" 1>&6
21571 if test $have_crypt = yes ; then
21572 cat >> confdefs.h <<\EOF
21573 #define HAVE_CRYPT 1
21577 echo "configure: warning: could not find crypt" 1>&2
21578 if test $ol_enable_crypt = yes ; then
21579 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21582 echo "configure: warning: disabling crypt support" 1>&2
21587 if test $ol_enable_proctitle != no ; then
21588 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21589 echo "configure:21590: checking for setproctitle" >&5
21590 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21591 echo $ac_n "(cached) $ac_c" 1>&6
21593 cat > conftest.$ac_ext <<EOF
21594 #line 21595 "configure"
21595 #include "confdefs.h"
21596 /* System header to define __stub macros and hopefully few prototypes,
21597 which can conflict with char setproctitle(); below. */
21598 #include <assert.h>
21599 /* Override any gcc2 internal prototype to avoid an error. */
21600 /* We use char because int might match the return type of a gcc2
21601 builtin and then its argument prototype would still apply. */
21602 char setproctitle();
21607 /* The GNU C library defines this for functions which it implements
21608 to always fail with ENOSYS. Some functions are actually named
21609 something starting with __ and the normal name is an alias. */
21610 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21618 if { (eval echo configure:21619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21620 eval "ac_cv_func_setproctitle=yes"
21622 echo "configure: failed program was:" >&5
21623 cat conftest.$ac_ext >&5
21625 eval "ac_cv_func_setproctitle=no"
21630 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21631 echo "$ac_t""yes" 1>&6
21632 have_setproctitle=yes
21634 echo "$ac_t""no" 1>&6
21636 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21637 echo "configure:21638: checking for setproctitle in -lutil" >&5
21638 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21639 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21640 echo $ac_n "(cached) $ac_c" 1>&6
21642 ac_save_LIBS="$LIBS"
21643 LIBS="-lutil $LIBS"
21644 cat > conftest.$ac_ext <<EOF
21645 #line 21646 "configure"
21646 #include "confdefs.h"
21647 /* Override any gcc2 internal prototype to avoid an error. */
21648 /* We use char because int might match the return type of a gcc2
21649 builtin and then its argument prototype would still apply. */
21650 char setproctitle();
21656 if { (eval echo configure:21657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21658 eval "ac_cv_lib_$ac_lib_var=yes"
21660 echo "configure: failed program was:" >&5
21661 cat conftest.$ac_ext >&5
21663 eval "ac_cv_lib_$ac_lib_var=no"
21666 LIBS="$ac_save_LIBS"
21669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21670 echo "$ac_t""yes" 1>&6
21671 have_setproctitle=yes
21672 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21674 echo "$ac_t""no" 1>&6
21675 have_setproctitle=no
21676 LIBOBJS="$LIBOBJS setproctitle.o"
21677 LIBSRCS="$LIBSRCS setproctitle.c"
21683 if test $have_setproctitle = yes ; then
21684 cat >> confdefs.h <<\EOF
21685 #define HAVE_SETPROCTITLE 1
21691 if test $ol_enable_slp != no ; then
21692 for ac_hdr in slp.h
21694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21696 echo "configure:21697: checking for $ac_hdr" >&5
21697 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21698 echo $ac_n "(cached) $ac_c" 1>&6
21700 cat > conftest.$ac_ext <<EOF
21701 #line 21702 "configure"
21702 #include "confdefs.h"
21705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21706 { (eval echo configure:21707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21708 if test -z "$ac_err"; then
21710 eval "ac_cv_header_$ac_safe=yes"
21713 echo "configure: failed program was:" >&5
21714 cat conftest.$ac_ext >&5
21716 eval "ac_cv_header_$ac_safe=no"
21720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21721 echo "$ac_t""yes" 1>&6
21722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21723 cat >> confdefs.h <<EOF
21724 #define $ac_tr_hdr 1
21728 echo "$ac_t""no" 1>&6
21733 if test $ac_cv_header_slp_h = yes ; then
21734 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21735 echo "configure:21736: checking for SLPOpen in -lslp" >&5
21736 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21738 echo $ac_n "(cached) $ac_c" 1>&6
21740 ac_save_LIBS="$LIBS"
21742 cat > conftest.$ac_ext <<EOF
21743 #line 21744 "configure"
21744 #include "confdefs.h"
21745 /* Override any gcc2 internal prototype to avoid an error. */
21746 /* We use char because int might match the return type of a gcc2
21747 builtin and then its argument prototype would still apply. */
21754 if { (eval echo configure:21755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21756 eval "ac_cv_lib_$ac_lib_var=yes"
21758 echo "configure: failed program was:" >&5
21759 cat conftest.$ac_ext >&5
21761 eval "ac_cv_lib_$ac_lib_var=no"
21764 LIBS="$ac_save_LIBS"
21767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21768 echo "$ac_t""yes" 1>&6
21771 echo "$ac_t""no" 1>&6
21775 if test $have_slp = yes ; then
21776 cat >> confdefs.h <<\EOF
21780 SLAPD_SLP_LIBS=-lslp
21783 elif test $ol_enable_slp = yes ; then
21784 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21789 echo $ac_n "checking long long""... $ac_c" 1>&6
21790 echo "configure:21791: checking long long" >&5
21791 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21792 echo $ac_n "(cached) $ac_c" 1>&6
21795 cat > conftest.$ac_ext <<EOF
21796 #line 21797 "configure"
21797 #include "confdefs.h"
21803 if { (eval echo configure:21804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21805 ol_cv_type_long_long=yes
21807 echo "configure: failed program was:" >&5
21808 cat conftest.$ac_ext >&5
21810 ol_cv_type_long_long=no
21815 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21816 if test $ol_cv_type_long_long = yes; then
21817 cat >> confdefs.h <<\EOF
21818 #define HAVE_LONG_LONG 1
21823 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21824 echo "configure:21825: checking for ANSI C header files" >&5
21825 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21826 echo $ac_n "(cached) $ac_c" 1>&6
21828 cat > conftest.$ac_ext <<EOF
21829 #line 21830 "configure"
21830 #include "confdefs.h"
21831 #include <stdlib.h>
21832 #include <stdarg.h>
21833 #include <string.h>
21836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21837 { (eval echo configure:21838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21839 if test -z "$ac_err"; then
21841 ac_cv_header_stdc=yes
21844 echo "configure: failed program was:" >&5
21845 cat conftest.$ac_ext >&5
21847 ac_cv_header_stdc=no
21851 if test $ac_cv_header_stdc = yes; then
21852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21853 cat > conftest.$ac_ext <<EOF
21854 #line 21855 "configure"
21855 #include "confdefs.h"
21856 #include <string.h>
21858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21859 egrep "memchr" >/dev/null 2>&1; then
21863 ac_cv_header_stdc=no
21869 if test $ac_cv_header_stdc = yes; then
21870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21871 cat > conftest.$ac_ext <<EOF
21872 #line 21873 "configure"
21873 #include "confdefs.h"
21874 #include <stdlib.h>
21876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21877 egrep "free" >/dev/null 2>&1; then
21881 ac_cv_header_stdc=no
21887 if test $ac_cv_header_stdc = yes; then
21888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21889 if test "$cross_compiling" = yes; then
21892 cat > conftest.$ac_ext <<EOF
21893 #line 21894 "configure"
21894 #include "confdefs.h"
21896 #if ((' ' & 0x0FF) == 0x020)
21897 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21898 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21900 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21901 || ('j' <= (c) && (c) <= 'r') \
21902 || ('s' <= (c) && (c) <= 'z'))
21903 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21906 int main () { int i; for (i = 0; i < 256; i++)
21907 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21911 if { (eval echo configure:21912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
21915 echo "configure: failed program was:" >&5
21916 cat conftest.$ac_ext >&5
21918 ac_cv_header_stdc=no
21926 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21927 if test $ac_cv_header_stdc = yes; then
21928 cat >> confdefs.h <<\EOF
21929 #define STDC_HEADERS 1
21934 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21935 echo "configure:21936: checking for mode_t" >&5
21936 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21937 echo $ac_n "(cached) $ac_c" 1>&6
21939 cat > conftest.$ac_ext <<EOF
21940 #line 21941 "configure"
21941 #include "confdefs.h"
21942 #include <sys/types.h>
21944 #include <stdlib.h>
21945 #include <stddef.h>
21949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21950 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21952 eval "ac_cv_type_mode_t=yes"
21955 eval "ac_cv_type_mode_t=no"
21960 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21961 echo "$ac_t""yes" 1>&6
21963 echo "$ac_t""no" 1>&6
21964 cat >> confdefs.h <<EOF
21970 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21971 echo "configure:21972: checking for off_t" >&5
21972 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21973 echo $ac_n "(cached) $ac_c" 1>&6
21975 cat > conftest.$ac_ext <<EOF
21976 #line 21977 "configure"
21977 #include "confdefs.h"
21978 #include <sys/types.h>
21980 #include <stdlib.h>
21981 #include <stddef.h>
21985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21986 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21988 eval "ac_cv_type_off_t=yes"
21991 eval "ac_cv_type_off_t=no"
21996 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21997 echo "$ac_t""yes" 1>&6
21999 echo "$ac_t""no" 1>&6
22000 cat >> confdefs.h <<EOF
22006 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22007 echo "configure:22008: checking for pid_t" >&5
22008 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22009 echo $ac_n "(cached) $ac_c" 1>&6
22011 cat > conftest.$ac_ext <<EOF
22012 #line 22013 "configure"
22013 #include "confdefs.h"
22014 #include <sys/types.h>
22016 #include <stdlib.h>
22017 #include <stddef.h>
22021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22022 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22024 eval "ac_cv_type_pid_t=yes"
22027 eval "ac_cv_type_pid_t=no"
22032 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22033 echo "$ac_t""yes" 1>&6
22035 echo "$ac_t""no" 1>&6
22036 cat >> confdefs.h <<EOF
22042 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
22043 echo "configure:22044: checking for ptrdiff_t" >&5
22044 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
22045 echo $ac_n "(cached) $ac_c" 1>&6
22047 cat > conftest.$ac_ext <<EOF
22048 #line 22049 "configure"
22049 #include "confdefs.h"
22050 #include <stddef.h>
22055 if { (eval echo configure:22056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22057 am_cv_type_ptrdiff_t=yes
22059 echo "configure: failed program was:" >&5
22060 cat conftest.$ac_ext >&5
22062 am_cv_type_ptrdiff_t=no
22067 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
22068 if test $am_cv_type_ptrdiff_t = yes; then
22069 cat >> confdefs.h <<\EOF
22070 #define HAVE_PTRDIFF_T 1
22075 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
22076 echo "configure:22077: checking return type of signal handlers" >&5
22077 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
22078 echo $ac_n "(cached) $ac_c" 1>&6
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22083 #include <sys/types.h>
22084 #include <signal.h>
22089 extern "C" void (*signal (int, void (*)(int)))(int);
22091 void (*signal ()) ();
22098 if { (eval echo configure:22099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22100 ac_cv_type_signal=void
22102 echo "configure: failed program was:" >&5
22103 cat conftest.$ac_ext >&5
22105 ac_cv_type_signal=int
22110 echo "$ac_t""$ac_cv_type_signal" 1>&6
22111 cat >> confdefs.h <<EOF
22112 #define RETSIGTYPE $ac_cv_type_signal
22116 echo $ac_n "checking for size_t""... $ac_c" 1>&6
22117 echo "configure:22118: checking for size_t" >&5
22118 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
22119 echo $ac_n "(cached) $ac_c" 1>&6
22121 cat > conftest.$ac_ext <<EOF
22122 #line 22123 "configure"
22123 #include "confdefs.h"
22124 #include <sys/types.h>
22126 #include <stdlib.h>
22127 #include <stddef.h>
22131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22132 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22134 eval "ac_cv_type_size_t=yes"
22137 eval "ac_cv_type_size_t=no"
22142 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
22143 echo "$ac_t""yes" 1>&6
22145 echo "$ac_t""no" 1>&6
22146 cat >> confdefs.h <<EOF
22147 #define size_t unsigned
22153 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
22154 echo "configure:22155: checking for ssize_t" >&5
22155 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
22156 echo $ac_n "(cached) $ac_c" 1>&6
22158 cat > conftest.$ac_ext <<EOF
22159 #line 22160 "configure"
22160 #include "confdefs.h"
22161 #include <sys/types.h>
22163 #include <stdlib.h>
22164 #include <stddef.h>
22168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22169 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22171 eval "ac_cv_type_ssize_t=yes"
22174 eval "ac_cv_type_ssize_t=no"
22179 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
22180 echo "$ac_t""yes" 1>&6
22182 echo "$ac_t""no" 1>&6
22183 cat >> confdefs.h <<EOF
22184 #define ssize_t signed int
22189 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
22190 echo "configure:22191: checking for caddr_t" >&5
22191 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
22192 echo $ac_n "(cached) $ac_c" 1>&6
22194 cat > conftest.$ac_ext <<EOF
22195 #line 22196 "configure"
22196 #include "confdefs.h"
22197 #include <sys/types.h>
22199 #include <stdlib.h>
22200 #include <stddef.h>
22204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22205 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22207 eval "ac_cv_type_caddr_t=yes"
22210 eval "ac_cv_type_caddr_t=no"
22215 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
22216 echo "$ac_t""yes" 1>&6
22218 echo "$ac_t""no" 1>&6
22219 cat >> confdefs.h <<EOF
22220 #define caddr_t char *
22226 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
22227 echo "configure:22228: checking for socklen_t" >&5
22228 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
22229 echo $ac_n "(cached) $ac_c" 1>&6
22231 cat > conftest.$ac_ext <<EOF
22232 #line 22233 "configure"
22233 #include "confdefs.h"
22235 #ifdef HAVE_SYS_TYPES_H
22236 #include <sys/types.h>
22238 #ifdef HAVE_SYS_SOCKET_H
22239 #include <sys/socket.h>
22246 if { (eval echo configure:22247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22248 ol_cv_type_socklen_t=yes
22250 echo "configure: failed program was:" >&5
22251 cat conftest.$ac_ext >&5
22253 ol_cv_type_socklen_t=no
22258 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
22259 if test $ol_cv_type_socklen_t = no; then
22260 cat >> confdefs.h <<\EOF
22261 #define socklen_t int
22266 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22267 echo "configure:22268: checking for member st_blksize in aggregate type struct stat" >&5
22268 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22269 echo $ac_n "(cached) $ac_c" 1>&6
22271 cat > conftest.$ac_ext <<EOF
22272 #line 22273 "configure"
22273 #include "confdefs.h"
22274 #include <sys/types.h>
22275 #include <sys/stat.h>
22277 struct stat foo; foo.st_blksize;
22280 if { (eval echo configure:22281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22282 ac_cv_c_struct_member_st_blksize=yes
22284 echo "configure: failed program was:" >&5
22285 cat conftest.$ac_ext >&5
22287 ac_cv_c_struct_member_st_blksize=no
22292 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22293 st_blksize="$ac_cv_c_struct_member_st_blksize"
22294 if test $ac_cv_c_struct_member_st_blksize = yes; then
22295 cat >> confdefs.h <<\EOF
22296 #define HAVE_ST_BLKSIZE 1
22301 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22302 echo "configure:22303: checking whether time.h and sys/time.h may both be included" >&5
22303 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22304 echo $ac_n "(cached) $ac_c" 1>&6
22306 cat > conftest.$ac_ext <<EOF
22307 #line 22308 "configure"
22308 #include "confdefs.h"
22309 #include <sys/types.h>
22310 #include <sys/time.h>
22316 if { (eval echo configure:22317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22318 ac_cv_header_time=yes
22320 echo "configure: failed program was:" >&5
22321 cat conftest.$ac_ext >&5
22323 ac_cv_header_time=no
22328 echo "$ac_t""$ac_cv_header_time" 1>&6
22329 if test $ac_cv_header_time = yes; then
22330 cat >> confdefs.h <<\EOF
22331 #define TIME_WITH_SYS_TIME 1
22336 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22337 echo "configure:22338: checking whether struct tm is in sys/time.h or time.h" >&5
22338 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22339 echo $ac_n "(cached) $ac_c" 1>&6
22341 cat > conftest.$ac_ext <<EOF
22342 #line 22343 "configure"
22343 #include "confdefs.h"
22344 #include <sys/types.h>
22347 struct tm *tp; tp->tm_sec;
22350 if { (eval echo configure:22351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22352 ac_cv_struct_tm=time.h
22354 echo "configure: failed program was:" >&5
22355 cat conftest.$ac_ext >&5
22357 ac_cv_struct_tm=sys/time.h
22362 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22363 if test $ac_cv_struct_tm = sys/time.h; then
22364 cat >> confdefs.h <<\EOF
22365 #define TM_IN_SYS_TIME 1
22370 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22371 echo "configure:22372: checking for uid_t in sys/types.h" >&5
22372 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22373 echo $ac_n "(cached) $ac_c" 1>&6
22375 cat > conftest.$ac_ext <<EOF
22376 #line 22377 "configure"
22377 #include "confdefs.h"
22378 #include <sys/types.h>
22380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22381 egrep "uid_t" >/dev/null 2>&1; then
22383 ac_cv_type_uid_t=yes
22386 ac_cv_type_uid_t=no
22392 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22393 if test $ac_cv_type_uid_t = no; then
22394 cat >> confdefs.h <<\EOF
22398 cat >> confdefs.h <<\EOF
22404 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22405 echo "configure:22406: checking for sig_atomic_t" >&5
22406 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22407 echo $ac_n "(cached) $ac_c" 1>&6
22409 cat > conftest.$ac_ext <<EOF
22410 #line 22411 "configure"
22411 #include "confdefs.h"
22412 #include <signal.h>
22414 sig_atomic_t atomic;
22417 if { (eval echo configure:22418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22419 ol_cv_type_sig_atomic_t=yes
22421 echo "configure: failed program was:" >&5
22422 cat conftest.$ac_ext >&5
22424 ol_cv_type_sig_atomic_t=no
22429 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22430 if test $ol_cv_type_sig_atomic_t = no; then
22431 cat >> confdefs.h <<\EOF
22432 #define sig_atomic_t int
22439 # test for pw_gecos in struct passwd
22440 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22441 echo "configure:22442: checking struct passwd for pw_gecos" >&5
22442 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22443 echo $ac_n "(cached) $ac_c" 1>&6
22446 cat > conftest.$ac_ext <<EOF
22447 #line 22448 "configure"
22448 #include "confdefs.h"
22453 pwd.pw_gecos = pwd.pw_name;
22457 if { (eval echo configure:22458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22459 ol_cv_struct_passwd_pw_gecos=yes
22461 echo "configure: failed program was:" >&5
22462 cat conftest.$ac_ext >&5
22464 ol_cv_struct_passwd_pw_gecos=no
22469 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22470 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22471 cat >> confdefs.h <<\EOF
22472 #define HAVE_PW_GECOS 1
22477 # test for pw_passwd in struct passwd
22478 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22479 echo "configure:22480: checking struct passwd for pw_passwd" >&5
22480 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22481 echo $ac_n "(cached) $ac_c" 1>&6
22484 cat > conftest.$ac_ext <<EOF
22485 #line 22486 "configure"
22486 #include "confdefs.h"
22491 pwd.pw_passwd = pwd.pw_name;
22495 if { (eval echo configure:22496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22497 ol_cv_struct_passwd_pw_passwd=yes
22499 echo "configure: failed program was:" >&5
22500 cat conftest.$ac_ext >&5
22502 ol_cv_struct_passwd_pw_passwd=no
22507 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22508 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22509 cat >> confdefs.h <<\EOF
22510 #define HAVE_PW_PASSWD 1
22516 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22517 echo "configure:22518: checking if toupper() requires islower()" >&5
22518 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22519 echo $ac_n "(cached) $ac_c" 1>&6
22522 if test "$cross_compiling" = yes; then
22523 ol_cv_c_upper_lower=safe
22525 cat > conftest.$ac_ext <<EOF
22526 #line 22527 "configure"
22527 #include "confdefs.h"
22532 if ('C' == toupper('C'))
22538 if { (eval echo configure:22539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22540 ol_cv_c_upper_lower=no
22542 echo "configure: failed program was:" >&5
22543 cat conftest.$ac_ext >&5
22545 ol_cv_c_upper_lower=yes
22552 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22553 if test $ol_cv_c_upper_lower != no ; then
22554 cat >> confdefs.h <<\EOF
22555 #define C_UPPER_LOWER 1
22560 echo $ac_n "checking for working const""... $ac_c" 1>&6
22561 echo "configure:22562: checking for working const" >&5
22562 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22563 echo $ac_n "(cached) $ac_c" 1>&6
22565 cat > conftest.$ac_ext <<EOF
22566 #line 22567 "configure"
22567 #include "confdefs.h"
22571 /* Ultrix mips cc rejects this. */
22572 typedef int charset[2]; const charset x;
22573 /* SunOS 4.1.1 cc rejects this. */
22574 char const *const *ccp;
22576 /* NEC SVR4.0.2 mips cc rejects this. */
22577 struct point {int x, y;};
22578 static struct point const zero = {0,0};
22579 /* AIX XL C 1.02.0.0 rejects this.
22580 It does not let you subtract one const X* pointer from another in an arm
22581 of an if-expression whose if-part is not a constant expression */
22582 const char *g = "string";
22583 ccp = &g + (g ? g-g : 0);
22584 /* HPUX 7.0 cc rejects these. */
22587 ccp = (char const *const *) p;
22588 { /* SCO 3.2v4 cc rejects this. */
22590 char const *s = 0 ? (char *) 0 : (char const *) 0;
22594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22595 int x[] = {25, 17};
22596 const int *foo = &x[0];
22599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22600 typedef const int *iptr;
22604 { /* AIX XL C 1.02.0.0 rejects this saying
22605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22606 struct s { int j; const int *ap[3]; };
22607 struct s *b; b->j = 5;
22609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22610 const int foo = 10;
22615 if { (eval echo configure:22616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22619 echo "configure: failed program was:" >&5
22620 cat conftest.$ac_ext >&5
22627 echo "$ac_t""$ac_cv_c_const" 1>&6
22628 if test $ac_cv_c_const = no; then
22629 cat >> confdefs.h <<\EOF
22635 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22636 echo "configure:22637: checking if compiler understands volatile" >&5
22637 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22638 echo $ac_n "(cached) $ac_c" 1>&6
22640 cat > conftest.$ac_ext <<EOF
22641 #line 22642 "configure"
22642 #include "confdefs.h"
22645 volatile int a; int * volatile b = x ? &y : &z;
22646 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22650 if { (eval echo configure:22651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22652 ol_cv_c_volatile=yes
22654 echo "configure: failed program was:" >&5
22655 cat conftest.$ac_ext >&5
22657 ol_cv_c_volatile=no
22662 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22663 if test $ol_cv_c_volatile = yes; then
22666 cat >> confdefs.h <<\EOF
22673 if test $cross_compiling = yes ; then
22674 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22675 cat >> confdefs.h <<\EOF
22676 #define CROSS_COMPILING 1
22680 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22681 echo "configure:22682: checking whether byte ordering is bigendian" >&5
22682 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22683 echo $ac_n "(cached) $ac_c" 1>&6
22685 ac_cv_c_bigendian=unknown
22686 # See if sys/param.h defines the BYTE_ORDER macro.
22687 cat > conftest.$ac_ext <<EOF
22688 #line 22689 "configure"
22689 #include "confdefs.h"
22690 #include <sys/types.h>
22691 #include <sys/param.h>
22694 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22695 bogus endian macros
22699 if { (eval echo configure:22700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22701 # It does; now see whether it defined to BIG_ENDIAN or not.
22702 cat > conftest.$ac_ext <<EOF
22703 #line 22704 "configure"
22704 #include "confdefs.h"
22705 #include <sys/types.h>
22706 #include <sys/param.h>
22709 #if BYTE_ORDER != BIG_ENDIAN
22714 if { (eval echo configure:22715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22716 ac_cv_c_bigendian=yes
22718 echo "configure: failed program was:" >&5
22719 cat conftest.$ac_ext >&5
22721 ac_cv_c_bigendian=no
22725 echo "configure: failed program was:" >&5
22726 cat conftest.$ac_ext >&5
22729 if test $ac_cv_c_bigendian = unknown; then
22730 if test "$cross_compiling" = yes; then
22731 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22733 cat > conftest.$ac_ext <<EOF
22734 #line 22735 "configure"
22735 #include "confdefs.h"
22737 /* Are we little or big endian? From Harbison&Steele. */
22741 char c[sizeof (long)];
22744 exit (u.c[sizeof (long) - 1] == 1);
22747 if { (eval echo configure:22748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22749 ac_cv_c_bigendian=no
22751 echo "configure: failed program was:" >&5
22752 cat conftest.$ac_ext >&5
22754 ac_cv_c_bigendian=yes
22762 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22763 if test $ac_cv_c_bigendian = yes; then
22764 cat >> confdefs.h <<\EOF
22765 #define WORDS_BIGENDIAN 1
22772 echo $ac_n "checking size of short""... $ac_c" 1>&6
22773 echo "configure:22774: checking size of short" >&5
22774 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22775 echo $ac_n "(cached) $ac_c" 1>&6
22777 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22778 cat > conftest.$ac_ext <<EOF
22779 #line 22780 "configure"
22780 #include "confdefs.h"
22781 #include "confdefs.h"
22782 #include <stdlib.h>
22783 #include <sys/types.h>
22787 switch (0) case 0: case (sizeof (short) == $ac_size):;
22790 if { (eval echo configure:22791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22792 ac_cv_sizeof_short=$ac_size
22794 echo "configure: failed program was:" >&5
22795 cat conftest.$ac_ext >&5
22798 if test x$ac_cv_sizeof_short != x ; then break; fi
22803 if test x$ac_cv_sizeof_short = x ; then
22804 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22806 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22807 cat >> confdefs.h <<EOF
22808 #define SIZEOF_SHORT $ac_cv_sizeof_short
22812 echo $ac_n "checking size of int""... $ac_c" 1>&6
22813 echo "configure:22814: checking size of int" >&5
22814 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22815 echo $ac_n "(cached) $ac_c" 1>&6
22817 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22818 cat > conftest.$ac_ext <<EOF
22819 #line 22820 "configure"
22820 #include "confdefs.h"
22821 #include "confdefs.h"
22822 #include <stdlib.h>
22823 #include <sys/types.h>
22827 switch (0) case 0: case (sizeof (int) == $ac_size):;
22830 if { (eval echo configure:22831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22832 ac_cv_sizeof_int=$ac_size
22834 echo "configure: failed program was:" >&5
22835 cat conftest.$ac_ext >&5
22838 if test x$ac_cv_sizeof_int != x ; then break; fi
22843 if test x$ac_cv_sizeof_int = x ; then
22844 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22846 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22847 cat >> confdefs.h <<EOF
22848 #define SIZEOF_INT $ac_cv_sizeof_int
22852 echo $ac_n "checking size of long""... $ac_c" 1>&6
22853 echo "configure:22854: checking size of long" >&5
22854 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22855 echo $ac_n "(cached) $ac_c" 1>&6
22857 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22858 cat > conftest.$ac_ext <<EOF
22859 #line 22860 "configure"
22860 #include "confdefs.h"
22861 #include "confdefs.h"
22862 #include <stdlib.h>
22863 #include <sys/types.h>
22867 switch (0) case 0: case (sizeof (long) == $ac_size):;
22870 if { (eval echo configure:22871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22872 ac_cv_sizeof_long=$ac_size
22874 echo "configure: failed program was:" >&5
22875 cat conftest.$ac_ext >&5
22878 if test x$ac_cv_sizeof_long != x ; then break; fi
22883 if test x$ac_cv_sizeof_long = x ; then
22884 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22886 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22887 cat >> confdefs.h <<EOF
22888 #define SIZEOF_LONG $ac_cv_sizeof_long
22892 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22893 echo "configure:22894: checking size of wchar_t" >&5
22894 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22895 echo $ac_n "(cached) $ac_c" 1>&6
22897 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22898 cat > conftest.$ac_ext <<EOF
22899 #line 22900 "configure"
22900 #include "confdefs.h"
22901 #include "confdefs.h"
22902 #include <stdlib.h>
22903 #include <sys/types.h>
22907 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22910 if { (eval echo configure:22911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22912 ac_cv_sizeof_wchar_t=$ac_size
22914 echo "configure: failed program was:" >&5
22915 cat conftest.$ac_ext >&5
22918 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22923 if test x$ac_cv_sizeof_wchar_t = x ; then
22924 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22926 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22927 cat >> confdefs.h <<EOF
22928 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22933 if test "$ac_cv_sizeof_int" -lt 4 ; then
22934 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22936 cat >> confdefs.h <<\EOF
22937 #define LBER_INT_T long
22941 cat >> confdefs.h <<\EOF
22942 #define LBER_INT_T int
22947 cat >> confdefs.h <<\EOF
22948 #define LBER_LEN_T long
22951 cat >> confdefs.h <<\EOF
22952 #define LBER_SOCKET_T int
22955 cat >> confdefs.h <<\EOF
22956 #define LBER_TAG_T long
22960 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22961 echo "configure:22962: checking for 8-bit clean memcmp" >&5
22962 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22963 echo $ac_n "(cached) $ac_c" 1>&6
22965 if test "$cross_compiling" = yes; then
22966 ac_cv_func_memcmp_clean=no
22968 cat > conftest.$ac_ext <<EOF
22969 #line 22970 "configure"
22970 #include "confdefs.h"
22974 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22975 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22979 if { (eval echo configure:22980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22981 ac_cv_func_memcmp_clean=yes
22983 echo "configure: failed program was:" >&5
22984 cat conftest.$ac_ext >&5
22986 ac_cv_func_memcmp_clean=no
22993 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22994 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22997 if test $ac_cv_func_memcmp_clean = no ; then
22998 cat >> confdefs.h <<\EOF
22999 #define NEED_MEMCMP_REPLACEMENT 1
23004 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23005 echo "configure:23006: checking for strftime" >&5
23006 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23007 echo $ac_n "(cached) $ac_c" 1>&6
23009 cat > conftest.$ac_ext <<EOF
23010 #line 23011 "configure"
23011 #include "confdefs.h"
23012 /* System header to define __stub macros and hopefully few prototypes,
23013 which can conflict with char strftime(); below. */
23014 #include <assert.h>
23015 /* Override any gcc2 internal prototype to avoid an error. */
23016 /* We use char because int might match the return type of a gcc2
23017 builtin and then its argument prototype would still apply. */
23023 /* The GNU C library defines this for functions which it implements
23024 to always fail with ENOSYS. Some functions are actually named
23025 something starting with __ and the normal name is an alias. */
23026 #if defined (__stub_strftime) || defined (__stub___strftime)
23034 if { (eval echo configure:23035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23036 eval "ac_cv_func_strftime=yes"
23038 echo "configure: failed program was:" >&5
23039 cat conftest.$ac_ext >&5
23041 eval "ac_cv_func_strftime=no"
23046 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
23047 echo "$ac_t""yes" 1>&6
23048 cat >> confdefs.h <<\EOF
23049 #define HAVE_STRFTIME 1
23053 echo "$ac_t""no" 1>&6
23054 # strftime is in -lintl on SCO UNIX.
23055 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
23056 echo "configure:23057: checking for strftime in -lintl" >&5
23057 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
23058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23059 echo $ac_n "(cached) $ac_c" 1>&6
23061 ac_save_LIBS="$LIBS"
23062 LIBS="-lintl $LIBS"
23063 cat > conftest.$ac_ext <<EOF
23064 #line 23065 "configure"
23065 #include "confdefs.h"
23066 /* Override any gcc2 internal prototype to avoid an error. */
23067 /* We use char because int might match the return type of a gcc2
23068 builtin and then its argument prototype would still apply. */
23075 if { (eval echo configure:23076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23077 eval "ac_cv_lib_$ac_lib_var=yes"
23079 echo "configure: failed program was:" >&5
23080 cat conftest.$ac_ext >&5
23082 eval "ac_cv_lib_$ac_lib_var=no"
23085 LIBS="$ac_save_LIBS"
23088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23089 echo "$ac_t""yes" 1>&6
23090 cat >> confdefs.h <<\EOF
23091 #define HAVE_STRFTIME 1
23094 LIBS="-lintl $LIBS"
23096 echo "$ac_t""no" 1>&6
23102 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
23103 echo "configure:23104: checking for inet_aton()" >&5
23104 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
23105 echo $ac_n "(cached) $ac_c" 1>&6
23107 cat > conftest.$ac_ext <<EOF
23108 #line 23109 "configure"
23109 #include "confdefs.h"
23111 #ifdef HAVE_SYS_TYPES_H
23112 # include <sys/types.h>
23114 #ifdef HAVE_SYS_SOCKET_H
23115 # include <sys/socket.h>
23116 # ifdef HAVE_SYS_SELECT_H
23117 # include <sys/select.h>
23119 # include <netinet/in.h>
23120 # ifdef HAVE_ARPA_INET_H
23121 # include <arpa/inet.h>
23127 int rc = inet_aton( "255.255.255.255", &in );
23130 if { (eval echo configure:23131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23132 ol_cv_func_inet_aton=yes
23134 echo "configure: failed program was:" >&5
23135 cat conftest.$ac_ext >&5
23137 ol_cv_func_inet_aton=no
23142 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
23143 if test $ol_cv_func_inet_aton != no; then
23144 cat >> confdefs.h <<\EOF
23145 #define HAVE_INET_ATON 1
23151 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
23152 echo "configure:23153: checking for _spawnlp" >&5
23153 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
23154 echo $ac_n "(cached) $ac_c" 1>&6
23156 cat > conftest.$ac_ext <<EOF
23157 #line 23158 "configure"
23158 #include "confdefs.h"
23159 /* System header to define __stub macros and hopefully few prototypes,
23160 which can conflict with char _spawnlp(); below. */
23161 #include <assert.h>
23162 /* Override any gcc2 internal prototype to avoid an error. */
23163 /* We use char because int might match the return type of a gcc2
23164 builtin and then its argument prototype would still apply. */
23170 /* The GNU C library defines this for functions which it implements
23171 to always fail with ENOSYS. Some functions are actually named
23172 something starting with __ and the normal name is an alias. */
23173 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
23181 if { (eval echo configure:23182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23183 eval "ac_cv_func__spawnlp=yes"
23185 echo "configure: failed program was:" >&5
23186 cat conftest.$ac_ext >&5
23188 eval "ac_cv_func__spawnlp=no"
23193 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
23194 echo "$ac_t""yes" 1>&6
23195 cat >> confdefs.h <<\EOF
23196 #define HAVE_SPAWNLP 1
23200 echo "$ac_t""no" 1>&6
23204 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
23205 echo "configure:23206: checking for _snprintf" >&5
23206 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
23207 echo $ac_n "(cached) $ac_c" 1>&6
23209 cat > conftest.$ac_ext <<EOF
23210 #line 23211 "configure"
23211 #include "confdefs.h"
23212 /* System header to define __stub macros and hopefully few prototypes,
23213 which can conflict with char _snprintf(); below. */
23214 #include <assert.h>
23215 /* Override any gcc2 internal prototype to avoid an error. */
23216 /* We use char because int might match the return type of a gcc2
23217 builtin and then its argument prototype would still apply. */
23223 /* The GNU C library defines this for functions which it implements
23224 to always fail with ENOSYS. Some functions are actually named
23225 something starting with __ and the normal name is an alias. */
23226 #if defined (__stub__snprintf) || defined (__stub____snprintf)
23234 if { (eval echo configure:23235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23236 eval "ac_cv_func__snprintf=yes"
23238 echo "configure: failed program was:" >&5
23239 cat conftest.$ac_ext >&5
23241 eval "ac_cv_func__snprintf=no"
23246 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
23247 echo "$ac_t""yes" 1>&6
23248 ac_cv_func_snprintf=yes
23249 cat >> confdefs.h <<\EOF
23250 #define snprintf _snprintf
23255 echo "$ac_t""no" 1>&6
23259 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
23260 echo "configure:23261: checking for _vsnprintf" >&5
23261 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
23262 echo $ac_n "(cached) $ac_c" 1>&6
23264 cat > conftest.$ac_ext <<EOF
23265 #line 23266 "configure"
23266 #include "confdefs.h"
23267 /* System header to define __stub macros and hopefully few prototypes,
23268 which can conflict with char _vsnprintf(); below. */
23269 #include <assert.h>
23270 /* Override any gcc2 internal prototype to avoid an error. */
23271 /* We use char because int might match the return type of a gcc2
23272 builtin and then its argument prototype would still apply. */
23278 /* The GNU C library defines this for functions which it implements
23279 to always fail with ENOSYS. Some functions are actually named
23280 something starting with __ and the normal name is an alias. */
23281 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
23289 if { (eval echo configure:23290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23291 eval "ac_cv_func__vsnprintf=yes"
23293 echo "configure: failed program was:" >&5
23294 cat conftest.$ac_ext >&5
23296 eval "ac_cv_func__vsnprintf=no"
23301 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
23302 echo "$ac_t""yes" 1>&6
23303 ac_cv_func_vsnprintf=yes
23304 cat >> confdefs.h <<\EOF
23305 #define vsnprintf _vsnprintf
23310 echo "$ac_t""no" 1>&6
23314 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23315 echo "configure:23316: checking for vprintf" >&5
23316 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23317 echo $ac_n "(cached) $ac_c" 1>&6
23319 cat > conftest.$ac_ext <<EOF
23320 #line 23321 "configure"
23321 #include "confdefs.h"
23322 /* System header to define __stub macros and hopefully few prototypes,
23323 which can conflict with char vprintf(); below. */
23324 #include <assert.h>
23325 /* Override any gcc2 internal prototype to avoid an error. */
23326 /* We use char because int might match the return type of a gcc2
23327 builtin and then its argument prototype would still apply. */
23333 /* The GNU C library defines this for functions which it implements
23334 to always fail with ENOSYS. Some functions are actually named
23335 something starting with __ and the normal name is an alias. */
23336 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23344 if { (eval echo configure:23345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23346 eval "ac_cv_func_vprintf=yes"
23348 echo "configure: failed program was:" >&5
23349 cat conftest.$ac_ext >&5
23351 eval "ac_cv_func_vprintf=no"
23356 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23357 echo "$ac_t""yes" 1>&6
23358 cat >> confdefs.h <<\EOF
23359 #define HAVE_VPRINTF 1
23363 echo "$ac_t""no" 1>&6
23366 if test "$ac_cv_func_vprintf" != yes; then
23367 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23368 echo "configure:23369: checking for _doprnt" >&5
23369 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23370 echo $ac_n "(cached) $ac_c" 1>&6
23372 cat > conftest.$ac_ext <<EOF
23373 #line 23374 "configure"
23374 #include "confdefs.h"
23375 /* System header to define __stub macros and hopefully few prototypes,
23376 which can conflict with char _doprnt(); below. */
23377 #include <assert.h>
23378 /* Override any gcc2 internal prototype to avoid an error. */
23379 /* We use char because int might match the return type of a gcc2
23380 builtin and then its argument prototype would still apply. */
23386 /* The GNU C library defines this for functions which it implements
23387 to always fail with ENOSYS. Some functions are actually named
23388 something starting with __ and the normal name is an alias. */
23389 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23397 if { (eval echo configure:23398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23399 eval "ac_cv_func__doprnt=yes"
23401 echo "configure: failed program was:" >&5
23402 cat conftest.$ac_ext >&5
23404 eval "ac_cv_func__doprnt=no"
23409 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23410 echo "$ac_t""yes" 1>&6
23411 cat >> confdefs.h <<\EOF
23412 #define HAVE_DOPRNT 1
23416 echo "$ac_t""no" 1>&6
23422 if test $ac_cv_func_vprintf = yes ; then
23423 for ac_func in snprintf vsnprintf
23425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23426 echo "configure:23427: checking for $ac_func" >&5
23427 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23428 echo $ac_n "(cached) $ac_c" 1>&6
23430 cat > conftest.$ac_ext <<EOF
23431 #line 23432 "configure"
23432 #include "confdefs.h"
23433 /* System header to define __stub macros and hopefully few prototypes,
23434 which can conflict with char $ac_func(); below. */
23435 #include <assert.h>
23436 /* Override any gcc2 internal prototype to avoid an error. */
23437 /* We use char because int might match the return type of a gcc2
23438 builtin and then its argument prototype would still apply. */
23444 /* The GNU C library defines this for functions which it implements
23445 to always fail with ENOSYS. Some functions are actually named
23446 something starting with __ and the normal name is an alias. */
23447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23455 if { (eval echo configure:23456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23457 eval "ac_cv_func_$ac_func=yes"
23459 echo "configure: failed program was:" >&5
23460 cat conftest.$ac_ext >&5
23462 eval "ac_cv_func_$ac_func=no"
23467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23468 echo "$ac_t""yes" 1>&6
23469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23470 cat >> confdefs.h <<EOF
23471 #define $ac_tr_func 1
23475 echo "$ac_t""no" 1>&6
23538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23539 echo "configure:23540: checking for $ac_func" >&5
23540 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23541 echo $ac_n "(cached) $ac_c" 1>&6
23543 cat > conftest.$ac_ext <<EOF
23544 #line 23545 "configure"
23545 #include "confdefs.h"
23546 /* System header to define __stub macros and hopefully few prototypes,
23547 which can conflict with char $ac_func(); below. */
23548 #include <assert.h>
23549 /* Override any gcc2 internal prototype to avoid an error. */
23550 /* We use char because int might match the return type of a gcc2
23551 builtin and then its argument prototype would still apply. */
23557 /* The GNU C library defines this for functions which it implements
23558 to always fail with ENOSYS. Some functions are actually named
23559 something starting with __ and the normal name is an alias. */
23560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23568 if { (eval echo configure:23569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23570 eval "ac_cv_func_$ac_func=yes"
23572 echo "configure: failed program was:" >&5
23573 cat conftest.$ac_ext >&5
23575 eval "ac_cv_func_$ac_func=no"
23580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23581 echo "$ac_t""yes" 1>&6
23582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23583 cat >> confdefs.h <<EOF
23584 #define $ac_tr_func 1
23588 echo "$ac_t""no" 1>&6
23593 for ac_func in getopt getpeereid
23595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23596 echo "configure:23597: checking for $ac_func" >&5
23597 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23598 echo $ac_n "(cached) $ac_c" 1>&6
23600 cat > conftest.$ac_ext <<EOF
23601 #line 23602 "configure"
23602 #include "confdefs.h"
23603 /* System header to define __stub macros and hopefully few prototypes,
23604 which can conflict with char $ac_func(); below. */
23605 #include <assert.h>
23606 /* Override any gcc2 internal prototype to avoid an error. */
23607 /* We use char because int might match the return type of a gcc2
23608 builtin and then its argument prototype would still apply. */
23614 /* The GNU C library defines this for functions which it implements
23615 to always fail with ENOSYS. Some functions are actually named
23616 something starting with __ and the normal name is an alias. */
23617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23625 if { (eval echo configure:23626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23627 eval "ac_cv_func_$ac_func=yes"
23629 echo "configure: failed program was:" >&5
23630 cat conftest.$ac_ext >&5
23632 eval "ac_cv_func_$ac_func=no"
23637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23638 echo "$ac_t""yes" 1>&6
23639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23640 cat >> confdefs.h <<EOF
23641 #define $ac_tr_func 1
23645 echo "$ac_t""no" 1>&6
23646 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23652 if test "$ac_cv_func_getopt" != yes; then
23653 LIBSRCS="$LIBSRCS getopt.c"
23655 if test "$ac_cv_func_getpeereid" != yes; then
23656 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23657 echo "configure:23658: checking for msg_accrights in msghdr" >&5
23658 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23659 echo $ac_n "(cached) $ac_c" 1>&6
23661 cat > conftest.$ac_ext <<EOF
23662 #line 23663 "configure"
23663 #include "confdefs.h"
23664 #include <sys/socket.h>
23666 struct msghdr m; m.msg_accrightslen=0
23669 if { (eval echo configure:23670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23671 ol_cv_msghdr_msg_accrights=yes
23673 echo "configure: failed program was:" >&5
23674 cat conftest.$ac_ext >&5
23676 ol_cv_msghdr_msg_accrights=no
23682 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23683 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23684 cat >> confdefs.h <<\EOF
23685 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23690 LIBSRCS="$LIBSRCS getpeereid.c"
23692 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23693 if test "$ac_cv_func_snprintf" != yes; then
23694 cat >> confdefs.h <<\EOF
23695 #define snprintf ber_pvt_snprintf
23699 if test "$ac_cv_func_vsnprintf" != yes; then
23700 cat >> confdefs.h <<\EOF
23701 #define vsnprintf ber_pvt_vsnprintf
23707 # Check Configuration
23708 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23709 echo "configure:23710: checking declaration of sys_errlist" >&5
23710 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23711 echo $ac_n "(cached) $ac_c" 1>&6
23714 cat > conftest.$ac_ext <<EOF
23715 #line 23716 "configure"
23716 #include "confdefs.h"
23719 #include <sys/types.h>
23722 #include <stdlib.h>
23725 char *c = (char *) *sys_errlist
23728 if { (eval echo configure:23729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23730 ol_cv_dcl_sys_errlist=yes
23731 ol_cv_have_sys_errlist=yes
23733 echo "configure: failed program was:" >&5
23734 cat conftest.$ac_ext >&5
23736 ol_cv_dcl_sys_errlist=no
23741 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23743 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23744 if test $ol_cv_dcl_sys_errlist = no ; then
23745 cat >> confdefs.h <<\EOF
23746 #define DECL_SYS_ERRLIST 1
23750 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23751 echo "configure:23752: checking existence of sys_errlist" >&5
23752 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23753 echo $ac_n "(cached) $ac_c" 1>&6
23756 cat > conftest.$ac_ext <<EOF
23757 #line 23758 "configure"
23758 #include "confdefs.h"
23761 char *c = (char *) *sys_errlist
23764 if { (eval echo configure:23765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23766 ol_cv_have_sys_errlist=yes
23768 echo "configure: failed program was:" >&5
23769 cat conftest.$ac_ext >&5
23771 ol_cv_have_sys_errlist=no
23776 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23778 if test $ol_cv_have_sys_errlist = yes ; then
23779 cat >> confdefs.h <<\EOF
23780 #define HAVE_SYS_ERRLIST 1
23787 if test "$ol_enable_slapi" != no ; then
23788 for ac_hdr in ltdl.h
23790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23792 echo "configure:23793: checking for $ac_hdr" >&5
23793 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23794 echo $ac_n "(cached) $ac_c" 1>&6
23796 cat > conftest.$ac_ext <<EOF
23797 #line 23798 "configure"
23798 #include "confdefs.h"
23801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23802 { (eval echo configure:23803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23804 if test -z "$ac_err"; then
23806 eval "ac_cv_header_$ac_safe=yes"
23809 echo "configure: failed program was:" >&5
23810 cat conftest.$ac_ext >&5
23812 eval "ac_cv_header_$ac_safe=no"
23816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23817 echo "$ac_t""yes" 1>&6
23818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23819 cat >> confdefs.h <<EOF
23820 #define $ac_tr_hdr 1
23824 echo "$ac_t""no" 1>&6
23829 if test $ac_cv_header_ltdl_h != yes ; then
23830 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23832 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23833 echo "configure:23834: checking for lt_dlinit in -lltdl" >&5
23834 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23836 echo $ac_n "(cached) $ac_c" 1>&6
23838 ac_save_LIBS="$LIBS"
23839 LIBS="-lltdl $LIBS"
23840 cat > conftest.$ac_ext <<EOF
23841 #line 23842 "configure"
23842 #include "confdefs.h"
23843 /* Override any gcc2 internal prototype to avoid an error. */
23844 /* We use char because int might match the return type of a gcc2
23845 builtin and then its argument prototype would still apply. */
23852 if { (eval echo configure:23853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23854 eval "ac_cv_lib_$ac_lib_var=yes"
23856 echo "configure: failed program was:" >&5
23857 cat conftest.$ac_ext >&5
23859 eval "ac_cv_lib_$ac_lib_var=no"
23862 LIBS="$ac_save_LIBS"
23865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23866 echo "$ac_t""yes" 1>&6
23869 LIBSLAPI=libslapi.a
23870 LIBSLAPITOOLS=../libslapi.a
23871 cat >> confdefs.h <<\EOF
23872 #define HAVE_LIBLTDL 1
23877 echo "$ac_t""no" 1>&6
23878 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23882 cat >> confdefs.h <<\EOF
23883 #define LDAP_SLAPI 1
23888 if test "$ol_enable_debug" != no ; then
23889 cat >> confdefs.h <<\EOF
23890 #define LDAP_DEBUG 1
23894 if test "$ol_enable_syslog" = yes ; then
23895 cat >> confdefs.h <<\EOF
23896 #define LDAP_SYSLOG 1
23900 if test "$ol_link_kbind" != no ; then
23901 cat >> confdefs.h <<\EOF
23902 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23906 if test "$ol_enable_proctitle" != no ; then
23907 cat >> confdefs.h <<\EOF
23908 #define LDAP_PROCTITLE 1
23912 if test "$ol_enable_referrals" != no ; then
23913 cat >> confdefs.h <<\EOF
23914 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23918 if test "$ol_enable_local" != no; then
23919 cat >> confdefs.h <<\EOF
23920 #define LDAP_PF_LOCAL 1
23924 if test "$ol_link_ipv6" != no; then
23925 cat >> confdefs.h <<\EOF
23926 #define LDAP_PF_INET6 1
23930 if test "$ol_enable_cleartext" != no ; then
23931 cat >> confdefs.h <<\EOF
23932 #define SLAPD_CLEARTEXT 1
23936 if test "$ol_enable_crypt" != no ; then
23937 cat >> confdefs.h <<\EOF
23938 #define SLAPD_CRYPT 1
23942 if test "$ol_link_spasswd" != no ; then
23943 cat >> confdefs.h <<\EOF
23944 #define SLAPD_SPASSWD 1
23948 if test "$ol_enable_multimaster" != no ; then
23949 cat >> confdefs.h <<\EOF
23950 #define SLAPD_MULTIMASTER 1
23954 if test "$ol_enable_rlookups" != no ; then
23955 cat >> confdefs.h <<\EOF
23956 #define SLAPD_RLOOKUPS 1
23960 if test "$ol_enable_aci" != no ; then
23961 cat >> confdefs.h <<\EOF
23962 #define SLAPD_ACI_ENABLED 1
23967 if test "$ol_link_modules" != no ; then
23968 cat >> confdefs.h <<\EOF
23969 #define SLAPD_MODULES 1
23973 SLAPD_MODULES_LDFLAGS="-dlopen self"
23976 cat >> confdefs.h <<\EOF
23977 #define SLAPD_MOD_STATIC 1
23980 cat >> confdefs.h <<\EOF
23981 #define SLAPD_MOD_DYNAMIC 2
23985 if test "$ol_enable_bdb" != no ; then
23987 BUILD_BDB=$ol_enable_bdb
23988 if test "$ol_enable_bdb" = mod ; then
23989 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23990 MFLAG=SLAPD_MOD_DYNAMIC
23992 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23993 MFLAG=SLAPD_MOD_STATIC
23995 cat >> confdefs.h <<EOF
23996 #define SLAPD_BDB $MFLAG
24001 if test "$ol_enable_dnssrv" != no ; then
24003 BUILD_DNSSRV=$ol_enable_dnssrv
24004 if test "$ol_enable_dnssrv" = mod ; then
24005 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24006 MFLAG=SLAPD_MOD_DYNAMIC
24008 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24009 MFLAG=SLAPD_MOD_STATIC
24011 cat >> confdefs.h <<EOF
24012 #define SLAPD_DNSSRV $MFLAG
24017 if test "$ol_enable_hdb" != no ; then
24019 BUILD_HDB=$ol_enable_hdb
24020 if test "$ol_enable_hdb" = mod ; then
24021 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24022 MFLAG=SLAPD_MOD_DYNAMIC
24024 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24025 MFLAG=SLAPD_MOD_STATIC
24027 cat >> confdefs.h <<EOF
24028 #define SLAPD_HDB $MFLAG
24033 if test "$ol_enable_ldap" != no ; then
24035 BUILD_LDAP=$ol_enable_ldap
24036 if test "$ol_enable_ldap" = mod ; then
24037 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24038 MFLAG=SLAPD_MOD_DYNAMIC
24040 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24041 MFLAG=SLAPD_MOD_STATIC
24043 cat >> confdefs.h <<EOF
24044 #define SLAPD_LDAP $MFLAG
24049 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24051 BUILD_LDBM=$ol_enable_ldbm
24052 if test "$ol_enable_ldbm" = mod ; then
24053 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24054 MFLAG=SLAPD_MOD_DYNAMIC
24056 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24057 MFLAG=SLAPD_MOD_STATIC
24059 cat >> confdefs.h <<EOF
24060 #define SLAPD_LDBM $MFLAG
24065 if test "$ol_enable_meta" != no ; then
24067 BUILD_META=$ol_enable_meta
24069 if test "$ol_enable_meta" = mod ; then
24070 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24071 MFLAG=SLAPD_MOD_DYNAMIC
24073 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24074 MFLAG=SLAPD_MOD_STATIC
24076 cat >> confdefs.h <<EOF
24077 #define SLAPD_META $MFLAG
24082 if test "$ol_enable_monitor" != no ; then
24084 BUILD_MONITOR=$ol_enable_monitor
24085 if test "$ol_enable_monitor" = mod ; then
24086 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24087 MFLAG=SLAPD_MOD_DYNAMIC
24089 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24090 MFLAG=SLAPD_MOD_STATIC
24092 cat >> confdefs.h <<EOF
24093 #define SLAPD_MONITOR $MFLAG
24098 if test "$ol_enable_null" != no ; then
24100 BUILD_NULL=$ol_enable_null
24101 if test "$ol_enable_null" = mod ; then
24102 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24103 MFLAG=SLAPD_MOD_DYNAMIC
24105 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24106 MFLAG=SLAPD_MOD_STATIC
24108 cat >> confdefs.h <<EOF
24109 #define SLAPD_NULL $MFLAG
24114 if test "$ol_enable_passwd" != no ; then
24116 BUILD_PASSWD=$ol_enable_passwd
24117 if test "$ol_enable_passwd" = mod ; then
24118 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24119 MFLAG=SLAPD_MOD_DYNAMIC
24121 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24122 MFLAG=SLAPD_MOD_STATIC
24124 cat >> confdefs.h <<EOF
24125 #define SLAPD_PASSWD $MFLAG
24130 if test "$ol_link_perl" != no ; then
24132 BUILD_PERL=$ol_enable_perl
24133 if test "$ol_enable_perl" = mod ; then
24134 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24135 MFLAG=SLAPD_MOD_DYNAMIC
24137 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24138 MFLAG=SLAPD_MOD_STATIC
24140 cat >> confdefs.h <<EOF
24141 #define SLAPD_PERL $MFLAG
24146 if test "$ol_enable_shell" != no ; then
24147 if test "$ol_link_thread" != no ; then
24148 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
24151 BUILD_SHELL=$ol_enable_shell
24152 if test "$ol_enable_shell" = mod ; then
24153 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24154 MFLAG=SLAPD_MOD_DYNAMIC
24156 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24157 MFLAG=SLAPD_MOD_STATIC
24159 cat >> confdefs.h <<EOF
24160 #define SLAPD_SHELL $MFLAG
24165 if test "$ol_link_sql" != no ; then
24167 BUILD_SQL=$ol_enable_sql
24168 if test "$ol_enable_sql" = mod; then
24169 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24170 MFLAG=SLAPD_MOD_DYNAMIC
24172 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24173 MFLAG=SLAPD_MOD_STATIC
24175 cat >> confdefs.h <<EOF
24176 #define SLAPD_SQL $MFLAG
24181 if test "$ol_enable_dyngroup" != no ; then
24182 BUILD_DYNGROUP=$ol_enable_dyngroup
24183 if test "$ol_enable_dyngroup" = mod ; then
24184 MFLAG=SLAPD_MOD_DYNAMIC
24185 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24187 MFLAG=SLAPD_MOD_STATIC
24189 cat >> confdefs.h <<EOF
24190 #define SLAPD_OVER_DYNGROUP $MFLAG
24195 if test "$ol_enable_proxycache" != no ; then
24196 BUILD_PROXYCACHE=$ol_enable_proxycache
24197 if test "$ol_enable_proxycache" = mod ; then
24198 MFLAG=SLAPD_MOD_DYNAMIC
24199 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24201 MFLAG=SLAPD_MOD_STATIC
24203 cat >> confdefs.h <<EOF
24204 #define SLAPD_OVER_PROXYCACHE $MFLAG
24209 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24210 $BUILD_SLAPD = yes ; then
24214 if test "$ol_enable_rewrite" != no ; then
24215 cat >> confdefs.h <<\EOF
24216 #define ENABLE_REWRITE 1
24222 if test "$ol_enable_slapi" != no ; then
24223 cat >> confdefs.h <<\EOF
24224 #define ENABLE_SLAPI 1
24228 SLAPD_SLAPI_DEPEND=libslapi.a
24233 if test "$ac_cv_mingw32" = yes ; then
24235 SLAPD_MODULES_LDFLAGS=
24240 if test -z "$SLAPD_STATIC_BACKENDS"; then
24241 SLAPD_NO_STATIC='#'
24306 # Check whether --with-xxinstall or --without-xxinstall was given.
24307 if test "${with_xxinstall+set}" = set; then
24308 withval="$with_xxinstall"
24316 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24318 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24319 # Let make expand exec_prefix.
24320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24322 # Any assignment to VPATH causes Sun make to only execute
24323 # the first set of double-colon rules, so remove it if not needed.
24324 # If there is a colon in the path, we need to keep it.
24325 if test "x$srcdir" = x.; then
24326 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24329 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24331 DEFS=-DHAVE_CONFIG_H
24333 # Without the "./", some shells look in PATH for config.status.
24334 : ${CONFIG_STATUS=./config.status}
24336 echo creating $CONFIG_STATUS
24337 rm -f $CONFIG_STATUS
24338 cat > $CONFIG_STATUS <<EOF
24340 # Generated automatically by configure.
24341 # Run this file to recreate the current configuration.
24342 # This directory was configured as follows,
24343 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24345 # $0 $ac_configure_args
24347 # Compiler output produced by configure, useful for debugging
24348 # configure, is in ./config.log if it exists.
24350 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24353 case "\$ac_option" in
24354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24355 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24356 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24357 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24358 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24360 -help | --help | --hel | --he | --h)
24361 echo "\$ac_cs_usage"; exit 0 ;;
24362 *) echo "\$ac_cs_usage"; exit 1 ;;
24366 ac_given_srcdir=$srcdir
24367 ac_given_INSTALL="$INSTALL"
24369 trap 'rm -fr `echo "\
24370 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24371 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24372 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24373 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24374 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24375 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24376 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24377 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24378 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24379 include/Makefile:build/top.mk:include/Makefile.in \
24380 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24381 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24382 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24383 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24384 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24385 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24386 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24387 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24388 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24389 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24390 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24391 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24392 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24393 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24394 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24395 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24396 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24397 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24398 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24399 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24400 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24401 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24402 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24403 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24404 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24405 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24407 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24408 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24410 cat >> $CONFIG_STATUS <<EOF
24412 # Protect against being on the right side of a sed subst in config.status.
24413 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24414 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24418 s%@CFLAGS@%$CFLAGS%g
24419 s%@CPPFLAGS@%$CPPFLAGS%g
24420 s%@CXXFLAGS@%$CXXFLAGS%g
24421 s%@FFLAGS@%$FFLAGS%g
24423 s%@LDFLAGS@%$LDFLAGS%g
24425 s%@exec_prefix@%$exec_prefix%g
24426 s%@prefix@%$prefix%g
24427 s%@program_transform_name@%$program_transform_name%g
24428 s%@bindir@%$bindir%g
24429 s%@sbindir@%$sbindir%g
24430 s%@libexecdir@%$libexecdir%g
24431 s%@datadir@%$datadir%g
24432 s%@sysconfdir@%$sysconfdir%g
24433 s%@sharedstatedir@%$sharedstatedir%g
24434 s%@localstatedir@%$localstatedir%g
24435 s%@libdir@%$libdir%g
24436 s%@includedir@%$includedir%g
24437 s%@oldincludedir@%$oldincludedir%g
24438 s%@infodir@%$infodir%g
24439 s%@mandir@%$mandir%g
24441 s%@host_alias@%$host_alias%g
24442 s%@host_cpu@%$host_cpu%g
24443 s%@host_vendor@%$host_vendor%g
24444 s%@host_os@%$host_os%g
24445 s%@target@%$target%g
24446 s%@target_alias@%$target_alias%g
24447 s%@target_cpu@%$target_cpu%g
24448 s%@target_vendor@%$target_vendor%g
24449 s%@target_os@%$target_os%g
24451 s%@build_alias@%$build_alias%g
24452 s%@build_cpu@%$build_cpu%g
24453 s%@build_vendor@%$build_vendor%g
24454 s%@build_os@%$build_os%g
24455 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24456 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24457 s%@INSTALL_DATA@%$INSTALL_DATA%g
24458 s%@PACKAGE@%$PACKAGE%g
24459 s%@VERSION@%$VERSION%g
24460 s%@ACLOCAL@%$ACLOCAL%g
24461 s%@AUTOCONF@%$AUTOCONF%g
24462 s%@AUTOMAKE@%$AUTOMAKE%g
24463 s%@AUTOHEADER@%$AUTOHEADER%g
24464 s%@MAKEINFO@%$MAKEINFO%g
24465 s%@install_sh@%$install_sh%g
24468 s%@AMTARFLAGS@%$AMTARFLAGS%g
24469 s%@SET_MAKE@%$SET_MAKE%g
24470 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24471 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24472 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24473 s%@top_builddir@%$top_builddir%g
24474 s%@ldap_subdir@%$ldap_subdir%g
24478 s%@OBJEXT@%$OBJEXT%g
24479 s%@EXEEXT@%$EXEEXT%g
24481 s%@RANLIB@%$RANLIB%g
24483 s%@DLLTOOL@%$DLLTOOL%g
24485 s%@OBJDUMP@%$OBJDUMP%g
24487 s%@LIBTOOL@%$LIBTOOL%g
24489 s%@PERLBIN@%$PERLBIN%g
24490 s%@OL_MKDEP@%$OL_MKDEP%g
24491 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24492 s%@LTSTATIC@%$LTSTATIC%g
24493 s%@LIBOBJS@%$LIBOBJS%g
24494 s%@LIBSRCS@%$LIBSRCS%g
24496 s%@WITH_TLS@%$WITH_TLS%g
24497 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24498 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24499 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24500 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24501 s%@BUILD_BDB@%$BUILD_BDB%g
24502 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24503 s%@BUILD_HDB@%$BUILD_HDB%g
24504 s%@BUILD_LDAP@%$BUILD_LDAP%g
24505 s%@BUILD_LDBM@%$BUILD_LDBM%g
24506 s%@BUILD_META@%$BUILD_META%g
24507 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24508 s%@BUILD_NULL@%$BUILD_NULL%g
24509 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24510 s%@BUILD_PERL@%$BUILD_PERL%g
24511 s%@BUILD_SHELL@%$BUILD_SHELL%g
24512 s%@BUILD_SQL@%$BUILD_SQL%g
24513 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24514 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24515 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24516 s%@LDAP_LIBS@%$LDAP_LIBS%g
24517 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24518 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24519 s%@LDBM_LIBS@%$LDBM_LIBS%g
24520 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24521 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24522 s%@WRAP_LIBS@%$WRAP_LIBS%g
24523 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24524 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24525 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24526 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24527 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24528 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24529 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24530 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24531 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24532 s%@KRB4_LIBS@%$KRB4_LIBS%g
24533 s%@KRB5_LIBS@%$KRB5_LIBS%g
24534 s%@SASL_LIBS@%$SASL_LIBS%g
24535 s%@TLS_LIBS@%$TLS_LIBS%g
24536 s%@MODULES_LIBS@%$MODULES_LIBS%g
24537 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24538 s%@LIBSLAPI@%$LIBSLAPI%g
24539 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24540 s%@AUTH_LIBS@%$AUTH_LIBS%g
24541 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24542 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24543 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24544 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24549 cat >> $CONFIG_STATUS <<\EOF
24551 # Split the substitutions into bite-sized pieces for seds with
24552 # small command number limits, like on Digital OSF/1 and HP-UX.
24553 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24554 ac_file=1 # Number of current file.
24555 ac_beg=1 # First line for current file.
24556 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24559 while $ac_more_lines; do
24560 if test $ac_beg -gt 1; then
24561 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24563 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24565 if test ! -s conftest.s$ac_file; then
24566 ac_more_lines=false
24567 rm -f conftest.s$ac_file
24569 if test -z "$ac_sed_cmds"; then
24570 ac_sed_cmds="sed -f conftest.s$ac_file"
24572 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24574 ac_file=`expr $ac_file + 1`
24576 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24579 if test -z "$ac_sed_cmds"; then
24584 cat >> $CONFIG_STATUS <<EOF
24586 CONFIG_FILES=\${CONFIG_FILES-"\
24587 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24588 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24589 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24590 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24591 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24592 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24593 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24594 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24595 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24596 include/Makefile:build/top.mk:include/Makefile.in \
24597 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24598 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24599 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24600 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24601 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24602 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24603 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24604 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24605 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24606 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24607 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24608 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24609 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24610 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24611 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24612 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24613 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24614 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24615 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24616 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24617 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24618 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24619 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24620 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24621 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24622 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24624 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24627 cat >> $CONFIG_STATUS <<\EOF
24628 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24631 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24632 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24633 *) ac_file_in="${ac_file}.in" ;;
24636 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24638 # Remove last slash and all that follows it. Not all systems have dirname.
24639 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24640 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24641 # The file is in a subdirectory.
24642 test ! -d "$ac_dir" && mkdir "$ac_dir"
24643 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24644 # A "../" for each directory in $ac_dir_suffix.
24645 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24647 ac_dir_suffix= ac_dots=
24650 case "$ac_given_srcdir" in
24652 if test -z "$ac_dots"; then top_srcdir=.
24653 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24654 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24655 *) # Relative path.
24656 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24657 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24660 case "$ac_given_INSTALL" in
24661 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24662 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24665 echo creating "$ac_file"
24667 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24669 *[Mm]akefile*) ac_comsub="1i\\
24670 # $configure_input" ;;
24674 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24676 s%@configure_input@%$configure_input%g
24677 s%@srcdir@%$srcdir%g
24678 s%@top_srcdir@%$top_srcdir%g
24679 s%@INSTALL@%$INSTALL%g
24680 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24684 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24685 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24687 # ac_d sets the value in "#define NAME VALUE" lines.
24688 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24689 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24692 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24693 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24694 ac_uB='\([ ]\)%\1#\2define\3'
24697 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24698 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24699 ac_eB='$%\1#\2define\3'
24703 if test "${CONFIG_HEADERS+set}" != set; then
24705 cat >> $CONFIG_STATUS <<EOF
24706 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24708 cat >> $CONFIG_STATUS <<\EOF
24710 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24711 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24713 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24714 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24715 *) ac_file_in="${ac_file}.in" ;;
24718 echo creating $ac_file
24720 rm -f conftest.frag conftest.in conftest.out
24721 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24722 cat $ac_file_inputs > conftest.in
24726 # Transform confdefs.h into a sed script conftest.vals that substitutes
24727 # the proper values into config.h.in to produce config.h. And first:
24728 # Protect against being on the right side of a sed subst in config.status.
24729 # Protect against being in an unquoted here document in config.status.
24730 rm -f conftest.vals
24731 cat > conftest.hdr <<\EOF
24734 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24738 sed -n -f conftest.hdr confdefs.h > conftest.vals
24741 # This sed command replaces #undef with comments. This is necessary, for
24742 # example, in the case of _POSIX_SOURCE, which is predefined and required
24743 # on some systems where configure will not decide to define it.
24744 cat >> conftest.vals <<\EOF
24745 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24748 # Break up conftest.vals because some shells have a limit on
24749 # the size of here documents, and old seds have small limits too.
24751 rm -f conftest.tail
24754 ac_lines=`grep -c . conftest.vals`
24755 # grep -c gives empty output for an empty file on some AIX systems.
24756 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24757 # Write a limited-size here document to conftest.frag.
24758 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24759 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24761 sed -f conftest.frag conftest.in > conftest.out
24763 mv conftest.out conftest.in
24764 ' >> $CONFIG_STATUS
24765 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24766 rm -f conftest.vals
24767 mv conftest.tail conftest.vals
24769 rm -f conftest.vals
24771 cat >> $CONFIG_STATUS <<\EOF
24772 rm -f conftest.frag conftest.h
24773 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24774 cat conftest.in >> conftest.h
24776 if cmp -s $ac_file conftest.h 2>/dev/null; then
24777 echo "$ac_file is unchanged"
24780 # Remove last slash and all that follows it. Not all systems have dirname.
24781 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24783 # The file is in a subdirectory.
24784 test ! -d "$ac_dir" && mkdir "$ac_dir"
24787 mv conftest.h $ac_file
24792 cat >> $CONFIG_STATUS <<EOF
24795 cat >> $CONFIG_STATUS <<\EOF
24799 echo Please run \"make depend\" to build dependencies
24803 chmod +x $CONFIG_STATUS
24804 rm -fr confdefs* $ac_clean_files
24805 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1