3 # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.6 2002/05/22 14:25:38 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
136 --enable-sql enable sql backend [no]"
138 --with-sql-module module type static|dynamic [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
146 Library Generation & Linking Options"
148 --enable-static[=PKGS] build static libraries [default=yes]"
150 --enable-shared[=PKGS] build shared libraries [default=yes]"
152 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
154 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
156 # Find the correct PATH separator. Usually this is `:', but
157 # DJGPP uses `;' like DOS.
158 if test "X${PATH_SEPARATOR+set}" != Xset; then
159 UNAME=${UNAME-`uname 2>/dev/null`}
161 *-DOS) lt_cv_sys_path_separator=';' ;;
162 *) lt_cv_sys_path_separator=':' ;;
164 PATH_SEPARATOR=$lt_cv_sys_path_separator
168 # Check that we are running under the correct shell.
169 SHELL=${CONFIG_SHELL-/bin/sh}
173 # Remove one level of quotation (which was required for Make).
174 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
179 if test "X$1" = X--no-reexec; then
180 # Discard the --no-reexec flag, and continue.
182 elif test "X$1" = X--fallback-echo; then
183 # Avoid inline document here, it may be left over
185 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
186 # Yippee, $echo works!
189 # Restart under the correct shell.
190 exec $SHELL "$0" --no-reexec ${1+"$@"}
193 if test "X$1" = X--fallback-echo; then
194 # used as fallback echo
202 # The HP-UX ksh and POSIX shell print the target directory to stdout
204 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
206 if test -z "$ECHO"; then
207 if test "X${echo_test_string+set}" != Xset; then
208 # find a string as large as possible, as long as the shell can cope with it
209 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
210 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
211 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
212 echo_test_string="`eval $cmd`" &&
213 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
220 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
221 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
222 test "X$echo_testing_string" = "X$echo_test_string"; then
225 # The Solaris, AIX, and Digital Unix default echo programs unquote
226 # backslashes. This makes it impossible to quote backslashes using
227 # echo "$something" | sed 's/\\/\\\\/g'
229 # So, first we look for a working echo in the user's PATH.
231 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
232 for dir in $PATH /usr/ucb; do
233 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
234 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
235 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
236 test "X$echo_testing_string" = "X$echo_test_string"; then
243 if test "X$echo" = Xecho; then
244 # We didn't find a better echo, so look for alternatives.
245 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
246 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
247 test "X$echo_testing_string" = "X$echo_test_string"; then
248 # This shell has a builtin print -r that does the trick.
250 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
251 test "X$CONFIG_SHELL" != X/bin/ksh; then
252 # If we have ksh, try running configure again with it.
253 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
254 export ORIGINAL_CONFIG_SHELL
255 CONFIG_SHELL=/bin/ksh
257 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
261 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
262 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
263 test "X$echo_testing_string" = "X$echo_test_string"; then
266 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
267 test "X$echo_testing_string" = 'X\t' &&
268 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
270 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
272 SHELL="$CONFIG_SHELL"
274 echo="$CONFIG_SHELL $0 --fallback-echo"
275 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
276 test "X$echo_testing_string" = 'X\t' &&
277 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
278 test "X$echo_testing_string" = "X$echo_test_string"; then
279 echo="$CONFIG_SHELL $0 --fallback-echo"
281 # maybe with a smaller string...
284 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
285 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
292 if test "$prev" != 'sed 50q "$0"'; then
293 echo_test_string=`eval $prev`
294 export echo_test_string
295 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
297 # Oops. We lost completely, so just stick with echo.
306 # Copy echo and quote the copy suitably for passing to libtool from
307 # the Makefile, instead of quoting the original, which is used later.
309 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
310 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
315 --disable-libtool-lock avoid locking (might break parallel builds)"
317 --with-pic try to use only PIC/non-PIC objects [default=use both]"
320 See INSTALL file for further details."
322 # Initialize some variables set by options.
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
326 cache_file=./config.cache
335 program_transform_name=s,x,x,
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 # Initialize some other variables.
359 SHELL=${CONFIG_SHELL-/bin/sh}
360 # Maximum number of lines to put in a shell here document.
367 # If the previous option needs an argument, assign it.
368 if test -n "$ac_prev"; then
369 eval "$ac_prev=\$ac_option"
375 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
379 # Accept the important Cygnus configure options, so we can diagnose typos.
383 -bindir | --bindir | --bindi | --bind | --bin | --bi)
385 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
386 bindir="$ac_optarg" ;;
388 -build | --build | --buil | --bui | --bu)
390 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
391 build="$ac_optarg" ;;
393 -cache-file | --cache-file | --cache-fil | --cache-fi \
394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
395 ac_prev=cache_file ;;
396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
398 cache_file="$ac_optarg" ;;
400 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
402 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
404 datadir="$ac_optarg" ;;
406 -disable-* | --disable-*)
407 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
412 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
413 eval "enable_${ac_feature}=no" ;;
415 -enable-* | --enable-*)
416 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
421 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
426 eval "enable_${ac_feature}='$ac_optarg'" ;;
428 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
429 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
430 | --exec | --exe | --ex)
431 ac_prev=exec_prefix ;;
432 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
433 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
434 | --exec=* | --exe=* | --ex=*)
435 exec_prefix="$ac_optarg" ;;
437 -gas | --gas | --ga | --g)
438 # Obsolete; use --with-gas.
441 -help | --help | --hel | --he)
442 # Omit some internal or obsolete options to make the list less imposing.
443 # This message is too long to be a string in the A/UX 3.1 sh.
445 Usage: configure [options] [host]
446 Options: [defaults in brackets after descriptions]
448 --cache-file=FILE cache test results in FILE
449 --help print this message
450 --no-create do not create output files
451 --quiet, --silent do not print \`checking...' messages
452 --version print the version of autoconf that created configure
453 Directory and file names:
454 --prefix=PREFIX install architecture-independent files in PREFIX
456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
458 --bindir=DIR user executables in DIR [EPREFIX/bin]
459 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
460 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
461 --datadir=DIR read-only architecture-independent data in DIR
463 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
464 --sharedstatedir=DIR modifiable architecture-independent data in DIR
466 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
467 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
468 --includedir=DIR C header files in DIR [PREFIX/include]
469 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
470 --infodir=DIR info documentation in DIR [PREFIX/info]
471 --mandir=DIR man documentation in DIR [PREFIX/man]
472 --srcdir=DIR find the sources in DIR [configure dir or ..]
473 --program-prefix=PREFIX prepend PREFIX to installed program names
474 --program-suffix=SUFFIX append SUFFIX to installed program names
475 --program-transform-name=PROGRAM
476 run sed PROGRAM on installed program names
480 --build=BUILD configure for building on BUILD [BUILD=HOST]
481 --host=HOST configure for HOST [guessed]
482 --target=TARGET configure for TARGET [TARGET=HOST]
483 Features and packages:
484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
488 --x-includes=DIR X include files are in DIR
489 --x-libraries=DIR X library files are in DIR
491 if test -n "$ac_help"; then
492 echo "--enable and --with options recognized:$ac_help"
496 -host | --host | --hos | --ho)
498 -host=* | --host=* | --hos=* | --ho=*)
501 -includedir | --includedir | --includedi | --included | --include \
502 | --includ | --inclu | --incl | --inc)
503 ac_prev=includedir ;;
504 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
505 | --includ=* | --inclu=* | --incl=* | --inc=*)
506 includedir="$ac_optarg" ;;
508 -infodir | --infodir | --infodi | --infod | --info | --inf)
510 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
511 infodir="$ac_optarg" ;;
513 -libdir | --libdir | --libdi | --libd)
515 -libdir=* | --libdir=* | --libdi=* | --libd=*)
516 libdir="$ac_optarg" ;;
518 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
519 | --libexe | --libex | --libe)
520 ac_prev=libexecdir ;;
521 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
522 | --libexe=* | --libex=* | --libe=*)
523 libexecdir="$ac_optarg" ;;
525 -localstatedir | --localstatedir | --localstatedi | --localstated \
526 | --localstate | --localstat | --localsta | --localst \
527 | --locals | --local | --loca | --loc | --lo)
528 ac_prev=localstatedir ;;
529 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
530 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
531 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
532 localstatedir="$ac_optarg" ;;
534 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
536 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
537 mandir="$ac_optarg" ;;
540 # Obsolete; use --without-fp.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
548 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
551 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
552 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
553 | --oldin | --oldi | --old | --ol | --o)
554 ac_prev=oldincludedir ;;
555 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
556 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
557 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
558 oldincludedir="$ac_optarg" ;;
560 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
562 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
563 prefix="$ac_optarg" ;;
565 -program-prefix | --program-prefix | --program-prefi | --program-pref \
566 | --program-pre | --program-pr | --program-p)
567 ac_prev=program_prefix ;;
568 -program-prefix=* | --program-prefix=* | --program-prefi=* \
569 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
570 program_prefix="$ac_optarg" ;;
572 -program-suffix | --program-suffix | --program-suffi | --program-suff \
573 | --program-suf | --program-su | --program-s)
574 ac_prev=program_suffix ;;
575 -program-suffix=* | --program-suffix=* | --program-suffi=* \
576 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
577 program_suffix="$ac_optarg" ;;
579 -program-transform-name | --program-transform-name \
580 | --program-transform-nam | --program-transform-na \
581 | --program-transform-n | --program-transform- \
582 | --program-transform | --program-transfor \
583 | --program-transfo | --program-transf \
584 | --program-trans | --program-tran \
585 | --progr-tra | --program-tr | --program-t)
586 ac_prev=program_transform_name ;;
587 -program-transform-name=* | --program-transform-name=* \
588 | --program-transform-nam=* | --program-transform-na=* \
589 | --program-transform-n=* | --program-transform-=* \
590 | --program-transform=* | --program-transfor=* \
591 | --program-transfo=* | --program-transf=* \
592 | --program-trans=* | --program-tran=* \
593 | --progr-tra=* | --program-tr=* | --program-t=*)
594 program_transform_name="$ac_optarg" ;;
596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
597 | -silent | --silent | --silen | --sile | --sil)
600 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
602 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
604 sbindir="$ac_optarg" ;;
606 -sharedstatedir | --sharedstatedir | --sharedstatedi \
607 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
608 | --sharedst | --shareds | --shared | --share | --shar \
610 ac_prev=sharedstatedir ;;
611 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
612 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
613 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
615 sharedstatedir="$ac_optarg" ;;
617 -site | --site | --sit)
619 -site=* | --site=* | --sit=*)
622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
625 srcdir="$ac_optarg" ;;
627 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
628 | --syscon | --sysco | --sysc | --sys | --sy)
629 ac_prev=sysconfdir ;;
630 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
631 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
632 sysconfdir="$ac_optarg" ;;
634 -target | --target | --targe | --targ | --tar | --ta | --t)
636 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
637 target="$ac_optarg" ;;
639 -v | -verbose | --verbose | --verbos | --verbo | --verb)
642 -version | --version | --versio | --versi | --vers)
643 echo "configure generated by autoconf version 2.13.1"
647 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
648 # Reject names that are not valid shell variable names.
649 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
650 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
652 ac_package=`echo $ac_package| sed 's/-/_/g'`
657 eval "with_${ac_package}='$ac_optarg'" ;;
659 -without-* | --without-*)
660 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
661 # Reject names that are not valid shell variable names.
662 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
663 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
665 ac_package=`echo $ac_package| sed 's/-/_/g'`
666 eval "with_${ac_package}=no" ;;
669 # Obsolete; use --with-x.
672 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
673 | --x-incl | --x-inc | --x-in | --x-i)
674 ac_prev=x_includes ;;
675 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
676 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
677 x_includes="$ac_optarg" ;;
679 -x-libraries | --x-libraries | --x-librarie | --x-librari \
680 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
681 ac_prev=x_libraries ;;
682 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
683 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
684 x_libraries="$ac_optarg" ;;
686 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
690 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
691 echo "configure: warning: $ac_option: invalid host type" 1>&2
693 if test "x$nonopt" != xNONE; then
694 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
702 if test -n "$ac_prev"; then
703 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
708 # File descriptor usage:
711 # 2 errors and warnings
712 # 3 some systems may open it to /dev/tty
713 # 4 used on the Kubota Titan
714 # 6 checking for... messages and results
715 # 5 compiler messages saved in config.log
716 if test "$silent" = yes; then
724 This file contains any messages produced by compilers while
725 running configure, to aid debugging if configure makes a mistake.
728 # Strip out --no-create and --no-recursion so they do not pile up.
729 # Also quote any args containing shell metacharacters.
734 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
735 | --no-cr | --no-c) ;;
736 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
737 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
738 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
739 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
740 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
745 # Only set these to C if already set. These must not be set unconditionally
746 # because not all systems understand e.g. LANG=C (notably SCO).
747 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
748 # Non-C LC_CTYPE values break the ctype check.
749 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
750 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
751 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
752 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
755 rm -rf conftest* confdefs.h
756 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
759 # A filename unique to this package, relative to the directory that
760 # configure is in, which we can look for to find out if srcdir is correct.
761 ac_unique_file=build/version.sh
763 # Find the source files, if location was not specified.
764 if test -z "$srcdir"; then
765 ac_srcdir_defaulted=yes
766 # Try the directory containing this script, then its parent.
768 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
769 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
771 if test ! -r $srcdir/$ac_unique_file; then
775 ac_srcdir_defaulted=no
777 if test ! -r $srcdir/$ac_unique_file; then
778 if test "$ac_srcdir_defaulted" = yes; then
779 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
781 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
784 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
786 # Prefer explicitly selected file to automatically selected ones.
787 if test -z "$CONFIG_SITE"; then
788 if test "x$prefix" != xNONE; then
789 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
791 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
794 for ac_site_file in $CONFIG_SITE; do
795 if test -r "$ac_site_file"; then
796 echo "loading site script $ac_site_file"
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
811 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
812 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
813 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
820 ac_n= ac_c='\c' ac_t=
824 # set unset (borrowed from autoconf 2.49c)
825 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
831 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
834 for ac_dir in build $srcdir/build; do
835 if test -f $ac_dir/install-sh; then
837 ac_install_sh="$ac_aux_dir/install-sh -c"
839 elif test -f $ac_dir/install.sh; then
841 ac_install_sh="$ac_aux_dir/install.sh -c"
843 elif test -f $ac_dir/shtool; then
845 ac_install_sh="$ac_aux_dir/shtool install -c"
849 if test -z "$ac_aux_dir"; then
850 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
852 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
853 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
854 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
856 eval `$ac_aux_dir/version.sh`
857 if test -z "$OL_STRING"; then
858 { echo "configure: error: could not determine version" 1>&2; exit 1; }
861 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
862 ac_cv_shtool="$ac_aux_dir/shtool"
864 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
867 SHTOOL="$ac_cv_shtool"
869 TB=`$SHTOOL echo -e %B`
870 TN=`$SHTOOL echo -e %b`
872 echo "Configuring $TB$OL_STRING$TN ..."
875 echo $ac_n "checking host system type""... $ac_c" 1>&6
876 echo "configure:877: checking host system type" >&5
877 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
879 # Make sure we can run config.sub.
880 if $ac_config_sub sun4 >/dev/null 2>&1; then :
881 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
884 ac_cv_host_alias=$host
885 case "$ac_cv_host_alias" in
889 if ac_cv_host_alias=`$ac_config_guess`; then :
890 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
892 *) ac_cv_host_alias=$nonopt ;;
896 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
897 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo $ac_n "(cached) $ac_c" 1>&6
904 echo "$ac_t""$ac_cv_host" 1>&6
907 host_alias=$ac_cv_host_alias
908 host_cpu=$ac_cv_host_cpu
909 host_vendor=$ac_cv_host_vendor
910 host_os=$ac_cv_host_os
916 echo $ac_n "checking target system type""... $ac_c" 1>&6
917 echo "configure:918: checking target system type" >&5
918 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
920 # Make sure we can run config.sub.
921 if $ac_config_sub sun4 >/dev/null 2>&1; then :
922 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
925 ac_cv_target_alias=$target
926 case "$ac_cv_target_alias" in
930 ac_cv_target_alias=$host_alias ;;
932 *) ac_cv_target_alias=$nonopt ;;
936 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
937 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
938 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
939 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941 echo $ac_n "(cached) $ac_c" 1>&6
944 echo "$ac_t""$ac_cv_target" 1>&6
947 target_alias=$ac_cv_target_alias
948 target_cpu=$ac_cv_target_cpu
949 target_vendor=$ac_cv_target_vendor
950 target_os=$ac_cv_target_os
956 echo $ac_n "checking build system type""... $ac_c" 1>&6
957 echo "configure:958: checking build system type" >&5
958 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
960 # Make sure we can run config.sub.
961 if $ac_config_sub sun4 >/dev/null 2>&1; then :
962 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 ac_cv_build_alias=$build
966 case "$ac_cv_build_alias" in
970 ac_cv_build_alias=$host_alias ;;
972 *) ac_cv_build_alias=$nonopt ;;
976 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
977 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
981 echo $ac_n "(cached) $ac_c" 1>&6
984 echo "$ac_t""$ac_cv_build" 1>&6
987 build_alias=$ac_cv_build_alias
988 build_cpu=$ac_cv_build_cpu
989 build_vendor=$ac_cv_build_vendor
990 build_os=$ac_cv_build_os
996 # Do some error checking and defaulting for the host and target type.
998 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1001 # 1. You are not allowed to specify --host, --target, and nonopt at the
1003 # 2. Host defaults to nonopt.
1004 # 3. If nonopt is not specified, then host defaults to the current host,
1005 # as determined by config.guess.
1006 # 4. Target and build default to nonopt.
1007 # 5. If nonopt is not specified, then target and build default to host.
1009 # The aliases save the names the user supplied, while $host etc.
1010 # will get canonicalized.
1011 case $host---$target---$nonopt in
1012 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1013 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016 test "$host_alias" != "$target_alias" &&
1017 test "$program_prefix$program_suffix$program_transform_name" = \
1019 program_prefix=${target_alias}-
1022 # Find a good install program. We prefer a C program (faster),
1023 # so one script is as good as another. But avoid the broken or
1024 # incompatible versions:
1025 # SysV /etc/install, /usr/sbin/install
1026 # SunOS /usr/etc/install
1027 # IRIX /sbin/install
1029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1032 # ./install, which can be erroneously created by make from ./install.sh.
1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1034 echo "configure:1035: checking for a BSD compatible install" >&5
1035 if test -z "$INSTALL"; then
1036 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1040 for ac_dir in $PATH; do
1041 # Account for people who put trailing slashes in PATH elements.
1043 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1045 # OSF1 and SCO ODT 3.0 have their own names for install.
1046 # Don't use installbsd from OSF since it installs stuff as root
1048 for ac_prog in ginstall scoinst install; do
1049 if test -f $ac_dir/$ac_prog; then
1050 if test $ac_prog = install &&
1051 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1052 # AIX install. It has an incompatible calling convention.
1054 elif test $ac_prog = install &&
1055 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # program-specific install script used by HP pwplus--don't use.
1059 ac_cv_path_install="$ac_dir/$ac_prog -c"
1070 if test "${ac_cv_path_install+set}" = set; then
1071 INSTALL="$ac_cv_path_install"
1073 # As a last resort, use the slow shell script. We don't cache a
1074 # path for INSTALL within a source directory, because that will
1075 # break other packages using the cache if that directory is
1076 # removed, or if the path is relative.
1077 INSTALL="$ac_install_sh"
1080 echo "$ac_t""$INSTALL" 1>&6
1082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1083 # It thinks the first close brace ends the variable substitution.
1084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1090 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether build environment is sane" >&5
1094 echo timestamp > conftestfile
1095 # Do `set' in a subshell so we don't clobber the current shell's
1096 # arguments. Must try -L first in case configure is actually a
1097 # symlink; some systems play weird games with the mod time of symlinks
1098 # (eg FreeBSD returns the mod time of the symlink's containing
1101 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1102 if test "$*" = "X"; then
1104 set X `ls -t $srcdir/configure conftestfile`
1106 if test "$*" != "X $srcdir/configure conftestfile" \
1107 && test "$*" != "X conftestfile $srcdir/configure"; then
1109 # If neither matched, then we have a broken ls. This can happen
1110 # if, for instance, CONFIG_SHELL is bash and it inherits a
1111 # broken ls alias from the environment. This has actually
1112 # happened. Such a system could not be considered "sane".
1113 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1114 alias in your environment" 1>&2; exit 1; }
1117 test "$2" = conftestfile
1123 { echo "configure: error: newly created file is older than distributed files!
1124 Check your system clock" 1>&2; exit 1; }
1127 echo "$ac_t""yes" 1>&6
1128 if test "$program_transform_name" = s,x,x,; then
1129 program_transform_name=
1131 # Double any \ or $. echo might interpret backslashes.
1132 cat <<\EOF_SED > conftestsed
1133 s,\\,\\\\,g; s,\$,$$,g
1135 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1138 test "$program_prefix" != NONE &&
1139 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1140 # Use a double $ so make ignores it.
1141 test "$program_suffix" != NONE &&
1142 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1144 # sed with no file args requires a program.
1145 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1147 for ac_prog in mawk gawk nawk awk
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AWK"; then
1157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1181 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${MAKE-make} sets \${MAKE}" >&5
1183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 cat > conftestmake <<\EOF
1189 @echo 'ac_maketemp="${MAKE}"'
1191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1193 if test -n "$ac_maketemp"; then
1194 eval ac_cv_prog_make_${ac_make}_set=yes
1196 eval ac_cv_prog_make_${ac_make}_set=no
1200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1204 echo "$ac_t""no" 1>&6
1205 SET_MAKE="MAKE=${MAKE-make}"
1214 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1215 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1220 missing_dir=`cd $ac_aux_dir && pwd`
1221 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1222 echo "configure:1223: checking for working aclocal" >&5
1223 # Run test in a subshell; some versions of sh will print an error if
1224 # an executable is not found, even if stderr is redirected.
1225 # Redirect stdin to placate older versions of autoconf. Sigh.
1226 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1228 echo "$ac_t""found" 1>&6
1230 ACLOCAL="$missing_dir/missing aclocal"
1231 echo "$ac_t""missing" 1>&6
1234 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1235 echo "configure:1236: checking for working autoconf" >&5
1236 # Run test in a subshell; some versions of sh will print an error if
1237 # an executable is not found, even if stderr is redirected.
1238 # Redirect stdin to placate older versions of autoconf. Sigh.
1239 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1241 echo "$ac_t""found" 1>&6
1243 AUTOCONF="$missing_dir/missing autoconf"
1244 echo "$ac_t""missing" 1>&6
1247 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1248 echo "configure:1249: checking for working automake" >&5
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (automake --version) < /dev/null > /dev/null 2>&1; then
1254 echo "$ac_t""found" 1>&6
1256 AUTOMAKE="$missing_dir/missing automake"
1257 echo "$ac_t""missing" 1>&6
1260 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working autoheader" >&5
1262 # Run test in a subshell; some versions of sh will print an error if
1263 # an executable is not found, even if stderr is redirected.
1264 # Redirect stdin to placate older versions of autoconf. Sigh.
1265 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1266 AUTOHEADER=autoheader
1267 echo "$ac_t""found" 1>&6
1269 AUTOHEADER="$missing_dir/missing autoheader"
1270 echo "$ac_t""missing" 1>&6
1273 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working makeinfo" >&5
1275 # Run test in a subshell; some versions of sh will print an error if
1276 # an executable is not found, even if stderr is redirected.
1277 # Redirect stdin to placate older versions of autoconf. Sigh.
1278 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1280 echo "$ac_t""found" 1>&6
1282 MAKEINFO="$missing_dir/missing makeinfo"
1283 echo "$ac_t""missing" 1>&6
1286 install_sh="$missing_dir/install-sh"
1287 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1289 for ac_prog in gnutar gtar tar
1291 # Extract the first word of "$ac_prog", so it can be a program name with args.
1292 set dummy $ac_prog; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -n "$AMTAR"; then
1299 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_AMTAR="$ac_prog"
1313 AMTAR="$ac_cv_prog_AMTAR"
1314 if test -n "$AMTAR"; then
1315 echo "$ac_t""$AMTAR" 1>&6
1317 echo "$ac_t""no" 1>&6
1320 test -n "$AMTAR" && break
1325 if test -n "$AMTAR"; then
1326 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1331 cat >> confdefs.h <<EOF
1332 #define OPENLDAP_PACKAGE "$PACKAGE"
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_VERSION "$VERSION"
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION $OL_API_INC
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1357 OPENLDAP_LIBVERSION=$OL_API_LIB
1359 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1363 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1364 echo "configure:1365: checking configure arguments" >&5
1369 ldap_subdir="/openldap"
1371 # Check whether --with-subdir or --without-subdir was given.
1372 if test "${with_subdir+set}" = set; then
1373 withval="$with_subdir"
1380 ldap_subdir="$withval"
1383 ldap_subdir="/$withval"
1390 # OpenLDAP --enable-debug
1391 # Check whether --enable-debug or --disable-debug was given.
1392 if test "${enable_debug+set}" = set; then
1393 enableval="$enable_debug"
1396 for ol_val in auto yes no ; do
1397 if test "$enableval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1404 ol_enable_debug="$ol_arg"
1407 ol_enable_debug="yes"
1409 # end --enable-debug
1410 # OpenLDAP --enable-syslog
1411 # Check whether --enable-syslog or --disable-syslog was given.
1412 if test "${enable_syslog+set}" = set; then
1413 enableval="$enable_syslog"
1416 for ol_val in auto yes no ; do
1417 if test "$enableval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1424 ol_enable_syslog="$ol_arg"
1427 ol_enable_syslog="auto"
1429 # end --enable-syslog
1430 # OpenLDAP --enable-proctitle
1431 # Check whether --enable-proctitle or --disable-proctitle was given.
1432 if test "${enable_proctitle+set}" = set; then
1433 enableval="$enable_proctitle"
1436 for ol_val in auto yes no ; do
1437 if test "$enableval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1444 ol_enable_proctitle="$ol_arg"
1447 ol_enable_proctitle="yes"
1449 # end --enable-proctitle
1450 # OpenLDAP --enable-cache
1451 # Check whether --enable-cache or --disable-cache was given.
1452 if test "${enable_cache+set}" = set; then
1453 enableval="$enable_cache"
1456 for ol_val in auto yes no ; do
1457 if test "$enableval" = "$ol_val" ; then
1461 if test "$ol_arg" = "invalid" ; then
1462 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1464 ol_enable_cache="$ol_arg"
1467 ol_enable_cache="no"
1469 # end --enable-cache
1470 # OpenLDAP --enable-referrals
1471 # Check whether --enable-referrals or --disable-referrals was given.
1472 if test "${enable_referrals+set}" = set; then
1473 enableval="$enable_referrals"
1476 for ol_val in auto yes no ; do
1477 if test "$enableval" = "$ol_val" ; then
1481 if test "$ol_arg" = "invalid" ; then
1482 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1484 ol_enable_referrals="$ol_arg"
1487 ol_enable_referrals="no"
1489 # end --enable-referrals
1490 ol_enable_kbind=${ol_enable_kbind-no}
1491 # OpenLDAP --enable-ipv6
1492 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1493 if test "${enable_ipv6+set}" = set; then
1494 enableval="$enable_ipv6"
1497 for ol_val in auto yes no ; do
1498 if test "$enableval" = "$ol_val" ; then
1502 if test "$ol_arg" = "invalid" ; then
1503 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1505 ol_enable_ipv6="$ol_arg"
1508 ol_enable_ipv6="auto"
1511 # OpenLDAP --enable-local
1512 # Check whether --enable-local or --disable-local was given.
1513 if test "${enable_local+set}" = set; then
1514 enableval="$enable_local"
1517 for ol_val in auto yes no ; do
1518 if test "$enableval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1525 ol_enable_local="$ol_arg"
1528 ol_enable_local="auto"
1530 # end --enable-local
1531 # OpenLDAP --enable-x_compile
1532 # Check whether --enable-x_compile or --disable-x_compile was given.
1533 if test "${enable_x_compile+set}" = set; then
1534 enableval="$enable_x_compile"
1537 for ol_val in yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1545 ol_enable_x_compile="$ol_arg"
1548 ol_enable_x_compile="no"
1550 # end --enable-x_compile
1553 # OpenLDAP --with-cyrus_sasl
1554 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1555 if test "${with_cyrus_sasl+set}" = set; then
1556 withval="$with_cyrus_sasl"
1559 for ol_val in auto yes no ; do
1560 if test "$withval" = "$ol_val" ; then
1564 if test "$ol_arg" = "invalid" ; then
1565 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1567 ol_with_cyrus_sasl="$ol_arg"
1570 ol_with_cyrus_sasl="auto"
1572 # end --with-cyrus_sasl
1574 # OpenLDAP --with-fetch
1575 # Check whether --with-fetch or --without-fetch was given.
1576 if test "${with_fetch+set}" = set; then
1577 withval="$with_fetch"
1580 for ol_val in auto yes no ; do
1581 if test "$withval" = "$ol_val" ; then
1585 if test "$ol_arg" = "invalid" ; then
1586 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1588 ol_with_fetch="$ol_arg"
1591 ol_with_fetch="auto"
1595 # OpenLDAP --with-kerberos
1596 # Check whether --with-kerberos or --without-kerberos was given.
1597 if test "${with_kerberos+set}" = set; then
1598 withval="$with_kerberos"
1601 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1602 if test "$withval" = "$ol_val" ; then
1606 if test "$ol_arg" = "invalid" ; then
1607 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1609 ol_with_kerberos="$ol_arg"
1612 ol_with_kerberos="auto"
1614 # end --with-kerberos
1616 # OpenLDAP --with-readline
1617 # Check whether --with-readline or --without-readline was given.
1618 if test "${with_readline+set}" = set; then
1619 withval="$with_readline"
1622 for ol_val in auto yes no ; do
1623 if test "$withval" = "$ol_val" ; then
1627 if test "$ol_arg" = "invalid" ; then
1628 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1630 ol_with_readline="$ol_arg"
1633 ol_with_readline="auto"
1635 # end --with-readline
1637 # OpenLDAP --with-threads
1638 # Check whether --with-threads or --without-threads was given.
1639 if test "${with_threads+set}" = set; then
1640 withval="$with_threads"
1643 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1644 if test "$withval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1651 ol_with_threads="$ol_arg"
1654 ol_with_threads="auto"
1656 # end --with-threads
1658 # OpenLDAP --with-tls
1659 # Check whether --with-tls or --without-tls was given.
1660 if test "${with_tls+set}" = set; then
1664 for ol_val in auto ssleay openssl yes no ; do
1665 if test "$withval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1672 ol_with_tls="$ol_arg"
1679 # OpenLDAP --with-yielding_select
1680 # Check whether --with-yielding_select or --without-yielding_select was given.
1681 if test "${with_yielding_select+set}" = set; then
1682 withval="$with_yielding_select"
1685 for ol_val in auto yes no manual ; do
1686 if test "$withval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1693 ol_with_yielding_select="$ol_arg"
1696 ol_with_yielding_select="auto"
1698 # end --with-yielding_select
1702 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1703 if test "${with_xxslapdoptions+set}" = set; then
1704 withval="$with_xxslapdoptions"
1708 # OpenLDAP --enable-slapd
1709 # Check whether --enable-slapd or --disable-slapd was given.
1710 if test "${enable_slapd+set}" = set; then
1711 enableval="$enable_slapd"
1714 for ol_val in auto yes no ; do
1715 if test "$enableval" = "$ol_val" ; then
1719 if test "$ol_arg" = "invalid" ; then
1720 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1722 ol_enable_slapd="$ol_arg"
1725 ol_enable_slapd="yes"
1727 # end --enable-slapd
1728 # OpenLDAP --enable-aci
1729 # Check whether --enable-aci or --disable-aci was given.
1730 if test "${enable_aci+set}" = set; then
1731 enableval="$enable_aci"
1734 for ol_val in auto yes no ; do
1735 if test "$enableval" = "$ol_val" ; then
1739 if test "$ol_arg" = "invalid" ; then
1740 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1742 ol_enable_aci="$ol_arg"
1748 # OpenLDAP --enable-cleartext
1749 # Check whether --enable-cleartext or --disable-cleartext was given.
1750 if test "${enable_cleartext+set}" = set; then
1751 enableval="$enable_cleartext"
1754 for ol_val in auto yes no ; do
1755 if test "$enableval" = "$ol_val" ; then
1759 if test "$ol_arg" = "invalid" ; then
1760 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1762 ol_enable_cleartext="$ol_arg"
1765 ol_enable_cleartext="yes"
1767 # end --enable-cleartext
1768 # OpenLDAP --enable-crypt
1769 # Check whether --enable-crypt or --disable-crypt was given.
1770 if test "${enable_crypt+set}" = set; then
1771 enableval="$enable_crypt"
1774 for ol_val in auto yes no ; do
1775 if test "$enableval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1782 ol_enable_crypt="$ol_arg"
1785 ol_enable_crypt="no"
1787 # end --enable-crypt
1788 # OpenLDAP --enable-dynamic
1789 # Check whether --enable-dynamic or --disable-dynamic was given.
1790 if test "${enable_dynamic+set}" = set; then
1791 enableval="$enable_dynamic"
1794 for ol_val in auto yes no ; do
1795 if test "$enableval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1802 ol_enable_dynamic="$ol_arg"
1805 ol_enable_dynamic="no"
1807 # end --enable-dynamic
1808 # OpenLDAP --enable-kpasswd
1809 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1810 if test "${enable_kpasswd+set}" = set; then
1811 enableval="$enable_kpasswd"
1814 for ol_val in auto yes no ; do
1815 if test "$enableval" = "$ol_val" ; then
1819 if test "$ol_arg" = "invalid" ; then
1820 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1822 ol_enable_kpasswd="$ol_arg"
1825 ol_enable_kpasswd="no"
1827 # end --enable-kpasswd
1828 # OpenLDAP --enable-lmpasswd
1829 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1830 if test "${enable_lmpasswd+set}" = set; then
1831 enableval="$enable_lmpasswd"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1842 ol_enable_lmpasswd="$ol_arg"
1845 ol_enable_lmpasswd="no"
1847 # end --enable-lmpasswd
1848 # OpenLDAP --enable-spasswd
1849 # Check whether --enable-spasswd or --disable-spasswd was given.
1850 if test "${enable_spasswd+set}" = set; then
1851 enableval="$enable_spasswd"
1854 for ol_val in auto yes no ; do
1855 if test "$enableval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1862 ol_enable_spasswd="$ol_arg"
1865 ol_enable_spasswd="no"
1867 # end --enable-spasswd
1868 # OpenLDAP --enable-modules
1869 # Check whether --enable-modules or --disable-modules was given.
1870 if test "${enable_modules+set}" = set; then
1871 enableval="$enable_modules"
1874 for ol_val in auto yes no ; do
1875 if test "$enableval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1882 ol_enable_modules="$ol_arg"
1885 ol_enable_modules="no"
1887 # end --enable-modules
1888 ol_enable_multimaster=${ol_enable_multimaster-no}
1889 # OpenLDAP --enable-phonetic
1890 # Check whether --enable-phonetic or --disable-phonetic was given.
1891 if test "${enable_phonetic+set}" = set; then
1892 enableval="$enable_phonetic"
1895 for ol_val in auto yes no ; do
1896 if test "$enableval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1903 ol_enable_phonetic="$ol_arg"
1906 ol_enable_phonetic="no"
1908 # end --enable-phonetic
1909 # OpenLDAP --enable-rewrite
1910 # Check whether --enable-rewrite or --disable-rewrite was given.
1911 if test "${enable_rewrite+set}" = set; then
1912 enableval="$enable_rewrite"
1915 for ol_val in auto yes no ; do
1916 if test "$enableval" = "$ol_val" ; then
1920 if test "$ol_arg" = "invalid" ; then
1921 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1923 ol_enable_rewrite="$ol_arg"
1926 ol_enable_rewrite="no"
1928 # end --enable-rewrite
1929 # OpenLDAP --enable-rlookups
1930 # Check whether --enable-rlookups or --disable-rlookups was given.
1931 if test "${enable_rlookups+set}" = set; then
1932 enableval="$enable_rlookups"
1935 for ol_val in auto yes no ; do
1936 if test "$enableval" = "$ol_val" ; then
1940 if test "$ol_arg" = "invalid" ; then
1941 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1943 ol_enable_rlookups="$ol_arg"
1946 ol_enable_rlookups="no"
1948 # end --enable-rlookups
1949 # OpenLDAP --enable-slp
1950 # Check whether --enable-slp or --disable-slp was given.
1951 if test "${enable_slp+set}" = set; then
1952 enableval="$enable_slp"
1955 for ol_val in auto yes no ; do
1956 if test "$enableval" = "$ol_val" ; then
1960 if test "$ol_arg" = "invalid" ; then
1961 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1963 ol_enable_slp="$ol_arg"
1969 # OpenLDAP --enable-wrappers
1970 # Check whether --enable-wrappers or --disable-wrappers was given.
1971 if test "${enable_wrappers+set}" = set; then
1972 enableval="$enable_wrappers"
1975 for ol_val in auto yes no ; do
1976 if test "$enableval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1983 ol_enable_wrappers="$ol_arg"
1986 ol_enable_wrappers="no"
1988 # end --enable-wrappers
1990 # OpenLDAP --enable-bdb
1991 # Check whether --enable-bdb or --disable-bdb was given.
1992 if test "${enable_bdb+set}" = set; then
1993 enableval="$enable_bdb"
1996 for ol_val in auto yes no ; do
1997 if test "$enableval" = "$ol_val" ; then
2001 if test "$ol_arg" = "invalid" ; then
2002 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2004 ol_enable_bdb="$ol_arg"
2010 # OpenLDAP --with-bdb_module
2011 # Check whether --with-bdb_module or --without-bdb_module was given.
2012 if test "${with_bdb_module+set}" = set; then
2013 withval="$with_bdb_module"
2016 for ol_val in static dynamic ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2024 ol_with_bdb_module="$ol_arg"
2027 ol_with_bdb_module="static"
2029 # end --with-bdb_module
2031 # OpenLDAP --enable-dnssrv
2032 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2033 if test "${enable_dnssrv+set}" = set; then
2034 enableval="$enable_dnssrv"
2037 for ol_val in auto yes no ; do
2038 if test "$enableval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2045 ol_enable_dnssrv="$ol_arg"
2048 ol_enable_dnssrv="no"
2050 # end --enable-dnssrv
2051 # OpenLDAP --with-dnssrv_module
2052 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2053 if test "${with_dnssrv_module+set}" = set; then
2054 withval="$with_dnssrv_module"
2057 for ol_val in static dynamic ; do
2058 if test "$withval" = "$ol_val" ; then
2062 if test "$ol_arg" = "invalid" ; then
2063 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2065 ol_with_dnssrv_module="$ol_arg"
2068 ol_with_dnssrv_module="static"
2070 # end --with-dnssrv_module
2072 # OpenLDAP --enable-ldap
2073 # Check whether --enable-ldap or --disable-ldap was given.
2074 if test "${enable_ldap+set}" = set; then
2075 enableval="$enable_ldap"
2078 for ol_val in auto yes no ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2086 ol_enable_ldap="$ol_arg"
2092 # OpenLDAP --with-ldap_module
2093 # Check whether --with-ldap_module or --without-ldap_module was given.
2094 if test "${with_ldap_module+set}" = set; then
2095 withval="$with_ldap_module"
2098 for ol_val in static dynamic ; do
2099 if test "$withval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2106 ol_with_ldap_module="$ol_arg"
2109 ol_with_ldap_module="static"
2111 # end --with-ldap_module
2113 # OpenLDAP --enable-ldbm
2114 # Check whether --enable-ldbm or --disable-ldbm was given.
2115 if test "${enable_ldbm+set}" = set; then
2116 enableval="$enable_ldbm"
2119 for ol_val in auto yes no ; do
2120 if test "$enableval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2127 ol_enable_ldbm="$ol_arg"
2133 # OpenLDAP --with-ldbm_api
2134 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2135 if test "${with_ldbm_api+set}" = set; then
2136 withval="$with_ldbm_api"
2139 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2140 if test "$withval" = "$ol_val" ; then
2144 if test "$ol_arg" = "invalid" ; then
2145 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2147 ol_with_ldbm_api="$ol_arg"
2150 ol_with_ldbm_api="auto"
2152 # end --with-ldbm_api
2154 # OpenLDAP --with-ldbm_module
2155 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2156 if test "${with_ldbm_module+set}" = set; then
2157 withval="$with_ldbm_module"
2160 for ol_val in static dynamic ; do
2161 if test "$withval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2168 ol_with_ldbm_module="$ol_arg"
2171 ol_with_ldbm_module="static"
2173 # end --with-ldbm_module
2175 # OpenLDAP --with-ldbm_type
2176 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2177 if test "${with_ldbm_type+set}" = set; then
2178 withval="$with_ldbm_type"
2181 for ol_val in auto btree hash ; do
2182 if test "$withval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2189 ol_with_ldbm_type="$ol_arg"
2192 ol_with_ldbm_type="auto"
2194 # end --with-ldbm_type
2196 # OpenLDAP --enable-meta
2197 # Check whether --enable-meta or --disable-meta was given.
2198 if test "${enable_meta+set}" = set; then
2199 enableval="$enable_meta"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2210 ol_enable_meta="$ol_arg"
2216 # OpenLDAP --with-meta_module
2217 # Check whether --with-meta_module or --without-meta_module was given.
2218 if test "${with_meta_module+set}" = set; then
2219 withval="$with_meta_module"
2222 for ol_val in static dynamic ; do
2223 if test "$withval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2230 ol_with_meta_module="$ol_arg"
2233 ol_with_meta_module="static"
2235 # end --with-meta_module
2237 # OpenLDAP --enable-monitor
2238 # Check whether --enable-monitor or --disable-monitor was given.
2239 if test "${enable_monitor+set}" = set; then
2240 enableval="$enable_monitor"
2243 for ol_val in auto yes no ; do
2244 if test "$enableval" = "$ol_val" ; then
2248 if test "$ol_arg" = "invalid" ; then
2249 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2251 ol_enable_monitor="$ol_arg"
2254 ol_enable_monitor="no"
2256 # end --enable-monitor
2257 # OpenLDAP --with-monitor_module
2258 # Check whether --with-monitor_module or --without-monitor_module was given.
2259 if test "${with_monitor_module+set}" = set; then
2260 withval="$with_monitor_module"
2263 for ol_val in static dynamic ; do
2264 if test "$withval" = "$ol_val" ; then
2268 if test "$ol_arg" = "invalid" ; then
2269 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2271 ol_with_monitor_module="$ol_arg"
2274 ol_with_monitor_module="static"
2276 # end --with-monitor_module
2278 # OpenLDAP --enable-null
2279 # Check whether --enable-null or --disable-null was given.
2280 if test "${enable_null+set}" = set; then
2281 enableval="$enable_null"
2284 for ol_val in auto yes no ; do
2285 if test "$enableval" = "$ol_val" ; then
2289 if test "$ol_arg" = "invalid" ; then
2290 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2292 ol_enable_null="$ol_arg"
2298 # OpenLDAP --with-null_module
2299 # Check whether --with-null_module or --without-null_module was given.
2300 if test "${with_null_module+set}" = set; then
2301 withval="$with_null_module"
2304 for ol_val in static dynamic ; do
2305 if test "$withval" = "$ol_val" ; then
2309 if test "$ol_arg" = "invalid" ; then
2310 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2312 ol_with_null_module="$ol_arg"
2315 ol_with_null_module="static"
2317 # end --with-null_module
2319 # OpenLDAP --enable-passwd
2320 # Check whether --enable-passwd or --disable-passwd was given.
2321 if test "${enable_passwd+set}" = set; then
2322 enableval="$enable_passwd"
2325 for ol_val in auto yes no ; do
2326 if test "$enableval" = "$ol_val" ; then
2330 if test "$ol_arg" = "invalid" ; then
2331 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2333 ol_enable_passwd="$ol_arg"
2336 ol_enable_passwd="no"
2338 # end --enable-passwd
2339 # OpenLDAP --with-passwd_module
2340 # Check whether --with-passwd_module or --without-passwd_module was given.
2341 if test "${with_passwd_module+set}" = set; then
2342 withval="$with_passwd_module"
2345 for ol_val in static dynamic ; do
2346 if test "$withval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2353 ol_with_passwd_module="$ol_arg"
2356 ol_with_passwd_module="static"
2358 # end --with-passwd_module
2360 # OpenLDAP --enable-perl
2361 # Check whether --enable-perl or --disable-perl was given.
2362 if test "${enable_perl+set}" = set; then
2363 enableval="$enable_perl"
2366 for ol_val in auto yes no ; do
2367 if test "$enableval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2374 ol_enable_perl="$ol_arg"
2380 # OpenLDAP --with-perl_module
2381 # Check whether --with-perl_module or --without-perl_module was given.
2382 if test "${with_perl_module+set}" = set; then
2383 withval="$with_perl_module"
2386 for ol_val in static dynamic ; do
2387 if test "$withval" = "$ol_val" ; then
2391 if test "$ol_arg" = "invalid" ; then
2392 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2394 ol_with_perl_module="$ol_arg"
2397 ol_with_perl_module="static"
2399 # end --with-perl_module
2401 # OpenLDAP --enable-shell
2402 # Check whether --enable-shell or --disable-shell was given.
2403 if test "${enable_shell+set}" = set; then
2404 enableval="$enable_shell"
2407 for ol_val in auto yes no ; do
2408 if test "$enableval" = "$ol_val" ; then
2412 if test "$ol_arg" = "invalid" ; then
2413 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2415 ol_enable_shell="$ol_arg"
2418 ol_enable_shell="no"
2420 # end --enable-shell
2421 # OpenLDAP --with-shell_module
2422 # Check whether --with-shell_module or --without-shell_module was given.
2423 if test "${with_shell_module+set}" = set; then
2424 withval="$with_shell_module"
2427 for ol_val in static dynamic ; do
2428 if test "$withval" = "$ol_val" ; then
2432 if test "$ol_arg" = "invalid" ; then
2433 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2435 ol_with_shell_module="$ol_arg"
2438 ol_with_shell_module="static"
2440 # end --with-shell_module
2442 # OpenLDAP --enable-sql
2443 # Check whether --enable-sql or --disable-sql was given.
2444 if test "${enable_sql+set}" = set; then
2445 enableval="$enable_sql"
2448 for ol_val in auto yes no ; do
2449 if test "$enableval" = "$ol_val" ; then
2453 if test "$ol_arg" = "invalid" ; then
2454 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2456 ol_enable_sql="$ol_arg"
2462 # OpenLDAP --with-sql_module
2463 # Check whether --with-sql_module or --without-sql_module was given.
2464 if test "${with_sql_module+set}" = set; then
2465 withval="$with_sql_module"
2468 for ol_val in static dynamic ; do
2469 if test "$withval" = "$ol_val" ; then
2473 if test "$ol_arg" = "invalid" ; then
2474 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2476 ol_with_sql_module="$ol_arg"
2479 ol_with_sql_module="static"
2481 # end --with-sql_module
2484 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2485 if test "${with_xxslurpdoptions+set}" = set; then
2486 withval="$with_xxslurpdoptions"
2490 # OpenLDAP --enable-slurpd
2491 # Check whether --enable-slurpd or --disable-slurpd was given.
2492 if test "${enable_slurpd+set}" = set; then
2493 enableval="$enable_slurpd"
2496 for ol_val in auto yes no ; do
2497 if test "$enableval" = "$ol_val" ; then
2501 if test "$ol_arg" = "invalid" ; then
2502 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2504 ol_enable_slurpd="$ol_arg"
2507 ol_enable_slurpd="auto"
2509 # end --enable-slurpd
2511 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2512 if test "${with_xxliboptions+set}" = set; then
2513 withval="$with_xxliboptions"
2517 # Check whether --enable-static or --disable-static was given.
2518 if test "${enable_static+set}" = set; then
2519 enableval="$enable_static"
2520 p=${PACKAGE-default}
2522 yes) enable_static=yes ;;
2523 no) enable_static=no ;;
2526 # Look at the argument we got. We use all the common list separators.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2528 for pkg in $enableval; do
2529 if test "X$pkg" = "X$p"; then
2540 # Check whether --enable-shared or --disable-shared was given.
2541 if test "${enable_shared+set}" = set; then
2542 enableval="$enable_shared"
2543 p=${PACKAGE-default}
2545 yes) enable_shared=yes ;;
2546 no) enable_shared=no ;;
2549 # Look at the argument we got. We use all the common list separators.
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2551 for pkg in $enableval; do
2552 if test "X$pkg" = "X$p"; then
2566 if test $ol_enable_slapd = no ; then
2567 if test $ol_enable_bdb = yes ; then
2568 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2570 if test $ol_enable_dnssrv = yes ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2573 if test $ol_enable_ldap = yes ; then
2574 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2576 if test $ol_enable_ldbm = yes ; then
2577 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2579 if test $ol_enable_meta = yes ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2582 if test $ol_enable_monitor = yes ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2585 if test $ol_enable_null = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2588 if test $ol_enable_passwd = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2591 if test $ol_enable_perl = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2594 if test $ol_enable_shell = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2597 if test $ol_enable_sql = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2600 if test $ol_enable_modules = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2603 if test $ol_enable_multimaster = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2606 if test $ol_enable_wrappers = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2609 if test $ol_enable_phonetic = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2612 if test $ol_enable_rlookups = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2615 if test $ol_enable_aci = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2618 if test $ol_with_ldbm_api != auto ; then
2619 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2621 if test $ol_with_ldbm_type != auto ; then
2622 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2624 if test $ol_with_bdb_module != static ; then
2625 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2627 if test $ol_with_dnssrv_module != static ; then
2628 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2630 if test $ol_with_ldap_module != static ; then
2631 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2633 if test $ol_with_ldbm_module != static ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2636 if test $ol_with_meta_module != static ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2639 if test $ol_with_monitor_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2642 if test $ol_with_null_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2645 if test $ol_with_passwd_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2648 if test $ol_with_perl_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2651 if test $ol_with_shell_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2654 if test $ol_with_sql_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2657 if test $ol_enable_slurpd = yes ; then
2658 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2660 if test $ol_enable_rewrite = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2664 # force settings to no
2670 ol_enable_monitor=no
2677 ol_enable_modules=no
2678 ol_enable_multimaster=no
2679 ol_enable_phonetic=no
2680 ol_enable_rlookups=no
2682 ol_enable_wrappers=no
2683 ol_enable_dynamic=no
2686 ol_with_ldbm_type=no
2688 ol_with_bdb_module=static
2689 ol_with_dnssrv_module=static
2690 ol_with_ldap_module=static
2691 ol_with_ldbm_module=static
2692 ol_with_meta_module=static
2693 ol_with_monitor_module=static
2694 ol_with_null_module=static
2695 ol_with_passwd_module=static
2696 ol_with_perl_module=static
2697 ol_with_shell_module=static
2698 ol_with_sql_module=static
2702 ol_enable_rewrite=no
2704 elif test $ol_enable_ldbm = no ; then
2706 if test $ol_with_ldbm_api != auto ; then
2707 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2710 if test $ol_with_ldbm_type != auto ; then
2711 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2714 if test $ol_with_ldbm_module != static ; then
2715 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2718 if test $ol_enable_modules != yes -a \
2719 $ol_enable_bdb = no -a \
2720 $ol_enable_dnssrv = no -a \
2721 $ol_enable_ldap = no -a \
2722 $ol_enable_meta = no -a \
2723 $ol_enable_monitor = no -a \
2724 $ol_enable_null = no -a \
2725 $ol_enable_passwd = no -a \
2726 $ol_enable_perl = no -a \
2727 $ol_enable_shell = no -a \
2728 $ol_enable_sql = no ; then
2730 if test $ol_enable_slapd = yes ; then
2731 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2733 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2739 ol_with_ldbm_type=no
2740 ol_with_ldbm_module=static
2742 if test $ol_enable_bdb != no ; then
2743 ol_with_ldbm_api=berkeley
2747 if test $ol_with_ldbm_api = gdbm -a \
2748 $ol_with_ldbm_type = btree ; then
2749 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2751 if test $ol_with_ldbm_api = mdbm -a \
2752 $ol_with_ldbm_type = btree ; then
2753 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2755 if test $ol_with_ldbm_api = ndbm -a \
2756 $ol_with_ldbm_type = btree ; then
2757 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2760 if test $ol_enable_bdb = yes ; then
2761 if test $ol_with_ldbm_api = auto ; then
2762 ol_with_ldbm_api=berkeley
2763 elif test $ol_with_ldbm_api != berkeley ; then
2764 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2767 elif test $ol_enable_bdb = auto ; then
2768 if test $ol_with_ldbm_api != berkeley \
2769 -o $ol_with_ldbm_api != auto ; then
2770 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2776 if test $ol_enable_slurpd = yes ; then
2777 if test $ol_with_threads = no ; then
2778 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2782 if test $ol_enable_lmpasswd = yes ; then
2783 if test $ol_with_tls = no ; then
2784 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2788 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2789 if test $ol_with_kerberos = no ; then
2790 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2791 elif test $ol_with_kerberos = auto ; then
2792 ol_with_kerberos=yes
2795 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2796 if test $ol_with_kerberos = auto ; then
2798 elif test $ol_with_kerberos != no ; then
2799 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2804 if test $ol_enable_spasswd = yes ; then
2805 if test $ol_with_cyrus_sasl = no ; then
2806 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2808 ol_with_cyrus_sasl=yes
2811 echo "$ac_t""done" 1>&6
2840 BUILD_BDB_DYNAMIC=static
2841 BUILD_DNSSRV_DYNAMIC=static
2842 BUILD_LDAP_DYNAMIC=static
2843 BUILD_LDBM_DYNAMIC=static
2844 BUILD_META_DYNAMIC=static
2845 BUILD_MONITOR_DYNAMIC=static
2846 BUILD_NULL_DYNAMIC=static
2847 BUILD_PASSWD_DYNAMIC=static
2848 BUILD_PERL_DYNAMIC=static
2849 BUILD_SHELL_DYNAMIC=static
2850 BUILD_SQL_DYNAMIC=static
2852 SLAPD_MODULES_LDFLAGS=
2853 SLAPD_MODULES_CPPFLAGS=
2855 SLAPD_STATIC_BACKENDS=
2856 SLAPD_DYNAMIC_BACKENDS=
2878 # Find a good install program. We prefer a C program (faster),
2879 # so one script is as good as another. But avoid the broken or
2880 # incompatible versions:
2881 # SysV /etc/install, /usr/sbin/install
2882 # SunOS /usr/etc/install
2883 # IRIX /sbin/install
2885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2888 # ./install, which can be erroneously created by make from ./install.sh.
2889 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2890 echo "configure:2891: checking for a BSD compatible install" >&5
2891 if test -z "$INSTALL"; then
2892 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2896 for ac_dir in $PATH; do
2897 # Account for people who put trailing slashes in PATH elements.
2899 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2901 # OSF1 and SCO ODT 3.0 have their own names for install.
2902 # Don't use installbsd from OSF since it installs stuff as root
2904 for ac_prog in ginstall scoinst install; do
2905 if test -f $ac_dir/$ac_prog; then
2906 if test $ac_prog = install &&
2907 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2908 # AIX install. It has an incompatible calling convention.
2910 elif test $ac_prog = install &&
2911 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2912 # program-specific install script used by HP pwplus--don't use.
2915 ac_cv_path_install="$ac_dir/$ac_prog -c"
2926 if test "${ac_cv_path_install+set}" = set; then
2927 INSTALL="$ac_cv_path_install"
2929 # As a last resort, use the slow shell script. We don't cache a
2930 # path for INSTALL within a source directory, because that will
2931 # break other packages using the cache if that directory is
2932 # removed, or if the path is relative.
2933 INSTALL="$ac_install_sh"
2936 echo "$ac_t""$INSTALL" 1>&6
2938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2939 # It thinks the first close brace ends the variable substitution.
2940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2947 cat >> confdefs.h <<\EOF
2948 #define HAVE_MKVERSION 1
2956 *-*-aix*) if test -z "$CC" ; then
2957 case "$ol_with_threads" in
2958 auto | yes | posix) ol_aix_threads=yes ;;
2964 if test $ol_aix_threads = yes ; then
2965 if test -z "${CC}" ; then
2966 for ac_prog in cc_r xlc_r cc
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_word" >&5
2972 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2980 for ac_dir in $ac_dummy; do
2981 test -z "$ac_dir" && ac_dir=.
2982 if test -f $ac_dir/$ac_word; then
2983 ac_cv_prog_CC="$ac_prog"
2991 if test -n "$CC"; then
2992 echo "$ac_t""$CC" 1>&6
2994 echo "$ac_t""no" 1>&6
2997 test -n "$CC" && break
3001 if test "$CC" = cc ; then
3002 if test $ol_with_threads != auto ; then
3003 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3005 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3011 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3012 ol_with_threads=posix
3013 ol_cv_pthread_create=yes
3017 if test -z "${CC}"; then
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; 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
3035 ac_cv_prog_CC="$ac_prog"
3043 if test -n "$CC"; then
3044 echo "$ac_t""$CC" 1>&6
3046 echo "$ac_t""no" 1>&6
3049 test -n "$CC" && break
3055 if test -z "${AR}"; then
3056 for ac_prog in ar gar
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy $ac_prog; ac_word=$2
3060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3061 echo "configure:3062: checking for $ac_word" >&5
3062 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 if test -n "$AR"; then
3066 ac_cv_prog_AR="$AR" # Let the user override the test.
3068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3070 for ac_dir in $ac_dummy; do
3071 test -z "$ac_dir" && ac_dir=.
3072 if test -f $ac_dir/$ac_word; then
3073 ac_cv_prog_AR="$ac_prog"
3081 if test -n "$AR"; then
3082 echo "$ac_t""$AR" 1>&6
3084 echo "$ac_t""no" 1>&6
3087 test -n "$AR" && break
3089 test -n "$AR" || AR="missing"
3092 if test "${AR}" = "missing" ; then
3093 { echo "configure: error: Unable to locate ar(1). Check PATH or set AR." 1>&2; exit 1; }
3099 # Find the correct PATH separator. Usually this is `:', but
3100 # DJGPP uses `;' like DOS.
3101 if test "X${PATH_SEPARATOR+set}" != Xset; then
3102 UNAME=${UNAME-`uname 2>/dev/null`}
3104 *-DOS) lt_cv_sys_path_separator=';' ;;
3105 *) lt_cv_sys_path_separator=':' ;;
3107 PATH_SEPARATOR=$lt_cv_sys_path_separator
3110 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3111 echo "configure:3112: checking for Cygwin environment" >&5
3112 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3122 #define __CYGWIN__ __CYGWIN32__
3127 if { (eval echo configure:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3139 echo "$ac_t""$ac_cv_cygwin" 1>&6
3141 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3142 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3143 echo "configure:3144: checking for mingw32 environment" >&5
3144 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3155 if { (eval echo configure:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3167 echo "$ac_t""$ac_cv_mingw32" 1>&6
3169 test "$ac_cv_mingw32" = yes && MINGW32=yes
3170 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3171 echo "configure:3172: checking for EMX OS/2 environment" >&5
3172 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3183 if { (eval echo configure:3184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3195 echo "$ac_t""$ac_cv_emxos2" 1>&6
3197 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3198 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3199 echo "configure:3200: checking how to run the C preprocessor" >&5
3200 # On Suns, sometimes $CPP names a directory.
3201 if test -n "$CPP" && test -d "$CPP"; then
3204 if test -z "$CPP"; then
3205 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 # This must be in double quotes, not single quotes, because CPP may get
3209 # substituted into the Makefile and "${CC-cc}" will confuse make.
3211 # On the NeXT, cc -E runs the code through the compiler's parser,
3212 # not just through cpp.
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3220 { (eval echo configure:3221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3222 if test -z "$ac_err"; then
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 CPP="${CC-cc} -E -traditional-cpp"
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3237 { (eval echo configure:3238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3239 if test -z "$ac_err"; then
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3246 CPP="${CC-cc} -nologo -E"
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3254 { (eval echo configure:3255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3256 if test -z "$ac_err"; then
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3270 ac_cv_prog_CPP="$CPP"
3272 CPP="$ac_cv_prog_CPP"
3274 ac_cv_prog_CPP="$CPP"
3276 echo "$ac_t""$CPP" 1>&6
3278 # Check whether --enable-fast-install or --disable-fast-install was given.
3279 if test "${enable_fast_install+set}" = set; then
3280 enableval="$enable_fast_install"
3281 p=${PACKAGE-default}
3283 yes) enable_fast_install=yes ;;
3284 no) enable_fast_install=no ;;
3286 enable_fast_install=no
3287 # Look at the argument we got. We use all the common list separators.
3288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3289 for pkg in $enableval; do
3290 if test "X$pkg" = "X$p"; then
3291 enable_fast_install=yes
3298 enable_fast_install=yes
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc; ac_word=$2
3303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3304 echo "configure:3305: checking for $ac_word" >&5
3305 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3313 for ac_dir in $ac_dummy; do
3314 test -z "$ac_dir" && ac_dir=.
3315 if test -f $ac_dir/$ac_word; then
3324 if test -n "$CC"; then
3325 echo "$ac_t""$CC" 1>&6
3327 echo "$ac_t""no" 1>&6
3330 if test -z "$CC"; then
3331 # Extract the first word of "cc", so it can be a program name with args.
3332 set dummy cc; ac_word=$2
3333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3334 echo "configure:3335: checking for $ac_word" >&5
3335 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3344 for ac_dir in $ac_dummy; do
3345 test -z "$ac_dir" && ac_dir=.
3346 if test -f $ac_dir/$ac_word; then
3347 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3348 ac_prog_rejected=yes
3356 if test $ac_prog_rejected = yes; then
3357 # We found a bogon in the path, so make sure we never use it.
3358 set dummy $ac_cv_prog_CC
3360 if test $# -gt 0; then
3361 # We chose a different compiler from the bogus one.
3362 # However, it has the same basename, so the bogon will be chosen
3363 # first if we set CC to just the basename; use the full file name.
3365 set dummy "$ac_dir/$ac_word" "$@"
3373 if test -n "$CC"; then
3374 echo "$ac_t""$CC" 1>&6
3376 echo "$ac_t""no" 1>&6
3379 if test -z "$CC"; then
3380 case "`uname -s`" in
3381 *win32* | *WIN32* | *CYGWIN*)
3382 # Extract the first word of "cl", so it can be a program name with args.
3383 set dummy cl; ac_word=$2
3384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3385 echo "configure:3386: checking for $ac_word" >&5
3386 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3394 for ac_dir in $ac_dummy; do
3395 test -z "$ac_dir" && ac_dir=.
3396 if test -f $ac_dir/$ac_word; then
3405 if test -n "$CC"; then
3406 echo "$ac_t""$CC" 1>&6
3408 echo "$ac_t""no" 1>&6
3413 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3416 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3417 echo "configure:3418: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3424 cross_compiling=$ac_cv_prog_cc_cross
3426 cat > conftest.$ac_ext << EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3434 ac_cv_prog_cc_works=yes
3435 # If we can't run a trivial program, we are probably using a cross compiler.
3436 if (./conftest; exit) 2>/dev/null; then
3437 ac_cv_prog_cc_cross=no
3439 ac_cv_prog_cc_cross=yes
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 ac_cv_prog_cc_works=no
3448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3452 cross_compiling=$ac_cv_prog_cc_cross
3454 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3455 if test $ac_cv_prog_cc_works = no; then
3456 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3458 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3459 echo "configure:3460: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3460 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3461 cross_compiling=$ac_cv_prog_cc_cross
3463 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3464 echo "configure:3465: checking whether we are using GNU C" >&5
3465 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.c <<EOF
3473 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3480 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3482 if test $ac_cv_prog_gcc = yes; then
3488 ac_test_CFLAGS="${CFLAGS+set}"
3489 ac_save_CFLAGS="$CFLAGS"
3491 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3492 echo "configure:3493: checking whether ${CC-cc} accepts -g" >&5
3493 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 echo 'void f(){}' > conftest.c
3497 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3506 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3507 if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS="$ac_save_CFLAGS"
3509 elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3516 if test "$GCC" = yes; then
3523 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3524 if test "${with_gnu_ld+set}" = set; then
3525 withval="$with_gnu_ld"
3526 test "$withval" = no || with_gnu_ld=yes
3532 if test "$GCC" = yes; then
3533 # Check if gcc -print-prog-name=ld gives a path.
3534 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3535 echo "configure:3536: checking for ld used by GCC" >&5
3538 # gcc leaves a trailing carriage return which upsets mingw
3539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3544 # Accept absolute paths.
3545 [\\/]* | [A-Za-z]:[\\/]*)
3546 re_direlt='/[^/][^/]*/\.\./'
3547 # Canonicalize the path of ld
3548 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3549 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3550 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3552 test -z "$LD" && LD="$ac_prog"
3555 # If it fails, then pretend we aren't using GCC.
3559 # If it is relative, then search for the first ld in PATH.
3563 elif test "$with_gnu_ld" = yes; then
3564 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3565 echo "configure:3566: checking for GNU ld" >&5
3567 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3568 echo "configure:3569: checking for non-GNU ld" >&5
3570 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 if test -z "$LD"; then
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3575 for ac_dir in $PATH; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3578 lt_cv_path_LD="$ac_dir/$ac_prog"
3579 # Check to see if the program is GNU ld. I'd rather use --version,
3580 # but apparently some GNU ld's only accept -v.
3581 # Break only if it was the GNU/non-GNU ld that we prefer.
3582 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3583 test "$with_gnu_ld" != no && break
3585 test "$with_gnu_ld" != yes && break
3591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3596 if test -n "$LD"; then
3597 echo "$ac_t""$LD" 1>&6
3599 echo "$ac_t""no" 1>&6
3601 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3602 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3603 echo "configure:3604: checking if the linker ($LD) is GNU ld" >&5
3604 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3608 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3609 lt_cv_prog_gnu_ld=yes
3611 lt_cv_prog_gnu_ld=no
3615 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3616 with_gnu_ld=$lt_cv_prog_gnu_ld
3619 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $LD option to reload object files" >&5
3621 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 lt_cv_ld_reload_flag='-r'
3627 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3628 reload_flag=$lt_cv_ld_reload_flag
3629 test -n "$reload_flag" && reload_flag=" $reload_flag"
3631 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3632 echo "configure:3633: checking for BSD-compatible nm" >&5
3633 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 if test -n "$NM"; then
3637 # Let the user override the test.
3640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3641 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3642 test -z "$ac_dir" && ac_dir=.
3643 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3644 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3645 # Check to see if the nm accepts a BSD-compat flag.
3646 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3647 # nm: unknown option "B" ignored
3648 # Tru64's nm complains that /dev/null is an invalid object file
3649 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3650 lt_cv_path_NM="$tmp_nm -B"
3652 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3653 lt_cv_path_NM="$tmp_nm -p"
3656 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3657 continue # so that we can try to find one that supports BSD flags
3662 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3667 echo "$ac_t""$NM" 1>&6
3669 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3670 echo "configure:3671: checking whether ln -s works" >&5
3671 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3675 if ln -s X conftestdata 2>/dev/null
3678 ac_cv_prog_LN_S="ln -s"
3683 LN_S="$ac_cv_prog_LN_S"
3684 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3685 echo "$ac_t""yes" 1>&6
3687 echo "$ac_t""no" 1>&6
3690 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3691 echo "configure:3692: checking how to recognise dependant libraries" >&5
3692 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3695 lt_cv_file_magic_cmd='$MAGIC_CMD'
3696 lt_cv_file_magic_test_file=
3697 lt_cv_deplibs_check_method='unknown'
3698 # Need to set the preceding variable on all platforms that support
3699 # interlibrary dependencies.
3700 # 'none' -- dependencies not supported.
3701 # `unknown' -- same as none, but documents that we really don't know.
3702 # 'pass_all' -- all dependencies passed with no checks.
3703 # 'test_compile' -- check by making test program.
3704 # 'file_magic [[regex]]' -- check by looking for files in library path
3705 # which responds to the $file_magic_cmd with a given egrep regex.
3706 # If you have `file' or equivalent on your system and you're not sure
3707 # whether `pass_all' will *always* work, you probably want this one.
3711 lt_cv_deplibs_check_method=pass_all
3715 lt_cv_deplibs_check_method=pass_all
3719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3720 lt_cv_file_magic_cmd='/usr/bin/file -L'
3721 lt_cv_file_magic_test_file=/shlib/libc.so
3724 cygwin* | mingw* | pw32*)
3725 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3726 lt_cv_file_magic_cmd='$OBJDUMP -f'
3729 darwin* | rhapsody*)
3730 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3731 lt_cv_file_magic_cmd='/usr/bin/file -L'
3733 rhapsody* | darwin1.[012])
3734 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3737 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3743 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3746 # Not sure whether the presence of OpenBSD here was a mistake.
3747 # Let's accept both of them until this is cleared up.
3748 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3749 lt_cv_file_magic_cmd=/usr/bin/file
3750 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3754 lt_cv_deplibs_check_method=pass_all
3759 lt_cv_deplibs_check_method=pass_all
3763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3764 lt_cv_file_magic_cmd=/usr/bin/file
3765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3771 # this will be overridden with pass_all, but let us keep it just in case
3772 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3776 *-32|*"-32 ") libmagic=32-bit;;
3777 *-n32|*"-n32 ") libmagic=N32;;
3778 *-64|*"-64 ") libmagic=64-bit;;
3779 *) libmagic=never-match;;
3781 # this will be overridden with pass_all, but let us keep it just in case
3782 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3785 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3786 lt_cv_deplibs_check_method=pass_all
3789 # This must be Linux ELF.
3792 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3793 lt_cv_deplibs_check_method=pass_all ;;
3795 # glibc up to 2.1.1 does not perform some relocations on ARM
3796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3798 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3802 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3803 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3805 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3811 lt_cv_file_magic_cmd=/usr/bin/file
3812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3816 lt_cv_file_magic_cmd=/usr/bin/file
3817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3821 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3825 osf3* | osf4* | osf5*)
3826 # this will be overridden with pass_all, but let us keep it just in case
3827 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3828 lt_cv_file_magic_test_file=/shlib/libc.so
3829 lt_cv_deplibs_check_method=pass_all
3833 lt_cv_deplibs_check_method=pass_all
3837 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_file_magic_test_file=/lib/libc.so
3841 sysv5uw[78]* | sysv4*uw2*)
3842 lt_cv_deplibs_check_method=pass_all
3845 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3846 case $host_vendor in
3848 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]'
3849 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3852 lt_cv_deplibs_check_method=pass_all
3855 lt_cv_file_magic_cmd='/bin/file'
3856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3859 lt_cv_file_magic_cmd='/bin/file'
3860 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3861 lt_cv_file_magic_test_file=/lib/libc.so
3869 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3870 file_magic_cmd=$lt_cv_file_magic_cmd
3871 deplibs_check_method=$lt_cv_deplibs_check_method
3873 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3874 echo "configure:3875: checking for object suffix" >&5
3875 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3879 echo 'int i = 1;' > conftest.$ac_ext
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881 for ac_file in conftest.*; do
3884 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3888 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3893 echo "$ac_t""$ac_cv_objext" 1>&6
3894 OBJEXT=$ac_cv_objext
3895 ac_objext=$ac_cv_objext
3900 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3901 echo "configure:3902: checking for executable suffix" >&5
3902 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3909 echo 'int main () { return 0; }' > conftest.$ac_ext
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3912 for file in conftest.*; do
3914 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3915 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3919 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3922 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3927 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3928 echo "$ac_t""${ac_cv_exeext}" 1>&6
3931 if test $host != $build; then
3932 ac_tool_prefix=${host_alias}-
3940 # Check for command to grab the raw symbol name followed by C symbol from nm.
3941 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3942 echo "configure:3943: checking command to parse $NM output" >&5
3943 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3947 # These are sane defaults that work on at least a few old systems.
3948 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3950 # Character class describing NM global symbol codes.
3951 symcode='[BCDEGRST]'
3953 # Regexp to match symbols that can be accessed directly from C.
3954 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3956 # Transform the above into a raw symbol and a C symbol.
3957 symxfrm='\1 \2\3 \3'
3959 # Transform an extracted symbol line into a proper C declaration
3960 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3962 # Transform an extracted symbol line into symbol name and symbol address
3963 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'"
3965 # Define system-specific variables.
3970 cygwin* | mingw* | pw32*)
3971 symcode='[ABCDGISTW]'
3973 hpux*) # Its linker distinguishes data from code symbols
3974 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3975 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'"
3978 symcode='[BCDEGRST]'
3988 # Handle CRLF in mingw tool chain
3992 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3996 # If we're using GNU nm, then use its standard symbol codes.
3997 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3998 symcode='[ABCDGISTW]'
4001 # Try without a prefix undercore, then with it.
4002 for ac_symprfx in "" "_"; do
4004 # Write the raw and C identifiers.
4005 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4007 # Check to see that the pipe works correctly.
4010 cat > conftest.$ac_ext <<EOF
4015 void nm_test_func(){}
4019 int main(){nm_test_var='a';nm_test_func();return(0);}
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 # Now try to grab the symbols.
4025 if { (eval echo configure:4026: \"$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
4026 # Try sorting and uniquifying the output.
4027 if sort "$nlist" | uniq > "$nlist"T; then
4028 mv -f "$nlist"T "$nlist"
4033 # Make sure that we snagged all the symbols we need.
4034 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4035 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4036 cat <<EOF > conftest.$ac_ext
4042 # Now generate the symbol file.
4043 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4045 cat <<EOF >> conftest.$ac_ext
4046 #if defined (__STDC__) && __STDC__
4047 # define lt_ptr void *
4049 # define lt_ptr char *
4053 /* The mapping between symbol names and symbols. */
4058 lt_preloaded_symbols[] =
4061 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4062 cat <<\EOF >> conftest.$ac_ext
4070 # Now try linking the two files.
4071 mv conftest.$ac_objext conftstm.$ac_objext
4073 save_CFLAGS="$CFLAGS"
4074 LIBS="conftstm.$ac_objext"
4075 CFLAGS="$CFLAGS$no_builtin_flag"
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4080 CFLAGS="$save_CFLAGS"
4082 echo "cannot find nm_test_func in $nlist" >&5
4085 echo "cannot find nm_test_var in $nlist" >&5
4088 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4091 echo "$progname: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 rm -f conftest* conftst*
4096 # Do not use the global_symbol_pipe unless it works.
4097 if test "$pipe_works" = yes; then
4100 lt_cv_sys_global_symbol_pipe=
4106 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4107 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4108 global_symbol_to_cdecl=
4109 global_symbol_to_c_name_address=
4111 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4112 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4114 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4116 echo "$ac_t""failed" 1>&6
4118 echo "$ac_t""ok" 1>&6
4121 for ac_hdr in dlfcn.h
4123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4125 echo "configure:4126: checking for $ac_hdr" >&5
4126 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4135 { (eval echo configure:4136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4137 if test -z "$ac_err"; then
4139 eval "ac_cv_header_$ac_safe=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 eval "ac_cv_header_$ac_safe=no"
4149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4150 echo "$ac_t""yes" 1>&6
4151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4152 cat >> confdefs.h <<EOF
4153 #define $ac_tr_hdr 1
4157 echo "$ac_t""no" 1>&6
4165 # Only perform the check for file, if the check method requires it
4166 case $deplibs_check_method in
4168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4169 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4170 echo "configure:4171: checking for ${ac_tool_prefix}file" >&5
4171 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4182 ac_save_MAGIC_CMD="$MAGIC_CMD"
4183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4184 ac_dummy="/usr/bin:$PATH"
4185 for ac_dir in $ac_dummy; do
4186 test -z "$ac_dir" && ac_dir=.
4187 if test -f $ac_dir/${ac_tool_prefix}file; then
4188 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4189 if test -n "$file_magic_test_file"; then
4190 case $deplibs_check_method in
4192 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4195 egrep "$file_magic_regex" > /dev/null; then
4200 *** Warning: the command libtool uses to detect shared libraries,
4201 *** $file_magic_cmd, produces output that libtool cannot recognize.
4202 *** The result is that libtool may fail to recognize shared libraries
4203 *** as such. This will affect the creation of libtool libraries that
4204 *** depend on shared libraries, but programs linked with such libtool
4205 *** libraries will work regardless of this problem. Nevertheless, you
4206 *** may want to report the problem to your system manager and/or to
4207 *** bug-libtool@gnu.org
4217 MAGIC_CMD="$ac_save_MAGIC_CMD"
4222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4223 if test -n "$MAGIC_CMD"; then
4224 echo "$ac_t""$MAGIC_CMD" 1>&6
4226 echo "$ac_t""no" 1>&6
4229 if test -z "$lt_cv_path_MAGIC_CMD"; then
4230 if test -n "$ac_tool_prefix"; then
4231 echo $ac_n "checking for file""... $ac_c" 1>&6
4232 echo "configure:4233: checking for file" >&5
4233 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4244 ac_save_MAGIC_CMD="$MAGIC_CMD"
4245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4246 ac_dummy="/usr/bin:$PATH"
4247 for ac_dir in $ac_dummy; do
4248 test -z "$ac_dir" && ac_dir=.
4249 if test -f $ac_dir/file; then
4250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4251 if test -n "$file_magic_test_file"; then
4252 case $deplibs_check_method in
4254 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4257 egrep "$file_magic_regex" > /dev/null; then
4262 *** Warning: the command libtool uses to detect shared libraries,
4263 *** $file_magic_cmd, produces output that libtool cannot recognize.
4264 *** The result is that libtool may fail to recognize shared libraries
4265 *** as such. This will affect the creation of libtool libraries that
4266 *** depend on shared libraries, but programs linked with such libtool
4267 *** libraries will work regardless of this problem. Nevertheless, you
4268 *** may want to report the problem to your system manager and/or to
4269 *** bug-libtool@gnu.org
4279 MAGIC_CMD="$ac_save_MAGIC_CMD"
4284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4285 if test -n "$MAGIC_CMD"; then
4286 echo "$ac_t""$MAGIC_CMD" 1>&6
4288 echo "$ac_t""no" 1>&6
4300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_word" >&5
4304 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 if test -n "$RANLIB"; then
4308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4312 for ac_dir in $ac_dummy; do
4313 test -z "$ac_dir" && ac_dir=.
4314 if test -f $ac_dir/$ac_word; then
4315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4322 RANLIB="$ac_cv_prog_RANLIB"
4323 if test -n "$RANLIB"; then
4324 echo "$ac_t""$RANLIB" 1>&6
4326 echo "$ac_t""no" 1>&6
4330 if test -z "$ac_cv_prog_RANLIB"; then
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "ranlib", so it can be a program name with args.
4333 set dummy ranlib; ac_word=$2
4334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4335 echo "configure:4336: checking for $ac_word" >&5
4336 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 if test -n "$RANLIB"; then
4340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4344 for ac_dir in $ac_dummy; do
4345 test -z "$ac_dir" && ac_dir=.
4346 if test -f $ac_dir/$ac_word; then
4347 ac_cv_prog_RANLIB="ranlib"
4352 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4355 RANLIB="$ac_cv_prog_RANLIB"
4356 if test -n "$RANLIB"; then
4357 echo "$ac_t""$RANLIB" 1>&6
4359 echo "$ac_t""no" 1>&6
4367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4368 set dummy ${ac_tool_prefix}strip; ac_word=$2
4369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4370 echo "configure:4371: checking for $ac_word" >&5
4371 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 if test -n "$STRIP"; then
4375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4379 for ac_dir in $ac_dummy; do
4380 test -z "$ac_dir" && ac_dir=.
4381 if test -f $ac_dir/$ac_word; then
4382 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4389 STRIP="$ac_cv_prog_STRIP"
4390 if test -n "$STRIP"; then
4391 echo "$ac_t""$STRIP" 1>&6
4393 echo "$ac_t""no" 1>&6
4397 if test -z "$ac_cv_prog_STRIP"; then
4398 if test -n "$ac_tool_prefix"; then
4399 # Extract the first word of "strip", so it can be a program name with args.
4400 set dummy strip; ac_word=$2
4401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4402 echo "configure:4403: checking for $ac_word" >&5
4403 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 if test -n "$STRIP"; then
4407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4411 for ac_dir in $ac_dummy; do
4412 test -z "$ac_dir" && ac_dir=.
4413 if test -f $ac_dir/$ac_word; then
4414 ac_cv_prog_STRIP="strip"
4419 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4422 STRIP="$ac_cv_prog_STRIP"
4423 if test -n "$STRIP"; then
4424 echo "$ac_t""$STRIP" 1>&6
4426 echo "$ac_t""no" 1>&6
4436 enable_win32_dll=yes
4438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4439 if test "${enable_libtool_lock+set}" = set; then
4440 enableval="$enable_libtool_lock"
4444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4446 # Some flags need to be propagated to the compiler or linker for good
4450 # Find out which ABI we are using.
4451 echo '#line 4452 "configure"' > conftest.$ac_ext
4452 if { (eval echo configure:4453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4453 case `/usr/bin/file conftest.$ac_objext` in
4469 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4470 SAVE_CFLAGS="$CFLAGS"
4471 CFLAGS="$CFLAGS -belf"
4472 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4473 echo "configure:4474: checking whether the C compiler needs -belf" >&5
4474 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4483 cross_compiling=$ac_cv_prog_cc_cross
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 lt_cv_cc_needs_belf=yes
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 lt_cv_cc_needs_belf=no
4504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4508 cross_compiling=$ac_cv_prog_cc_cross
4512 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4513 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4515 CFLAGS="$SAVE_CFLAGS"
4519 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4520 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4521 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_word" >&5
4524 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4527 if test -n "$DLLTOOL"; then
4528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4532 for ac_dir in $ac_dummy; do
4533 test -z "$ac_dir" && ac_dir=.
4534 if test -f $ac_dir/$ac_word; then
4535 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4542 DLLTOOL="$ac_cv_prog_DLLTOOL"
4543 if test -n "$DLLTOOL"; then
4544 echo "$ac_t""$DLLTOOL" 1>&6
4546 echo "$ac_t""no" 1>&6
4550 if test -z "$ac_cv_prog_DLLTOOL"; then
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "dlltool", so it can be a program name with args.
4553 set dummy dlltool; ac_word=$2
4554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_word" >&5
4556 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 if test -n "$DLLTOOL"; then
4560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4564 for ac_dir in $ac_dummy; do
4565 test -z "$ac_dir" && ac_dir=.
4566 if test -f $ac_dir/$ac_word; then
4567 ac_cv_prog_DLLTOOL="dlltool"
4572 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4575 DLLTOOL="$ac_cv_prog_DLLTOOL"
4576 if test -n "$DLLTOOL"; then
4577 echo "$ac_t""$DLLTOOL" 1>&6
4579 echo "$ac_t""no" 1>&6
4587 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4588 set dummy ${ac_tool_prefix}as; ac_word=$2
4589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4590 echo "configure:4591: checking for $ac_word" >&5
4591 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 if test -n "$AS"; then
4595 ac_cv_prog_AS="$AS" # Let the user override the test.
4597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4599 for ac_dir in $ac_dummy; do
4600 test -z "$ac_dir" && ac_dir=.
4601 if test -f $ac_dir/$ac_word; then
4602 ac_cv_prog_AS="${ac_tool_prefix}as"
4610 if test -n "$AS"; then
4611 echo "$ac_t""$AS" 1>&6
4613 echo "$ac_t""no" 1>&6
4617 if test -z "$ac_cv_prog_AS"; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "as", so it can be a program name with args.
4620 set dummy as; ac_word=$2
4621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4622 echo "configure:4623: checking for $ac_word" >&5
4623 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 if test -n "$AS"; then
4627 ac_cv_prog_AS="$AS" # Let the user override the test.
4629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4631 for ac_dir in $ac_dummy; do
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f $ac_dir/$ac_word; then
4639 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4643 if test -n "$AS"; then
4644 echo "$ac_t""$AS" 1>&6
4646 echo "$ac_t""no" 1>&6
4654 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4655 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4657 echo "configure:4658: checking for $ac_word" >&5
4658 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 if test -n "$OBJDUMP"; then
4662 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4666 for ac_dir in $ac_dummy; do
4667 test -z "$ac_dir" && ac_dir=.
4668 if test -f $ac_dir/$ac_word; then
4669 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4676 OBJDUMP="$ac_cv_prog_OBJDUMP"
4677 if test -n "$OBJDUMP"; then
4678 echo "$ac_t""$OBJDUMP" 1>&6
4680 echo "$ac_t""no" 1>&6
4684 if test -z "$ac_cv_prog_OBJDUMP"; then
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "objdump", so it can be a program name with args.
4687 set dummy objdump; ac_word=$2
4688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_word" >&5
4690 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 if test -n "$OBJDUMP"; then
4694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4698 for ac_dir in $ac_dummy; do
4699 test -z "$ac_dir" && ac_dir=.
4700 if test -f $ac_dir/$ac_word; then
4701 ac_cv_prog_OBJDUMP="objdump"
4706 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4709 OBJDUMP="$ac_cv_prog_OBJDUMP"
4710 if test -n "$OBJDUMP"; then
4711 echo "$ac_t""$OBJDUMP" 1>&6
4713 echo "$ac_t""no" 1>&6
4722 # recent cygwin and mingw systems supply a stub DllMain which the user
4723 # can override, but on older systems we have to supply one
4724 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4725 echo "configure:4726: checking if libtool should supply DllMain function" >&5
4726 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4734 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4738 if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4740 lt_cv_need_dllmain=no
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 lt_cv_need_dllmain=yes
4750 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4753 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4754 # old mingw systems require "-dll" to link a DLL, while more recent ones
4756 SAVE_CFLAGS="$CFLAGS"
4757 CFLAGS="$CFLAGS -mdll"
4758 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4759 echo "configure:4760: checking how to link DLLs" >&5
4760 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4773 lt_cv_cc_dll_switch=-mdll
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 lt_cv_cc_dll_switch=-dll
4783 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4784 CFLAGS="$SAVE_CFLAGS" ;;
4785 *-*-cygwin* | *-*-pw32*)
4786 # cygwin systems need to pass --dll to the linker, and not link
4787 # crt.o which will require a WinMain@16 definition.
4788 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4794 # Sed substitution that helps us do robust quoting. It backslashifies
4795 # metacharacters that are still active within double-quoted strings.
4796 Xsed='sed -e s/^X//'
4797 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4799 # Same as above, but do not quote variable references.
4800 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4802 # Sed substitution to delay expansion of an escaped shell variable in a
4803 # double_quote_subst'ed string.
4804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4810 default_ofile=libtool
4811 can_build_shared=yes
4813 # All known linkers require a `.a' archive for static linking (except M$VC,
4814 # which needs '.lib').
4816 ltmain="$ac_aux_dir/ltmain.sh"
4817 ofile="$default_ofile"
4818 with_gnu_ld="$lt_cv_prog_gnu_ld"
4819 need_locks="$enable_libtool_lock"
4822 old_CFLAGS="$CFLAGS"
4824 # Set sane defaults for various variables
4825 test -z "$AR" && AR=ar
4826 test -z "$AR_FLAGS" && AR_FLAGS=cru
4827 test -z "$AS" && AS=as
4828 test -z "$CC" && CC=cc
4829 test -z "$DLLTOOL" && DLLTOOL=dlltool
4830 test -z "$LD" && LD=ld
4831 test -z "$LN_S" && LN_S="ln -s"
4832 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4833 test -z "$NM" && NM=nm
4834 test -z "$OBJDUMP" && OBJDUMP=objdump
4835 test -z "$RANLIB" && RANLIB=:
4836 test -z "$STRIP" && STRIP=:
4837 test -z "$ac_objext" && ac_objext=o
4839 if test x"$host" != x"$build"; then
4840 ac_tool_prefix=${host_alias}-
4845 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4848 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4853 # AIX sometimes has problems with the GCC collect2 program. For some
4854 # reason, if we set the COLLECT_NAMES environment variable, the problems
4855 # vanish in a puff of smoke.
4856 if test "X${COLLECT_NAMES+set}" != Xset; then
4858 export COLLECT_NAMES
4863 # Determine commands to create old-style static archives.
4864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4865 old_postinstall_cmds='chmod 644 $oldlib'
4866 old_postuninstall_cmds=
4868 if test -n "$RANLIB"; then
4871 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4874 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4877 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4880 # Allow CC to be a program name with arguments.
4884 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4885 echo "configure:4886: checking for objdir" >&5
4886 rm -f .libs 2>/dev/null
4887 mkdir .libs 2>/dev/null
4888 if test -d .libs; then
4891 # MS-DOS does not allow filenames that begin with a dot.
4894 rmdir .libs 2>/dev/null
4895 echo "$ac_t""$objdir" 1>&6
4898 # Check whether --with-pic or --without-pic was given.
4899 if test "${with_pic+set}" = set; then
4906 test -z "$pic_mode" && pic_mode=default
4908 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4909 # in isolation, and that seeing it set (from the cache) indicates that
4910 # the associated values are set (in the cache) correctly too.
4911 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4912 echo "configure:4913: checking for $compiler option to produce PIC" >&5
4913 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4917 lt_cv_prog_cc_shlib=
4919 lt_cv_prog_cc_static=
4920 lt_cv_prog_cc_no_builtin=
4921 lt_cv_prog_cc_can_build_shared=$can_build_shared
4923 if test "$GCC" = yes; then
4924 lt_cv_prog_cc_wl='-Wl,'
4925 lt_cv_prog_cc_static='-static'
4929 # Below there is a dirty hack to force normal static linking with -ldl
4930 # The problem is because libdl dynamically linked with both libc and
4931 # libC (AIX C++ library), which obviously doesn't included in libraries
4932 # list by gcc. This cause undefined symbols with -static flags.
4933 # This hack allows C programs to be linked with "-static -ldl", but
4934 # not sure about C++ programs.
4935 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4938 # FIXME: we need at least 68020 code to build shared libraries, but
4939 # adding the `-m68020' flag to GCC prevents building anything better,
4941 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4943 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4944 # PIC is the default for these OSes.
4946 darwin* | rhapsody*)
4947 # PIC is the default on this platform
4948 # Common symbols not allowed in MH_DYLIB files
4949 lt_cv_prog_cc_pic='-fno-common'
4951 cygwin* | mingw* | pw32* | os2*)
4952 # This hack is so that the source file can tell whether it is being
4953 # built for inclusion in a dll (and should export symbols for example).
4954 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4957 if test -d /usr/nec; then
4958 lt_cv_prog_cc_pic=-Kconform_pic
4962 lt_cv_prog_cc_pic='-fPIC'
4966 # PORTME Check for PIC flags for the system compiler.
4968 aix3* | aix4* | aix5*)
4969 lt_cv_prog_cc_wl='-Wl,'
4970 # All AIX code is PIC.
4971 if test "$host_cpu" = ia64; then
4972 # AIX 5 now supports IA64 processor
4973 lt_cv_prog_cc_static='-Bstatic'
4975 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4979 hpux9* | hpux10* | hpux11*)
4980 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4981 lt_cv_prog_cc_wl='-Wl,'
4982 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4983 lt_cv_prog_cc_pic='+Z'
4987 lt_cv_prog_cc_wl='-Wl,'
4988 lt_cv_prog_cc_static='-non_shared'
4989 # PIC (with -KPIC) is the default.
4992 cygwin* | mingw* | pw32* | os2*)
4993 # This hack is so that the source file can tell whether it is being
4994 # built for inclusion in a dll (and should export symbols for example).
4995 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4999 lt_cv_prog_cc_pic='-KPIC'
5000 lt_cv_prog_cc_static='-Bstatic'
5003 osf3* | osf4* | osf5*)
5004 # All OSF/1 code is PIC.
5005 lt_cv_prog_cc_wl='-Wl,'
5006 lt_cv_prog_cc_static='-non_shared'
5010 lt_cv_prog_cc_pic='-Kpic'
5011 lt_cv_prog_cc_static='-dn'
5012 lt_cv_prog_cc_shlib='-belf'
5016 lt_cv_prog_cc_pic='-KPIC'
5017 lt_cv_prog_cc_static='-Bstatic'
5018 lt_cv_prog_cc_wl='-Wl,'
5022 lt_cv_prog_cc_pic='-PIC'
5023 lt_cv_prog_cc_static='-Bstatic'
5024 lt_cv_prog_cc_wl='-Qoption ld '
5027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5028 lt_cv_prog_cc_pic='-KPIC'
5029 lt_cv_prog_cc_static='-Bstatic'
5030 if test "x$host_vendor" = xsni; then
5031 lt_cv_prog_cc_wl='-LD'
5033 lt_cv_prog_cc_wl='-Wl,'
5038 lt_cv_prog_cc_pic='-pic'
5039 lt_cv_prog_cc_static='-Bstatic'
5043 if test -d /usr/nec ;then
5044 lt_cv_prog_cc_pic='-Kconform_pic'
5045 lt_cv_prog_cc_static='-Bstatic'
5050 lt_cv_prog_cc_can_build_shared=no
5057 if test -z "$lt_cv_prog_cc_pic"; then
5058 echo "$ac_t""none" 1>&6
5060 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5062 # Check to make sure the pic_flag actually works.
5063 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5064 echo "configure:5065: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5065 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5068 save_CFLAGS="$CFLAGS"
5069 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5078 if { (eval echo configure:5079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5081 hpux9* | hpux10* | hpux11*)
5082 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5083 # they create non-PIC objects. So, if there were any warnings, we
5084 # assume that PIC is not supported.
5085 if test -s conftest.err; then
5086 lt_cv_prog_cc_pic_works=no
5088 lt_cv_prog_cc_pic_works=yes
5092 lt_cv_prog_cc_pic_works=yes
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5100 lt_cv_prog_cc_pic_works=no
5104 CFLAGS="$save_CFLAGS"
5109 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5111 lt_cv_prog_cc_can_build_shared=no
5113 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5116 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5119 # Check for any special shared library compilation flags.
5120 if test -n "$lt_cv_prog_cc_shlib"; then
5121 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5122 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5124 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5125 lt_cv_prog_cc_can_build_shared=no
5129 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5130 echo "configure:5131: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5131 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 lt_cv_prog_cc_static_works=no
5135 save_LDFLAGS="$LDFLAGS"
5136 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5137 cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 lt_cv_prog_cc_static_works=yes
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5153 LDFLAGS="$save_LDFLAGS"
5158 # Belt *and* braces to stop my trousers falling down:
5159 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5160 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5162 pic_flag="$lt_cv_prog_cc_pic"
5163 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5164 wl="$lt_cv_prog_cc_wl"
5165 link_static_flag="$lt_cv_prog_cc_static"
5166 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5167 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5170 # Check to see if options -o and -c are simultaneously supported by compiler
5171 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5172 echo "configure:5173: checking if $compiler supports -c -o file.$ac_objext" >&5
5173 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5177 $rm -r conftest 2>/dev/null
5180 echo "int some_variable = 0;" > conftest.$ac_ext
5182 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5183 # that will create temporary files in the current directory regardless of
5184 # the output directory. Thus, making CWD read-only will cause this test
5185 # to fail, enabling locking or at least warning the user not to do parallel
5188 save_CFLAGS="$CFLAGS"
5189 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5191 if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5192 # The compiler can only warn and ignore the option if not recognized
5193 # So say no if there are warnings
5194 if test -s out/conftest.err; then
5195 lt_cv_compiler_c_o=no
5197 lt_cv_compiler_c_o=yes
5200 # Append any errors to the config.log.
5201 cat out/conftest.err 1>&5
5202 lt_cv_compiler_c_o=no
5204 CFLAGS="$save_CFLAGS"
5210 $rm -r conftest 2>/dev/null
5214 compiler_c_o=$lt_cv_compiler_c_o
5215 echo "$ac_t""$compiler_c_o" 1>&6
5217 if test x"$compiler_c_o" = x"yes"; then
5218 # Check to see if we can write to a .lo
5219 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5220 echo "configure:5221: checking if $compiler supports -c -o file.lo" >&5
5221 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5225 lt_cv_compiler_o_lo=no
5226 save_CFLAGS="$CFLAGS"
5227 CFLAGS="$CFLAGS -c -o conftest.lo"
5228 save_objext="$ac_objext"
5230 cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5235 int some_variable = 0;
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 # The compiler can only warn and ignore the option if not recognized
5241 # So say no if there are warnings
5242 if test -s conftest.err; then
5243 lt_cv_compiler_o_lo=no
5245 lt_cv_compiler_o_lo=yes
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5253 ac_objext="$save_objext"
5254 CFLAGS="$save_CFLAGS"
5258 compiler_o_lo=$lt_cv_compiler_o_lo
5259 echo "$ac_t""$compiler_o_lo" 1>&6
5264 # Check to see if we can do hard links to lock some files if needed
5265 hard_links="nottested"
5266 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5267 # do not overwrite the value of need_locks provided by the user
5268 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5269 echo "configure:5270: checking if we can lock with hard links" >&5
5272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5274 ln conftest.a conftest.b 2>&5 || hard_links=no
5275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5276 echo "$ac_t""$hard_links" 1>&6
5277 if test "$hard_links" = no; then
5278 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5285 if test "$GCC" = yes; then
5286 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5287 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5288 echo "configure:5289: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5289 echo "int some_variable = 0;" > conftest.$ac_ext
5290 save_CFLAGS="$CFLAGS"
5291 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5292 compiler_rtti_exceptions=no
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5298 int some_variable = 0;
5301 if { (eval echo configure:5302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5303 # The compiler can only warn and ignore the option if not recognized
5304 # So say no if there are warnings
5305 if test -s conftest.err; then
5306 compiler_rtti_exceptions=no
5308 compiler_rtti_exceptions=yes
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5316 CFLAGS="$save_CFLAGS"
5317 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5319 if test "$compiler_rtti_exceptions" = "yes"; then
5320 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5322 no_builtin_flag=' -fno-builtin'
5326 # See if the linker supports building shared libraries.
5327 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5328 echo "configure:5329: checking whether the linker ($LD) supports shared libraries" >&5
5330 allow_undefined_flag=
5332 need_lib_prefix=unknown
5333 need_version=unknown
5334 # when you set need_version to no, make sure it does not cause -set_version
5335 # flags to be left without arguments
5337 archive_expsym_cmds=
5338 old_archive_from_new_cmds=
5339 old_archive_from_expsyms_cmds=
5340 export_dynamic_flag_spec=
5341 whole_archive_flag_spec=
5342 thread_safe_flag_spec=
5343 hardcode_into_libs=no
5344 hardcode_libdir_flag_spec=
5345 hardcode_libdir_separator=
5348 hardcode_shlibpath_var=unsupported
5350 link_all_deplibs=unknown
5351 always_export_symbols=no
5352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5353 # include_expsyms should be a list of space-separated symbols to be *always*
5354 # included in the symbol list
5356 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5359 # as well as any symbol that contains `d'.
5360 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5362 # platforms (ab)use it in PIC code, but their linkers get confused if
5363 # the symbol is explicitly referenced. Since portable code cannot
5364 # rely on this symbol name, it's probably fine to never include it in
5365 # preloaded symbol tables.
5366 extract_expsyms_cmds=
5369 cygwin* | mingw* | pw32*)
5370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5371 # When not using gcc, we currently assume that we are using
5372 # Microsoft Visual C++.
5373 if test "$GCC" != yes; then
5383 if test "$with_gnu_ld" = yes; then
5384 # If archive_cmds runs LD, not CC, wlarc should be empty
5387 # See if GNU ld supports shared libraries.
5389 aix3* | aix4* | aix5*)
5390 # On AIX, the GNU linker is very broken
5391 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5396 *** to be unable to reliably create shared libraries on AIX.
5397 *** Therefore, libtool is disabling shared libraries support. If you
5398 *** really care for shared libraries, you may want to modify your PATH
5399 *** so that a non-GNU linker is found, and then restart.
5405 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)'
5406 hardcode_libdir_flag_spec='-L$libdir'
5407 hardcode_minus_L=yes
5409 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5410 # that the semantics of dynamic libraries on AmigaOS, at least up
5411 # to version 4, is to share data among multiple programs linked
5412 # with the same dynamic library. Since this doesn't match the
5413 # behavior of shared libraries on other platforms, we can use
5419 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5420 allow_undefined_flag=unsupported
5421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5422 # support --undefined. This deserves some investigation. FIXME
5423 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5429 cygwin* | mingw* | pw32*)
5430 # hardcode_libdir_flag_spec is actually meaningless, as there is
5431 # no search path for DLLs.
5432 hardcode_libdir_flag_spec='-L$libdir'
5433 allow_undefined_flag=unsupported
5434 always_export_symbols=yes
5436 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5437 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5438 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5439 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5440 else $CC -o impgen impgen.c ; fi)~
5441 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5443 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5445 # cygwin and mingw dlls have different entry points and sets of symbols
5447 # FIXME: what about values for MSVC?
5448 dll_entry=__cygwin_dll_entry@12
5449 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5453 dll_entry=_DllMainCRTStartup@12
5454 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5458 # mingw and cygwin differ, and it's simplest to just exclude the union
5459 # of the two symbol sets.
5460 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5462 # recent cygwin and mingw systems supply a stub DllMain which the user
5463 # can override, but on older systems we have to supply one (in ltdll.c)
5464 if test "x$lt_cv_need_dllmain" = "xyes"; then
5465 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5466 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~
5467 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5473 # Extract the symbol export list from an `--export-all' def file,
5474 # then regenerate the def file from the symbol export list, so that
5475 # the compiled dll only exports the symbol export list.
5476 # Be careful not to strip the DATA tag left be newer dlltools.
5477 export_symbols_cmds="$ltdll_cmds"'
5478 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5479 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5481 # If the export-symbols file already is a .def file (1st line
5482 # is EXPORTS), use it as is.
5483 # If DATA tags from a recent dlltool are present, honour them!
5484 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5485 cp $export_symbols $output_objdir/$soname-def;
5487 echo EXPORTS > $output_objdir/$soname-def;
5489 cat $export_symbols | while read symbol; do
5492 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5493 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5495 _lt_hint=`expr 1 + \$_lt_hint`;
5499 $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~
5500 $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~
5501 $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~
5502 $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~
5503 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5508 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5511 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5512 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5517 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5521 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5522 *** create shared libraries on Solaris systems. Therefore, libtool
5523 *** is disabling shared libraries support. We urge you to upgrade GNU
5524 *** binutils to release 2.9.1 or newer. Another option is to modify
5525 *** your PATH or compiler configuration so that the native linker is
5526 *** used, and then restart.
5529 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5538 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5541 hardcode_shlibpath_var=no
5545 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5554 if test "$ld_shlibs" = yes; then
5555 runpath_var=LD_RUN_PATH
5556 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5557 export_dynamic_flag_spec='${wl}--export-dynamic'
5559 cygwin* | mingw* | pw32*)
5560 # dlltool doesn't understand --whole-archive et. al.
5561 whole_archive_flag_spec=
5564 # ancient GNU ld didn't support --whole-archive et. al.
5565 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5566 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5568 whole_archive_flag_spec=
5574 # PORTME fill in a description of your system's linker (not GNU ld)
5577 allow_undefined_flag=unsupported
5578 always_export_symbols=yes
5579 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'
5580 # Note: this linker hardcodes the directories in LIBPATH if there
5581 # are no directories specified by -L.
5582 hardcode_minus_L=yes
5583 if test "$GCC" = yes && test -z "$link_static_flag"; then
5584 # Neither direct hardcoding nor static linking is supported with a
5586 hardcode_direct=unsupported
5591 if test "$host_cpu" = ia64; then
5592 # On IA64, the linker does run time linking by default, so we don't
5593 # have to do anything special.
5594 aix_use_runtimelinking=no
5595 exp_sym_flag='-Bexport'
5598 aix_use_runtimelinking=no
5600 # Test if we are trying to use run time linking or normal
5601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5602 # need to do runtime linking.
5603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5604 for ld_flag in $LDFLAGS; do
5605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5606 aix_use_runtimelinking=yes
5612 exp_sym_flag='-bexport'
5613 no_entry_flag='-bnoentry'
5616 # When large executables or shared objects are built, AIX ld can
5617 # have problems creating the table of contents. If linking a library
5618 # or program results in "error TOC overflow" add -mminimal-toc to
5619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5624 hardcode_libdir_separator=':'
5625 if test "$GCC" = yes; then
5626 case $host_os in aix4.[012]|aix4.[012].*)
5627 collect2name=`${CC} -print-prog-name=collect2`
5628 if test -f "$collect2name" && \
5629 strings "$collect2name" | grep resolve_lib_name >/dev/null
5631 # We have reworked collect2
5634 # We have old collect2
5635 hardcode_direct=unsupported
5636 # It fails to find uninstalled libraries when the uninstalled
5637 # path is not listed in the libpath. Setting hardcode_minus_L
5638 # to unsupported forces relinking
5639 hardcode_minus_L=yes
5640 hardcode_libdir_flag_spec='-L$libdir'
5641 hardcode_libdir_separator=
5645 shared_flag='-shared'
5648 if test "$host_cpu" = ia64; then
5649 shared_flag='${wl}-G'
5651 if test "$aix_use_runtimelinking" = yes; then
5652 shared_flag='${wl}-G'
5654 shared_flag='${wl}-bM:SRE'
5659 # It seems that -bexpall can do strange things, so it is better to
5660 # generate a list of symbols to export.
5661 always_export_symbols=yes
5662 if test "$aix_use_runtimelinking" = yes; then
5663 # Warning - without using the other runtime loading flags (-brtl),
5664 # -berok will link without error, but may produce a broken library.
5665 allow_undefined_flag='-berok'
5666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5667 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"
5669 if test "$host_cpu" = ia64; then
5670 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5671 allow_undefined_flag="-z nodefs"
5672 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"
5674 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5675 # Warning - without using the other run time loading flags,
5676 # -berok will link without error, but may produce a broken library.
5677 allow_undefined_flag='${wl}-berok'
5678 # This is a bit strange, but is similar to how AIX traditionally builds
5679 # it's shared libraries.
5680 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'
5686 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)'
5687 hardcode_libdir_flag_spec='-L$libdir'
5688 hardcode_minus_L=yes
5689 # see comment about different semantics on the GNU ld section
5693 cygwin* | mingw* | pw32*)
5694 # When not using gcc, we currently assume that we are using
5695 # Microsoft Visual C++.
5696 # hardcode_libdir_flag_spec is actually meaningless, as there is
5697 # no search path for DLLs.
5698 hardcode_libdir_flag_spec=' '
5699 allow_undefined_flag=unsupported
5700 # Tell ltmain to make .lib files, not .a files.
5702 # FIXME: Setting linknames here is a bad hack.
5703 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5704 # The linker will automatically build a .lib file if we build a DLL.
5705 old_archive_from_new_cmds='true'
5706 # FIXME: Should let the user specify the lib program.
5707 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5708 fix_srcfile_path='`cygpath -w "$srcfile"`'
5711 darwin* | rhapsody*)
5713 rhapsody* | darwin1.[012])
5714 allow_undefined_flag='-undefined suppress'
5717 allow_undefined_flag='-flat_namespace -undefined suppress'
5720 # FIXME: Relying on posixy $() will cause problems for
5721 # cross-compilation, but unfortunately the echo tests do not
5722 # yet detect zsh echo's removal of \ escapes.
5723 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5724 # We need to add '_' to the symbols in $export_symbols first
5725 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5727 hardcode_shlibpath_var=no
5728 whole_archive_flag_spec='-all_load $convenience'
5735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5736 # support. Future versions do this automatically, but an explicit c++rt0.o
5737 # does not break anything, and helps significantly (at the cost of a little
5740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5741 hardcode_libdir_flag_spec='-R$libdir'
5743 hardcode_shlibpath_var=no
5746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5750 hardcode_minus_L=yes
5751 hardcode_shlibpath_var=no
5754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5757 hardcode_libdir_flag_spec='-R$libdir'
5759 hardcode_shlibpath_var=no
5762 hpux9* | hpux10* | hpux11*)
5764 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' ;;
5765 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5767 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5768 hardcode_libdir_separator=:
5770 hardcode_minus_L=yes # Not in the search PATH, but as the default
5771 # location of the library.
5772 export_dynamic_flag_spec='${wl}-E'
5776 if test "$GCC" = yes; then
5777 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'
5779 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'
5781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5782 hardcode_libdir_separator=:
5783 link_all_deplibs=yes
5787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5790 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5792 hardcode_libdir_flag_spec='-R$libdir'
5794 hardcode_shlibpath_var=no
5798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5801 hardcode_libdir_separator=:
5802 hardcode_shlibpath_var=no
5807 hardcode_shlibpath_var=no
5808 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5811 export_dynamic_flag_spec='${wl}-E'
5814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5816 hardcode_libdir_flag_spec='-R$libdir'
5819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5827 hardcode_libdir_flag_spec='-L$libdir'
5828 hardcode_minus_L=yes
5829 allow_undefined_flag=unsupported
5830 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'
5831 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5835 if test "$GCC" = yes; then
5836 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5837 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'
5839 allow_undefined_flag=' -expect_unresolved \*'
5840 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'
5842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5843 hardcode_libdir_separator=:
5846 osf4* | osf5*) # as osf3* with the addition of -msym flag
5847 if test "$GCC" = yes; then
5848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5849 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'
5850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5852 allow_undefined_flag=' -expect_unresolved \*'
5853 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'
5854 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5855 $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'
5857 #Both c and cxx compiler support -rpath directly
5858 hardcode_libdir_flag_spec='-rpath $libdir'
5860 hardcode_libdir_separator=:
5864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5865 hardcode_shlibpath_var=no
5866 runpath_var=LD_RUN_PATH
5867 hardcode_runpath_var=yes
5868 export_dynamic_flag_spec='${wl}-Bexport'
5872 # gcc --version < 3.0 without binutils cannot create self contained
5873 # shared libraries reliably, requiring libgcc.a to resolve some of
5874 # the object symbols generated in some cases. Libraries that use
5875 # assert need libgcc.a to resolve __eprintf, for example. Linking
5876 # a copy of libgcc.a into every shared library to guarantee resolving
5877 # such symbols causes other problems: According to Tim Van Holder
5878 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5879 # (to the application) exception stack for one thing.
5880 no_undefined_flag=' -z defs'
5881 if test "$GCC" = yes; then
5882 case `$CC --version 2>/dev/null` in
5886 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5887 *** create self contained shared libraries on Solaris systems, without
5888 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5889 *** -no-undefined support, which will at least allow you to build shared
5890 *** libraries. However, you may find that when you link such libraries
5891 *** into an application without using GCC, you have to manually add
5892 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5893 *** upgrade to a newer version of GCC. Another option is to rebuild your
5894 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5901 # $CC -shared without GNU ld will not create a library from C++
5902 # object files and a static libstdc++, better avoid it by now
5903 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5904 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5906 hardcode_libdir_flag_spec='-R$libdir'
5907 hardcode_shlibpath_var=no
5909 solaris2.[0-5] | solaris2.[0-5].*) ;;
5910 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5911 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5913 link_all_deplibs=yes
5917 if test "x$host_vendor" = xsequent; then
5918 # Use $CC to link under sequent, because it throws in some extra .o
5919 # files that make .init and .fini sections work.
5920 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5922 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5924 hardcode_libdir_flag_spec='-L$libdir'
5926 hardcode_minus_L=yes
5927 hardcode_shlibpath_var=no
5931 if test "x$host_vendor" = xsno; then
5932 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5933 hardcode_direct=yes # is this really true???
5935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5938 runpath_var='LD_RUN_PATH'
5939 hardcode_shlibpath_var=no
5943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5944 hardcode_shlibpath_var=no
5945 export_dynamic_flag_spec='-Bexport'
5949 no_undefined_flag=' -z text'
5950 # $CC -shared without GNU ld will not create a library from C++
5951 # object files and a static libstdc++, better avoid it by now
5952 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5955 hardcode_libdir_flag_spec=
5956 hardcode_shlibpath_var=no
5957 runpath_var='LD_RUN_PATH'
5961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5962 hardcode_libdir_flag_spec='-L$libdir'
5963 hardcode_shlibpath_var=no
5967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968 hardcode_libdir_flag_spec='-L$libdir'
5969 hardcode_shlibpath_var=no
5973 if test -d /usr/nec; then
5974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5975 hardcode_shlibpath_var=no
5976 runpath_var=LD_RUN_PATH
5977 hardcode_runpath_var=yes
5983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_shlibpath_var=no
5987 hardcode_runpath_var=yes
5988 runpath_var=LD_RUN_PATH
5991 sysv5uw7* | unixware7*)
5992 no_undefined_flag='${wl}-z ${wl}text'
5993 if test "$GCC" = yes; then
5994 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5996 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5998 runpath_var='LD_RUN_PATH'
5999 hardcode_shlibpath_var=no
6007 echo "$ac_t""$ld_shlibs" 1>&6
6008 test "$ld_shlibs" = no && can_build_shared=no
6010 # Check hardcoding attributes.
6011 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6012 echo "configure:6013: checking how to hardcode library paths into programs" >&5
6014 if test -n "$hardcode_libdir_flag_spec" || \
6015 test -n "$runpath_var"; then
6017 # We can hardcode non-existant directories.
6018 if test "$hardcode_direct" != no &&
6019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6020 # have to relink, otherwise we might link with an installed library
6021 # when we should be linking with a yet-to-be-installed one
6022 ## test "$hardcode_shlibpath_var" != no &&
6023 test "$hardcode_minus_L" != no; then
6024 # Linking always hardcodes the temporary library directory.
6025 hardcode_action=relink
6027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6028 hardcode_action=immediate
6031 # We cannot hardcode anything, or else we can only hardcode existing
6033 hardcode_action=unsupported
6035 echo "$ac_t""$hardcode_action" 1>&6
6039 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6040 echo "configure:6041: checking whether stripping libraries is possible" >&5
6041 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6042 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6043 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6044 echo "$ac_t""yes" 1>&6
6046 echo "$ac_t""no" 1>&6
6049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6052 # PORTME Fill in your ld.so characteristics
6053 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6054 echo "configure:6055: checking dynamic linker characteristics" >&5
6056 libname_spec='lib$name'
6063 shlibpath_overrides_runpath=unknown
6065 dynamic_linker="$host_os ld.so"
6066 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6072 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6073 shlibpath_var=LIBPATH
6075 # AIX has no versioning support, so we append a major version to the name.
6076 soname_spec='${libname}${release}.so$major'
6081 if test "$host_cpu" = ia64; then
6082 # AIX 5 supports IA64
6083 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6084 shlibpath_var=LD_LIBRARY_PATH
6086 # With GCC up to 2.95.x, collect2 would create an import file
6087 # for dependence libraries. The import file would start with
6088 # the line `#! .'. This would cause the generated library to
6089 # depend on `.', always an invalid library. This was fixed in
6090 # development snapshots of GCC prior to 3.0.
6092 aix4 | aix4.[01] | aix4.[01].*)
6093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6095 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6102 # AIX (on Power*) has no versioning support, so currently we can
6103 # not hardcode correct soname into executable. Probably we can
6104 # add versioning support to collect2, so additional links can
6105 # be useful in future.
6106 if test "$aix_use_runtimelinking" = yes; then
6107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6108 # instead of lib<name>.a to let people know that these are not
6109 # typical AIX shared libraries.
6110 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6112 # We preserve .a as extension for shared libraries through AIX4.2
6113 # and later when we are not doing run time linking.
6114 library_names_spec='${libname}${release}.a $libname.a'
6115 soname_spec='${libname}${release}.so$major'
6117 shlibpath_var=LIBPATH
6122 library_names_spec='$libname.ixlibrary $libname.a'
6123 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6124 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'
6128 library_names_spec='${libname}.so'
6129 dynamic_linker="$host_os ld.so"
6130 shlibpath_var=LIBRARY_PATH
6136 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6137 soname_spec='${libname}${release}.so$major'
6138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6139 shlibpath_var=LD_LIBRARY_PATH
6140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6142 export_dynamic_flag_spec=-rdynamic
6143 # the default ld.so.conf also contains /usr/contrib/lib and
6144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6145 # libtool to hard-code these into programs
6148 cygwin* | mingw* | pw32*)
6149 version_type=windows
6152 case $GCC,$host_os in
6154 library_names_spec='$libname.dll.a'
6155 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6156 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6157 dldir=$destdir/`dirname \$dlpath`~
6158 test -d \$dldir || mkdir -p \$dldir~
6159 $install_prog .libs/$dlname \$dldir/$dlname'
6160 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6161 dlpath=$dir/\$dldll~
6165 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6172 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6175 dynamic_linker='Win32 ld.exe'
6176 # FIXME: first we should search . and the directory the executable is in
6180 darwin* | rhapsody*)
6181 dynamic_linker="$host_os dyld"
6185 # FIXME: Relying on posixy $() will cause problems for
6186 # cross-compilation, but unfortunately the echo tests do not
6187 # yet detect zsh echo's removal of \ escapes.
6188 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)'
6189 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6190 shlibpath_overrides_runpath=yes
6191 shlibpath_var=DYLD_LIBRARY_PATH
6199 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6200 version_type=freebsd-$objformat
6201 case $version_type in
6203 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6208 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6212 shlibpath_var=LD_LIBRARY_PATH
6215 shlibpath_overrides_runpath=yes
6218 shlibpath_overrides_runpath=no
6219 hardcode_into_libs=yes
6228 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6229 soname_spec='${libname}${release}.so$major'
6230 shlibpath_var=LD_LIBRARY_PATH
6231 hardcode_into_libs=yes
6234 hpux9* | hpux10* | hpux11*)
6235 # Give a soname corresponding to the major version so that dld.sl refuses to
6236 # link against other versions.
6237 dynamic_linker="$host_os dld.sl"
6241 shlibpath_var=SHLIB_PATH
6242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6243 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6244 soname_spec='${libname}${release}.sl$major'
6245 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6246 postinstall_cmds='chmod 555 $lib'
6253 soname_spec='${libname}${release}.so$major'
6254 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6260 case $LD in # libtool.m4 will add one of these switches to LD
6261 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6262 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6263 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6264 *) libsuff= shlibsuff= libmagic=never-match;;
6268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6269 shlibpath_overrides_runpath=no
6270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6274 # No shared lib support for Linux oldld, aout, or coff.
6275 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6279 # This must be Linux ELF.
6284 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6285 soname_spec='${libname}${release}.so$major'
6286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6287 shlibpath_var=LD_LIBRARY_PATH
6288 shlibpath_overrides_runpath=no
6289 # This implies no fast_install, which is unacceptable.
6290 # Some rework will be needed to allow for fast_install
6291 # before this can be enabled.
6292 hardcode_into_libs=yes
6294 # We used to test for /lib/ld.so.1 and disable shared libraries on
6295 # powerpc, because MkLinux only supported shared libraries with the
6296 # GNU dynamic linker. Since this was broken with cross compilers,
6297 # most powerpc-linux boxes support dynamic linking these days and
6298 # people can always --disable-shared, the test was removed, and we
6299 # assume the GNU/Linux dynamic linker is in use.
6300 dynamic_linker='GNU/Linux ld.so'
6307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6308 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6310 dynamic_linker='NetBSD (a.out) ld.so'
6312 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6313 soname_spec='${libname}${release}.so$major'
6314 dynamic_linker='NetBSD ld.elf_so'
6316 shlibpath_var=LD_LIBRARY_PATH
6317 shlibpath_overrides_runpath=yes
6318 hardcode_into_libs=yes
6323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6324 shlibpath_var=LD_LIBRARY_PATH
6325 shlibpath_overrides_runpath=yes
6332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6334 openbsd2.[89] | openbsd2.[89].*)
6335 shlibpath_overrides_runpath=no
6338 shlibpath_overrides_runpath=yes
6342 shlibpath_overrides_runpath=yes
6344 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6346 shlibpath_var=LD_LIBRARY_PATH
6350 libname_spec='$name'
6352 library_names_spec='$libname.dll $libname.a'
6353 dynamic_linker='OS/2 ld.exe'
6354 shlibpath_var=LIBPATH
6357 osf3* | osf4* | osf5*)
6360 soname_spec='${libname}${release}.so'
6361 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6362 shlibpath_var=LD_LIBRARY_PATH
6363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6369 soname_spec='${libname}${release}.so$major'
6370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6371 shlibpath_var=LD_LIBRARY_PATH
6378 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6379 soname_spec='${libname}${release}.so$major'
6380 shlibpath_var=LD_LIBRARY_PATH
6381 shlibpath_overrides_runpath=yes
6382 hardcode_into_libs=yes
6383 # ldd complains unless libraries are executable
6384 postinstall_cmds='chmod +x $lib'
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 shlibpath_overrides_runpath=yes
6393 if test "$with_gnu_ld" = yes; then
6399 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6402 soname_spec='${libname}${release}.so$major'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 case $host_vendor in
6406 shlibpath_overrides_runpath=no
6411 shlibpath_overrides_runpath=no
6412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6419 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6420 soname_spec='${libname}${release}.so$major'
6421 shlibpath_var=LD_LIBRARY_PATH
6428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429 soname_spec='${libname}${release}.so$major'
6430 shlibpath_var=LD_LIBRARY_PATH
6434 if test -d /usr/nec ;then
6436 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6437 soname_spec='$libname.so.$major'
6438 shlibpath_var=LD_LIBRARY_PATH
6446 echo "$ac_t""$dynamic_linker" 1>&6
6447 test "$dynamic_linker" = no && can_build_shared=no
6449 # Report the final consequences.
6450 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6451 echo "configure:6452: checking if libtool supports shared libraries" >&5
6452 echo "$ac_t""$can_build_shared" 1>&6
6454 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6455 echo "configure:6456: checking whether to build shared libraries" >&5
6456 test "$can_build_shared" = "no" && enable_shared=no
6458 # On AIX, shared libraries and static libraries use the same namespace, and
6459 # are all built from PIC.
6462 test "$enable_shared" = yes && enable_static=no
6463 if test -n "$RANLIB"; then
6464 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6465 postinstall_cmds='$RANLIB $lib'
6470 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6471 test "$enable_shared" = yes && enable_static=no
6475 echo "$ac_t""$enable_shared" 1>&6
6477 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6478 echo "configure:6479: checking whether to build static libraries" >&5
6479 # Make sure either enable_shared or enable_static is yes.
6480 test "$enable_shared" = yes || enable_static=yes
6481 echo "$ac_t""$enable_static" 1>&6
6483 if test "$hardcode_action" = relink; then
6484 # Fast installation is not supported
6485 enable_fast_install=no
6486 elif test "$shlibpath_overrides_runpath" = yes ||
6487 test "$enable_shared" = no; then
6488 # Fast installation is not necessary
6489 enable_fast_install=needless
6492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6493 if test "$GCC" = yes; then
6494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6497 if test "x$enable_dlopen" != xyes; then
6498 enable_dlopen=unknown
6499 enable_dlopen_self=unknown
6500 enable_dlopen_self_static=unknown
6507 lt_cv_dlopen="load_add_on"
6509 lt_cv_dlopen_self=yes
6512 cygwin* | mingw* | pw32*)
6513 lt_cv_dlopen="LoadLibrary"
6518 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6519 echo "configure:6520: checking for shl_load" >&5
6520 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char shl_load(); below. */
6529 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6550 eval "ac_cv_func_shl_load=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_func_shl_load=no"
6560 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6561 echo "$ac_t""yes" 1>&6
6562 lt_cv_dlopen="shl_load"
6564 echo "$ac_t""no" 1>&6
6565 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6566 echo "configure:6567: checking for shl_load in -ldld" >&5
6567 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6568 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 ac_save_LIBS="$LIBS"
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6595 LIBS="$ac_save_LIBS"
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6602 echo "$ac_t""no" 1>&6
6603 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6604 echo "configure:6605: checking for dlopen" >&5
6605 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 /* System header to define __stub macros and hopefully few prototypes,
6612 which can conflict with char dlopen(); below. */
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 eval "ac_cv_func_dlopen=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 eval "ac_cv_func_dlopen=no"
6645 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 lt_cv_dlopen="dlopen"
6649 echo "$ac_t""no" 1>&6
6650 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6651 echo "configure:6652: checking for dlopen in -ldl" >&5
6652 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 ac_save_LIBS="$LIBS"
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6672 eval "ac_cv_lib_$ac_lib_var=yes"
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6677 eval "ac_cv_lib_$ac_lib_var=no"
6680 LIBS="$ac_save_LIBS"
6683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6684 echo "$ac_t""yes" 1>&6
6685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6687 echo "$ac_t""no" 1>&6
6688 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6689 echo "configure:6690: checking for dlopen in -lsvld" >&5
6690 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 ac_save_LIBS="$LIBS"
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_lib_$ac_lib_var=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_lib_$ac_lib_var=no"
6718 LIBS="$ac_save_LIBS"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6727 echo "configure:6728: checking for dld_link in -ldld" >&5
6728 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 ac_save_LIBS="$LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_lib_$ac_lib_var=no"
6756 LIBS="$ac_save_LIBS"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6763 echo "$ac_t""no" 1>&6
6784 if test "x$lt_cv_dlopen" != xno; then
6790 case $lt_cv_dlopen in
6792 save_CPPFLAGS="$CPPFLAGS"
6793 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6795 save_LDFLAGS="$LDFLAGS"
6796 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6799 LIBS="$lt_cv_dlopen_libs $LIBS"
6801 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6802 echo "configure:6803: checking whether a program can dlopen itself" >&5
6803 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 if test "$cross_compiling" = yes; then :
6807 lt_cv_dlopen_self=cross
6809 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6810 lt_status=$lt_dlunknown
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6822 # define LT_DLGLOBAL RTLD_GLOBAL
6825 # define LT_DLGLOBAL DL_GLOBAL
6827 # define LT_DLGLOBAL 0
6831 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6832 find out it does not work in some platform. */
6833 #ifndef LT_DLLAZY_OR_NOW
6835 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6838 # define LT_DLLAZY_OR_NOW DL_LAZY
6841 # define LT_DLLAZY_OR_NOW RTLD_NOW
6844 # define LT_DLLAZY_OR_NOW DL_NOW
6846 # define LT_DLLAZY_OR_NOW 0
6854 extern "C" void exit (int);
6857 void fnord() { int i=42;}
6860 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6861 int status = $lt_dlunknown;
6865 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6866 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6867 /* dlclose (self); */
6873 if { (eval echo configure:6874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6874 (./conftest; exit; ) 2>/dev/null
6877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6879 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6882 # compilation failed
6883 lt_cv_dlopen_self=no
6891 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6893 if test "x$lt_cv_dlopen_self" = xyes; then
6894 LDFLAGS="$LDFLAGS $link_static_flag"
6895 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6896 echo "configure:6897: checking whether a statically linked program can dlopen itself" >&5
6897 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 if test "$cross_compiling" = yes; then :
6901 lt_cv_dlopen_self_static=cross
6903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6904 lt_status=$lt_dlunknown
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6916 # define LT_DLGLOBAL RTLD_GLOBAL
6919 # define LT_DLGLOBAL DL_GLOBAL
6921 # define LT_DLGLOBAL 0
6925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6926 find out it does not work in some platform. */
6927 #ifndef LT_DLLAZY_OR_NOW
6929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6932 # define LT_DLLAZY_OR_NOW DL_LAZY
6935 # define LT_DLLAZY_OR_NOW RTLD_NOW
6938 # define LT_DLLAZY_OR_NOW DL_NOW
6940 # define LT_DLLAZY_OR_NOW 0
6948 extern "C" void exit (int);
6951 void fnord() { int i=42;}
6954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6955 int status = $lt_dlunknown;
6959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6961 /* dlclose (self); */
6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6968 (./conftest; exit; ) 2>/dev/null
6971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6973 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6976 # compilation failed
6977 lt_cv_dlopen_self_static=no
6985 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6988 CPPFLAGS="$save_CPPFLAGS"
6989 LDFLAGS="$save_LDFLAGS"
6994 case $lt_cv_dlopen_self in
6995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6996 *) enable_dlopen_self=unknown ;;
6999 case $lt_cv_dlopen_self_static in
7000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7001 *) enable_dlopen_self_static=unknown ;;
7006 if test "$enable_shared" = yes && test "$GCC" = yes; then
7007 case $archive_cmds in
7009 # FIXME: we may have to deal with multi-command sequences.
7012 # Test whether the compiler implicitly links with -lc since on some
7013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7014 # to ld, don't add -lc before -lgcc.
7015 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7016 echo "configure:7017: checking whether -lc should be explicitly linked in" >&5
7017 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7021 echo 'static int dummy;' > conftest.$ac_ext
7023 if { (eval echo configure:7024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7026 libobjs=conftest.$ac_objext
7028 wl=$lt_cv_prog_cc_wl
7034 save_allow_undefined_flag=$allow_undefined_flag
7035 allow_undefined_flag=
7036 if { (eval echo configure:7037: \"$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; }
7038 lt_cv_archive_cmds_need_lc=no
7040 lt_cv_archive_cmds_need_lc=yes
7042 allow_undefined_flag=$save_allow_undefined_flag
7044 cat conftest.err 1>&5
7048 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7052 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7054 # The second clause should only fire when bootstrapping the
7055 # libtool distribution, otherwise you forgot to ship ltmain.sh
7056 # with your package, and you will get complaints that there are
7057 # no rules to generate ltmain.sh.
7058 if test -f "$ltmain"; then
7061 # If there is no Makefile yet, we rely on a make rule to execute
7062 # `config.status --recheck' to rerun these tests and create the
7063 # libtool script then.
7064 test -f Makefile && make "$ltmain"
7067 if test -f "$ltmain"; then
7068 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7071 echo creating $ofile
7073 # Now quote all the things that may contain metacharacters while being
7074 # careful not to overquote the AC_SUBSTed values. We take copies of the
7075 # variables and quote the copies for generation of the libtool script.
7076 for var in echo old_CC old_CFLAGS \
7077 AR AR_FLAGS CC LD LN_S NM SHELL \
7078 reload_flag reload_cmds wl \
7079 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7080 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7081 library_names_spec soname_spec \
7082 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7083 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7084 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7085 old_striplib striplib file_magic_cmd export_symbols_cmds \
7086 deplibs_check_method allow_undefined_flag no_undefined_flag \
7087 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7088 global_symbol_to_c_name_address \
7089 hardcode_libdir_flag_spec hardcode_libdir_separator \
7090 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7091 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7094 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7095 old_postinstall_cmds | old_postuninstall_cmds | \
7096 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7097 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7098 postinstall_cmds | postuninstall_cmds | \
7099 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7100 # Double-quote double-evaled strings.
7101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7109 cat <<__EOF__ > "${ofile}T"
7112 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7113 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7114 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7116 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7117 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7119 # This program is free software; you can redistribute it and/or modify
7120 # it under the terms of the GNU General Public License as published by
7121 # the Free Software Foundation; either version 2 of the License, or
7122 # (at your option) any later version.
7124 # This program is distributed in the hope that it will be useful, but
7125 # WITHOUT ANY WARRANTY; without even the implied warranty of
7126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7127 # General Public License for more details.
7129 # You should have received a copy of the GNU General Public License
7130 # along with this program; if not, write to the Free Software
7131 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7133 # As a special exception to the GNU General Public License, if you
7134 # distribute this file as part of a program that contains a
7135 # configuration script generated by Autoconf, you may include it under
7136 # the same distribution terms that you use for the rest of that program.
7138 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7139 Xsed="sed -e s/^X//"
7141 # The HP-UX ksh and POSIX shell print the target directory to stdout
7143 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7145 # ### BEGIN LIBTOOL CONFIG
7147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7149 # Shell to use when invoking shell scripts.
7152 # Whether or not to build shared libraries.
7153 build_libtool_libs=$enable_shared
7155 # Whether or not to build static libraries.
7156 build_old_libs=$enable_static
7158 # Whether or not to add -lc for building shared libraries.
7159 build_libtool_need_lc=$need_lc
7161 # Whether or not to optimize for fast installation.
7162 fast_install=$enable_fast_install
7165 host_alias=$host_alias
7168 # An echo program that does not interpret backslashes.
7173 AR_FLAGS=$lt_AR_FLAGS
7175 # The default C compiler.
7178 # Is the compiler the GNU C compiler?
7181 # The linker used to build libraries.
7184 # Whether we need hard or soft links.
7187 # A BSD-compatible nm program.
7190 # A symbol stripping program
7193 # Used to examine libraries when file_magic_cmd begins "file"
7194 MAGIC_CMD=$MAGIC_CMD
7196 # Used on cygwin: DLL creation program.
7199 # Used on cygwin: object dumper.
7202 # Used on cygwin: assembler.
7205 # The name of the directory that contains temporary libtool files.
7208 # How to create reloadable object files.
7209 reload_flag=$lt_reload_flag
7210 reload_cmds=$lt_reload_cmds
7212 # How to pass a linker flag through the compiler.
7215 # Object file suffix (normally "o").
7218 # Old archive suffix (normally "a").
7221 # Executable file suffix (normally "").
7224 # Additional compiler flags for building library objects.
7225 pic_flag=$lt_pic_flag
7228 # Does compiler simultaneously support -c and -o options?
7229 compiler_c_o=$lt_compiler_c_o
7231 # Can we write directly to a .lo ?
7232 compiler_o_lo=$lt_compiler_o_lo
7234 # Must we lock files when doing compilation ?
7235 need_locks=$lt_need_locks
7237 # Do we need the lib prefix for modules?
7238 need_lib_prefix=$need_lib_prefix
7240 # Do we need a version for libraries?
7241 need_version=$need_version
7243 # Whether dlopen is supported.
7244 dlopen_support=$enable_dlopen
7246 # Whether dlopen of programs is supported.
7247 dlopen_self=$enable_dlopen_self
7249 # Whether dlopen of statically linked programs is supported.
7250 dlopen_self_static=$enable_dlopen_self_static
7252 # Compiler flag to prevent dynamic linking.
7253 link_static_flag=$lt_link_static_flag
7255 # Compiler flag to turn off builtin functions.
7256 no_builtin_flag=$lt_no_builtin_flag
7258 # Compiler flag to allow reflexive dlopens.
7259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7261 # Compiler flag to generate shared objects directly from archives.
7262 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7264 # Compiler flag to generate thread-safe objects.
7265 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7267 # Library versioning type.
7268 version_type=$version_type
7270 # Format of library name prefix.
7271 libname_spec=$lt_libname_spec
7273 # List of archive names. First name is the real one, the rest are links.
7274 # The last name is the one that the linker finds with -lNAME.
7275 library_names_spec=$lt_library_names_spec
7277 # The coded name of the library, if different from the real name.
7278 soname_spec=$lt_soname_spec
7280 # Commands used to build and install an old-style archive.
7282 old_archive_cmds=$lt_old_archive_cmds
7283 old_postinstall_cmds=$lt_old_postinstall_cmds
7284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7286 # Create an old-style archive from a shared archive.
7287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7289 # Create a temporary old-style archive to link instead of a shared archive.
7290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7292 # Commands used to build and install a shared archive.
7293 archive_cmds=$lt_archive_cmds
7294 archive_expsym_cmds=$lt_archive_expsym_cmds
7295 postinstall_cmds=$lt_postinstall_cmds
7296 postuninstall_cmds=$lt_postuninstall_cmds
7298 # Commands to strip libraries.
7299 old_striplib=$lt_old_striplib
7300 striplib=$lt_striplib
7302 # Method to check whether dependent libraries are shared objects.
7303 deplibs_check_method=$lt_deplibs_check_method
7305 # Command to use when deplibs_check_method == file_magic.
7306 file_magic_cmd=$lt_file_magic_cmd
7308 # Flag that allows shared libraries with undefined symbols to be built.
7309 allow_undefined_flag=$lt_allow_undefined_flag
7311 # Flag that forces no undefined symbols.
7312 no_undefined_flag=$lt_no_undefined_flag
7314 # Commands used to finish a libtool library installation in a directory.
7315 finish_cmds=$lt_finish_cmds
7317 # Same as above, but a single script fragment to be evaled but not shown.
7318 finish_eval=$lt_finish_eval
7320 # Take the output of nm and produce a listing of raw symbols and C names.
7321 global_symbol_pipe=$lt_global_symbol_pipe
7323 # Transform the output of nm in a proper C declaration
7324 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7326 # Transform the output of nm in a C name address pair
7327 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7329 # This is the shared library runtime path variable.
7330 runpath_var=$runpath_var
7332 # This is the shared library path variable.
7333 shlibpath_var=$shlibpath_var
7335 # Is shlibpath searched before the hard-coded library search path?
7336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7338 # How to hardcode a shared library path into an executable.
7339 hardcode_action=$hardcode_action
7341 # Whether we should hardcode library paths into libraries.
7342 hardcode_into_libs=$hardcode_into_libs
7344 # Flag to hardcode \$libdir into a binary during linking.
7345 # This must work even if \$libdir does not exist.
7346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7348 # Whether we need a single -rpath flag with a separated argument.
7349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7351 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7353 hardcode_direct=$hardcode_direct
7355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7357 hardcode_minus_L=$hardcode_minus_L
7359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7360 # the resulting binary.
7361 hardcode_shlibpath_var=$hardcode_shlibpath_var
7363 # Variables whose values should be saved in libtool wrapper scripts and
7364 # restored at relink time.
7365 variables_saved_for_relink="$variables_saved_for_relink"
7367 # Whether libtool must link a program against all its dependency libraries.
7368 link_all_deplibs=$link_all_deplibs
7370 # Compile-time system search path for libraries
7371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7373 # Run-time system search path for libraries
7374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7376 # Fix the shell variable \$srcfile for the compiler.
7377 fix_srcfile_path="$fix_srcfile_path"
7379 # Set to yes if exported symbols are required.
7380 always_export_symbols=$always_export_symbols
7382 # The commands to list exported symbols.
7383 export_symbols_cmds=$lt_export_symbols_cmds
7385 # The commands to extract the exported symbol list from a shared archive.
7386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7388 # Symbols that should not be listed in the preloaded symbols.
7389 exclude_expsyms=$lt_exclude_expsyms
7391 # Symbols that must always be exported.
7392 include_expsyms=$lt_include_expsyms
7394 # ### END LIBTOOL CONFIG
7400 cat <<\EOF >> "${ofile}T"
7402 # AIX sometimes has problems with the GCC collect2 program. For some
7403 # reason, if we set the COLLECT_NAMES environment variable, the problems
7404 # vanish in a puff of smoke.
7405 if test "X${COLLECT_NAMES+set}" != Xset; then
7407 export COLLECT_NAMES
7414 cygwin* | mingw* | pw32* | os2*)
7415 cat <<'EOF' >> "${ofile}T"
7416 # This is a source program that is used to create dlls on Windows
7417 # Don't remove nor modify the starting and closing comments
7418 # /* ltdll.c starts here */
7419 # #define WIN32_LEAN_AND_MEAN
7420 # #include <windows.h>
7421 # #undef WIN32_LEAN_AND_MEAN
7422 # #include <stdio.h>
7424 # #ifndef __CYGWIN__
7425 # # ifdef __CYGWIN32__
7426 # # define __CYGWIN__ __CYGWIN32__
7430 # #ifdef __cplusplus
7433 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7434 # #ifdef __cplusplus
7439 # #include <cygwin/cygwin_dll.h>
7440 # DECLARE_CYGWIN_DLL( DllMain );
7442 # HINSTANCE __hDllInstance_base;
7445 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7447 # __hDllInstance_base = hInst;
7450 # /* ltdll.c ends here */
7451 # This is a source program that is used to create import libraries
7452 # on Windows for dlls which lack them. Don't remove nor modify the
7453 # starting and closing comments
7454 # /* impgen.c starts here */
7455 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7457 # This file is part of GNU libtool.
7459 # This program is free software; you can redistribute it and/or modify
7460 # it under the terms of the GNU General Public License as published by
7461 # the Free Software Foundation; either version 2 of the License, or
7462 # (at your option) any later version.
7464 # This program is distributed in the hope that it will be useful,
7465 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7467 # GNU General Public License for more details.
7469 # You should have received a copy of the GNU General Public License
7470 # along with this program; if not, write to the Free Software
7471 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7474 # #include <stdio.h> /* for printf() */
7475 # #include <unistd.h> /* for open(), lseek(), read() */
7476 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7477 # #include <string.h> /* for strdup() */
7479 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7481 # #define O_BINARY 0
7484 # static unsigned int
7485 # pe_get16 (fd, offset)
7489 # unsigned char b[2];
7490 # lseek (fd, offset, SEEK_SET);
7492 # return b[0] + (b[1]<<8);
7495 # static unsigned int
7496 # pe_get32 (fd, offset)
7500 # unsigned char b[4];
7501 # lseek (fd, offset, SEEK_SET);
7503 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7506 # static unsigned int
7510 # unsigned char *b = ptr;
7511 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7520 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7521 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7522 # unsigned long name_rvas, nexp;
7523 # unsigned char *expdata, *erva;
7524 # char *filename, *dll_name;
7526 # filename = argv[1];
7528 # dll = open(filename, O_RDONLY|O_BINARY);
7532 # dll_name = filename;
7534 # for (i=0; filename[i]; i++)
7535 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7536 # dll_name = filename + i +1;
7538 # pe_header_offset = pe_get32 (dll, 0x3c);
7539 # opthdr_ofs = pe_header_offset + 4 + 20;
7540 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7542 # if (num_entries < 1) /* no exports */
7545 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7546 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7547 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7548 # secptr = (pe_header_offset + 4 + 20 +
7549 # pe_get16 (dll, pe_header_offset + 4 + 16));
7552 # for (i = 0; i < nsections; i++)
7555 # unsigned long secptr1 = secptr + 40 * i;
7556 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7557 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7558 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7559 # lseek(dll, secptr1, SEEK_SET);
7560 # read(dll, sname, 8);
7561 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7563 # expptr = fptr + (export_rva - vaddr);
7564 # if (export_rva + export_size > vaddr + vsize)
7565 # export_size = vsize - (export_rva - vaddr);
7570 # expdata = (unsigned char*)malloc(export_size);
7571 # lseek (dll, expptr, SEEK_SET);
7572 # read (dll, expdata, export_size);
7573 # erva = expdata - export_rva;
7575 # nexp = pe_as32 (expdata+24);
7576 # name_rvas = pe_as32 (expdata+32);
7578 # printf ("EXPORTS\n");
7579 # for (i = 0; i<nexp; i++)
7581 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7582 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7587 # /* impgen.c ends here */
7593 # We use sed instead of cat because bash on DJGPP gets confused if
7594 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7595 # text mode, it properly converts lines to CR/LF. This bash problem
7596 # is reportedly fixed, but why not run on old versions too?
7597 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7599 mv -f "${ofile}T" "$ofile" || \
7600 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7608 # This can be used to rebuild libtool when needed
7609 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7611 # Always use our own libtool.
7612 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7614 # Prevent multiple expansion
7618 for ac_prog in mawk gawk nawk awk
7620 # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7623 echo "configure:7624: checking for $ac_word" >&5
7624 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 if test -n "$AWK"; then
7628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7632 for ac_dir in $ac_dummy; do
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f $ac_dir/$ac_word; then
7635 ac_cv_prog_AWK="$ac_prog"
7642 AWK="$ac_cv_prog_AWK"
7643 if test -n "$AWK"; then
7644 echo "$ac_t""$AWK" 1>&6
7646 echo "$ac_t""no" 1>&6
7649 test -n "$AWK" && break
7652 # test for ln hardlink support
7653 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7654 echo "configure:7655: checking whether ln works" >&5
7655 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7656 echo $ac_n "(cached) $ac_c" 1>&6
7658 rm -f conftest.src conftest.dst
7659 echo "conftest" > conftest.src
7660 if ln conftest.src conftest.dst 2>/dev/null
7662 ol_cv_prog_LN_H="ln"
7664 ol_cv_prog_LN_H="cp"
7666 rm -f conftest.src conftest.dst
7669 LN_H="$ol_cv_prog_LN_H"
7670 if test "$ol_cv_prog_LN_H" = "ln"; then
7671 echo "$ac_t""yes" 1>&6
7673 echo "$ac_t""no" 1>&6
7676 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7677 echo "configure:7678: checking whether ln -s works" >&5
7678 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7682 if ln -s X conftestdata 2>/dev/null
7685 ac_cv_prog_LN_S="ln -s"
7690 LN_S="$ac_cv_prog_LN_S"
7691 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7692 echo "$ac_t""yes" 1>&6
7694 echo "$ac_t""no" 1>&6
7698 # Extract the first word of "sendmail", so it can be a program name with args.
7699 set dummy sendmail; ac_word=$2
7700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7701 echo "configure:7702: checking for $ac_word" >&5
7702 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7703 echo $ac_n "(cached) $ac_c" 1>&6
7707 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7710 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7714 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7715 for ac_dir in $ac_dummy; do
7716 test -z "$ac_dir" && ac_dir=.
7717 if test -f $ac_dir/$ac_word; then
7718 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7723 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7727 SENDMAIL="$ac_cv_path_SENDMAIL"
7728 if test -n "$SENDMAIL"; then
7729 echo "$ac_t""$SENDMAIL" 1>&6
7731 echo "$ac_t""no" 1>&6
7734 # Extract the first word of "vi", so it can be a program name with args.
7735 set dummy vi; ac_word=$2
7736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_word" >&5
7738 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7743 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7746 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7750 ac_dummy="$PATH:/usr/ucb"
7751 for ac_dir in $ac_dummy; do
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/$ac_word; then
7754 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7759 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7763 EDITOR="$ac_cv_path_EDITOR"
7764 if test -n "$EDITOR"; then
7765 echo "$ac_t""$EDITOR" 1>&6
7767 echo "$ac_t""no" 1>&6
7772 if test $ol_enable_perl != no ; then
7773 # Extract the first word of "perl", so it can be a program name with args.
7774 set dummy perl; ac_word=$2
7775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7776 echo "configure:7777: checking for $ac_word" >&5
7777 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7782 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7785 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7790 for ac_dir in $ac_dummy; do
7791 test -z "$ac_dir" && ac_dir=.
7792 if test -f $ac_dir/$ac_word; then
7793 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7798 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7802 PERLBIN="$ac_cv_path_PERLBIN"
7803 if test -n "$PERLBIN"; then
7804 echo "$ac_t""$PERLBIN" 1>&6
7806 echo "$ac_t""no" 1>&6
7810 if test "no$PERLBIN" = "no" ; then
7811 if test $ol_enable_perl = yes ; then
7812 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7816 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7817 if test x"$ol_with_perl_module" = "xstatic" ; then
7818 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7820 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7826 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7827 echo "configure:7828: checking how to run the C preprocessor" >&5
7828 # On Suns, sometimes $CPP names a directory.
7829 if test -n "$CPP" && test -d "$CPP"; then
7832 if test -z "$CPP"; then
7833 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 # This must be in double quotes, not single quotes, because CPP may get
7837 # substituted into the Makefile and "${CC-cc}" will confuse make.
7839 # On the NeXT, cc -E runs the code through the compiler's parser,
7840 # not just through cpp.
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7848 { (eval echo configure:7849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7850 if test -z "$ac_err"; then
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7857 CPP="${CC-cc} -E -traditional-cpp"
7858 cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure"
7860 #include "confdefs.h"
7864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7865 { (eval echo configure:7866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7867 if test -z "$ac_err"; then
7871 echo "configure: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7874 CPP="${CC-cc} -nologo -E"
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7882 { (eval echo configure:7883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7884 if test -z "$ac_err"; then
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7898 ac_cv_prog_CPP="$CPP"
7900 CPP="$ac_cv_prog_CPP"
7902 ac_cv_prog_CPP="$CPP"
7904 echo "$ac_t""$CPP" 1>&6
7907 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7908 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7910 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7911 echo "configure: warning: programs compiled here do run here..." 1>&2
7912 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7914 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7915 echo "configure: warning: programs compiled here do not run here..." 1>&2
7916 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7920 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7921 echo "configure:7922: checking for Cygwin environment" >&5
7922 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7932 #define __CYGWIN__ __CYGWIN32__
7937 if { (eval echo configure:7938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7949 echo "$ac_t""$ac_cv_cygwin" 1>&6
7951 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7952 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7953 echo "configure:7954: checking for mingw32 environment" >&5
7954 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7965 if { (eval echo configure:7966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7969 echo "configure: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7977 echo "$ac_t""$ac_cv_mingw32" 1>&6
7979 test "$ac_cv_mingw32" = yes && MINGW32=yes
7983 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7984 echo "configure:7985: checking for executable suffix" >&5
7985 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7986 echo $ac_n "(cached) $ac_c" 1>&6
7988 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7992 echo 'int main () { return 0; }' > conftest.$ac_ext
7994 if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7995 for file in conftest.*; do
7997 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7998 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8002 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8005 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8010 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8011 echo "$ac_t""${ac_cv_exeext}" 1>&6
8014 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8015 echo "configure:8016: checking for object suffix" >&5
8016 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8020 echo 'int i = 1;' > conftest.$ac_ext
8021 if { (eval echo configure:8022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8022 for ac_file in conftest.*; do
8025 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8029 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8034 echo "$ac_t""$ac_cv_objext" 1>&6
8035 OBJEXT=$ac_cv_objext
8036 ac_objext=$ac_cv_objext
8039 cat >> confdefs.h <<EOF
8040 #define EXEEXT "${EXEEXT}"
8044 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8045 echo "configure:8046: checking for be_app in -lbe" >&5
8046 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8047 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8050 ac_save_LIBS="$LIBS"
8051 LIBS="-lbe -lroot -lnet $LIBS"
8052 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8064 if { (eval echo configure:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8066 eval "ac_cv_lib_$ac_lib_var=yes"
8068 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8071 eval "ac_cv_lib_$ac_lib_var=no"
8074 LIBS="$ac_save_LIBS"
8077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8078 echo "$ac_t""yes" 1>&6
8079 LIBS="$LIBS -lbe -lroot -lnet"
8081 echo "$ac_t""no" 1>&6
8089 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8090 echo "configure:8091: checking for ${CC-cc} option to accept ANSI C" >&5
8091 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8094 am_cv_prog_cc_stdc=no
8096 # Don't try gcc -ansi; that turns off useful extensions and
8097 # breaks some systems' header files.
8098 # AIX -qlanglvl=ansi
8099 # Ultrix and OSF/1 -std1
8100 # HP-UX 10.20 and later -Ae
8101 # HP-UX older versions -Aa -D_HPUX_SOURCE
8102 # SVR4 -Xc -D__EXTENSIONS__
8103 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8105 CC="$ac_save_CC $ac_arg"
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8111 #include <sys/types.h>
8112 #include <sys/stat.h>
8113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8114 struct buf { int x; };
8115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8116 static char *e (p, i)
8122 static char *f (char * (*g) (char **, int), char **p, ...)
8127 s = g (p, va_arg (v,int));
8131 int test (int i, double x);
8132 struct s1 {int (*f) (int a);};
8133 struct s2 {int (*f) (double a);};
8134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8144 if { (eval echo configure:8145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8146 am_cv_prog_cc_stdc="$ac_arg"; break
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8157 if test -z "$am_cv_prog_cc_stdc"; then
8158 echo "$ac_t""none needed" 1>&6
8160 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8162 case "x$am_cv_prog_cc_stdc" in
8164 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8167 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8168 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8171 # test for make depend flag
8174 if test -z "${MKDEP}"; then
8176 if test -z "${MKDEP_FLAGS}"; then
8177 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8178 echo "configure:8179: checking for ${OL_MKDEP} depend flag" >&5
8179 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8180 echo $ac_n "(cached) $ac_c" 1>&6
8184 for flag in "-M" "-xM"; do
8185 cat > conftest.c <<EOF
8188 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8189 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8191 if test ! -f conftest."${ac_object}" ; then
8193 OL_MKDEP_FLAGS="$flag"
8202 echo "$ac_t""$ol_cv_mkdep" 1>&6
8205 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8210 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8215 if test "${ol_cv_mkdep}" = no ; then
8216 # this will soon become an error
8217 echo "configure: warning: do not know how to generate dependencies" 1>&2
8220 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8221 echo "configure:8222: checking for afopen in -ls" >&5
8222 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8226 ac_save_LIBS="$LIBS"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 eval "ac_cv_lib_$ac_lib_var=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 eval "ac_cv_lib_$ac_lib_var=no"
8250 LIBS="$ac_save_LIBS"
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8254 echo "$ac_t""yes" 1>&6
8257 cat >> confdefs.h <<\EOF
8258 #define HAVE_AIX_SECURITY 1
8263 echo "$ac_t""no" 1>&6
8269 if test $ol_enable_modules != no ; then
8270 for ac_hdr in ltdl.h
8272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8274 echo "configure:8275: checking for $ac_hdr" >&5
8275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8280 "configure"
8280 #include "confdefs.h"
8283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8284 { (eval echo configure:8285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8286 if test -z "$ac_err"; then
8288 eval "ac_cv_header_$ac_safe=yes"
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 eval "ac_cv_header_$ac_safe=no"
8298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8299 echo "$ac_t""yes" 1>&6
8300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8301 cat >> confdefs.h <<EOF
8302 #define $ac_tr_hdr 1
8306 echo "$ac_t""no" 1>&6
8311 if test $ac_cv_header_ltdl_h = no ; then
8312 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8315 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8316 echo "configure:8317: checking for lt_dlinit in -lltdl" >&5
8317 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8318 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 ac_save_LIBS="$LIBS"
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8345 LIBS="$ac_save_LIBS"
8348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8352 cat >> confdefs.h <<\EOF
8353 #define HAVE_LIBLTDL 1
8358 echo "$ac_t""no" 1>&6
8362 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8363 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8367 ol_with_bdb_module=static
8368 ol_with_dnssrv_module=static
8369 ol_with_ldap_module=static
8370 ol_with_ldbm_module=static
8371 ol_with_meta_module=static
8372 ol_with_monitor_module=static
8373 ol_with_null_module=static
8374 ol_with_passwd_module=static
8375 ol_with_perl_module=static
8376 ol_with_shell_module=static
8377 ol_with_sql_module=static
8381 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8382 echo "configure:8383: checking for EBCDIC" >&5
8383 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8387 cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8392 #include <__ASCII__/generate_error.h>
8396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8397 { (eval echo configure:8398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8399 if test -z "$ac_err"; then
8401 ol_cv_cpp_ebcdic=yes
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8412 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8413 if test $ol_cv_cpp_ebcdic = yes ; then
8414 cat >> confdefs.h <<\EOF
8415 #define HAVE_EBCDIC 1
8420 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8421 echo "configure:8422: checking for ANSI C header files" >&5
8422 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8423 echo $ac_n "(cached) $ac_c" 1>&6
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8434 { (eval echo configure:8435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8436 if test -z "$ac_err"; then
8438 ol_cv_header_stdc=yes
8441 echo "configure: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8444 ol_cv_header_stdc=no
8448 if test $ol_cv_header_stdc = yes; then
8449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8456 egrep "memchr" >/dev/null 2>&1; then
8460 ol_cv_header_stdc=no
8466 if test $ol_cv_header_stdc = yes; then
8467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8474 egrep "free" >/dev/null 2>&1; then
8478 ol_cv_header_stdc=no
8484 if test $ol_cv_header_stdc = yes; then
8485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8486 if test "$cross_compiling" = yes; then
8489 cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8494 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8495 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8497 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8498 || ('j' <= (c) && (c) <= 'r') \
8499 || ('s' <= (c) && (c) <= 'z'))
8500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8503 int main () { int i; for (i = 0; i < 256; i++)
8504 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 ol_cv_header_stdc=no
8523 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8524 if test $ol_cv_header_stdc = yes; then
8525 cat >> confdefs.h <<\EOF
8526 #define STDC_HEADERS 1
8530 ac_cv_header_stdc=disable
8533 if test $ol_cv_header_stdc != yes; then
8534 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8538 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8541 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8542 echo "configure:8543: checking for $ac_hdr that defines DIR" >&5
8543 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8544 echo $ac_n "(cached) $ac_c" 1>&6
8546 cat > conftest.$ac_ext <<EOF
8547 #line 8548 "configure"
8548 #include "confdefs.h"
8549 #include <sys/types.h>
8555 if { (eval echo configure:8556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8557 eval "ac_cv_header_dirent_$ac_safe=yes"
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8562 eval "ac_cv_header_dirent_$ac_safe=no"
8566 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8569 cat >> confdefs.h <<EOF
8570 #define $ac_tr_hdr 1
8572 ac_header_dirent=$ac_hdr; break
8574 echo "$ac_t""no" 1>&6
8577 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8578 if test $ac_header_dirent = dirent.h; then
8579 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8580 echo "configure:8581: checking for opendir in -ldir" >&5
8581 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8582 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 ac_save_LIBS="$LIBS"
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601 eval "ac_cv_lib_$ac_lib_var=yes"
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8606 eval "ac_cv_lib_$ac_lib_var=no"
8609 LIBS="$ac_save_LIBS"
8612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8616 echo "$ac_t""no" 1>&6
8620 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8621 echo "configure:8622: checking for opendir in -lx" >&5
8622 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8626 ac_save_LIBS="$LIBS"
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8640 if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8642 eval "ac_cv_lib_$ac_lib_var=yes"
8644 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8647 eval "ac_cv_lib_$ac_lib_var=no"
8650 LIBS="$ac_save_LIBS"
8653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8654 echo "$ac_t""yes" 1>&6
8657 echo "$ac_t""no" 1>&6
8662 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8663 echo "configure:8664: checking for sys/wait.h that is POSIX.1 compatible" >&5
8664 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8670 #include <sys/types.h>
8671 #include <sys/wait.h>
8673 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8676 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8681 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8684 if { (eval echo configure:8685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8686 ac_cv_header_sys_wait_h=yes
8688 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8691 ac_cv_header_sys_wait_h=no
8696 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8697 if test $ac_cv_header_sys_wait_h = yes; then
8698 cat >> confdefs.h <<\EOF
8699 #define HAVE_SYS_WAIT_H 1
8704 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8705 echo "configure:8706: checking POSIX termios" >&5
8706 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8712 #include <sys/types.h>
8714 #include <termios.h>
8716 /* SunOS 4.0.3 has termios.h but not the library calls. */
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722 am_cv_sys_posix_termios=yes
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8727 am_cv_sys_posix_termios=no
8732 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8735 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8736 echo "configure:8737: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8737 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8742 gwinsz_in_termios_h=no
8743 if test $am_cv_sys_posix_termios = yes; then
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <sys/types.h>
8748 # include <termios.h>
8754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755 egrep "yes" >/dev/null 2>&1; then
8757 gwinsz_in_termios_h=yes
8763 if test $gwinsz_in_termios_h = no; then
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 #include <sys/types.h>
8768 # include <sys/ioctl.h>
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 egrep "yes" >/dev/null 2>&1; then
8777 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8785 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8786 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8787 cat >> confdefs.h <<\EOF
8788 #define GWINSZ_IN_SYS_IOCTL 1
8793 if test $am_cv_sys_posix_termios = yes ; then
8794 cat >> confdefs.h <<\EOF
8795 #define HAVE_POSIX_TERMIOS 1
8847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8849 echo "configure:8850: checking for $ac_hdr" >&5
8850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8859 { (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861 if test -z "$ac_err"; then
8863 eval "ac_cv_header_$ac_safe=yes"
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8869 eval "ac_cv_header_$ac_safe=no"
8873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8874 echo "$ac_t""yes" 1>&6
8875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8876 cat >> confdefs.h <<EOF
8877 #define $ac_tr_hdr 1
8881 echo "$ac_t""no" 1>&6
8888 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8889 echo "configure:8890: checking for dlopen" >&5
8890 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char dlopen(); below. */
8899 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8907 /* The GNU C library defines this for functions which it implements
8908 to always fail with ENOSYS. Some functions are actually named
8909 something starting with __ and the normal name is an alias. */
8910 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8918 if { (eval echo configure:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8920 eval "ac_cv_func_dlopen=yes"
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8925 eval "ac_cv_func_dlopen=no"
8930 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8931 echo "$ac_t""yes" 1>&6
8934 echo "$ac_t""no" 1>&6
8935 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8936 echo "configure:8937: checking for dlopen in -ldl" >&5
8937 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8941 ac_save_LIBS="$LIBS"
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8946 /* Override any gcc2 internal prototype to avoid an error. */
8947 /* We use char because int might match the return type of a gcc2
8948 builtin and then its argument prototype would still apply. */
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8957 eval "ac_cv_lib_$ac_lib_var=yes"
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 eval "ac_cv_lib_$ac_lib_var=no"
8965 LIBS="$ac_save_LIBS"
8968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8969 echo "$ac_t""yes" 1>&6
8970 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8972 cat >> confdefs.h <<EOF
8973 #define $ac_tr_lib 1
8979 echo "$ac_t""no" 1>&6
8985 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8986 echo "configure:8987: checking for sigset in -lV3" >&5
8987 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8991 ac_save_LIBS="$LIBS"
8993 cat > conftest.$ac_ext <<EOF
8994 #line 8995 "configure"
8995 #include "confdefs.h"
8996 /* Override any gcc2 internal prototype to avoid an error. */
8997 /* We use char because int might match the return type of a gcc2
8998 builtin and then its argument prototype would still apply. */
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9007 eval "ac_cv_lib_$ac_lib_var=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_lib_$ac_lib_var=no"
9015 LIBS="$ac_save_LIBS"
9018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9019 echo "$ac_t""yes" 1>&6
9020 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9022 cat >> confdefs.h <<EOF
9023 #define $ac_tr_lib 1
9029 echo "$ac_t""no" 1>&6
9033 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9034 echo "configure:9035: checking for winsock" >&5
9036 for curlib in ws2_32 wsock32; do
9037 LIBS="$LIBS -l$curlib"
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9044 char closesocket@4();
9045 char gethostname@8();
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9067 if test $have_winsock = yes; then
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_WINSOCK 1
9072 ac_cv_func_socket=yes
9073 ac_cv_func_select=yes
9074 ac_cv_func_closesocket=yes
9075 ac_cv_func_gethostname=yes
9076 if test $curlib = ws2_32; then
9077 have_winsock=winsock2
9078 cat >> confdefs.h <<\EOF
9079 #define HAVE_WINSOCK2 1
9087 echo "$ac_t""$have_winsock" 1>&6
9090 echo $ac_n "checking for socket""... $ac_c" 1>&6
9091 echo "configure:9092: checking for socket" >&5
9092 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 /* System header to define __stub macros and hopefully few prototypes,
9099 which can conflict with char socket(); below. */
9101 /* Override any gcc2 internal prototype to avoid an error. */
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9109 /* The GNU C library defines this for functions which it implements
9110 to always fail with ENOSYS. Some functions are actually named
9111 something starting with __ and the normal name is an alias. */
9112 #if defined (__stub_socket) || defined (__stub___socket)
9120 if { (eval echo configure:9121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9122 eval "ac_cv_func_socket=yes"
9124 echo "configure: failed program was:" >&5
9125 cat conftest.$ac_ext >&5
9127 eval "ac_cv_func_socket=no"
9132 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9133 echo "$ac_t""yes" 1>&6
9136 echo "$ac_t""no" 1>&6
9138 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9139 echo "configure:9140: checking for main in -lsocket" >&5
9140 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
9144 ac_save_LIBS="$LIBS"
9145 LIBS="-lsocket $LIBS"
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9156 eval "ac_cv_lib_$ac_lib_var=yes"
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9161 eval "ac_cv_lib_$ac_lib_var=no"
9164 LIBS="$ac_save_LIBS"
9167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9168 echo "$ac_t""yes" 1>&6
9169 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9171 cat >> confdefs.h <<EOF
9172 #define $ac_tr_lib 1
9175 LIBS="-lsocket $LIBS"
9178 echo "$ac_t""no" 1>&6
9181 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9182 echo "configure:9183: checking for main in -lnet" >&5
9183 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9184 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9187 ac_save_LIBS="$LIBS"
9189 cat > conftest.$ac_ext <<EOF
9190 #line 9191 "configure"
9191 #include "confdefs.h"
9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9199 eval "ac_cv_lib_$ac_lib_var=yes"
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9204 eval "ac_cv_lib_$ac_lib_var=no"
9207 LIBS="$ac_save_LIBS"
9210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9211 echo "$ac_t""yes" 1>&6
9212 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9214 cat >> confdefs.h <<EOF
9215 #define $ac_tr_lib 1
9221 echo "$ac_t""no" 1>&6
9224 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9225 echo "configure:9226: checking for main in -lnsl_s" >&5
9226 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9227 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9230 ac_save_LIBS="$LIBS"
9231 LIBS="-lnsl_s $LIBS"
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9240 if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9242 eval "ac_cv_lib_$ac_lib_var=yes"
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9247 eval "ac_cv_lib_$ac_lib_var=no"
9250 LIBS="$ac_save_LIBS"
9253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9254 echo "$ac_t""yes" 1>&6
9255 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9257 cat >> confdefs.h <<EOF
9258 #define $ac_tr_lib 1
9261 LIBS="-lnsl_s $LIBS"
9264 echo "$ac_t""no" 1>&6
9267 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9268 echo "configure:9269: checking for main in -lnsl" >&5
9269 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9270 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9273 ac_save_LIBS="$LIBS"
9275 cat > conftest.$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9283 if { (eval echo configure:9284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9285 eval "ac_cv_lib_$ac_lib_var=yes"
9287 echo "configure: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9290 eval "ac_cv_lib_$ac_lib_var=no"
9293 LIBS="$ac_save_LIBS"
9296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9297 echo "$ac_t""yes" 1>&6
9298 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9300 cat >> confdefs.h <<EOF
9301 #define $ac_tr_lib 1
9307 echo "$ac_t""no" 1>&6
9310 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9311 echo "configure:9312: checking for socket in -linet" >&5
9312 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9313 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9316 ac_save_LIBS="$LIBS"
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 /* Override any gcc2 internal prototype to avoid an error. */
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9332 eval "ac_cv_lib_$ac_lib_var=yes"
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9337 eval "ac_cv_lib_$ac_lib_var=no"
9340 LIBS="$ac_save_LIBS"
9343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9344 echo "$ac_t""yes" 1>&6
9345 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9347 cat >> confdefs.h <<EOF
9348 #define $ac_tr_lib 1
9354 echo "$ac_t""no" 1>&6
9357 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9358 echo "configure:9359: checking for main in -lgen" >&5
9359 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9360 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9361 echo $ac_n "(cached) $ac_c" 1>&6
9363 ac_save_LIBS="$LIBS"
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9373 if { (eval echo configure:9374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9375 eval "ac_cv_lib_$ac_lib_var=yes"
9377 echo "configure: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9380 eval "ac_cv_lib_$ac_lib_var=no"
9383 LIBS="$ac_save_LIBS"
9386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9387 echo "$ac_t""yes" 1>&6
9388 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9390 cat >> confdefs.h <<EOF
9391 #define $ac_tr_lib 1
9397 echo "$ac_t""no" 1>&6
9404 echo $ac_n "checking for select""... $ac_c" 1>&6
9405 echo "configure:9406: checking for select" >&5
9406 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 /* System header to define __stub macros and hopefully few prototypes,
9413 which can conflict with char select(); below. */
9415 /* Override any gcc2 internal prototype to avoid an error. */
9416 /* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined (__stub_select) || defined (__stub___select)
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9436 eval "ac_cv_func_select=yes"
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 eval "ac_cv_func_select=no"
9446 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9447 echo "$ac_t""yes" 1>&6
9450 echo "$ac_t""no" 1>&6
9451 { echo "configure: error: select() required." 1>&2; exit 1; }
9455 if test "${ac_cv_header_winsock_h}" != yes; then
9456 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9457 echo "configure:9458: checking types of arguments for select()" >&5
9458 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9461 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9464 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9467 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9468 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9469 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #ifdef HAVE_SYS_TYPES_H
9474 #include <sys/types.h>
9476 #ifdef HAVE_SYS_TIME_H
9477 #include <sys/time.h>
9479 #ifdef HAVE_SYS_SELECT_H
9480 #include <sys/select.h>
9482 #ifdef HAVE_SYS_SOCKET_H
9483 #include <sys/socket.h>
9485 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);
9490 if { (eval echo configure:9491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9492 ac_not_found=no ; break 3
9494 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9509 if test "$ac_not_found" = yes; then
9510 ac_cv_func_select_arg1=int
9511 ac_cv_func_select_arg234='int *'
9512 ac_cv_func_select_arg5='struct timeval *'
9514 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9515 cat >> confdefs.h <<EOF
9516 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9519 cat >> confdefs.h <<EOF
9520 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9523 cat >> confdefs.h <<EOF
9524 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9531 for ac_hdr in regex.h
9533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9535 echo "configure:9536: checking for $ac_hdr" >&5
9536 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9545 { (eval echo configure:9546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9547 if test -z "$ac_err"; then
9549 eval "ac_cv_header_$ac_safe=yes"
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 eval "ac_cv_header_$ac_safe=no"
9559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9560 echo "$ac_t""yes" 1>&6
9561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9562 cat >> confdefs.h <<EOF
9563 #define $ac_tr_hdr 1
9567 echo "$ac_t""no" 1>&6
9571 if test "$ac_cv_header_regex_h" != yes ; then
9572 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9575 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9576 echo "configure:9577: checking for library containing regfree" >&5
9577 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9578 echo $ac_n "(cached) $ac_c" 1>&6
9580 ac_func_search_save_LIBS="$LIBS"
9581 ac_cv_search_regfree="no"
9582 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 /* Override any gcc2 internal prototype to avoid an error. */
9586 /* We use char because int might match the return type of a gcc2
9587 builtin and then its argument prototype would still apply. */
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9596 ac_cv_search_regfree="none required"
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9602 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9604 cat > conftest.$ac_ext <<EOF
9605 #line 9606 "configure"
9606 #include "confdefs.h"
9607 /* Override any gcc2 internal prototype to avoid an error. */
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9616 if { (eval echo configure:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9618 ac_cv_search_regfree="-l$ac_lib"
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9626 LIBS="$ac_func_search_save_LIBS"
9629 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9630 if test "$ac_cv_search_regfree" != "no"; then
9631 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9634 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9638 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9639 echo "configure:9640: checking for compatible POSIX regex" >&5
9640 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9644 if test "$cross_compiling" = yes; then
9645 ol_cv_c_posix_regex=cross
9647 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9651 #include <sys/types.h>
9653 static char *pattern, *string;
9661 if(regcomp(&re, pattern, 0)) {
9665 string = "ALL MATCH";
9667 rc = regexec(&re, string, 0, (void*)0, 0);
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9676 ol_cv_c_posix_regex=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 ol_cv_c_posix_regex=no
9688 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9690 if test "$ol_cv_c_posix_regex" = no ; then
9691 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9696 for ac_hdr in sys/uuid.h
9698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9700 echo "configure:9701: checking for $ac_hdr" >&5
9701 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9704 cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9710 { (eval echo configure:9711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9712 if test -z "$ac_err"; then
9714 eval "ac_cv_header_$ac_safe=yes"
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9720 eval "ac_cv_header_$ac_safe=no"
9724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9725 echo "$ac_t""yes" 1>&6
9726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9727 cat >> confdefs.h <<EOF
9728 #define $ac_tr_hdr 1
9732 echo "$ac_t""no" 1>&6
9736 if test $ac_cv_header_sys_uuid_h = yes ; then
9739 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9740 echo "configure:9741: checking for library containing uuid_to_str" >&5
9741 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9742 echo $ac_n "(cached) $ac_c" 1>&6
9744 ac_func_search_save_LIBS="$LIBS"
9745 ac_cv_search_uuid_to_str="no"
9746 cat > conftest.$ac_ext <<EOF
9747 #line 9748 "configure"
9748 #include "confdefs.h"
9749 /* Override any gcc2 internal prototype to avoid an error. */
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9758 if { (eval echo configure:9759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9760 ac_cv_search_uuid_to_str="none required"
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9766 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 /* Override any gcc2 internal prototype to avoid an error. */
9772 /* We use char because int might match the return type of a gcc2
9773 builtin and then its argument prototype would still apply. */
9780 if { (eval echo configure:9781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9782 ac_cv_search_uuid_to_str="-l$ac_lib"
9785 echo "configure: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9790 LIBS="$ac_func_search_save_LIBS"
9793 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9794 if test "$ac_cv_search_uuid_to_str" != "no"; then
9795 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9802 if test have_uuid = yes ; then
9803 cat >> confdefs.h <<\EOF
9804 #define HAVE_UUID_TO_STR 1
9808 test "$ac_cv_search_uuid_to_str" = "none required" || \
9809 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9813 if test $have_uuid = no ; then
9814 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9815 echo "configure:9816: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9817 LIBS="$LIBS -lrpcrt4"
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9822 char UuidCreate@4();
9823 char UuidToStringA@8();
9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9842 if test $need_rpcrt = yes; then
9843 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9846 echo "$ac_t""$need_rpcrt" 1>&6
9850 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9851 echo "configure:9852: checking for res_query" >&5
9852 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 /* System header to define __stub macros and hopefully few prototypes,
9859 which can conflict with char res_query(); below. */
9861 /* Override any gcc2 internal prototype to avoid an error. */
9862 /* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9869 /* The GNU C library defines this for functions which it implements
9870 to always fail with ENOSYS. Some functions are actually named
9871 something starting with __ and the normal name is an alias. */
9872 #if defined (__stub_res_query) || defined (__stub___res_query)
9880 if { (eval echo configure:9881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9882 eval "ac_cv_func_res_query=yes"
9884 echo "configure: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9887 eval "ac_cv_func_res_query=no"
9892 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9896 echo "$ac_t""no" 1>&6
9899 if test $ac_cv_func_res_query = no ; then
9900 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9901 echo "configure:9902: checking for __res_query" >&5
9902 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char __res_query(); below. */
9911 /* Override any gcc2 internal prototype to avoid an error. */
9912 /* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined (__stub___res_query) || defined (__stub_____res_query)
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9932 eval "ac_cv_func___res_query=yes"
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9937 eval "ac_cv_func___res_query=no"
9942 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9943 echo "$ac_t""yes" 1>&6
9946 echo "$ac_t""no" 1>&6
9949 ac_cv_func_res_query=$ac_cv_func___res_query
9952 if test $ac_cv_func_res_query = no ; then
9953 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9954 echo "configure:9955: checking for res_query in -lbind" >&5
9955 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9959 ac_save_LIBS="$LIBS"
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964 /* Override any gcc2 internal prototype to avoid an error. */
9965 /* We use char because int might match the return type of a gcc2
9966 builtin and then its argument prototype would still apply. */
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9975 eval "ac_cv_lib_$ac_lib_var=yes"
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9980 eval "ac_cv_lib_$ac_lib_var=no"
9983 LIBS="$ac_save_LIBS"
9986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9987 echo "$ac_t""yes" 1>&6
9988 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9990 cat >> confdefs.h <<EOF
9991 #define $ac_tr_lib 1
9997 echo "$ac_t""no" 1>&6
10000 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10003 if test $ac_cv_func_res_query = no ; then
10004 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10005 echo "configure:10006: checking for __res_query in -lbind" >&5
10006 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10008 echo $ac_n "(cached) $ac_c" 1>&6
10010 ac_save_LIBS="$LIBS"
10011 LIBS="-lbind $LIBS"
10012 cat > conftest.$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 /* Override any gcc2 internal prototype to avoid an error. */
10016 /* We use char because int might match the return type of a gcc2
10017 builtin and then its argument prototype would still apply. */
10018 char __res_query();
10024 if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026 eval "ac_cv_lib_$ac_lib_var=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_lib_$ac_lib_var=no"
10034 LIBS="$ac_save_LIBS"
10037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6
10039 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10041 cat >> confdefs.h <<EOF
10042 #define $ac_tr_lib 1
10045 LIBS="-lbind $LIBS"
10048 echo "$ac_t""no" 1>&6
10051 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10054 if test $ac_cv_func_res_query = no ; then
10055 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10056 echo "configure:10057: checking for res_query in -lresolv" >&5
10057 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10061 ac_save_LIBS="$LIBS"
10062 LIBS="-lresolv $LIBS"
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10077 eval "ac_cv_lib_$ac_lib_var=yes"
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10082 eval "ac_cv_lib_$ac_lib_var=no"
10085 LIBS="$ac_save_LIBS"
10088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10089 echo "$ac_t""yes" 1>&6
10090 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10092 cat >> confdefs.h <<EOF
10093 #define $ac_tr_lib 1
10096 LIBS="-lresolv $LIBS"
10099 echo "$ac_t""no" 1>&6
10102 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10105 if test $ac_cv_func_res_query = no ; then
10106 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10107 echo "configure:10108: checking for __res_query in -lresolv" >&5
10108 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10112 ac_save_LIBS="$LIBS"
10113 LIBS="-lresolv $LIBS"
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 /* Override any gcc2 internal prototype to avoid an error. */
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120 char __res_query();
10126 if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10128 eval "ac_cv_lib_$ac_lib_var=yes"
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 eval "ac_cv_lib_$ac_lib_var=no"
10136 LIBS="$ac_save_LIBS"
10139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10143 cat >> confdefs.h <<EOF
10144 #define $ac_tr_lib 1
10147 LIBS="-lresolv $LIBS"
10150 echo "$ac_t""no" 1>&6
10153 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10156 if test "$ac_cv_func_res_query" = yes ; then
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_RES_QUERY 1
10162 if test $ol_enable_dnssrv != no ; then
10167 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10168 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10171 for ac_func in getaddrinfo gai_strerror inet_ntop
10173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10174 echo "configure:10175: checking for $ac_func" >&5
10175 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10178 cat > conftest.$ac_ext <<EOF
10179 #line 10180 "configure"
10180 #include "confdefs.h"
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func(); below. */
10183 #include <assert.h>
10184 /* Override any gcc2 internal prototype to avoid an error. */
10185 /* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10192 /* The GNU C library defines this for functions which it implements
10193 to always fail with ENOSYS. Some functions are actually named
10194 something starting with __ and the normal name is an alias. */
10195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10203 if { (eval echo configure:10204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10205 eval "ac_cv_func_$ac_func=yes"
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 eval "ac_cv_func_$ac_func=no"
10215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10218 cat >> confdefs.h <<EOF
10219 #define $ac_tr_func 1
10223 echo "$ac_t""no" 1>&6
10229 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10230 if test $ol_enable_ipv6 = yes ; then
10231 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10233 elif test $ol_enable_ipv6 != no ; then
10234 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10235 echo "configure:10236: checking INET6_ADDRSTRLEN" >&5
10236 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10244 # include <netinet/in.h>
10245 # ifdef INET6_ADDRSTRLEN
10246 __has_inet6_addrstrlen__;
10250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10251 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10253 ol_cv_inet6_addrstrlen=yes
10256 ol_cv_inet6_addrstrlen=no
10262 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10264 if test $ol_cv_inet6_addrstrlen = yes ; then
10266 elif test $ol_enable_ipv6 = yes ; then
10267 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10271 if test $ol_enable_local != no ; then
10272 for ac_hdr in sys/un.h
10274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10276 echo "configure:10277: checking for $ac_hdr" >&5
10277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10278 echo $ac_n "(cached) $ac_c" 1>&6
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10286 { (eval echo configure:10287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10288 if test -z "$ac_err"; then
10290 eval "ac_cv_header_$ac_safe=yes"
10293 echo "configure: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10296 eval "ac_cv_header_$ac_safe=no"
10300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10301 echo "$ac_t""yes" 1>&6
10302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10303 cat >> confdefs.h <<EOF
10304 #define $ac_tr_hdr 1
10308 echo "$ac_t""no" 1>&6
10313 if test $ol_enable_local = auto ; then
10314 ol_enable_local=$ac_cv_header_sys_un_h
10315 elif test $ac_cv_header_sys_un_h = no ; then
10316 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10325 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10326 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10327 -o $ol_with_kerberos = k425 ; then
10329 for ac_hdr in krb5.h
10331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10333 echo "configure:10334: checking for $ac_hdr" >&5
10334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10337 cat > conftest.$ac_ext <<EOF
10338 #line 10339 "configure"
10339 #include "confdefs.h"
10342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10343 { (eval echo configure:10344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10345 if test -z "$ac_err"; then
10347 eval "ac_cv_header_$ac_safe=yes"
10350 echo "configure: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10353 eval "ac_cv_header_$ac_safe=no"
10357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10358 echo "$ac_t""yes" 1>&6
10359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10360 cat >> confdefs.h <<EOF
10361 #define $ac_tr_hdr 1
10365 echo "$ac_t""no" 1>&6
10370 if test $ac_cv_header_krb5_h = yes ; then
10371 for ac_hdr in heim_err.h
10373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10375 echo "configure:10376: checking for $ac_hdr" >&5
10376 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10385 { (eval echo configure:10386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10387 if test -z "$ac_err"; then
10389 eval "ac_cv_header_$ac_safe=yes"
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10395 eval "ac_cv_header_$ac_safe=no"
10399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10400 echo "$ac_t""yes" 1>&6
10401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10402 cat >> confdefs.h <<EOF
10403 #define $ac_tr_hdr 1
10407 echo "$ac_t""no" 1>&6
10411 if test $ac_cv_header_heim_err_h = yes ; then
10417 if test $krb5_impl = mit; then
10418 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10419 echo "configure:10420: checking for main in -lk5crypto" >&5
10420 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10424 ac_save_LIBS="$LIBS"
10425 LIBS="-lk5crypto $LIBS"
10426 cat > conftest.$ac_ext <<EOF
10427 #line 10428 "configure"
10428 #include "confdefs.h"
10434 if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10436 eval "ac_cv_lib_$ac_lib_var=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_lib_$ac_lib_var=no"
10444 LIBS="$ac_save_LIBS"
10447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10448 echo "$ac_t""yes" 1>&6
10449 krb5crypto=k5crypto
10451 echo "$ac_t""no" 1>&6
10456 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10457 echo "configure:10458: checking for main in -lkrb5" >&5
10458 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10459 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10460 echo $ac_n "(cached) $ac_c" 1>&6
10462 ac_save_LIBS="$LIBS"
10463 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10464 cat > conftest.$ac_ext <<EOF
10465 #line 10466 "configure"
10466 #include "confdefs.h"
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10474 eval "ac_cv_lib_$ac_lib_var=yes"
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 eval "ac_cv_lib_$ac_lib_var=no"
10482 LIBS="$ac_save_LIBS"
10485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10486 echo "$ac_t""yes" 1>&6
10488 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10490 echo "$ac_t""no" 1>&6
10495 elif test $krb5_impl = heimdal; then
10496 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10497 echo "configure:10498: checking for main in -ldes" >&5
10498 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10499 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10502 ac_save_LIBS="$LIBS"
10504 cat > conftest.$ac_ext <<EOF
10505 #line 10506 "configure"
10506 #include "confdefs.h"
10512 if { (eval echo configure:10513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10514 eval "ac_cv_lib_$ac_lib_var=yes"
10516 echo "configure: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10519 eval "ac_cv_lib_$ac_lib_var=no"
10522 LIBS="$ac_save_LIBS"
10525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10526 echo "$ac_t""yes" 1>&6
10529 echo "$ac_t""no" 1>&6
10534 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10535 echo "configure:10536: checking for main in -lkrb5" >&5
10536 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10537 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10540 ac_save_LIBS="$LIBS"
10541 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10550 if { (eval echo configure:10551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10552 eval "ac_cv_lib_$ac_lib_var=yes"
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10557 eval "ac_cv_lib_$ac_lib_var=no"
10560 LIBS="$ac_save_LIBS"
10563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10564 echo "$ac_t""yes" 1>&6
10566 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10568 echo "$ac_t""no" 1>&6
10573 cat >> confdefs.h <<\EOF
10574 #define HAVE_HEIMDAL_KERBEROS 1
10580 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10583 if test $have_krb5 = yes ; then
10586 cat >> confdefs.h <<\EOF
10587 #define HAVE_KRB5 1
10591 if test $ol_enable_kpasswd != no ; then
10592 ol_link_kpasswd=yes;
10595 if test $ol_with_kerberos = k5only ; then
10596 ol_with_kerberos=found
10599 elif test $ol_with_kerberos != auto ; then
10600 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10606 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10607 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10609 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10613 echo "configure:10614: checking for $ac_hdr" >&5
10614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10615 echo $ac_n "(cached) $ac_c" 1>&6
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10623 { (eval echo configure:10624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10625 if test -z "$ac_err"; then
10627 eval "ac_cv_header_$ac_safe=yes"
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 eval "ac_cv_header_$ac_safe=no"
10637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10638 echo "$ac_t""yes" 1>&6
10639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10640 cat >> confdefs.h <<EOF
10641 #define $ac_tr_hdr 1
10645 echo "$ac_t""no" 1>&6
10650 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10651 if test $krb5_impl = mit; then
10652 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10653 echo "configure:10654: checking for main in -lkrb4" >&5
10654 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10655 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10658 ac_save_LIBS="$LIBS"
10659 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10668 if { (eval echo configure:10669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10670 eval "ac_cv_lib_$ac_lib_var=yes"
10672 echo "configure: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10675 eval "ac_cv_lib_$ac_lib_var=no"
10678 LIBS="$ac_save_LIBS"
10681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10682 echo "$ac_t""yes" 1>&6
10684 KRB4_LIBS="-lkrb4 -ldes425"
10686 echo "$ac_t""no" 1>&6
10691 elif test $krb5_impl = heimdal; then
10692 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10693 echo "configure:10694: checking for main in -lkrb4" >&5
10694 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10696 echo $ac_n "(cached) $ac_c" 1>&6
10698 ac_save_LIBS="$LIBS"
10699 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710 eval "ac_cv_lib_$ac_lib_var=yes"
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 eval "ac_cv_lib_$ac_lib_var=no"
10718 LIBS="$ac_save_LIBS"
10721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10722 echo "$ac_t""yes" 1>&6
10726 echo "$ac_t""no" 1>&6
10733 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10736 if test $have_k425 = yes ; then
10737 ol_with_kerberos=found
10740 cat >> confdefs.h <<\EOF
10741 #define HAVE_KRB425 1
10744 cat >> confdefs.h <<\EOF
10745 #define HAVE_KRB4 1
10749 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10750 echo "configure:10751: checking for des_debug in Kerberos libraries" >&5
10751 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10756 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10761 #include <kerberosIV/krb.h>
10762 #include <kerberosIV/des.h>
10763 extern int des_debug;
10771 if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10773 ol_cv_var_des_debug=yes
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10778 ol_cv_var_des_debug=no
10785 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10787 if test $ol_cv_var_des_debug = yes ; then
10788 cat >> confdefs.h <<\EOF
10789 #define HAVE_DES_DEBUG 1
10799 if test $ol_link_krb5 = yes ; then
10800 ol_with_kerberos=found
10803 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10804 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10806 for ac_hdr in krb.h des.h krb-archaeology.h
10808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10810 echo "configure:10811: checking for $ac_hdr" >&5
10811 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10820 { (eval echo configure:10821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10822 if test -z "$ac_err"; then
10824 eval "ac_cv_header_$ac_safe=yes"
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 eval "ac_cv_header_$ac_safe=no"
10834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10835 echo "$ac_t""yes" 1>&6
10836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10837 cat >> confdefs.h <<EOF
10838 #define $ac_tr_hdr 1
10842 echo "$ac_t""no" 1>&6
10847 if test $ac_cv_header_krb_h = yes ; then
10848 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10849 echo "configure:10850: checking for main in -lkrb" >&5
10850 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10851 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10854 ac_save_LIBS="$LIBS"
10855 LIBS="-lkrb -ldes $LIBS"
10856 cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10866 eval "ac_cv_lib_$ac_lib_var=yes"
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10871 eval "ac_cv_lib_$ac_lib_var=no"
10874 LIBS="$ac_save_LIBS"
10877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10878 echo "$ac_t""yes" 1>&6
10881 echo "$ac_t""no" 1>&6
10886 if test $have_k4 = yes ; then
10887 ol_with_kerberos=found
10890 cat >> confdefs.h <<\EOF
10891 #define HAVE_KRB4 1
10895 KRB4_LIBS="-lkrb -ldes"
10897 if test $ac_cv_header_krb_archaeology_h = yes ; then
10898 cat >> confdefs.h <<\EOF
10899 #define HAVE_KTH_KERBEROS 1
10907 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10908 ol_link_kpasswd=yes
10911 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10914 elif test $ol_enable_kbind = yes ; then
10915 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10918 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10919 cat >> confdefs.h <<\EOF
10920 #define HAVE_KERBEROS 1
10924 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10925 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10929 if test $ol_with_tls != no ; then
10930 for ac_hdr in openssl/ssl.h ssl.h
10932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10934 echo "configure:10935: checking for $ac_hdr" >&5
10935 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10938 cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10944 { (eval echo configure:10945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10946 if test -z "$ac_err"; then
10948 eval "ac_cv_header_$ac_safe=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 eval "ac_cv_header_$ac_safe=no"
10958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10959 echo "$ac_t""yes" 1>&6
10960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10961 cat >> confdefs.h <<EOF
10962 #define $ac_tr_hdr 1
10966 echo "$ac_t""no" 1>&6
10971 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10972 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10973 echo "configure:10974: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10974 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10975 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10978 ac_save_LIBS="$LIBS"
10979 LIBS="-lssl -lcrypto $LIBS"
10980 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10983 /* Override any gcc2 internal prototype to avoid an error. */
10984 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10986 char SSLeay_add_ssl_algorithms();
10989 SSLeay_add_ssl_algorithms()
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10994 eval "ac_cv_lib_$ac_lib_var=yes"
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10999 eval "ac_cv_lib_$ac_lib_var=no"
11002 LIBS="$ac_save_LIBS"
11005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11006 echo "$ac_t""yes" 1>&6
11010 echo "$ac_t""no" 1>&6
11015 if test $have_ssleay = no ; then
11016 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11017 echo "configure:11018: checking for SSL_library_init in -lssl" >&5
11018 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11019 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11022 ac_save_LIBS="$LIBS"
11023 LIBS="-lssl -lcrypto $LIBS"
11024 cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11027 /* Override any gcc2 internal prototype to avoid an error. */
11028 /* We use char because int might match the return type of a gcc2
11029 builtin and then its argument prototype would still apply. */
11030 char SSL_library_init();
11036 if { (eval echo configure:11037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11038 eval "ac_cv_lib_$ac_lib_var=yes"
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11043 eval "ac_cv_lib_$ac_lib_var=no"
11046 LIBS="$ac_save_LIBS"
11049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11050 echo "$ac_t""yes" 1>&6
11054 echo "$ac_t""no" 1>&6
11060 if test $have_ssleay = no ; then
11061 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11062 echo "configure:11063: checking for ssl3_accept in -lssl" >&5
11063 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11067 ac_save_LIBS="$LIBS"
11068 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 /* Override any gcc2 internal prototype to avoid an error. */
11073 /* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11075 char ssl3_accept();
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11083 eval "ac_cv_lib_$ac_lib_var=yes"
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11088 eval "ac_cv_lib_$ac_lib_var=no"
11091 LIBS="$ac_save_LIBS"
11094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11099 echo "$ac_t""no" 1>&6
11105 if test $have_ssleay = yes ; then
11109 cat >> confdefs.h <<\EOF
11110 #define HAVE_SSLEAY 1
11114 if test $need_rsaref = yes; then
11115 cat >> confdefs.h <<\EOF
11116 #define HAVE_RSAREF 1
11120 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11122 TLS_LIBS="-lssl -lcrypto"
11128 echo "configure: warning: TLS data protection not supported!" 1>&2
11131 if test $ol_link_tls = yes ; then
11132 cat >> confdefs.h <<\EOF
11137 elif test $ol_with_tls = auto ; then
11138 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11139 echo "configure: warning: TLS data protection not supported!" 1>&2
11141 elif test $ol_with_tls != no ; then
11142 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11145 if test $ol_enable_lmpasswd != no; then
11146 if test $ol_link_tls != yes ; then
11147 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11150 cat >> confdefs.h <<\EOF
11151 #define SLAPD_LMHASH 1
11158 gethostbyname_r gethostbyaddr_r \
11161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11162 echo "configure:11163: checking for $ac_func" >&5
11163 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11164 echo $ac_n "(cached) $ac_c" 1>&6
11166 cat > conftest.$ac_ext <<EOF
11167 #line 11168 "configure"
11168 #include "confdefs.h"
11169 /* System header to define __stub macros and hopefully few prototypes,
11170 which can conflict with char $ac_func(); below. */
11171 #include <assert.h>
11172 /* Override any gcc2 internal prototype to avoid an error. */
11173 /* We use char because int might match the return type of a gcc2
11174 builtin and then its argument prototype would still apply. */
11180 /* The GNU C library defines this for functions which it implements
11181 to always fail with ENOSYS. Some functions are actually named
11182 something starting with __ and the normal name is an alias. */
11183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11191 if { (eval echo configure:11192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11193 eval "ac_cv_func_$ac_func=yes"
11195 echo "configure: failed program was:" >&5
11196 cat conftest.$ac_ext >&5
11198 eval "ac_cv_func_$ac_func=no"
11203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11206 cat >> confdefs.h <<EOF
11207 #define $ac_tr_func 1
11211 echo "$ac_t""no" 1>&6
11216 if test "$ac_cv_func_ctime_r" = no ; then
11217 ol_cv_func_ctime_r_nargs=0
11219 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11220 echo "configure:11221: checking number of arguments of ctime_r" >&5
11221 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11224 cat > conftest.$ac_ext <<EOF
11225 #line 11226 "configure"
11226 #include "confdefs.h"
11229 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11232 if { (eval echo configure:11233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11234 ol_cv_func_ctime_r_nargs3=yes
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11239 ol_cv_func_ctime_r_nargs3=no
11243 cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11248 time_t ti; char *buffer; ctime_r(&ti,buffer);
11251 if { (eval echo configure:11252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11253 ol_cv_func_ctime_r_nargs2=yes
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11258 ol_cv_func_ctime_r_nargs2=no
11262 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11263 $ol_cv_func_ctime_r_nargs2 = no ; then
11265 ol_cv_func_ctime_r_nargs=3
11267 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11268 $ol_cv_func_ctime_r_nargs2 = yes ; then
11270 ol_cv_func_ctime_r_nargs=2
11273 ol_cv_func_ctime_r_nargs=0
11278 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11280 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11281 cat >> confdefs.h <<EOF
11282 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11289 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11290 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11291 echo "configure:11292: checking number of arguments of gethostbyname_r" >&5
11292 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 #include <sys/types.h>
11299 #include <sys/socket.h>
11300 #include <netinet/in.h>
11302 #define BUFSIZE (sizeof(struct hostent)+10)
11304 struct hostent hent; char buffer[BUFSIZE];
11305 int bufsize=BUFSIZE;int h_errno;
11306 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11307 buffer, bufsize, &h_errno);
11310 if { (eval echo configure:11311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11312 ol_cv_func_gethostbyname_r_nargs5=yes
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11317 ol_cv_func_gethostbyname_r_nargs5=no
11321 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 #include <sys/types.h>
11325 #include <sys/socket.h>
11326 #include <netinet/in.h>
11328 #define BUFSIZE (sizeof(struct hostent)+10)
11330 struct hostent hent;struct hostent *rhent;
11331 char buffer[BUFSIZE];
11332 int bufsize=BUFSIZE;int h_errno;
11333 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11337 if { (eval echo configure:11338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11339 ol_cv_func_gethostbyname_r_nargs6=yes
11341 echo "configure: failed program was:" >&5
11342 cat conftest.$ac_ext >&5
11344 ol_cv_func_gethostbyname_r_nargs6=no
11348 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11349 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11351 ol_cv_func_gethostbyname_r_nargs=5
11353 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11354 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11356 ol_cv_func_gethostbyname_r_nargs=6
11359 ol_cv_func_gethostbyname_r_nargs=0
11364 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11365 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11366 cat >> confdefs.h <<EOF
11367 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11373 ol_cv_func_gethostbyname_r_nargs=0
11376 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11377 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11378 echo "configure:11379: checking number of arguments of gethostbyaddr_r" >&5
11379 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11385 #include <sys/types.h>
11386 #include <sys/socket.h>
11387 #include <netinet/in.h>
11389 #define BUFSIZE (sizeof(struct hostent)+10)
11391 struct hostent hent; char buffer[BUFSIZE];
11392 struct in_addr add;
11393 size_t alen=sizeof(struct in_addr);
11394 int bufsize=BUFSIZE;int h_errno;
11395 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11396 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11399 if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11401 ol_cv_func_gethostbyaddr_r_nargs7=yes
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11406 ol_cv_func_gethostbyaddr_r_nargs7=no
11410 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure"
11412 #include "confdefs.h"
11413 #include <sys/types.h>
11414 #include <sys/socket.h>
11415 #include <netinet/in.h>
11417 #define BUFSIZE (sizeof(struct hostent)+10)
11419 struct hostent hent;
11420 struct hostent *rhent; char buffer[BUFSIZE];
11421 struct in_addr add;
11422 size_t alen=sizeof(struct in_addr);
11423 int bufsize=BUFSIZE;int h_errno;
11424 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11425 alen, AF_INET, &hent, buffer, bufsize,
11429 if { (eval echo configure:11430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11431 ol_cv_func_gethostbyaddr_r_nargs8=yes
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11436 ol_cv_func_gethostbyaddr_r_nargs8=no
11440 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11441 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11443 ol_cv_func_gethostbyaddr_r_nargs=7
11445 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11446 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11448 ol_cv_func_gethostbyaddr_r_nargs=8
11451 ol_cv_func_gethostbyaddr_r_nargs=0
11456 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11457 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11458 cat >> confdefs.h <<EOF
11459 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11465 ol_cv_func_gethostbyaddr_r_nargs=0
11468 if test "$ac_cv_func_ctime_r" = yes \
11469 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11470 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11471 -a "$ac_cv_func_gethostbyname_r" = yes \
11472 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11473 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11474 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11475 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11476 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11479 cat >> confdefs.h <<\EOF
11480 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11487 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11488 -o $ol_with_threads = nt ; then
11491 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11492 echo "configure:11493: checking for _beginthread" >&5
11493 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char _beginthread(); below. */
11501 #include <assert.h>
11502 /* Override any gcc2 internal prototype to avoid an error. */
11503 /* We use char because int might match the return type of a gcc2
11504 builtin and then its argument prototype would still apply. */
11505 char _beginthread();
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 eval "ac_cv_func__beginthread=yes"
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 eval "ac_cv_func__beginthread=no"
11533 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11537 echo "$ac_t""no" 1>&6
11541 if test $ac_cv_func__beginthread = yes ; then
11542 cat >> confdefs.h <<\EOF
11543 #define HAVE_NT_THREADS 1
11546 ol_cv_nt_threads=yes
11550 if test "$ol_cv_nt_threads" = yes ; then
11552 ol_with_threads=found
11553 ol_with_yielding_select=yes
11555 cat >> confdefs.h <<\EOF
11556 #define HAVE_NT_SERVICE_MANAGER 1
11559 cat >> confdefs.h <<\EOF
11560 #define HAVE_NT_EVENT_LOG 1
11565 if test $ol_with_threads = nt ; then
11566 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11570 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11571 -o $ol_with_threads = posix ; then
11573 for ac_hdr in pthread.h
11575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11577 echo "configure:11578: checking for $ac_hdr" >&5
11578 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11587 { (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11589 if test -z "$ac_err"; then
11591 eval "ac_cv_header_$ac_safe=yes"
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11597 eval "ac_cv_header_$ac_safe=no"
11601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11602 echo "$ac_t""yes" 1>&6
11603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11604 cat >> confdefs.h <<EOF
11605 #define $ac_tr_hdr 1
11609 echo "$ac_t""no" 1>&6
11614 if test $ac_cv_header_pthread_h = yes ; then
11615 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11616 echo "configure:11617: checking POSIX thread version" >&5
11617 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11621 cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11625 # include <pthread.h>
11626 /* this check could be improved */
11627 # ifdef PTHREAD_ONCE_INIT
11628 pthread_version_final;
11632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11633 egrep "pthread_version_final" >/dev/null 2>&1; then
11635 ol_pthread_final=yes
11638 ol_pthread_final=no
11643 cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11647 # include <pthread.h>
11648 /* this check could be improved */
11649 # ifdef pthread_once_init
11650 pthread_version_draft4;
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11657 ol_pthread_draft4=yes
11660 ol_pthread_draft4=no
11665 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11666 ol_cv_pthread_version=final
11667 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11668 ol_cv_pthread_version=draft4
11670 ol_cv_pthread_version=unknown
11675 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11678 if test $ol_cv_pthread_version = final ; then
11679 cat >> confdefs.h <<\EOF
11680 #define HAVE_PTHREADS_FINAL 1
11683 elif test $ol_cv_pthread_version = draft4 ; then
11684 cat >> confdefs.h <<\EOF
11685 #define HAVE_PTHREADS_D4 1
11689 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11692 # consider threads found
11693 ol_with_threads=found
11696 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11697 echo "configure:11698: checking for LinuxThreads pthread.h" >&5
11698 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <pthread.h>
11706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11707 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11709 ol_cv_header_linux_threads=yes
11712 ol_cv_header_linux_threads=no
11719 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11720 if test $ol_cv_header_linux_threads = yes; then
11721 cat >> confdefs.h <<\EOF
11722 #define HAVE_LINUX_THREADS 1
11728 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11729 echo "configure:11730: checking for GNU Pth pthread.h" >&5
11730 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11733 cat > conftest.$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11736 #include <pthread.h>
11737 #ifdef _POSIX_THREAD_IS_GNU_PTH
11742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11743 egrep "__gnu_pth__" >/dev/null 2>&1; then
11745 ol_cv_header_gnu_pth_pthread_h=yes
11748 ol_cv_header_gnu_pth_pthread_h=no
11755 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11758 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11759 for ac_hdr in sched.h
11761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11763 echo "configure:11764: checking for $ac_hdr" >&5
11764 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11767 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11773 { (eval echo configure:11774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11775 if test -z "$ac_err"; then
11777 eval "ac_cv_header_$ac_safe=yes"
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11783 eval "ac_cv_header_$ac_safe=no"
11787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11788 echo "$ac_t""yes" 1>&6
11789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11790 cat >> confdefs.h <<EOF
11791 #define $ac_tr_hdr 1
11795 echo "$ac_t""no" 1>&6
11802 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11803 echo "configure:11804: checking for pthread_create in default libraries" >&5
11804 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11805 echo $ac_n "(cached) $ac_c" 1>&6
11808 if test "$cross_compiling" = yes; then
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11812 /* pthread test headers */
11813 #include <pthread.h>
11815 #define NULL (void*)0
11818 static void *task(p)
11821 return (void *) (p == NULL);
11826 /* pthread test function */
11831 #ifdef HAVE_PTHREADS_FINAL
11832 /* Final pthreads */
11833 pthread_attr_t attr;
11835 status = pthread_attr_init(&attr);
11836 if( status ) return status;
11838 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11840 #if defined( PTHREAD_CREATE_JOINABLE )
11841 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11843 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11846 #ifdef PTHREAD_CREATE_DETACHED
11848 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11851 if( status ) return status;
11854 status = pthread_create( &t, &attr, task, NULL );
11855 if( status ) return status;
11857 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11859 /* give thread a chance to complete */
11860 /* it should remain joinable and hence detachable */
11863 status = pthread_detach( t );
11864 if( status ) return status;
11869 /* Draft 4 pthreads */
11870 status = pthread_create( &t, pthread_attr_default, task, NULL );
11871 if( status ) return status;
11874 /* give thread a chance to complete */
11875 /* it should remain joinable and hence detachable */
11878 status = pthread_detach( &t );
11879 if( status ) return status;
11883 #ifdef HAVE_LINUX_THREADS
11884 pthread_kill_other_threads_np();
11891 if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11893 ol_cv_pthread_create=yes
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11898 ol_cv_pthread_create=no
11902 cat > conftest.$ac_ext <<EOF
11903 #line 11904 "configure"
11904 #include "confdefs.h"
11905 /* pthread test headers */
11906 #include <pthread.h>
11908 #define NULL (void*)0
11911 static void *task(p)
11914 return (void *) (p == NULL);
11918 int main(argc, argv)
11923 /* pthread test function */
11928 #ifdef HAVE_PTHREADS_FINAL
11929 /* Final pthreads */
11930 pthread_attr_t attr;
11932 status = pthread_attr_init(&attr);
11933 if( status ) return status;
11935 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11937 #if defined( PTHREAD_CREATE_JOINABLE )
11938 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11940 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11943 #ifdef PTHREAD_CREATE_DETACHED
11945 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11948 if( status ) return status;
11951 status = pthread_create( &t, &attr, task, NULL );
11952 if( status ) return status;
11954 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11956 /* give thread a chance to complete */
11957 /* it should remain joinable and hence detachable */
11960 status = pthread_detach( t );
11961 if( status ) return status;
11966 /* Draft 4 pthreads */
11967 status = pthread_create( &t, pthread_attr_default, task, NULL );
11968 if( status ) return status;
11971 /* give thread a chance to complete */
11972 /* it should remain joinable and hence detachable */
11975 status = pthread_detach( &t );
11976 if( status ) return status;
11980 #ifdef HAVE_LINUX_THREADS
11981 pthread_kill_other_threads_np();
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11991 ol_cv_pthread_create=yes
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11996 ol_cv_pthread_create=no
12003 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12005 if test $ol_cv_pthread_create != no ; then
12006 ol_link_threads=posix
12007 ol_link_pthreads=""
12010 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12011 if test "$ol_link_threads" = no ; then
12013 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12014 echo "configure:12015: checking for pthread link with -kthread" >&5
12015 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12016 echo $ac_n "(cached) $ac_c" 1>&6
12021 LIBS="-kthread $LIBS"
12023 if test "$cross_compiling" = yes; then
12024 cat > conftest.$ac_ext <<EOF
12025 #line 12026 "configure"
12026 #include "confdefs.h"
12027 /* pthread test headers */
12028 #include <pthread.h>
12030 #define NULL (void*)0
12033 static void *task(p)
12036 return (void *) (p == NULL);
12041 /* pthread test function */
12046 #ifdef HAVE_PTHREADS_FINAL
12047 /* Final pthreads */
12048 pthread_attr_t attr;
12050 status = pthread_attr_init(&attr);
12051 if( status ) return status;
12053 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12055 #if defined( PTHREAD_CREATE_JOINABLE )
12056 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12058 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12061 #ifdef PTHREAD_CREATE_DETACHED
12063 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12066 if( status ) return status;
12069 status = pthread_create( &t, &attr, task, NULL );
12070 if( status ) return status;
12072 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12074 /* give thread a chance to complete */
12075 /* it should remain joinable and hence detachable */
12078 status = pthread_detach( t );
12079 if( status ) return status;
12084 /* Draft 4 pthreads */
12085 status = pthread_create( &t, pthread_attr_default, task, NULL );
12086 if( status ) return status;
12089 /* give thread a chance to complete */
12090 /* it should remain joinable and hence detachable */
12093 status = pthread_detach( &t );
12094 if( status ) return status;
12098 #ifdef HAVE_LINUX_THREADS
12099 pthread_kill_other_threads_np();
12106 if { (eval echo configure:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12108 ol_cv_pthread_kthread=yes
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12113 ol_cv_pthread_kthread=no
12117 cat > conftest.$ac_ext <<EOF
12118 #line 12119 "configure"
12119 #include "confdefs.h"
12120 /* pthread test headers */
12121 #include <pthread.h>
12123 #define NULL (void*)0
12126 static void *task(p)
12129 return (void *) (p == NULL);
12133 int main(argc, argv)
12138 /* pthread test function */
12143 #ifdef HAVE_PTHREADS_FINAL
12144 /* Final pthreads */
12145 pthread_attr_t attr;
12147 status = pthread_attr_init(&attr);
12148 if( status ) return status;
12150 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12152 #if defined( PTHREAD_CREATE_JOINABLE )
12153 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12155 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12158 #ifdef PTHREAD_CREATE_DETACHED
12160 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12163 if( status ) return status;
12166 status = pthread_create( &t, &attr, task, NULL );
12167 if( status ) return status;
12169 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12171 /* give thread a chance to complete */
12172 /* it should remain joinable and hence detachable */
12175 status = pthread_detach( t );
12176 if( status ) return status;
12181 /* Draft 4 pthreads */
12182 status = pthread_create( &t, pthread_attr_default, task, NULL );
12183 if( status ) return status;
12186 /* give thread a chance to complete */
12187 /* it should remain joinable and hence detachable */
12190 status = pthread_detach( &t );
12191 if( status ) return status;
12195 #ifdef HAVE_LINUX_THREADS
12196 pthread_kill_other_threads_np();
12204 if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12206 ol_cv_pthread_kthread=yes
12208 echo "configure: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12211 ol_cv_pthread_kthread=no
12222 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12224 if test $ol_cv_pthread_kthread = yes ; then
12225 ol_link_pthreads="-kthread"
12226 ol_link_threads=posix
12230 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12231 if test "$ol_link_threads" = no ; then
12233 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12234 echo "configure:12235: checking for pthread link with -pthread" >&5
12235 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12236 echo $ac_n "(cached) $ac_c" 1>&6
12241 LIBS="-pthread $LIBS"
12243 if test "$cross_compiling" = yes; then
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 /* pthread test headers */
12248 #include <pthread.h>
12250 #define NULL (void*)0
12253 static void *task(p)
12256 return (void *) (p == NULL);
12261 /* pthread test function */
12266 #ifdef HAVE_PTHREADS_FINAL
12267 /* Final pthreads */
12268 pthread_attr_t attr;
12270 status = pthread_attr_init(&attr);
12271 if( status ) return status;
12273 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12275 #if defined( PTHREAD_CREATE_JOINABLE )
12276 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12278 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12281 #ifdef PTHREAD_CREATE_DETACHED
12283 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12286 if( status ) return status;
12289 status = pthread_create( &t, &attr, task, NULL );
12290 if( status ) return status;
12292 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12294 /* give thread a chance to complete */
12295 /* it should remain joinable and hence detachable */
12298 status = pthread_detach( t );
12299 if( status ) return status;
12304 /* Draft 4 pthreads */
12305 status = pthread_create( &t, pthread_attr_default, task, NULL );
12306 if( status ) return status;
12309 /* give thread a chance to complete */
12310 /* it should remain joinable and hence detachable */
12313 status = pthread_detach( &t );
12314 if( status ) return status;
12318 #ifdef HAVE_LINUX_THREADS
12319 pthread_kill_other_threads_np();
12326 if { (eval echo configure:12327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12328 ol_cv_pthread_pthread=yes
12330 echo "configure: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12333 ol_cv_pthread_pthread=no
12337 cat > conftest.$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12340 /* pthread test headers */
12341 #include <pthread.h>
12343 #define NULL (void*)0
12346 static void *task(p)
12349 return (void *) (p == NULL);
12353 int main(argc, argv)
12358 /* pthread test function */
12363 #ifdef HAVE_PTHREADS_FINAL
12364 /* Final pthreads */
12365 pthread_attr_t attr;
12367 status = pthread_attr_init(&attr);
12368 if( status ) return status;
12370 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12372 #if defined( PTHREAD_CREATE_JOINABLE )
12373 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12375 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12378 #ifdef PTHREAD_CREATE_DETACHED
12380 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12383 if( status ) return status;
12386 status = pthread_create( &t, &attr, task, NULL );
12387 if( status ) return status;
12389 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12391 /* give thread a chance to complete */
12392 /* it should remain joinable and hence detachable */
12395 status = pthread_detach( t );
12396 if( status ) return status;
12401 /* Draft 4 pthreads */
12402 status = pthread_create( &t, pthread_attr_default, task, NULL );
12403 if( status ) return status;
12406 /* give thread a chance to complete */
12407 /* it should remain joinable and hence detachable */
12410 status = pthread_detach( &t );
12411 if( status ) return status;
12415 #ifdef HAVE_LINUX_THREADS
12416 pthread_kill_other_threads_np();
12424 if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12426 ol_cv_pthread_pthread=yes
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12431 ol_cv_pthread_pthread=no
12442 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12444 if test $ol_cv_pthread_pthread = yes ; then
12445 ol_link_pthreads="-pthread"
12446 ol_link_threads=posix
12450 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12451 if test "$ol_link_threads" = no ; then
12453 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12454 echo "configure:12455: checking for pthread link with -pthreads" >&5
12455 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12456 echo $ac_n "(cached) $ac_c" 1>&6
12461 LIBS="-pthreads $LIBS"
12463 if test "$cross_compiling" = yes; then
12464 cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 /* pthread test headers */
12468 #include <pthread.h>
12470 #define NULL (void*)0
12473 static void *task(p)
12476 return (void *) (p == NULL);
12481 /* pthread test function */
12486 #ifdef HAVE_PTHREADS_FINAL
12487 /* Final pthreads */
12488 pthread_attr_t attr;
12490 status = pthread_attr_init(&attr);
12491 if( status ) return status;
12493 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12495 #if defined( PTHREAD_CREATE_JOINABLE )
12496 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12498 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12501 #ifdef PTHREAD_CREATE_DETACHED
12503 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12506 if( status ) return status;
12509 status = pthread_create( &t, &attr, task, NULL );
12510 if( status ) return status;
12512 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12514 /* give thread a chance to complete */
12515 /* it should remain joinable and hence detachable */
12518 status = pthread_detach( t );
12519 if( status ) return status;
12524 /* Draft 4 pthreads */
12525 status = pthread_create( &t, pthread_attr_default, task, NULL );
12526 if( status ) return status;
12529 /* give thread a chance to complete */
12530 /* it should remain joinable and hence detachable */
12533 status = pthread_detach( &t );
12534 if( status ) return status;
12538 #ifdef HAVE_LINUX_THREADS
12539 pthread_kill_other_threads_np();
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12548 ol_cv_pthread_pthreads=yes
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12553 ol_cv_pthread_pthreads=no
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 /* pthread test headers */
12561 #include <pthread.h>
12563 #define NULL (void*)0
12566 static void *task(p)
12569 return (void *) (p == NULL);
12573 int main(argc, argv)
12578 /* pthread test function */
12583 #ifdef HAVE_PTHREADS_FINAL
12584 /* Final pthreads */
12585 pthread_attr_t attr;
12587 status = pthread_attr_init(&attr);
12588 if( status ) return status;
12590 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12592 #if defined( PTHREAD_CREATE_JOINABLE )
12593 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12595 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12598 #ifdef PTHREAD_CREATE_DETACHED
12600 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12603 if( status ) return status;
12606 status = pthread_create( &t, &attr, task, NULL );
12607 if( status ) return status;
12609 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12611 /* give thread a chance to complete */
12612 /* it should remain joinable and hence detachable */
12615 status = pthread_detach( t );
12616 if( status ) return status;
12621 /* Draft 4 pthreads */
12622 status = pthread_create( &t, pthread_attr_default, task, NULL );
12623 if( status ) return status;
12626 /* give thread a chance to complete */
12627 /* it should remain joinable and hence detachable */
12630 status = pthread_detach( &t );
12631 if( status ) return status;
12635 #ifdef HAVE_LINUX_THREADS
12636 pthread_kill_other_threads_np();
12644 if { (eval echo configure:12645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12646 ol_cv_pthread_pthreads=yes
12648 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12651 ol_cv_pthread_pthreads=no
12662 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12664 if test $ol_cv_pthread_pthreads = yes ; then
12665 ol_link_pthreads="-pthreads"
12666 ol_link_threads=posix
12670 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12671 if test "$ol_link_threads" = no ; then
12673 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12674 echo "configure:12675: checking for pthread link with -mthreads" >&5
12675 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12676 echo $ac_n "(cached) $ac_c" 1>&6
12681 LIBS="-mthreads $LIBS"
12683 if test "$cross_compiling" = yes; then
12684 cat > conftest.$ac_ext <<EOF
12685 #line 12686 "configure"
12686 #include "confdefs.h"
12687 /* pthread test headers */
12688 #include <pthread.h>
12690 #define NULL (void*)0
12693 static void *task(p)
12696 return (void *) (p == NULL);
12701 /* pthread test function */
12706 #ifdef HAVE_PTHREADS_FINAL
12707 /* Final pthreads */
12708 pthread_attr_t attr;
12710 status = pthread_attr_init(&attr);
12711 if( status ) return status;
12713 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12715 #if defined( PTHREAD_CREATE_JOINABLE )
12716 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12718 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12721 #ifdef PTHREAD_CREATE_DETACHED
12723 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12726 if( status ) return status;
12729 status = pthread_create( &t, &attr, task, NULL );
12730 if( status ) return status;
12732 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12734 /* give thread a chance to complete */
12735 /* it should remain joinable and hence detachable */
12738 status = pthread_detach( t );
12739 if( status ) return status;
12744 /* Draft 4 pthreads */
12745 status = pthread_create( &t, pthread_attr_default, task, NULL );
12746 if( status ) return status;
12749 /* give thread a chance to complete */
12750 /* it should remain joinable and hence detachable */
12753 status = pthread_detach( &t );
12754 if( status ) return status;
12758 #ifdef HAVE_LINUX_THREADS
12759 pthread_kill_other_threads_np();
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12768 ol_cv_pthread_mthreads=yes
12770 echo "configure: failed program was:" >&5
12771 cat conftest.$ac_ext >&5
12773 ol_cv_pthread_mthreads=no
12777 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure"
12779 #include "confdefs.h"
12780 /* pthread test headers */
12781 #include <pthread.h>
12783 #define NULL (void*)0
12786 static void *task(p)
12789 return (void *) (p == NULL);
12793 int main(argc, argv)
12798 /* pthread test function */
12803 #ifdef HAVE_PTHREADS_FINAL
12804 /* Final pthreads */
12805 pthread_attr_t attr;
12807 status = pthread_attr_init(&attr);
12808 if( status ) return status;
12810 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12812 #if defined( PTHREAD_CREATE_JOINABLE )
12813 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12815 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12818 #ifdef PTHREAD_CREATE_DETACHED
12820 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12823 if( status ) return status;
12826 status = pthread_create( &t, &attr, task, NULL );
12827 if( status ) return status;
12829 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12831 /* give thread a chance to complete */
12832 /* it should remain joinable and hence detachable */
12835 status = pthread_detach( t );
12836 if( status ) return status;
12841 /* Draft 4 pthreads */
12842 status = pthread_create( &t, pthread_attr_default, task, NULL );
12843 if( status ) return status;
12846 /* give thread a chance to complete */
12847 /* it should remain joinable and hence detachable */
12850 status = pthread_detach( &t );
12851 if( status ) return status;
12855 #ifdef HAVE_LINUX_THREADS
12856 pthread_kill_other_threads_np();
12864 if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12866 ol_cv_pthread_mthreads=yes
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12871 ol_cv_pthread_mthreads=no
12882 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12884 if test $ol_cv_pthread_mthreads = yes ; then
12885 ol_link_pthreads="-mthreads"
12886 ol_link_threads=posix
12890 # Pthread try link: -thread (ol_cv_pthread_thread)
12891 if test "$ol_link_threads" = no ; then
12893 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12894 echo "configure:12895: checking for pthread link with -thread" >&5
12895 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12901 LIBS="-thread $LIBS"
12903 if test "$cross_compiling" = yes; then
12904 cat > conftest.$ac_ext <<EOF
12905 #line 12906 "configure"
12906 #include "confdefs.h"
12907 /* pthread test headers */
12908 #include <pthread.h>
12910 #define NULL (void*)0
12913 static void *task(p)
12916 return (void *) (p == NULL);
12921 /* pthread test function */
12926 #ifdef HAVE_PTHREADS_FINAL
12927 /* Final pthreads */
12928 pthread_attr_t attr;
12930 status = pthread_attr_init(&attr);
12931 if( status ) return status;
12933 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12935 #if defined( PTHREAD_CREATE_JOINABLE )
12936 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12938 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12941 #ifdef PTHREAD_CREATE_DETACHED
12943 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12946 if( status ) return status;
12949 status = pthread_create( &t, &attr, task, NULL );
12950 if( status ) return status;
12952 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12954 /* give thread a chance to complete */
12955 /* it should remain joinable and hence detachable */
12958 status = pthread_detach( t );
12959 if( status ) return status;
12964 /* Draft 4 pthreads */
12965 status = pthread_create( &t, pthread_attr_default, task, NULL );
12966 if( status ) return status;
12969 /* give thread a chance to complete */
12970 /* it should remain joinable and hence detachable */
12973 status = pthread_detach( &t );
12974 if( status ) return status;
12978 #ifdef HAVE_LINUX_THREADS
12979 pthread_kill_other_threads_np();
12986 if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12988 ol_cv_pthread_thread=yes
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12993 ol_cv_pthread_thread=no
12997 cat > conftest.$ac_ext <<EOF
12998 #line 12999 "configure"
12999 #include "confdefs.h"
13000 /* pthread test headers */
13001 #include <pthread.h>
13003 #define NULL (void*)0
13006 static void *task(p)
13009 return (void *) (p == NULL);
13013 int main(argc, argv)
13018 /* pthread test function */
13023 #ifdef HAVE_PTHREADS_FINAL
13024 /* Final pthreads */
13025 pthread_attr_t attr;
13027 status = pthread_attr_init(&attr);
13028 if( status ) return status;
13030 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13032 #if defined( PTHREAD_CREATE_JOINABLE )
13033 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13035 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13038 #ifdef PTHREAD_CREATE_DETACHED
13040 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13043 if( status ) return status;
13046 status = pthread_create( &t, &attr, task, NULL );
13047 if( status ) return status;
13049 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13051 /* give thread a chance to complete */
13052 /* it should remain joinable and hence detachable */
13055 status = pthread_detach( t );
13056 if( status ) return status;
13061 /* Draft 4 pthreads */
13062 status = pthread_create( &t, pthread_attr_default, task, NULL );
13063 if( status ) return status;
13066 /* give thread a chance to complete */
13067 /* it should remain joinable and hence detachable */
13070 status = pthread_detach( &t );
13071 if( status ) return status;
13075 #ifdef HAVE_LINUX_THREADS
13076 pthread_kill_other_threads_np();
13084 if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13086 ol_cv_pthread_thread=yes
13088 echo "configure: failed program was:" >&5
13089 cat conftest.$ac_ext >&5
13091 ol_cv_pthread_thread=no
13102 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13104 if test $ol_cv_pthread_thread = yes ; then
13105 ol_link_pthreads="-thread"
13106 ol_link_threads=posix
13111 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13112 if test "$ol_link_threads" = no ; then
13113 # try -lpthread -lmach -lexc -lc_r
13114 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13115 echo "configure:13116: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13116 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13117 echo $ac_n "(cached) $ac_c" 1>&6
13122 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13124 if test "$cross_compiling" = yes; then
13125 cat > conftest.$ac_ext <<EOF
13126 #line 13127 "configure"
13127 #include "confdefs.h"
13128 /* pthread test headers */
13129 #include <pthread.h>
13131 #define NULL (void*)0
13134 static void *task(p)
13137 return (void *) (p == NULL);
13142 /* pthread test function */
13147 #ifdef HAVE_PTHREADS_FINAL
13148 /* Final pthreads */
13149 pthread_attr_t attr;
13151 status = pthread_attr_init(&attr);
13152 if( status ) return status;
13154 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13156 #if defined( PTHREAD_CREATE_JOINABLE )
13157 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13159 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13162 #ifdef PTHREAD_CREATE_DETACHED
13164 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13167 if( status ) return status;
13170 status = pthread_create( &t, &attr, task, NULL );
13171 if( status ) return status;
13173 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13175 /* give thread a chance to complete */
13176 /* it should remain joinable and hence detachable */
13179 status = pthread_detach( t );
13180 if( status ) return status;
13185 /* Draft 4 pthreads */
13186 status = pthread_create( &t, pthread_attr_default, task, NULL );
13187 if( status ) return status;
13190 /* give thread a chance to complete */
13191 /* it should remain joinable and hence detachable */
13194 status = pthread_detach( &t );
13195 if( status ) return status;
13199 #ifdef HAVE_LINUX_THREADS
13200 pthread_kill_other_threads_np();
13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13209 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13211 echo "configure: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13214 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 /* pthread test headers */
13222 #include <pthread.h>
13224 #define NULL (void*)0
13227 static void *task(p)
13230 return (void *) (p == NULL);
13234 int main(argc, argv)
13239 /* pthread test function */
13244 #ifdef HAVE_PTHREADS_FINAL
13245 /* Final pthreads */
13246 pthread_attr_t attr;
13248 status = pthread_attr_init(&attr);
13249 if( status ) return status;
13251 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13253 #if defined( PTHREAD_CREATE_JOINABLE )
13254 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13256 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13259 #ifdef PTHREAD_CREATE_DETACHED
13261 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13264 if( status ) return status;
13267 status = pthread_create( &t, &attr, task, NULL );
13268 if( status ) return status;
13270 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13272 /* give thread a chance to complete */
13273 /* it should remain joinable and hence detachable */
13276 status = pthread_detach( t );
13277 if( status ) return status;
13282 /* Draft 4 pthreads */
13283 status = pthread_create( &t, pthread_attr_default, task, NULL );
13284 if( status ) return status;
13287 /* give thread a chance to complete */
13288 /* it should remain joinable and hence detachable */
13291 status = pthread_detach( &t );
13292 if( status ) return status;
13296 #ifdef HAVE_LINUX_THREADS
13297 pthread_kill_other_threads_np();
13305 if { (eval echo configure:13306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13307 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13309 echo "configure: failed program was:" >&5
13310 cat conftest.$ac_ext >&5
13312 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13323 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13325 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13326 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13327 ol_link_threads=posix
13331 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13332 if test "$ol_link_threads" = no ; then
13333 # try -lpthread -lmach -lexc
13334 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13335 echo "configure:13336: checking for pthread link with -lpthread -lmach -lexc" >&5
13336 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13337 echo $ac_n "(cached) $ac_c" 1>&6
13342 LIBS="-lpthread -lmach -lexc $LIBS"
13344 if test "$cross_compiling" = yes; then
13345 cat > conftest.$ac_ext <<EOF
13346 #line 13347 "configure"
13347 #include "confdefs.h"
13348 /* pthread test headers */
13349 #include <pthread.h>
13351 #define NULL (void*)0
13354 static void *task(p)
13357 return (void *) (p == NULL);
13362 /* pthread test function */
13367 #ifdef HAVE_PTHREADS_FINAL
13368 /* Final pthreads */
13369 pthread_attr_t attr;
13371 status = pthread_attr_init(&attr);
13372 if( status ) return status;
13374 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13376 #if defined( PTHREAD_CREATE_JOINABLE )
13377 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13379 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13382 #ifdef PTHREAD_CREATE_DETACHED
13384 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13387 if( status ) return status;
13390 status = pthread_create( &t, &attr, task, NULL );
13391 if( status ) return status;
13393 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13395 /* give thread a chance to complete */
13396 /* it should remain joinable and hence detachable */
13399 status = pthread_detach( t );
13400 if( status ) return status;
13405 /* Draft 4 pthreads */
13406 status = pthread_create( &t, pthread_attr_default, task, NULL );
13407 if( status ) return status;
13410 /* give thread a chance to complete */
13411 /* it should remain joinable and hence detachable */
13414 status = pthread_detach( &t );
13415 if( status ) return status;
13419 #ifdef HAVE_LINUX_THREADS
13420 pthread_kill_other_threads_np();
13427 if { (eval echo configure:13428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13429 ol_cv_pthread_lpthread_lmach_lexc=yes
13431 echo "configure: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13434 ol_cv_pthread_lpthread_lmach_lexc=no
13438 cat > conftest.$ac_ext <<EOF
13439 #line 13440 "configure"
13440 #include "confdefs.h"
13441 /* pthread test headers */
13442 #include <pthread.h>
13444 #define NULL (void*)0
13447 static void *task(p)
13450 return (void *) (p == NULL);
13454 int main(argc, argv)
13459 /* pthread test function */
13464 #ifdef HAVE_PTHREADS_FINAL
13465 /* Final pthreads */
13466 pthread_attr_t attr;
13468 status = pthread_attr_init(&attr);
13469 if( status ) return status;
13471 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13473 #if defined( PTHREAD_CREATE_JOINABLE )
13474 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13476 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13479 #ifdef PTHREAD_CREATE_DETACHED
13481 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13484 if( status ) return status;
13487 status = pthread_create( &t, &attr, task, NULL );
13488 if( status ) return status;
13490 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13492 /* give thread a chance to complete */
13493 /* it should remain joinable and hence detachable */
13496 status = pthread_detach( t );
13497 if( status ) return status;
13502 /* Draft 4 pthreads */
13503 status = pthread_create( &t, pthread_attr_default, task, NULL );
13504 if( status ) return status;
13507 /* give thread a chance to complete */
13508 /* it should remain joinable and hence detachable */
13511 status = pthread_detach( &t );
13512 if( status ) return status;
13516 #ifdef HAVE_LINUX_THREADS
13517 pthread_kill_other_threads_np();
13525 if { (eval echo configure:13526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13527 ol_cv_pthread_lpthread_lmach_lexc=yes
13529 echo "configure: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
13532 ol_cv_pthread_lpthread_lmach_lexc=no
13543 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13545 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13546 ol_link_pthreads="-lpthread -lmach -lexc"
13547 ol_link_threads=posix
13552 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13553 if test "$ol_link_threads" = no ; then
13554 # try -lpthread -Wl,-woff,85
13555 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13556 echo "configure:13557: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13557 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13558 echo $ac_n "(cached) $ac_c" 1>&6
13563 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13565 if test "$cross_compiling" = yes; then
13566 cat > conftest.$ac_ext <<EOF
13567 #line 13568 "configure"
13568 #include "confdefs.h"
13569 /* pthread test headers */
13570 #include <pthread.h>
13572 #define NULL (void*)0
13575 static void *task(p)
13578 return (void *) (p == NULL);
13583 /* pthread test function */
13588 #ifdef HAVE_PTHREADS_FINAL
13589 /* Final pthreads */
13590 pthread_attr_t attr;
13592 status = pthread_attr_init(&attr);
13593 if( status ) return status;
13595 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13597 #if defined( PTHREAD_CREATE_JOINABLE )
13598 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13600 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13603 #ifdef PTHREAD_CREATE_DETACHED
13605 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13608 if( status ) return status;
13611 status = pthread_create( &t, &attr, task, NULL );
13612 if( status ) return status;
13614 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13616 /* give thread a chance to complete */
13617 /* it should remain joinable and hence detachable */
13620 status = pthread_detach( t );
13621 if( status ) return status;
13626 /* Draft 4 pthreads */
13627 status = pthread_create( &t, pthread_attr_default, task, NULL );
13628 if( status ) return status;
13631 /* give thread a chance to complete */
13632 /* it should remain joinable and hence detachable */
13635 status = pthread_detach( &t );
13636 if( status ) return status;
13640 #ifdef HAVE_LINUX_THREADS
13641 pthread_kill_other_threads_np();
13648 if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13650 ol_cv_pthread_lib_lpthread_woff=yes
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13655 ol_cv_pthread_lib_lpthread_woff=no
13659 cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 /* pthread test headers */
13663 #include <pthread.h>
13665 #define NULL (void*)0
13668 static void *task(p)
13671 return (void *) (p == NULL);
13675 int main(argc, argv)
13680 /* pthread test function */
13685 #ifdef HAVE_PTHREADS_FINAL
13686 /* Final pthreads */
13687 pthread_attr_t attr;
13689 status = pthread_attr_init(&attr);
13690 if( status ) return status;
13692 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13694 #if defined( PTHREAD_CREATE_JOINABLE )
13695 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13697 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13700 #ifdef PTHREAD_CREATE_DETACHED
13702 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13705 if( status ) return status;
13708 status = pthread_create( &t, &attr, task, NULL );
13709 if( status ) return status;
13711 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13713 /* give thread a chance to complete */
13714 /* it should remain joinable and hence detachable */
13717 status = pthread_detach( t );
13718 if( status ) return status;
13723 /* Draft 4 pthreads */
13724 status = pthread_create( &t, pthread_attr_default, task, NULL );
13725 if( status ) return status;
13728 /* give thread a chance to complete */
13729 /* it should remain joinable and hence detachable */
13732 status = pthread_detach( &t );
13733 if( status ) return status;
13737 #ifdef HAVE_LINUX_THREADS
13738 pthread_kill_other_threads_np();
13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13748 ol_cv_pthread_lib_lpthread_woff=yes
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 ol_cv_pthread_lib_lpthread_woff=no
13764 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13766 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13767 ol_link_pthreads="-lpthread -Wl,-woff,85"
13768 ol_link_threads=posix
13773 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13774 if test "$ol_link_threads" = no ; then
13776 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13777 echo "configure:13778: checking for pthread link with -lpthread" >&5
13778 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13779 echo $ac_n "(cached) $ac_c" 1>&6
13784 LIBS="-lpthread $LIBS"
13786 if test "$cross_compiling" = yes; then
13787 cat > conftest.$ac_ext <<EOF
13788 #line 13789 "configure"
13789 #include "confdefs.h"
13790 /* pthread test headers */
13791 #include <pthread.h>
13793 #define NULL (void*)0
13796 static void *task(p)
13799 return (void *) (p == NULL);
13804 /* pthread test function */
13809 #ifdef HAVE_PTHREADS_FINAL
13810 /* Final pthreads */
13811 pthread_attr_t attr;
13813 status = pthread_attr_init(&attr);
13814 if( status ) return status;
13816 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13818 #if defined( PTHREAD_CREATE_JOINABLE )
13819 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13821 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13824 #ifdef PTHREAD_CREATE_DETACHED
13826 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13829 if( status ) return status;
13832 status = pthread_create( &t, &attr, task, NULL );
13833 if( status ) return status;
13835 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13837 /* give thread a chance to complete */
13838 /* it should remain joinable and hence detachable */
13841 status = pthread_detach( t );
13842 if( status ) return status;
13847 /* Draft 4 pthreads */
13848 status = pthread_create( &t, pthread_attr_default, task, NULL );
13849 if( status ) return status;
13852 /* give thread a chance to complete */
13853 /* it should remain joinable and hence detachable */
13856 status = pthread_detach( &t );
13857 if( status ) return status;
13861 #ifdef HAVE_LINUX_THREADS
13862 pthread_kill_other_threads_np();
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13871 ol_cv_pthread_lpthread=yes
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13876 ol_cv_pthread_lpthread=no
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883 /* pthread test headers */
13884 #include <pthread.h>
13886 #define NULL (void*)0
13889 static void *task(p)
13892 return (void *) (p == NULL);
13896 int main(argc, argv)
13901 /* pthread test function */
13906 #ifdef HAVE_PTHREADS_FINAL
13907 /* Final pthreads */
13908 pthread_attr_t attr;
13910 status = pthread_attr_init(&attr);
13911 if( status ) return status;
13913 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13915 #if defined( PTHREAD_CREATE_JOINABLE )
13916 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13918 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13921 #ifdef PTHREAD_CREATE_DETACHED
13923 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13926 if( status ) return status;
13929 status = pthread_create( &t, &attr, task, NULL );
13930 if( status ) return status;
13932 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13934 /* give thread a chance to complete */
13935 /* it should remain joinable and hence detachable */
13938 status = pthread_detach( t );
13939 if( status ) return status;
13944 /* Draft 4 pthreads */
13945 status = pthread_create( &t, pthread_attr_default, task, NULL );
13946 if( status ) return status;
13949 /* give thread a chance to complete */
13950 /* it should remain joinable and hence detachable */
13953 status = pthread_detach( &t );
13954 if( status ) return status;
13958 #ifdef HAVE_LINUX_THREADS
13959 pthread_kill_other_threads_np();
13967 if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13969 ol_cv_pthread_lpthread=yes
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13974 ol_cv_pthread_lpthread=no
13985 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13987 if test $ol_cv_pthread_lpthread = yes ; then
13988 ol_link_pthreads="-lpthread"
13989 ol_link_threads=posix
13993 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13994 if test "$ol_link_threads" = no ; then
13996 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13997 echo "configure:13998: checking for pthread link with -lc_r" >&5
13998 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
14006 if test "$cross_compiling" = yes; then
14007 cat > conftest.$ac_ext <<EOF
14008 #line 14009 "configure"
14009 #include "confdefs.h"
14010 /* pthread test headers */
14011 #include <pthread.h>
14013 #define NULL (void*)0
14016 static void *task(p)
14019 return (void *) (p == NULL);
14024 /* pthread test function */
14029 #ifdef HAVE_PTHREADS_FINAL
14030 /* Final pthreads */
14031 pthread_attr_t attr;
14033 status = pthread_attr_init(&attr);
14034 if( status ) return status;
14036 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14038 #if defined( PTHREAD_CREATE_JOINABLE )
14039 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14041 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14044 #ifdef PTHREAD_CREATE_DETACHED
14046 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14049 if( status ) return status;
14052 status = pthread_create( &t, &attr, task, NULL );
14053 if( status ) return status;
14055 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14057 /* give thread a chance to complete */
14058 /* it should remain joinable and hence detachable */
14061 status = pthread_detach( t );
14062 if( status ) return status;
14067 /* Draft 4 pthreads */
14068 status = pthread_create( &t, pthread_attr_default, task, NULL );
14069 if( status ) return status;
14072 /* give thread a chance to complete */
14073 /* it should remain joinable and hence detachable */
14076 status = pthread_detach( &t );
14077 if( status ) return status;
14081 #ifdef HAVE_LINUX_THREADS
14082 pthread_kill_other_threads_np();
14089 if { (eval echo configure:14090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14091 ol_cv_pthread_lc_r=yes
14093 echo "configure: failed program was:" >&5
14094 cat conftest.$ac_ext >&5
14096 ol_cv_pthread_lc_r=no
14100 cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103 /* pthread test headers */
14104 #include <pthread.h>
14106 #define NULL (void*)0
14109 static void *task(p)
14112 return (void *) (p == NULL);
14116 int main(argc, argv)
14121 /* pthread test function */
14126 #ifdef HAVE_PTHREADS_FINAL
14127 /* Final pthreads */
14128 pthread_attr_t attr;
14130 status = pthread_attr_init(&attr);
14131 if( status ) return status;
14133 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14135 #if defined( PTHREAD_CREATE_JOINABLE )
14136 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14138 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14141 #ifdef PTHREAD_CREATE_DETACHED
14143 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14146 if( status ) return status;
14149 status = pthread_create( &t, &attr, task, NULL );
14150 if( status ) return status;
14152 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14154 /* give thread a chance to complete */
14155 /* it should remain joinable and hence detachable */
14158 status = pthread_detach( t );
14159 if( status ) return status;
14164 /* Draft 4 pthreads */
14165 status = pthread_create( &t, pthread_attr_default, task, NULL );
14166 if( status ) return status;
14169 /* give thread a chance to complete */
14170 /* it should remain joinable and hence detachable */
14173 status = pthread_detach( &t );
14174 if( status ) return status;
14178 #ifdef HAVE_LINUX_THREADS
14179 pthread_kill_other_threads_np();
14187 if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14189 ol_cv_pthread_lc_r=yes
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14194 ol_cv_pthread_lc_r=no
14205 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14207 if test $ol_cv_pthread_lc_r = yes ; then
14208 ol_link_pthreads="-lc_r"
14209 ol_link_threads=posix
14214 # Pthread try link: -threads (ol_cv_pthread_threads)
14215 if test "$ol_link_threads" = no ; then
14217 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14218 echo "configure:14219: checking for pthread link with -threads" >&5
14219 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14220 echo $ac_n "(cached) $ac_c" 1>&6
14225 LIBS="-threads $LIBS"
14227 if test "$cross_compiling" = yes; then
14228 cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 /* pthread test headers */
14232 #include <pthread.h>
14234 #define NULL (void*)0
14237 static void *task(p)
14240 return (void *) (p == NULL);
14245 /* pthread test function */
14250 #ifdef HAVE_PTHREADS_FINAL
14251 /* Final pthreads */
14252 pthread_attr_t attr;
14254 status = pthread_attr_init(&attr);
14255 if( status ) return status;
14257 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14259 #if defined( PTHREAD_CREATE_JOINABLE )
14260 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14262 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14265 #ifdef PTHREAD_CREATE_DETACHED
14267 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14270 if( status ) return status;
14273 status = pthread_create( &t, &attr, task, NULL );
14274 if( status ) return status;
14276 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14278 /* give thread a chance to complete */
14279 /* it should remain joinable and hence detachable */
14282 status = pthread_detach( t );
14283 if( status ) return status;
14288 /* Draft 4 pthreads */
14289 status = pthread_create( &t, pthread_attr_default, task, NULL );
14290 if( status ) return status;
14293 /* give thread a chance to complete */
14294 /* it should remain joinable and hence detachable */
14297 status = pthread_detach( &t );
14298 if( status ) return status;
14302 #ifdef HAVE_LINUX_THREADS
14303 pthread_kill_other_threads_np();
14310 if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14312 ol_cv_pthread_threads=yes
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14317 ol_cv_pthread_threads=no
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 /* pthread test headers */
14325 #include <pthread.h>
14327 #define NULL (void*)0
14330 static void *task(p)
14333 return (void *) (p == NULL);
14337 int main(argc, argv)
14342 /* pthread test function */
14347 #ifdef HAVE_PTHREADS_FINAL
14348 /* Final pthreads */
14349 pthread_attr_t attr;
14351 status = pthread_attr_init(&attr);
14352 if( status ) return status;
14354 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14356 #if defined( PTHREAD_CREATE_JOINABLE )
14357 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14359 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14362 #ifdef PTHREAD_CREATE_DETACHED
14364 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14367 if( status ) return status;
14370 status = pthread_create( &t, &attr, task, NULL );
14371 if( status ) return status;
14373 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14375 /* give thread a chance to complete */
14376 /* it should remain joinable and hence detachable */
14379 status = pthread_detach( t );
14380 if( status ) return status;
14385 /* Draft 4 pthreads */
14386 status = pthread_create( &t, pthread_attr_default, task, NULL );
14387 if( status ) return status;
14390 /* give thread a chance to complete */
14391 /* it should remain joinable and hence detachable */
14394 status = pthread_detach( &t );
14395 if( status ) return status;
14399 #ifdef HAVE_LINUX_THREADS
14400 pthread_kill_other_threads_np();
14408 if { (eval echo configure:14409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14410 ol_cv_pthread_threads=yes
14412 echo "configure: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14415 ol_cv_pthread_threads=no
14426 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14428 if test $ol_cv_pthread_threads = yes ; then
14429 ol_link_pthreads="-threads"
14430 ol_link_threads=posix
14435 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14436 if test "$ol_link_threads" = no ; then
14437 # try -lpthreads -lmach -lexc -lc_r
14438 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14439 echo "configure:14440: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14440 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14441 echo $ac_n "(cached) $ac_c" 1>&6
14446 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14448 if test "$cross_compiling" = yes; then
14449 cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14452 /* pthread test headers */
14453 #include <pthread.h>
14455 #define NULL (void*)0
14458 static void *task(p)
14461 return (void *) (p == NULL);
14466 /* pthread test function */
14471 #ifdef HAVE_PTHREADS_FINAL
14472 /* Final pthreads */
14473 pthread_attr_t attr;
14475 status = pthread_attr_init(&attr);
14476 if( status ) return status;
14478 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14480 #if defined( PTHREAD_CREATE_JOINABLE )
14481 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14483 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14486 #ifdef PTHREAD_CREATE_DETACHED
14488 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14491 if( status ) return status;
14494 status = pthread_create( &t, &attr, task, NULL );
14495 if( status ) return status;
14497 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14499 /* give thread a chance to complete */
14500 /* it should remain joinable and hence detachable */
14503 status = pthread_detach( t );
14504 if( status ) return status;
14509 /* Draft 4 pthreads */
14510 status = pthread_create( &t, pthread_attr_default, task, NULL );
14511 if( status ) return status;
14514 /* give thread a chance to complete */
14515 /* it should remain joinable and hence detachable */
14518 status = pthread_detach( &t );
14519 if( status ) return status;
14523 #ifdef HAVE_LINUX_THREADS
14524 pthread_kill_other_threads_np();
14531 if { (eval echo configure:14532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14533 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14535 echo "configure: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14538 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14542 cat > conftest.$ac_ext <<EOF
14543 #line 14544 "configure"
14544 #include "confdefs.h"
14545 /* pthread test headers */
14546 #include <pthread.h>
14548 #define NULL (void*)0
14551 static void *task(p)
14554 return (void *) (p == NULL);
14558 int main(argc, argv)
14563 /* pthread test function */
14568 #ifdef HAVE_PTHREADS_FINAL
14569 /* Final pthreads */
14570 pthread_attr_t attr;
14572 status = pthread_attr_init(&attr);
14573 if( status ) return status;
14575 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14577 #if defined( PTHREAD_CREATE_JOINABLE )
14578 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14580 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14583 #ifdef PTHREAD_CREATE_DETACHED
14585 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14588 if( status ) return status;
14591 status = pthread_create( &t, &attr, task, NULL );
14592 if( status ) return status;
14594 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14596 /* give thread a chance to complete */
14597 /* it should remain joinable and hence detachable */
14600 status = pthread_detach( t );
14601 if( status ) return status;
14606 /* Draft 4 pthreads */
14607 status = pthread_create( &t, pthread_attr_default, task, NULL );
14608 if( status ) return status;
14611 /* give thread a chance to complete */
14612 /* it should remain joinable and hence detachable */
14615 status = pthread_detach( &t );
14616 if( status ) return status;
14620 #ifdef HAVE_LINUX_THREADS
14621 pthread_kill_other_threads_np();
14629 if { (eval echo configure:14630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14631 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14633 echo "configure: failed program was:" >&5
14634 cat conftest.$ac_ext >&5
14636 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14647 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14649 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14650 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14651 ol_link_threads=posix
14655 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14656 if test "$ol_link_threads" = no ; then
14657 # try -lpthreads -lmach -lexc
14658 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14659 echo "configure:14660: checking for pthread link with -lpthreads -lmach -lexc" >&5
14660 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14661 echo $ac_n "(cached) $ac_c" 1>&6
14666 LIBS="-lpthreads -lmach -lexc $LIBS"
14668 if test "$cross_compiling" = yes; then
14669 cat > conftest.$ac_ext <<EOF
14670 #line 14671 "configure"
14671 #include "confdefs.h"
14672 /* pthread test headers */
14673 #include <pthread.h>
14675 #define NULL (void*)0
14678 static void *task(p)
14681 return (void *) (p == NULL);
14686 /* pthread test function */
14691 #ifdef HAVE_PTHREADS_FINAL
14692 /* Final pthreads */
14693 pthread_attr_t attr;
14695 status = pthread_attr_init(&attr);
14696 if( status ) return status;
14698 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14700 #if defined( PTHREAD_CREATE_JOINABLE )
14701 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14703 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14706 #ifdef PTHREAD_CREATE_DETACHED
14708 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14711 if( status ) return status;
14714 status = pthread_create( &t, &attr, task, NULL );
14715 if( status ) return status;
14717 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14719 /* give thread a chance to complete */
14720 /* it should remain joinable and hence detachable */
14723 status = pthread_detach( t );
14724 if( status ) return status;
14729 /* Draft 4 pthreads */
14730 status = pthread_create( &t, pthread_attr_default, task, NULL );
14731 if( status ) return status;
14734 /* give thread a chance to complete */
14735 /* it should remain joinable and hence detachable */
14738 status = pthread_detach( &t );
14739 if( status ) return status;
14743 #ifdef HAVE_LINUX_THREADS
14744 pthread_kill_other_threads_np();
14751 if { (eval echo configure:14752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14753 ol_cv_pthread_lpthreads_lmach_lexc=yes
14755 echo "configure: failed program was:" >&5
14756 cat conftest.$ac_ext >&5
14758 ol_cv_pthread_lpthreads_lmach_lexc=no
14762 cat > conftest.$ac_ext <<EOF
14763 #line 14764 "configure"
14764 #include "confdefs.h"
14765 /* pthread test headers */
14766 #include <pthread.h>
14768 #define NULL (void*)0
14771 static void *task(p)
14774 return (void *) (p == NULL);
14778 int main(argc, argv)
14783 /* pthread test function */
14788 #ifdef HAVE_PTHREADS_FINAL
14789 /* Final pthreads */
14790 pthread_attr_t attr;
14792 status = pthread_attr_init(&attr);
14793 if( status ) return status;
14795 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14797 #if defined( PTHREAD_CREATE_JOINABLE )
14798 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14800 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14803 #ifdef PTHREAD_CREATE_DETACHED
14805 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14808 if( status ) return status;
14811 status = pthread_create( &t, &attr, task, NULL );
14812 if( status ) return status;
14814 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14816 /* give thread a chance to complete */
14817 /* it should remain joinable and hence detachable */
14820 status = pthread_detach( t );
14821 if( status ) return status;
14826 /* Draft 4 pthreads */
14827 status = pthread_create( &t, pthread_attr_default, task, NULL );
14828 if( status ) return status;
14831 /* give thread a chance to complete */
14832 /* it should remain joinable and hence detachable */
14835 status = pthread_detach( &t );
14836 if( status ) return status;
14840 #ifdef HAVE_LINUX_THREADS
14841 pthread_kill_other_threads_np();
14849 if { (eval echo configure:14850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14851 ol_cv_pthread_lpthreads_lmach_lexc=yes
14853 echo "configure: failed program was:" >&5
14854 cat conftest.$ac_ext >&5
14856 ol_cv_pthread_lpthreads_lmach_lexc=no
14867 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14869 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14870 ol_link_pthreads="-lpthreads -lmach -lexc"
14871 ol_link_threads=posix
14875 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14876 if test "$ol_link_threads" = no ; then
14877 # try -lpthreads -lexc
14878 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14879 echo "configure:14880: checking for pthread link with -lpthreads -lexc" >&5
14880 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14881 echo $ac_n "(cached) $ac_c" 1>&6
14886 LIBS="-lpthreads -lexc $LIBS"
14888 if test "$cross_compiling" = yes; then
14889 cat > conftest.$ac_ext <<EOF
14890 #line 14891 "configure"
14891 #include "confdefs.h"
14892 /* pthread test headers */
14893 #include <pthread.h>
14895 #define NULL (void*)0
14898 static void *task(p)
14901 return (void *) (p == NULL);
14906 /* pthread test function */
14911 #ifdef HAVE_PTHREADS_FINAL
14912 /* Final pthreads */
14913 pthread_attr_t attr;
14915 status = pthread_attr_init(&attr);
14916 if( status ) return status;
14918 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14920 #if defined( PTHREAD_CREATE_JOINABLE )
14921 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14923 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14926 #ifdef PTHREAD_CREATE_DETACHED
14928 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14931 if( status ) return status;
14934 status = pthread_create( &t, &attr, task, NULL );
14935 if( status ) return status;
14937 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14939 /* give thread a chance to complete */
14940 /* it should remain joinable and hence detachable */
14943 status = pthread_detach( t );
14944 if( status ) return status;
14949 /* Draft 4 pthreads */
14950 status = pthread_create( &t, pthread_attr_default, task, NULL );
14951 if( status ) return status;
14954 /* give thread a chance to complete */
14955 /* it should remain joinable and hence detachable */
14958 status = pthread_detach( &t );
14959 if( status ) return status;
14963 #ifdef HAVE_LINUX_THREADS
14964 pthread_kill_other_threads_np();
14971 if { (eval echo configure:14972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14973 ol_cv_pthread_lpthreads_lexc=yes
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14978 ol_cv_pthread_lpthreads_lexc=no
14982 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure"
14984 #include "confdefs.h"
14985 /* pthread test headers */
14986 #include <pthread.h>
14988 #define NULL (void*)0
14991 static void *task(p)
14994 return (void *) (p == NULL);
14998 int main(argc, argv)
15003 /* pthread test function */
15008 #ifdef HAVE_PTHREADS_FINAL
15009 /* Final pthreads */
15010 pthread_attr_t attr;
15012 status = pthread_attr_init(&attr);
15013 if( status ) return status;
15015 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15017 #if defined( PTHREAD_CREATE_JOINABLE )
15018 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15020 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15023 #ifdef PTHREAD_CREATE_DETACHED
15025 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15028 if( status ) return status;
15031 status = pthread_create( &t, &attr, task, NULL );
15032 if( status ) return status;
15034 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15036 /* give thread a chance to complete */
15037 /* it should remain joinable and hence detachable */
15040 status = pthread_detach( t );
15041 if( status ) return status;
15046 /* Draft 4 pthreads */
15047 status = pthread_create( &t, pthread_attr_default, task, NULL );
15048 if( status ) return status;
15051 /* give thread a chance to complete */
15052 /* it should remain joinable and hence detachable */
15055 status = pthread_detach( &t );
15056 if( status ) return status;
15060 #ifdef HAVE_LINUX_THREADS
15061 pthread_kill_other_threads_np();
15069 if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15071 ol_cv_pthread_lpthreads_lexc=yes
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15076 ol_cv_pthread_lpthreads_lexc=no
15087 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15089 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15090 ol_link_pthreads="-lpthreads -lexc"
15091 ol_link_threads=posix
15096 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15097 if test "$ol_link_threads" = no ; then
15099 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15100 echo "configure:15101: checking for pthread link with -lpthreads" >&5
15101 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15102 echo $ac_n "(cached) $ac_c" 1>&6
15107 LIBS="-lpthreads $LIBS"
15109 if test "$cross_compiling" = yes; then
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 /* pthread test headers */
15114 #include <pthread.h>
15116 #define NULL (void*)0
15119 static void *task(p)
15122 return (void *) (p == NULL);
15127 /* pthread test function */
15132 #ifdef HAVE_PTHREADS_FINAL
15133 /* Final pthreads */
15134 pthread_attr_t attr;
15136 status = pthread_attr_init(&attr);
15137 if( status ) return status;
15139 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15141 #if defined( PTHREAD_CREATE_JOINABLE )
15142 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15144 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15147 #ifdef PTHREAD_CREATE_DETACHED
15149 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15152 if( status ) return status;
15155 status = pthread_create( &t, &attr, task, NULL );
15156 if( status ) return status;
15158 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15160 /* give thread a chance to complete */
15161 /* it should remain joinable and hence detachable */
15164 status = pthread_detach( t );
15165 if( status ) return status;
15170 /* Draft 4 pthreads */
15171 status = pthread_create( &t, pthread_attr_default, task, NULL );
15172 if( status ) return status;
15175 /* give thread a chance to complete */
15176 /* it should remain joinable and hence detachable */
15179 status = pthread_detach( &t );
15180 if( status ) return status;
15184 #ifdef HAVE_LINUX_THREADS
15185 pthread_kill_other_threads_np();
15192 if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15194 ol_cv_pthread_lib_lpthreads=yes
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15199 ol_cv_pthread_lib_lpthreads=no
15203 cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 /* pthread test headers */
15207 #include <pthread.h>
15209 #define NULL (void*)0
15212 static void *task(p)
15215 return (void *) (p == NULL);
15219 int main(argc, argv)
15224 /* pthread test function */
15229 #ifdef HAVE_PTHREADS_FINAL
15230 /* Final pthreads */
15231 pthread_attr_t attr;
15233 status = pthread_attr_init(&attr);
15234 if( status ) return status;
15236 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15238 #if defined( PTHREAD_CREATE_JOINABLE )
15239 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15241 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15244 #ifdef PTHREAD_CREATE_DETACHED
15246 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15249 if( status ) return status;
15252 status = pthread_create( &t, &attr, task, NULL );
15253 if( status ) return status;
15255 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15257 /* give thread a chance to complete */
15258 /* it should remain joinable and hence detachable */
15261 status = pthread_detach( t );
15262 if( status ) return status;
15267 /* Draft 4 pthreads */
15268 status = pthread_create( &t, pthread_attr_default, task, NULL );
15269 if( status ) return status;
15272 /* give thread a chance to complete */
15273 /* it should remain joinable and hence detachable */
15276 status = pthread_detach( &t );
15277 if( status ) return status;
15281 #ifdef HAVE_LINUX_THREADS
15282 pthread_kill_other_threads_np();
15290 if { (eval echo configure:15291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15292 ol_cv_pthread_lib_lpthreads=yes
15294 echo "configure: failed program was:" >&5
15295 cat conftest.$ac_ext >&5
15297 ol_cv_pthread_lib_lpthreads=no
15308 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15310 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15311 ol_link_pthreads="-lpthreads"
15312 ol_link_threads=posix
15317 if test $ol_link_threads != no ; then
15318 cat >> confdefs.h <<\EOF
15319 #define HAVE_PTHREADS 1
15323 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15325 save_CPPFLAGS="$CPPFLAGS"
15327 LIBS="$LTHREAD_LIBS $LIBS"
15329 for ac_func in sched_yield pthread_yield
15331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15332 echo "configure:15333: checking for $ac_func" >&5
15333 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15334 echo $ac_n "(cached) $ac_c" 1>&6
15336 cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15339 /* System header to define __stub macros and hopefully few prototypes,
15340 which can conflict with char $ac_func(); below. */
15341 #include <assert.h>
15342 /* Override any gcc2 internal prototype to avoid an error. */
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15350 /* The GNU C library defines this for functions which it implements
15351 to always fail with ENOSYS. Some functions are actually named
15352 something starting with __ and the normal name is an alias. */
15353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15361 if { (eval echo configure:15362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15363 eval "ac_cv_func_$ac_func=yes"
15365 echo "configure: failed program was:" >&5
15366 cat conftest.$ac_ext >&5
15368 eval "ac_cv_func_$ac_func=no"
15373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15374 echo "$ac_t""yes" 1>&6
15375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15376 cat >> confdefs.h <<EOF
15377 #define $ac_tr_func 1
15381 echo "$ac_t""no" 1>&6
15386 if test $ac_cv_func_sched_yield = no -a \
15387 $ac_cv_func_pthread_yield = no ; then
15388 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15389 echo "configure:15390: checking for sched_yield in -lrt" >&5
15390 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15391 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15394 ac_save_LIBS="$LIBS"
15396 cat > conftest.$ac_ext <<EOF
15397 #line 15398 "configure"
15398 #include "confdefs.h"
15399 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15402 char sched_yield();
15408 if { (eval echo configure:15409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15410 eval "ac_cv_lib_$ac_lib_var=yes"
15412 echo "configure: failed program was:" >&5
15413 cat conftest.$ac_ext >&5
15415 eval "ac_cv_lib_$ac_lib_var=no"
15418 LIBS="$ac_save_LIBS"
15421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15422 echo "$ac_t""yes" 1>&6
15423 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15424 cat >> confdefs.h <<\EOF
15425 #define HAVE_SCHED_YIELD 1
15428 ac_cv_func_sched_yield=yes
15430 echo "$ac_t""no" 1>&6
15431 ac_cv_func_sched_yield=no
15435 if test $ac_cv_func_sched_yield = no -a \
15436 $ac_cv_func_pthread_yield = no ; then
15437 for ac_func in thr_yield
15439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15440 echo "configure:15441: checking for $ac_func" >&5
15441 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15442 echo $ac_n "(cached) $ac_c" 1>&6
15444 cat > conftest.$ac_ext <<EOF
15445 #line 15446 "configure"
15446 #include "confdefs.h"
15447 /* System header to define __stub macros and hopefully few prototypes,
15448 which can conflict with char $ac_func(); below. */
15449 #include <assert.h>
15450 /* Override any gcc2 internal prototype to avoid an error. */
15451 /* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15458 /* The GNU C library defines this for functions which it implements
15459 to always fail with ENOSYS. Some functions are actually named
15460 something starting with __ and the normal name is an alias. */
15461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15469 if { (eval echo configure:15470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15471 eval "ac_cv_func_$ac_func=yes"
15473 echo "configure: failed program was:" >&5
15474 cat conftest.$ac_ext >&5
15476 eval "ac_cv_func_$ac_func=no"
15481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15482 echo "$ac_t""yes" 1>&6
15483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15484 cat >> confdefs.h <<EOF
15485 #define $ac_tr_func 1
15489 echo "$ac_t""no" 1>&6
15494 if test $ac_cv_func_sched_yield = no -a \
15495 $ac_cv_func_pthread_yield = no -a \
15496 "$ac_cv_func_thr_yield" = no ; then
15497 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15500 for ac_func in pthread_kill pthread_rwlock_destroy
15502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15503 echo "configure:15504: checking for $ac_func" >&5
15504 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15507 cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char $ac_func(); below. */
15512 #include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15534 eval "ac_cv_func_$ac_func=yes"
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15539 eval "ac_cv_func_$ac_func=no"
15544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15547 cat >> confdefs.h <<EOF
15548 #define $ac_tr_func 1
15552 echo "$ac_t""no" 1>&6
15557 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15558 echo "configure:15559: checking for pthread_detach with <pthread.h>" >&5
15559 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15560 echo $ac_n "(cached) $ac_c" 1>&6
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15567 #include <pthread.h>
15569 #define NULL (void*)0
15573 pthread_detach(NULL);
15576 if { (eval echo configure:15577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15578 ol_cv_func_pthread_detach=yes
15580 echo "configure: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15583 ol_cv_func_pthread_detach=no
15589 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15591 if test $ol_cv_func_pthread_detach = no ; then
15592 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15595 cat >> confdefs.h <<\EOF
15596 #define HAVE_PTHREAD_DETACH 1
15601 pthread_setconcurrency \
15602 pthread_getconcurrency \
15603 thr_setconcurrency \
15604 thr_getconcurrency \
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15612 cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616 which can conflict with char $ac_func(); below. */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15626 /* The GNU C library defines this for functions which it implements
15627 to always fail with ENOSYS. Some functions are actually named
15628 something starting with __ and the normal name is an alias. */
15629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15637 if { (eval echo configure:15638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15639 eval "ac_cv_func_$ac_func=yes"
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15644 eval "ac_cv_func_$ac_func=no"
15649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15650 echo "$ac_t""yes" 1>&6
15651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15652 cat >> confdefs.h <<EOF
15653 #define $ac_tr_func 1
15657 echo "$ac_t""no" 1>&6
15663 for ac_func in pthread_kill_other_threads_np
15665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15666 echo "configure:15667: checking for $ac_func" >&5
15667 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15668 echo $ac_n "(cached) $ac_c" 1>&6
15670 cat > conftest.$ac_ext <<EOF
15671 #line 15672 "configure"
15672 #include "confdefs.h"
15673 /* System header to define __stub macros and hopefully few prototypes,
15674 which can conflict with char $ac_func(); below. */
15675 #include <assert.h>
15676 /* Override any gcc2 internal prototype to avoid an error. */
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15684 /* The GNU C library defines this for functions which it implements
15685 to always fail with ENOSYS. Some functions are actually named
15686 something starting with __ and the normal name is an alias. */
15687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15695 if { (eval echo configure:15696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15697 eval "ac_cv_func_$ac_func=yes"
15699 echo "configure: failed program was:" >&5
15700 cat conftest.$ac_ext >&5
15702 eval "ac_cv_func_$ac_func=no"
15707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15708 echo "$ac_t""yes" 1>&6
15709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15710 cat >> confdefs.h <<EOF
15711 #define $ac_tr_func 1
15715 echo "$ac_t""no" 1>&6
15719 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15720 echo "configure:15721: checking for LinuxThreads implementation" >&5
15721 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15722 echo $ac_n "(cached) $ac_c" 1>&6
15724 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15727 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15732 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15733 echo "configure:15734: checking for LinuxThreads consistency" >&5
15734 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15735 echo $ac_n "(cached) $ac_c" 1>&6
15738 if test $ol_cv_header_linux_threads = yes -a \
15739 $ol_cv_sys_linux_threads = yes; then
15740 ol_cv_linux_threads=yes
15741 elif test $ol_cv_header_linux_threads = no -a \
15742 $ol_cv_sys_linux_threads = no; then
15743 ol_cv_linux_threads=no
15745 ol_cv_linux_threads=error
15750 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15753 if test $ol_cv_linux_threads = error; then
15754 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15757 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15758 echo "configure:15759: checking if pthread_create() works" >&5
15759 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15760 echo $ac_n "(cached) $ac_c" 1>&6
15763 if test "$cross_compiling" = yes; then
15764 ol_cv_pthread_create_works=yes
15766 cat > conftest.$ac_ext <<EOF
15767 #line 15768 "configure"
15768 #include "confdefs.h"
15769 /* pthread test headers */
15770 #include <pthread.h>
15772 #define NULL (void*)0
15775 static void *task(p)
15778 return (void *) (p == NULL);
15782 int main(argc, argv)
15787 /* pthread test function */
15792 #ifdef HAVE_PTHREADS_FINAL
15793 /* Final pthreads */
15794 pthread_attr_t attr;
15796 status = pthread_attr_init(&attr);
15797 if( status ) return status;
15799 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15801 #if defined( PTHREAD_CREATE_JOINABLE )
15802 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15807 #ifdef PTHREAD_CREATE_DETACHED
15809 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15812 if( status ) return status;
15815 status = pthread_create( &t, &attr, task, NULL );
15816 if( status ) return status;
15818 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15820 /* give thread a chance to complete */
15821 /* it should remain joinable and hence detachable */
15824 status = pthread_detach( t );
15825 if( status ) return status;
15830 /* Draft 4 pthreads */
15831 status = pthread_create( &t, pthread_attr_default, task, NULL );
15832 if( status ) return status;
15835 /* give thread a chance to complete */
15836 /* it should remain joinable and hence detachable */
15839 status = pthread_detach( &t );
15840 if( status ) return status;
15844 #ifdef HAVE_LINUX_THREADS
15845 pthread_kill_other_threads_np();
15853 if { (eval echo configure:15854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15855 ol_cv_pthread_create_works=yes
15857 echo "configure: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15860 ol_cv_pthread_create_works=no
15867 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15869 if test $ol_cv_pthread_create_works = no ; then
15870 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15873 if test $ol_with_yielding_select = auto ; then
15874 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15875 echo "configure:15876: checking if select yields when using pthreads" >&5
15876 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15877 echo $ac_n "(cached) $ac_c" 1>&6
15880 if test "$cross_compiling" = yes; then
15881 ol_cv_pthread_select_yields=cross
15883 cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15887 #include <sys/types.h>
15888 #include <sys/time.h>
15889 #include <unistd.h>
15890 #include <pthread.h>
15892 #define NULL (void*) 0
15895 static int fildes[2];
15897 static void *task(p)
15909 FD_SET(fildes[0], &rfds);
15911 /* we're not interested in any fds */
15912 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15919 exit(0); /* if we exit here, the select blocked the whole process */
15922 int main(argc, argv)
15928 /* create a pipe to select */
15929 if(pipe(&fildes[0])) {
15934 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15935 (void) pthread_setconcurrency(2);
15937 #ifdef HAVE_THR_SETCONCURRENCY
15938 /* Set Solaris LWP concurrency to 2 */
15939 thr_setconcurrency(2);
15943 #if HAVE_PTHREADS_D4
15944 pthread_create(&t, pthread_attr_default, task, NULL);
15946 pthread_create(&t, NULL, task, NULL);
15949 #if HAVE_SCHED_YIELD
15950 sched_yield(); /* make sure task runs first */
15952 #ifdef HAVE_PTHREAD_YIELD
15953 pthread_yield(); /* make sure task runs first */
15960 if { (eval echo configure:15961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15962 ol_cv_pthread_select_yields=no
15964 echo "configure: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15967 ol_cv_pthread_select_yields=yes
15974 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15976 if test $ol_cv_pthread_select_yields = cross ; then
15977 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15980 if test $ol_cv_pthread_select_yields = yes ; then
15981 ol_with_yielding_select=yes
15985 CPPFLAGS="$save_CPPFLAGS"
15988 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15992 if test $ol_with_threads = posix ; then
15993 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15997 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15998 -o $ol_with_threads = mach ; then
16000 for ac_hdr in mach/cthreads.h cthreads.h
16002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16004 echo "configure:16005: checking for $ac_hdr" >&5
16005 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16006 echo $ac_n "(cached) $ac_c" 1>&6
16008 cat > conftest.$ac_ext <<EOF
16009 #line 16010 "configure"
16010 #include "confdefs.h"
16013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16014 { (eval echo configure:16015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16016 if test -z "$ac_err"; then
16018 eval "ac_cv_header_$ac_safe=yes"
16021 echo "configure: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16024 eval "ac_cv_header_$ac_safe=no"
16028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16029 echo "$ac_t""yes" 1>&6
16030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16031 cat >> confdefs.h <<EOF
16032 #define $ac_tr_hdr 1
16036 echo "$ac_t""no" 1>&6
16040 if test $ac_cv_header_mach_cthreads_h = yes ; then
16041 ol_with_threads=found
16043 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16044 echo "configure:16045: checking for cthread_fork" >&5
16045 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16046 echo $ac_n "(cached) $ac_c" 1>&6
16048 cat > conftest.$ac_ext <<EOF
16049 #line 16050 "configure"
16050 #include "confdefs.h"
16051 /* System header to define __stub macros and hopefully few prototypes,
16052 which can conflict with char cthread_fork(); below. */
16053 #include <assert.h>
16054 /* Override any gcc2 internal prototype to avoid an error. */
16055 /* We use char because int might match the return type of a gcc2
16056 builtin and then its argument prototype would still apply. */
16057 char cthread_fork();
16062 /* The GNU C library defines this for functions which it implements
16063 to always fail with ENOSYS. Some functions are actually named
16064 something starting with __ and the normal name is an alias. */
16065 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16073 if { (eval echo configure:16074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16075 eval "ac_cv_func_cthread_fork=yes"
16077 echo "configure: failed program was:" >&5
16078 cat conftest.$ac_ext >&5
16080 eval "ac_cv_func_cthread_fork=no"
16085 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16086 echo "$ac_t""yes" 1>&6
16087 ol_link_threads=yes
16089 echo "$ac_t""no" 1>&6
16093 if test $ol_link_threads = no ; then
16094 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16095 echo "configure:16096: checking for cthread_fork with -all_load" >&5
16096 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16097 echo $ac_n "(cached) $ac_c" 1>&6
16101 LIBS="-all_load $LIBS"
16102 cat > conftest.$ac_ext <<EOF
16103 #line 16104 "configure"
16104 #include "confdefs.h"
16105 #include <mach/cthreads.h>
16108 cthread_fork((void *)0, (void *)0);
16112 if { (eval echo configure:16113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16114 ol_cv_cthread_all_load=yes
16116 echo "configure: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16119 ol_cv_cthread_all_load=no
16126 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16128 if test $ol_cv_cthread_all_load = yes ; then
16129 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16130 ol_link_threads=mach
16131 ol_with_threads=found
16135 elif test $ac_cv_header_cthreads_h = yes ; then
16137 ol_with_threads=found
16140 LIBS="$LIBS -lthreads"
16141 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16142 echo "configure:16143: checking for cthread_fork" >&5
16143 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16144 echo $ac_n "(cached) $ac_c" 1>&6
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149 /* System header to define __stub macros and hopefully few prototypes,
16150 which can conflict with char cthread_fork(); below. */
16151 #include <assert.h>
16152 /* Override any gcc2 internal prototype to avoid an error. */
16153 /* We use char because int might match the return type of a gcc2
16154 builtin and then its argument prototype would still apply. */
16155 char cthread_fork();
16160 /* The GNU C library defines this for functions which it implements
16161 to always fail with ENOSYS. Some functions are actually named
16162 something starting with __ and the normal name is an alias. */
16163 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16171 if { (eval echo configure:16172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16173 eval "ac_cv_func_cthread_fork=yes"
16175 echo "configure: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16178 eval "ac_cv_func_cthread_fork=no"
16183 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16184 echo "$ac_t""yes" 1>&6
16185 ol_link_threads=yes
16187 echo "$ac_t""no" 1>&6
16192 if test $ol_link_threads = yes ; then
16193 LTHREAD_LIBS="-lthreads"
16194 ol_link_threads=mach
16195 ol_with_threads=found
16197 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16200 elif test $ol_with_threads = mach ; then
16201 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16204 if test $ol_link_threads = mach ; then
16205 cat >> confdefs.h <<\EOF
16206 #define HAVE_MACH_CTHREADS 1
16209 elif test $ol_with_threads = found ; then
16210 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16214 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16215 -o $ol_with_threads = pth ; then
16217 for ac_hdr in pth.h
16219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16221 echo "configure:16222: checking for $ac_hdr" >&5
16222 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16223 echo $ac_n "(cached) $ac_c" 1>&6
16225 cat > conftest.$ac_ext <<EOF
16226 #line 16227 "configure"
16227 #include "confdefs.h"
16230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16231 { (eval echo configure:16232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16233 if test -z "$ac_err"; then
16235 eval "ac_cv_header_$ac_safe=yes"
16238 echo "configure: failed program was:" >&5
16239 cat conftest.$ac_ext >&5
16241 eval "ac_cv_header_$ac_safe=no"
16245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16246 echo "$ac_t""yes" 1>&6
16247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16248 cat >> confdefs.h <<EOF
16249 #define $ac_tr_hdr 1
16253 echo "$ac_t""no" 1>&6
16258 if test $ac_cv_header_pth_h = yes ; then
16259 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16260 echo "configure:16261: checking for pth_version in -lpth" >&5
16261 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16263 echo $ac_n "(cached) $ac_c" 1>&6
16265 ac_save_LIBS="$LIBS"
16267 cat > conftest.$ac_ext <<EOF
16268 #line 16269 "configure"
16269 #include "confdefs.h"
16270 /* Override any gcc2 internal prototype to avoid an error. */
16271 /* We use char because int might match the return type of a gcc2
16272 builtin and then its argument prototype would still apply. */
16273 char pth_version();
16279 if { (eval echo configure:16280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16281 eval "ac_cv_lib_$ac_lib_var=yes"
16283 echo "configure: failed program was:" >&5
16284 cat conftest.$ac_ext >&5
16286 eval "ac_cv_lib_$ac_lib_var=no"
16289 LIBS="$ac_save_LIBS"
16292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16293 echo "$ac_t""yes" 1>&6
16296 echo "$ac_t""no" 1>&6
16301 if test $have_pth = yes ; then
16302 cat >> confdefs.h <<\EOF
16303 #define HAVE_GNU_PTH 1
16306 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16307 ol_link_threads=pth
16308 ol_with_threads=found
16310 if test $ol_with_yielding_select = auto ; then
16311 ol_with_yielding_select=yes
16317 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16318 -o $ol_with_threads = lwp ; then
16320 for ac_hdr in thread.h synch.h
16322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16324 echo "configure:16325: checking for $ac_hdr" >&5
16325 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16328 cat > conftest.$ac_ext <<EOF
16329 #line 16330 "configure"
16330 #include "confdefs.h"
16333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16334 { (eval echo configure:16335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16336 if test -z "$ac_err"; then
16338 eval "ac_cv_header_$ac_safe=yes"
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16344 eval "ac_cv_header_$ac_safe=no"
16348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16349 echo "$ac_t""yes" 1>&6
16350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16351 cat >> confdefs.h <<EOF
16352 #define $ac_tr_hdr 1
16356 echo "$ac_t""no" 1>&6
16360 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16361 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16362 echo "configure:16363: checking for thr_create in -lthread" >&5
16363 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16365 echo $ac_n "(cached) $ac_c" 1>&6
16367 ac_save_LIBS="$LIBS"
16368 LIBS="-lthread $LIBS"
16369 cat > conftest.$ac_ext <<EOF
16370 #line 16371 "configure"
16371 #include "confdefs.h"
16372 /* Override any gcc2 internal prototype to avoid an error. */
16373 /* We use char because int might match the return type of a gcc2
16374 builtin and then its argument prototype would still apply. */
16381 if { (eval echo configure:16382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16383 eval "ac_cv_lib_$ac_lib_var=yes"
16385 echo "configure: failed program was:" >&5
16386 cat conftest.$ac_ext >&5
16388 eval "ac_cv_lib_$ac_lib_var=no"
16391 LIBS="$ac_save_LIBS"
16394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16395 echo "$ac_t""yes" 1>&6
16398 echo "$ac_t""no" 1>&6
16403 if test $have_thr = yes ; then
16404 cat >> confdefs.h <<\EOF
16408 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16409 ol_link_threads=thr
16411 if test $ol_with_yielding_select = auto ; then
16412 ol_with_yielding_select=yes
16416 thr_setconcurrency \
16417 thr_getconcurrency \
16420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16421 echo "configure:16422: checking for $ac_func" >&5
16422 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16423 echo $ac_n "(cached) $ac_c" 1>&6
16425 cat > conftest.$ac_ext <<EOF
16426 #line 16427 "configure"
16427 #include "confdefs.h"
16428 /* System header to define __stub macros and hopefully few prototypes,
16429 which can conflict with char $ac_func(); below. */
16430 #include <assert.h>
16431 /* Override any gcc2 internal prototype to avoid an error. */
16432 /* We use char because int might match the return type of a gcc2
16433 builtin and then its argument prototype would still apply. */
16439 /* The GNU C library defines this for functions which it implements
16440 to always fail with ENOSYS. Some functions are actually named
16441 something starting with __ and the normal name is an alias. */
16442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450 if { (eval echo configure:16451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16452 eval "ac_cv_func_$ac_func=yes"
16454 echo "configure: failed program was:" >&5
16455 cat conftest.$ac_ext >&5
16457 eval "ac_cv_func_$ac_func=no"
16462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16463 echo "$ac_t""yes" 1>&6
16464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16465 cat >> confdefs.h <<EOF
16466 #define $ac_tr_func 1
16470 echo "$ac_t""no" 1>&6
16477 for ac_hdr in lwp/lwp.h
16479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16481 echo "configure:16482: checking for $ac_hdr" >&5
16482 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16483 echo $ac_n "(cached) $ac_c" 1>&6
16485 cat > conftest.$ac_ext <<EOF
16486 #line 16487 "configure"
16487 #include "confdefs.h"
16490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16491 { (eval echo configure:16492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16493 if test -z "$ac_err"; then
16495 eval "ac_cv_header_$ac_safe=yes"
16498 echo "configure: failed program was:" >&5
16499 cat conftest.$ac_ext >&5
16501 eval "ac_cv_header_$ac_safe=no"
16505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16506 echo "$ac_t""yes" 1>&6
16507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16508 cat >> confdefs.h <<EOF
16509 #define $ac_tr_hdr 1
16513 echo "$ac_t""no" 1>&6
16517 if test $ac_cv_header_lwp_lwp_h = yes ; then
16518 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16519 echo "configure:16520: checking for lwp_create in -llwp" >&5
16520 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16522 echo $ac_n "(cached) $ac_c" 1>&6
16524 ac_save_LIBS="$LIBS"
16526 cat > conftest.$ac_ext <<EOF
16527 #line 16528 "configure"
16528 #include "confdefs.h"
16529 /* Override any gcc2 internal prototype to avoid an error. */
16530 /* We use char because int might match the return type of a gcc2
16531 builtin and then its argument prototype would still apply. */
16538 if { (eval echo configure:16539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16540 eval "ac_cv_lib_$ac_lib_var=yes"
16542 echo "configure: failed program was:" >&5
16543 cat conftest.$ac_ext >&5
16545 eval "ac_cv_lib_$ac_lib_var=no"
16548 LIBS="$ac_save_LIBS"
16551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16552 echo "$ac_t""yes" 1>&6
16555 echo "$ac_t""no" 1>&6
16560 if test $have_lwp = yes ; then
16561 cat >> confdefs.h <<\EOF
16565 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16566 ol_link_threads=lwp
16568 if test $ol_with_yielding_select = auto ; then
16569 ol_with_yielding_select=no
16575 if test $ol_with_yielding_select = yes ; then
16576 cat >> confdefs.h <<\EOF
16577 #define HAVE_YIELDING_SELECT 1
16582 if test $ol_with_threads = manual ; then
16583 ol_link_threads=yes
16585 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16587 for ac_hdr in pthread.h sched.h
16589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16591 echo "configure:16592: checking for $ac_hdr" >&5
16592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
16595 cat > conftest.$ac_ext <<EOF
16596 #line 16597 "configure"
16597 #include "confdefs.h"
16600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16601 { (eval echo configure:16602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16603 if test -z "$ac_err"; then
16605 eval "ac_cv_header_$ac_safe=yes"
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16611 eval "ac_cv_header_$ac_safe=no"
16615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16616 echo "$ac_t""yes" 1>&6
16617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16618 cat >> confdefs.h <<EOF
16619 #define $ac_tr_hdr 1
16623 echo "$ac_t""no" 1>&6
16627 for ac_func in sched_yield pthread_yield
16629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16630 echo "configure:16631: checking for $ac_func" >&5
16631 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16632 echo $ac_n "(cached) $ac_c" 1>&6
16634 cat > conftest.$ac_ext <<EOF
16635 #line 16636 "configure"
16636 #include "confdefs.h"
16637 /* System header to define __stub macros and hopefully few prototypes,
16638 which can conflict with char $ac_func(); below. */
16639 #include <assert.h>
16640 /* Override any gcc2 internal prototype to avoid an error. */
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16648 /* The GNU C library defines this for functions which it implements
16649 to always fail with ENOSYS. Some functions are actually named
16650 something starting with __ and the normal name is an alias. */
16651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16659 if { (eval echo configure:16660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16661 eval "ac_cv_func_$ac_func=yes"
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16666 eval "ac_cv_func_$ac_func=no"
16671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16672 echo "$ac_t""yes" 1>&6
16673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16674 cat >> confdefs.h <<EOF
16675 #define $ac_tr_func 1
16679 echo "$ac_t""no" 1>&6
16684 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16685 echo "configure:16686: checking for LinuxThreads pthread.h" >&5
16686 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16687 echo $ac_n "(cached) $ac_c" 1>&6
16689 cat > conftest.$ac_ext <<EOF
16690 #line 16691 "configure"
16691 #include "confdefs.h"
16692 #include <pthread.h>
16694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16695 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16697 ol_cv_header_linux_threads=yes
16700 ol_cv_header_linux_threads=no
16707 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16708 if test $ol_cv_header_linux_threads = yes; then
16709 cat >> confdefs.h <<\EOF
16710 #define HAVE_LINUX_THREADS 1
16716 for ac_hdr in mach/cthreads.h
16718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16720 echo "configure:16721: checking for $ac_hdr" >&5
16721 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16722 echo $ac_n "(cached) $ac_c" 1>&6
16724 cat > conftest.$ac_ext <<EOF
16725 #line 16726 "configure"
16726 #include "confdefs.h"
16729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16730 { (eval echo configure:16731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16732 if test -z "$ac_err"; then
16734 eval "ac_cv_header_$ac_safe=yes"
16737 echo "configure: failed program was:" >&5
16738 cat conftest.$ac_ext >&5
16740 eval "ac_cv_header_$ac_safe=no"
16744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16745 echo "$ac_t""yes" 1>&6
16746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16747 cat >> confdefs.h <<EOF
16748 #define $ac_tr_hdr 1
16752 echo "$ac_t""no" 1>&6
16756 for ac_hdr in lwp/lwp.h
16758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16760 echo "configure:16761: checking for $ac_hdr" >&5
16761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16764 cat > conftest.$ac_ext <<EOF
16765 #line 16766 "configure"
16766 #include "confdefs.h"
16769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16770 { (eval echo configure:16771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16772 if test -z "$ac_err"; then
16774 eval "ac_cv_header_$ac_safe=yes"
16777 echo "configure: failed program was:" >&5
16778 cat conftest.$ac_ext >&5
16780 eval "ac_cv_header_$ac_safe=no"
16784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16785 echo "$ac_t""yes" 1>&6
16786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16787 cat >> confdefs.h <<EOF
16788 #define $ac_tr_hdr 1
16792 echo "$ac_t""no" 1>&6
16796 for ac_hdr in thread.h synch.h
16798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16800 echo "configure:16801: checking for $ac_hdr" >&5
16801 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16802 echo $ac_n "(cached) $ac_c" 1>&6
16804 cat > conftest.$ac_ext <<EOF
16805 #line 16806 "configure"
16806 #include "confdefs.h"
16809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16810 { (eval echo configure:16811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16812 if test -z "$ac_err"; then
16814 eval "ac_cv_header_$ac_safe=yes"
16817 echo "configure: failed program was:" >&5
16818 cat conftest.$ac_ext >&5
16820 eval "ac_cv_header_$ac_safe=no"
16824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16827 cat >> confdefs.h <<EOF
16828 #define $ac_tr_hdr 1
16832 echo "$ac_t""no" 1>&6
16838 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16839 cat >> confdefs.h <<\EOF
16840 #define REENTRANT 1
16843 cat >> confdefs.h <<\EOF
16844 #define _REENTRANT 1
16847 cat >> confdefs.h <<\EOF
16848 #define THREAD_SAFE 1
16851 cat >> confdefs.h <<\EOF
16852 #define _THREAD_SAFE 1
16855 cat >> confdefs.h <<\EOF
16856 #define THREADSAFE 1
16859 cat >> confdefs.h <<\EOF
16860 #define _THREADSAFE 1
16863 cat >> confdefs.h <<\EOF
16864 #define _SGI_MP_SOURCE 1
16868 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16869 echo "configure:16870: checking for thread specific errno" >&5
16870 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16871 echo $ac_n "(cached) $ac_c" 1>&6
16874 cat > conftest.$ac_ext <<EOF
16875 #line 16876 "configure"
16876 #include "confdefs.h"
16882 if { (eval echo configure:16883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 ol_cv_errno_thread_specific=yes
16886 echo "configure: failed program was:" >&5
16887 cat conftest.$ac_ext >&5
16889 ol_cv_errno_thread_specific=no
16895 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16897 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16898 echo "configure:16899: checking for thread specific h_errno" >&5
16899 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16900 echo $ac_n "(cached) $ac_c" 1>&6
16903 cat > conftest.$ac_ext <<EOF
16904 #line 16905 "configure"
16905 #include "confdefs.h"
16911 if { (eval echo configure:16912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16913 ol_cv_h_errno_thread_specific=yes
16915 echo "configure: failed program was:" >&5
16916 cat conftest.$ac_ext >&5
16918 ol_cv_h_errno_thread_specific=no
16924 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16926 if test $ol_cv_errno_thread_specific != yes \
16927 -o $ol_cv_h_errno_thread_specific != yes ; then
16928 LIBS="$LTHREAD_LIBS $LIBS"
16934 if test $ol_link_threads = no ; then
16935 if test $ol_with_threads = yes ; then
16936 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16939 if test $ol_with_threads = auto ; then
16940 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16944 cat >> confdefs.h <<\EOF
16945 #define NO_THREADS 1
16951 if test $ol_link_threads != no ; then
16952 cat >> confdefs.h <<\EOF
16953 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16960 if test $ol_with_ldbm_api = auto \
16961 -o $ol_with_ldbm_api = berkeley \
16962 -o $ol_with_ldbm_api = bcompat ; then
16964 if test $ol_with_ldbm_api = bcompat; then \
16965 for ac_hdr in db_185.h db.h
16967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16969 echo "configure:16970: checking for $ac_hdr" >&5
16970 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
16973 cat > conftest.$ac_ext <<EOF
16974 #line 16975 "configure"
16975 #include "confdefs.h"
16978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16979 { (eval echo configure:16980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16981 if test -z "$ac_err"; then
16983 eval "ac_cv_header_$ac_safe=yes"
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16989 eval "ac_cv_header_$ac_safe=no"
16993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16994 echo "$ac_t""yes" 1>&6
16995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16996 cat >> confdefs.h <<EOF
16997 #define $ac_tr_hdr 1
17001 echo "$ac_t""no" 1>&6
17005 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17006 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17007 echo "configure:17008: checking if Berkeley DB header compatibility" >&5
17008 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17009 echo $ac_n "(cached) $ac_c" 1>&6
17012 cat > conftest.$ac_ext <<EOF
17013 #line 17014 "configure"
17014 #include "confdefs.h"
17017 # include <db_185.h>
17022 /* this check could be improved */
17023 #ifndef DB_VERSION_MAJOR
17024 # define DB_VERSION_MAJOR 1
17027 #if DB_VERSION_MAJOR == 1
17032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17033 egrep "__db_version_1" >/dev/null 2>&1; then
17035 ol_cv_header_db1=yes
17038 ol_cv_header_db1=no
17044 echo "$ac_t""$ol_cv_header_db1" 1>&6
17046 if test $ol_cv_header_db1 = yes ; then
17048 if test $ol_cv_lib_db = no ; then
17049 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17050 echo "configure:17051: checking for Berkeley DB link (default)" >&5
17051 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17052 echo $ac_n "(cached) $ac_c" 1>&6
17057 LIBS="$ol_DB_LIB $LIBS"
17059 cat > conftest.$ac_ext <<EOF
17060 #line 17061 "configure"
17061 #include "confdefs.h"
17063 #ifdef HAVE_DB_185_H
17064 # include <db_185.h>
17069 #ifndef DB_VERSION_MAJOR
17070 # define DB_VERSION_MAJOR 1
17074 #define NULL ((void*)0)
17079 #if DB_VERSION_MAJOR > 1
17082 int major, minor, patch;
17084 version = db_version( &major, &minor, &patch );
17086 if( major != DB_VERSION_MAJOR ||
17087 minor < DB_VERSION_MINOR )
17089 printf("Berkeley DB version mismatch\n"
17090 "\texpected: %s\n\tgot: %s\n",
17091 DB_VERSION_STRING, version);
17097 #if DB_VERSION_MAJOR > 2
17098 db_env_create( NULL, 0 );
17099 #elif DB_VERSION_MAJOR > 1
17100 db_appexit( NULL );
17102 (void) dbopen( NULL, 0, 0, 0, NULL);
17107 if { (eval echo configure:17108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17111 echo "configure: failed program was:" >&5
17112 cat conftest.$ac_ext >&5
17122 echo "$ac_t""$ol_cv_db_none" 1>&6
17124 if test $ol_cv_db_none = yes ; then
17129 if test $ol_cv_lib_db = no ; then
17130 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17131 echo "configure:17132: checking for Berkeley DB link (-ldb4)" >&5
17132 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17133 echo $ac_n "(cached) $ac_c" 1>&6
17138 LIBS="$ol_DB_LIB $LIBS"
17140 cat > conftest.$ac_ext <<EOF
17141 #line 17142 "configure"
17142 #include "confdefs.h"
17144 #ifdef HAVE_DB_185_H
17145 # include <db_185.h>
17150 #ifndef DB_VERSION_MAJOR
17151 # define DB_VERSION_MAJOR 1
17155 #define NULL ((void*)0)
17160 #if DB_VERSION_MAJOR > 1
17163 int major, minor, patch;
17165 version = db_version( &major, &minor, &patch );
17167 if( major != DB_VERSION_MAJOR ||
17168 minor < DB_VERSION_MINOR )
17170 printf("Berkeley DB version mismatch\n"
17171 "\texpected: %s\n\tgot: %s\n",
17172 DB_VERSION_STRING, version);
17178 #if DB_VERSION_MAJOR > 2
17179 db_env_create( NULL, 0 );
17180 #elif DB_VERSION_MAJOR > 1
17181 db_appexit( NULL );
17183 (void) dbopen( NULL, 0, 0, 0, NULL);
17188 if { (eval echo configure:17189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17192 echo "configure: failed program was:" >&5
17193 cat conftest.$ac_ext >&5
17203 echo "$ac_t""$ol_cv_db_db4" 1>&6
17205 if test $ol_cv_db_db4 = yes ; then
17210 if test $ol_cv_lib_db = no ; then
17211 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17212 echo "configure:17213: checking for Berkeley DB link (-ldb-4)" >&5
17213 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17214 echo $ac_n "(cached) $ac_c" 1>&6
17219 LIBS="$ol_DB_LIB $LIBS"
17221 cat > conftest.$ac_ext <<EOF
17222 #line 17223 "configure"
17223 #include "confdefs.h"
17225 #ifdef HAVE_DB_185_H
17226 # include <db_185.h>
17231 #ifndef DB_VERSION_MAJOR
17232 # define DB_VERSION_MAJOR 1
17236 #define NULL ((void*)0)
17241 #if DB_VERSION_MAJOR > 1
17244 int major, minor, patch;
17246 version = db_version( &major, &minor, &patch );
17248 if( major != DB_VERSION_MAJOR ||
17249 minor < DB_VERSION_MINOR )
17251 printf("Berkeley DB version mismatch\n"
17252 "\texpected: %s\n\tgot: %s\n",
17253 DB_VERSION_STRING, version);
17259 #if DB_VERSION_MAJOR > 2
17260 db_env_create( NULL, 0 );
17261 #elif DB_VERSION_MAJOR > 1
17262 db_appexit( NULL );
17264 (void) dbopen( NULL, 0, 0, 0, NULL);
17269 if { (eval echo configure:17270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17273 echo "configure: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17284 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17286 if test $ol_cv_db_db_4 = yes ; then
17287 ol_cv_lib_db=-ldb-4
17291 if test $ol_cv_lib_db = no ; then
17292 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17293 echo "configure:17294: checking for Berkeley DB link (-ldb)" >&5
17294 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17295 echo $ac_n "(cached) $ac_c" 1>&6
17300 LIBS="$ol_DB_LIB $LIBS"
17302 cat > conftest.$ac_ext <<EOF
17303 #line 17304 "configure"
17304 #include "confdefs.h"
17306 #ifdef HAVE_DB_185_H
17307 # include <db_185.h>
17312 #ifndef DB_VERSION_MAJOR
17313 # define DB_VERSION_MAJOR 1
17317 #define NULL ((void*)0)
17322 #if DB_VERSION_MAJOR > 1
17325 int major, minor, patch;
17327 version = db_version( &major, &minor, &patch );
17329 if( major != DB_VERSION_MAJOR ||
17330 minor < DB_VERSION_MINOR )
17332 printf("Berkeley DB version mismatch\n"
17333 "\texpected: %s\n\tgot: %s\n",
17334 DB_VERSION_STRING, version);
17340 #if DB_VERSION_MAJOR > 2
17341 db_env_create( NULL, 0 );
17342 #elif DB_VERSION_MAJOR > 1
17343 db_appexit( NULL );
17345 (void) dbopen( NULL, 0, 0, 0, NULL);
17350 if { (eval echo configure:17351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17354 echo "configure: failed program was:" >&5
17355 cat conftest.$ac_ext >&5
17365 echo "$ac_t""$ol_cv_db_db" 1>&6
17367 if test $ol_cv_db_db = yes ; then
17372 if test $ol_cv_lib_db = no ; then
17373 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17374 echo "configure:17375: checking for Berkeley DB link (-ldb3)" >&5
17375 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17376 echo $ac_n "(cached) $ac_c" 1>&6
17381 LIBS="$ol_DB_LIB $LIBS"
17383 cat > conftest.$ac_ext <<EOF
17384 #line 17385 "configure"
17385 #include "confdefs.h"
17387 #ifdef HAVE_DB_185_H
17388 # include <db_185.h>
17393 #ifndef DB_VERSION_MAJOR
17394 # define DB_VERSION_MAJOR 1
17398 #define NULL ((void*)0)
17403 #if DB_VERSION_MAJOR > 1
17406 int major, minor, patch;
17408 version = db_version( &major, &minor, &patch );
17410 if( major != DB_VERSION_MAJOR ||
17411 minor < DB_VERSION_MINOR )
17413 printf("Berkeley DB version mismatch\n"
17414 "\texpected: %s\n\tgot: %s\n",
17415 DB_VERSION_STRING, version);
17421 #if DB_VERSION_MAJOR > 2
17422 db_env_create( NULL, 0 );
17423 #elif DB_VERSION_MAJOR > 1
17424 db_appexit( NULL );
17426 (void) dbopen( NULL, 0, 0, 0, NULL);
17431 if { (eval echo configure:17432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17435 echo "configure: failed program was:" >&5
17436 cat conftest.$ac_ext >&5
17446 echo "$ac_t""$ol_cv_db_db3" 1>&6
17448 if test $ol_cv_db_db3 = yes ; then
17453 if test $ol_cv_lib_db = no ; then
17454 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17455 echo "configure:17456: checking for Berkeley DB link (-ldb-3)" >&5
17456 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17457 echo $ac_n "(cached) $ac_c" 1>&6
17462 LIBS="$ol_DB_LIB $LIBS"
17464 cat > conftest.$ac_ext <<EOF
17465 #line 17466 "configure"
17466 #include "confdefs.h"
17468 #ifdef HAVE_DB_185_H
17469 # include <db_185.h>
17474 #ifndef DB_VERSION_MAJOR
17475 # define DB_VERSION_MAJOR 1
17479 #define NULL ((void*)0)
17484 #if DB_VERSION_MAJOR > 1
17487 int major, minor, patch;
17489 version = db_version( &major, &minor, &patch );
17491 if( major != DB_VERSION_MAJOR ||
17492 minor < DB_VERSION_MINOR )
17494 printf("Berkeley DB version mismatch\n"
17495 "\texpected: %s\n\tgot: %s\n",
17496 DB_VERSION_STRING, version);
17502 #if DB_VERSION_MAJOR > 2
17503 db_env_create( NULL, 0 );
17504 #elif DB_VERSION_MAJOR > 1
17505 db_appexit( NULL );
17507 (void) dbopen( NULL, 0, 0, 0, NULL);
17512 if { (eval echo configure:17513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17516 echo "configure: failed program was:" >&5
17517 cat conftest.$ac_ext >&5
17527 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17529 if test $ol_cv_db_db_3 = yes ; then
17530 ol_cv_lib_db=-ldb-3
17534 if test $ol_cv_lib_db = no ; then
17535 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17536 echo "configure:17537: checking for Berkeley DB link (-ldb2)" >&5
17537 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17538 echo $ac_n "(cached) $ac_c" 1>&6
17543 LIBS="$ol_DB_LIB $LIBS"
17545 cat > conftest.$ac_ext <<EOF
17546 #line 17547 "configure"
17547 #include "confdefs.h"
17549 #ifdef HAVE_DB_185_H
17550 # include <db_185.h>
17555 #ifndef DB_VERSION_MAJOR
17556 # define DB_VERSION_MAJOR 1
17560 #define NULL ((void*)0)
17565 #if DB_VERSION_MAJOR > 1
17568 int major, minor, patch;
17570 version = db_version( &major, &minor, &patch );
17572 if( major != DB_VERSION_MAJOR ||
17573 minor < DB_VERSION_MINOR )
17575 printf("Berkeley DB version mismatch\n"
17576 "\texpected: %s\n\tgot: %s\n",
17577 DB_VERSION_STRING, version);
17583 #if DB_VERSION_MAJOR > 2
17584 db_env_create( NULL, 0 );
17585 #elif DB_VERSION_MAJOR > 1
17586 db_appexit( NULL );
17588 (void) dbopen( NULL, 0, 0, 0, NULL);
17593 if { (eval echo configure:17594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17597 echo "configure: failed program was:" >&5
17598 cat conftest.$ac_ext >&5
17608 echo "$ac_t""$ol_cv_db_db2" 1>&6
17610 if test $ol_cv_db_db2 = yes ; then
17615 if test $ol_cv_lib_db = no ; then
17616 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17617 echo "configure:17618: checking for Berkeley DB link (-ldb-2)" >&5
17618 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17619 echo $ac_n "(cached) $ac_c" 1>&6
17624 LIBS="$ol_DB_LIB $LIBS"
17626 cat > conftest.$ac_ext <<EOF
17627 #line 17628 "configure"
17628 #include "confdefs.h"
17630 #ifdef HAVE_DB_185_H
17631 # include <db_185.h>
17636 #ifndef DB_VERSION_MAJOR
17637 # define DB_VERSION_MAJOR 1
17641 #define NULL ((void*)0)
17646 #if DB_VERSION_MAJOR > 1
17649 int major, minor, patch;
17651 version = db_version( &major, &minor, &patch );
17653 if( major != DB_VERSION_MAJOR ||
17654 minor < DB_VERSION_MINOR )
17656 printf("Berkeley DB version mismatch\n"
17657 "\texpected: %s\n\tgot: %s\n",
17658 DB_VERSION_STRING, version);
17664 #if DB_VERSION_MAJOR > 2
17665 db_env_create( NULL, 0 );
17666 #elif DB_VERSION_MAJOR > 1
17667 db_appexit( NULL );
17669 (void) dbopen( NULL, 0, 0, 0, NULL);
17674 if { (eval echo configure:17675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17678 echo "configure: failed program was:" >&5
17679 cat conftest.$ac_ext >&5
17689 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17691 if test $ol_cv_db_db_2 = yes ; then
17692 ol_cv_lib_db=-ldb-2
17696 if test $ol_cv_lib_db = no ; then
17697 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17698 echo "configure:17699: checking for Berkeley DB link (-ldb1)" >&5
17699 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17700 echo $ac_n "(cached) $ac_c" 1>&6
17705 LIBS="$ol_DB_LIB $LIBS"
17707 cat > conftest.$ac_ext <<EOF
17708 #line 17709 "configure"
17709 #include "confdefs.h"
17711 #ifdef HAVE_DB_185_H
17712 # include <db_185.h>
17717 #ifndef DB_VERSION_MAJOR
17718 # define DB_VERSION_MAJOR 1
17722 #define NULL ((void*)0)
17727 #if DB_VERSION_MAJOR > 1
17730 int major, minor, patch;
17732 version = db_version( &major, &minor, &patch );
17734 if( major != DB_VERSION_MAJOR ||
17735 minor < DB_VERSION_MINOR )
17737 printf("Berkeley DB version mismatch\n"
17738 "\texpected: %s\n\tgot: %s\n",
17739 DB_VERSION_STRING, version);
17745 #if DB_VERSION_MAJOR > 2
17746 db_env_create( NULL, 0 );
17747 #elif DB_VERSION_MAJOR > 1
17748 db_appexit( NULL );
17750 (void) dbopen( NULL, 0, 0, 0, NULL);
17755 if { (eval echo configure:17756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17759 echo "configure: failed program was:" >&5
17760 cat conftest.$ac_ext >&5
17770 echo "$ac_t""$ol_cv_db_db1" 1>&6
17772 if test $ol_cv_db_db1 = yes ; then
17777 if test $ol_cv_lib_db = no ; then
17778 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17779 echo "configure:17780: checking for Berkeley DB link (-ldb-1)" >&5
17780 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17781 echo $ac_n "(cached) $ac_c" 1>&6
17786 LIBS="$ol_DB_LIB $LIBS"
17788 cat > conftest.$ac_ext <<EOF
17789 #line 17790 "configure"
17790 #include "confdefs.h"
17792 #ifdef HAVE_DB_185_H
17793 # include <db_185.h>
17798 #ifndef DB_VERSION_MAJOR
17799 # define DB_VERSION_MAJOR 1
17803 #define NULL ((void*)0)
17808 #if DB_VERSION_MAJOR > 1
17811 int major, minor, patch;
17813 version = db_version( &major, &minor, &patch );
17815 if( major != DB_VERSION_MAJOR ||
17816 minor < DB_VERSION_MINOR )
17818 printf("Berkeley DB version mismatch\n"
17819 "\texpected: %s\n\tgot: %s\n",
17820 DB_VERSION_STRING, version);
17826 #if DB_VERSION_MAJOR > 2
17827 db_env_create( NULL, 0 );
17828 #elif DB_VERSION_MAJOR > 1
17829 db_appexit( NULL );
17831 (void) dbopen( NULL, 0, 0, 0, NULL);
17836 if { (eval echo configure:17837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17840 echo "configure: failed program was:" >&5
17841 cat conftest.$ac_ext >&5
17851 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17853 if test $ol_cv_db_db_1 = yes ; then
17854 ol_cv_lib_db=-ldb-1
17859 if test "$ol_cv_lib_db" != no ; then
17860 ol_cv_berkeley_db=yes
17866 ol_cv_berkeley_db=no
17869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17871 echo "configure:17872: checking for $ac_hdr" >&5
17872 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17873 echo $ac_n "(cached) $ac_c" 1>&6
17875 cat > conftest.$ac_ext <<EOF
17876 #line 17877 "configure"
17877 #include "confdefs.h"
17880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17881 { (eval echo configure:17882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17883 if test -z "$ac_err"; then
17885 eval "ac_cv_header_$ac_safe=yes"
17888 echo "configure: failed program was:" >&5
17889 cat conftest.$ac_ext >&5
17891 eval "ac_cv_header_$ac_safe=no"
17895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17896 echo "$ac_t""yes" 1>&6
17897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17898 cat >> confdefs.h <<EOF
17899 #define $ac_tr_hdr 1
17903 echo "$ac_t""no" 1>&6
17907 if test $ac_cv_header_db_h = yes; then
17909 if test $ol_cv_lib_db = no ; then
17910 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17911 echo "configure:17912: checking for Berkeley DB link (default)" >&5
17912 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17913 echo $ac_n "(cached) $ac_c" 1>&6
17918 LIBS="$ol_DB_LIB $LIBS"
17920 cat > conftest.$ac_ext <<EOF
17921 #line 17922 "configure"
17922 #include "confdefs.h"
17924 #ifdef HAVE_DB_185_H
17925 # include <db_185.h>
17930 #ifndef DB_VERSION_MAJOR
17931 # define DB_VERSION_MAJOR 1
17935 #define NULL ((void*)0)
17940 #if DB_VERSION_MAJOR > 1
17943 int major, minor, patch;
17945 version = db_version( &major, &minor, &patch );
17947 if( major != DB_VERSION_MAJOR ||
17948 minor < DB_VERSION_MINOR )
17950 printf("Berkeley DB version mismatch\n"
17951 "\texpected: %s\n\tgot: %s\n",
17952 DB_VERSION_STRING, version);
17958 #if DB_VERSION_MAJOR > 2
17959 db_env_create( NULL, 0 );
17960 #elif DB_VERSION_MAJOR > 1
17961 db_appexit( NULL );
17963 (void) dbopen( NULL, 0, 0, 0, NULL);
17968 if { (eval echo configure:17969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17972 echo "configure: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17983 echo "$ac_t""$ol_cv_db_none" 1>&6
17985 if test $ol_cv_db_none = yes ; then
17990 if test $ol_cv_lib_db = no ; then
17991 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17992 echo "configure:17993: checking for Berkeley DB link (-ldb4)" >&5
17993 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17994 echo $ac_n "(cached) $ac_c" 1>&6
17999 LIBS="$ol_DB_LIB $LIBS"
18001 cat > conftest.$ac_ext <<EOF
18002 #line 18003 "configure"
18003 #include "confdefs.h"
18005 #ifdef HAVE_DB_185_H
18006 # include <db_185.h>
18011 #ifndef DB_VERSION_MAJOR
18012 # define DB_VERSION_MAJOR 1
18016 #define NULL ((void*)0)
18021 #if DB_VERSION_MAJOR > 1
18024 int major, minor, patch;
18026 version = db_version( &major, &minor, &patch );
18028 if( major != DB_VERSION_MAJOR ||
18029 minor < DB_VERSION_MINOR )
18031 printf("Berkeley DB version mismatch\n"
18032 "\texpected: %s\n\tgot: %s\n",
18033 DB_VERSION_STRING, version);
18039 #if DB_VERSION_MAJOR > 2
18040 db_env_create( NULL, 0 );
18041 #elif DB_VERSION_MAJOR > 1
18042 db_appexit( NULL );
18044 (void) dbopen( NULL, 0, 0, 0, NULL);
18049 if { (eval echo configure:18050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18053 echo "configure: failed program was:" >&5
18054 cat conftest.$ac_ext >&5
18064 echo "$ac_t""$ol_cv_db_db4" 1>&6
18066 if test $ol_cv_db_db4 = yes ; then
18071 if test $ol_cv_lib_db = no ; then
18072 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18073 echo "configure:18074: checking for Berkeley DB link (-ldb-4)" >&5
18074 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18075 echo $ac_n "(cached) $ac_c" 1>&6
18080 LIBS="$ol_DB_LIB $LIBS"
18082 cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18086 #ifdef HAVE_DB_185_H
18087 # include <db_185.h>
18092 #ifndef DB_VERSION_MAJOR
18093 # define DB_VERSION_MAJOR 1
18097 #define NULL ((void*)0)
18102 #if DB_VERSION_MAJOR > 1
18105 int major, minor, patch;
18107 version = db_version( &major, &minor, &patch );
18109 if( major != DB_VERSION_MAJOR ||
18110 minor < DB_VERSION_MINOR )
18112 printf("Berkeley DB version mismatch\n"
18113 "\texpected: %s\n\tgot: %s\n",
18114 DB_VERSION_STRING, version);
18120 #if DB_VERSION_MAJOR > 2
18121 db_env_create( NULL, 0 );
18122 #elif DB_VERSION_MAJOR > 1
18123 db_appexit( NULL );
18125 (void) dbopen( NULL, 0, 0, 0, NULL);
18130 if { (eval echo configure:18131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18134 echo "configure: failed program was:" >&5
18135 cat conftest.$ac_ext >&5
18145 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18147 if test $ol_cv_db_db_4 = yes ; then
18148 ol_cv_lib_db=-ldb-4
18152 if test $ol_cv_lib_db = no ; then
18153 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18154 echo "configure:18155: checking for Berkeley DB link (-ldb)" >&5
18155 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18156 echo $ac_n "(cached) $ac_c" 1>&6
18161 LIBS="$ol_DB_LIB $LIBS"
18163 cat > conftest.$ac_ext <<EOF
18164 #line 18165 "configure"
18165 #include "confdefs.h"
18167 #ifdef HAVE_DB_185_H
18168 # include <db_185.h>
18173 #ifndef DB_VERSION_MAJOR
18174 # define DB_VERSION_MAJOR 1
18178 #define NULL ((void*)0)
18183 #if DB_VERSION_MAJOR > 1
18186 int major, minor, patch;
18188 version = db_version( &major, &minor, &patch );
18190 if( major != DB_VERSION_MAJOR ||
18191 minor < DB_VERSION_MINOR )
18193 printf("Berkeley DB version mismatch\n"
18194 "\texpected: %s\n\tgot: %s\n",
18195 DB_VERSION_STRING, version);
18201 #if DB_VERSION_MAJOR > 2
18202 db_env_create( NULL, 0 );
18203 #elif DB_VERSION_MAJOR > 1
18204 db_appexit( NULL );
18206 (void) dbopen( NULL, 0, 0, 0, NULL);
18211 if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18226 echo "$ac_t""$ol_cv_db_db" 1>&6
18228 if test $ol_cv_db_db = yes ; then
18233 if test $ol_cv_lib_db = no ; then
18234 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18235 echo "configure:18236: checking for Berkeley DB link (-ldb3)" >&5
18236 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18237 echo $ac_n "(cached) $ac_c" 1>&6
18242 LIBS="$ol_DB_LIB $LIBS"
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18248 #ifdef HAVE_DB_185_H
18249 # include <db_185.h>
18254 #ifndef DB_VERSION_MAJOR
18255 # define DB_VERSION_MAJOR 1
18259 #define NULL ((void*)0)
18264 #if DB_VERSION_MAJOR > 1
18267 int major, minor, patch;
18269 version = db_version( &major, &minor, &patch );
18271 if( major != DB_VERSION_MAJOR ||
18272 minor < DB_VERSION_MINOR )
18274 printf("Berkeley DB version mismatch\n"
18275 "\texpected: %s\n\tgot: %s\n",
18276 DB_VERSION_STRING, version);
18282 #if DB_VERSION_MAJOR > 2
18283 db_env_create( NULL, 0 );
18284 #elif DB_VERSION_MAJOR > 1
18285 db_appexit( NULL );
18287 (void) dbopen( NULL, 0, 0, 0, NULL);
18292 if { (eval echo configure:18293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18296 echo "configure: failed program was:" >&5
18297 cat conftest.$ac_ext >&5
18307 echo "$ac_t""$ol_cv_db_db3" 1>&6
18309 if test $ol_cv_db_db3 = yes ; then
18314 if test $ol_cv_lib_db = no ; then
18315 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18316 echo "configure:18317: checking for Berkeley DB link (-ldb-3)" >&5
18317 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18318 echo $ac_n "(cached) $ac_c" 1>&6
18323 LIBS="$ol_DB_LIB $LIBS"
18325 cat > conftest.$ac_ext <<EOF
18326 #line 18327 "configure"
18327 #include "confdefs.h"
18329 #ifdef HAVE_DB_185_H
18330 # include <db_185.h>
18335 #ifndef DB_VERSION_MAJOR
18336 # define DB_VERSION_MAJOR 1
18340 #define NULL ((void*)0)
18345 #if DB_VERSION_MAJOR > 1
18348 int major, minor, patch;
18350 version = db_version( &major, &minor, &patch );
18352 if( major != DB_VERSION_MAJOR ||
18353 minor < DB_VERSION_MINOR )
18355 printf("Berkeley DB version mismatch\n"
18356 "\texpected: %s\n\tgot: %s\n",
18357 DB_VERSION_STRING, version);
18363 #if DB_VERSION_MAJOR > 2
18364 db_env_create( NULL, 0 );
18365 #elif DB_VERSION_MAJOR > 1
18366 db_appexit( NULL );
18368 (void) dbopen( NULL, 0, 0, 0, NULL);
18373 if { (eval echo configure:18374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18377 echo "configure: failed program was:" >&5
18378 cat conftest.$ac_ext >&5
18388 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18390 if test $ol_cv_db_db_3 = yes ; then
18391 ol_cv_lib_db=-ldb-3
18395 if test $ol_cv_lib_db = no ; then
18396 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18397 echo "configure:18398: checking for Berkeley DB link (-ldb2)" >&5
18398 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18399 echo $ac_n "(cached) $ac_c" 1>&6
18404 LIBS="$ol_DB_LIB $LIBS"
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18408 "configure"
18408 #include "confdefs.h"
18410 #ifdef HAVE_DB_185_H
18411 # include <db_185.h>
18416 #ifndef DB_VERSION_MAJOR
18417 # define DB_VERSION_MAJOR 1
18421 #define NULL ((void*)0)
18426 #if DB_VERSION_MAJOR > 1
18429 int major, minor, patch;
18431 version = db_version( &major, &minor, &patch );
18433 if( major != DB_VERSION_MAJOR ||
18434 minor < DB_VERSION_MINOR )
18436 printf("Berkeley DB version mismatch\n"
18437 "\texpected: %s\n\tgot: %s\n",
18438 DB_VERSION_STRING, version);
18444 #if DB_VERSION_MAJOR > 2
18445 db_env_create( NULL, 0 );
18446 #elif DB_VERSION_MAJOR > 1
18447 db_appexit( NULL );
18449 (void) dbopen( NULL, 0, 0, 0, NULL);
18454 if { (eval echo configure:18455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18458 echo "configure: failed program was:" >&5
18459 cat conftest.$ac_ext >&5
18469 echo "$ac_t""$ol_cv_db_db2" 1>&6
18471 if test $ol_cv_db_db2 = yes ; then
18476 if test $ol_cv_lib_db = no ; then
18477 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18478 echo "configure:18479: checking for Berkeley DB link (-ldb-2)" >&5
18479 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18480 echo $ac_n "(cached) $ac_c" 1>&6
18485 LIBS="$ol_DB_LIB $LIBS"
18487 cat > conftest.$ac_ext <<EOF
18488 #line 18489 "configure"
18489 #include "confdefs.h"
18491 #ifdef HAVE_DB_185_H
18492 # include <db_185.h>
18497 #ifndef DB_VERSION_MAJOR
18498 # define DB_VERSION_MAJOR 1
18502 #define NULL ((void*)0)
18507 #if DB_VERSION_MAJOR > 1
18510 int major, minor, patch;
18512 version = db_version( &major, &minor, &patch );
18514 if( major != DB_VERSION_MAJOR ||
18515 minor < DB_VERSION_MINOR )
18517 printf("Berkeley DB version mismatch\n"
18518 "\texpected: %s\n\tgot: %s\n",
18519 DB_VERSION_STRING, version);
18525 #if DB_VERSION_MAJOR > 2
18526 db_env_create( NULL, 0 );
18527 #elif DB_VERSION_MAJOR > 1
18528 db_appexit( NULL );
18530 (void) dbopen( NULL, 0, 0, 0, NULL);
18535 if { (eval echo configure:18536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18539 echo "configure: failed program was:" >&5
18540 cat conftest.$ac_ext >&5
18550 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18552 if test $ol_cv_db_db_2 = yes ; then
18553 ol_cv_lib_db=-ldb-2
18557 if test $ol_cv_lib_db = no ; then
18558 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18559 echo "configure:18560: checking for Berkeley DB link (-ldb1)" >&5
18560 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18561 echo $ac_n "(cached) $ac_c" 1>&6
18566 LIBS="$ol_DB_LIB $LIBS"
18568 cat > conftest.$ac_ext <<EOF
18569 #line 18570 "configure"
18570 #include "confdefs.h"
18572 #ifdef HAVE_DB_185_H
18573 # include <db_185.h>
18578 #ifndef DB_VERSION_MAJOR
18579 # define DB_VERSION_MAJOR 1
18583 #define NULL ((void*)0)
18588 #if DB_VERSION_MAJOR > 1
18591 int major, minor, patch;
18593 version = db_version( &major, &minor, &patch );
18595 if( major != DB_VERSION_MAJOR ||
18596 minor < DB_VERSION_MINOR )
18598 printf("Berkeley DB version mismatch\n"
18599 "\texpected: %s\n\tgot: %s\n",
18600 DB_VERSION_STRING, version);
18606 #if DB_VERSION_MAJOR > 2
18607 db_env_create( NULL, 0 );
18608 #elif DB_VERSION_MAJOR > 1
18609 db_appexit( NULL );
18611 (void) dbopen( NULL, 0, 0, 0, NULL);
18616 if { (eval echo configure:18617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18620 echo "configure: failed program was:" >&5
18621 cat conftest.$ac_ext >&5
18631 echo "$ac_t""$ol_cv_db_db1" 1>&6
18633 if test $ol_cv_db_db1 = yes ; then
18638 if test $ol_cv_lib_db = no ; then
18639 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18640 echo "configure:18641: checking for Berkeley DB link (-ldb-1)" >&5
18641 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18642 echo $ac_n "(cached) $ac_c" 1>&6
18647 LIBS="$ol_DB_LIB $LIBS"
18649 cat > conftest.$ac_ext <<EOF
18650 #line 18651 "configure"
18651 #include "confdefs.h"
18653 #ifdef HAVE_DB_185_H
18654 # include <db_185.h>
18659 #ifndef DB_VERSION_MAJOR
18660 # define DB_VERSION_MAJOR 1
18664 #define NULL ((void*)0)
18669 #if DB_VERSION_MAJOR > 1
18672 int major, minor, patch;
18674 version = db_version( &major, &minor, &patch );
18676 if( major != DB_VERSION_MAJOR ||
18677 minor < DB_VERSION_MINOR )
18679 printf("Berkeley DB version mismatch\n"
18680 "\texpected: %s\n\tgot: %s\n",
18681 DB_VERSION_STRING, version);
18687 #if DB_VERSION_MAJOR > 2
18688 db_env_create( NULL, 0 );
18689 #elif DB_VERSION_MAJOR > 1
18690 db_appexit( NULL );
18692 (void) dbopen( NULL, 0, 0, 0, NULL);
18697 if { (eval echo configure:18698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18701 echo "configure: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18712 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18714 if test $ol_cv_db_db_1 = yes ; then
18715 ol_cv_lib_db=-ldb-1
18720 if test "$ol_cv_lib_db" != no ; then
18721 ol_cv_berkeley_db=yes
18722 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18723 echo "configure:18724: checking for Berkeley DB thread support" >&5
18724 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18725 echo $ac_n "(cached) $ac_c" 1>&6
18729 if test $ol_cv_lib_db != yes ; then
18730 LIBS="$ol_cv_lib_db"
18733 if test "$cross_compiling" = yes; then
18734 ol_cv_berkeley_db_thread=cross
18736 cat > conftest.$ac_ext <<EOF
18737 #line 18738 "configure"
18738 #include "confdefs.h"
18740 #ifdef HAVE_DB_185_H
18746 #define NULL ((void *)0)
18751 u_int32_t flags = DB_CREATE |
18757 #if DB_VERSION_MAJOR > 2
18758 DB_ENV *env = NULL;
18760 rc = db_env_create( &env, 0 );
18762 flags |= DB_INIT_MPOOL;
18763 #ifdef DB_MPOOL_PRIVATE
18764 flags |= DB_MPOOL_PRIVATE;
18768 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18772 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18773 rc = env->open( env, NULL, flags, 0 );
18775 rc = env->open( env, NULL, NULL, flags, 0 );
18779 rc = env->close( env, 0 );
18783 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18789 memset( &env, '\0', sizeof(env) );
18791 rc = db_appinit( NULL, NULL, &env, flags );
18794 db_appexit( &env );
18797 unlink("__db_mpool.share");
18798 unlink("__db_lock.share");
18804 if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18806 ol_cv_berkeley_db_thread=yes
18808 echo "configure: failed program was:" >&5
18809 cat conftest.$ac_ext >&5
18811 ol_cv_berkeley_db_thread=no
18819 if test $ol_cv_berkeley_db_thread != no ; then
18820 cat >> confdefs.h <<\EOF
18821 #define HAVE_BERKELEY_DB_THREAD 1
18828 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18834 if test $ol_cv_berkeley_db != no ; then
18835 cat >> confdefs.h <<\EOF
18836 #define HAVE_BERKELEY_DB 1
18840 ol_link_ldbm=berkeley
18841 ol_with_ldbm_api=berkeley
18843 if test $ol_with_ldbm_type = hash ; then
18844 cat >> confdefs.h <<\EOF
18845 #define LDBM_USE_DBHASH 1
18849 cat >> confdefs.h <<\EOF
18850 #define LDBM_USE_DBBTREE 1
18855 if test $ol_cv_lib_db != yes ; then
18856 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18861 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18862 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18863 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18864 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18865 echo "configure:18866: checking Berkeley DB version for BDB backend" >&5
18866 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18867 echo $ac_n "(cached) $ac_c" 1>&6
18870 cat > conftest.$ac_ext <<EOF
18871 #line 18872 "configure"
18872 #include "confdefs.h"
18876 /* this check could be improved */
18877 #ifndef DB_VERSION_MAJOR
18878 # define DB_VERSION_MAJOR 1
18881 /* require 4.0 or later */
18882 #if DB_VERSION_MAJOR >= 4
18883 __db_version_compat
18887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18888 egrep "__db_version_compat" >/dev/null 2>&1; then
18890 ol_cv_bdb_compat=yes
18893 ol_cv_bdb_compat=no
18899 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18902 if test $ol_cv_bdb_compat = yes ; then
18904 elif test $ol_enable_bdb = yes ; then
18905 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18911 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18912 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18913 ol_with_ldbm_api=none
18916 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18917 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18918 echo "configure:18919: checking for MDBM library" >&5
18919 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18920 echo $ac_n "(cached) $ac_c" 1>&6
18923 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18924 echo "configure:18925: checking for mdbm_set_chain" >&5
18925 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18926 echo $ac_n "(cached) $ac_c" 1>&6
18928 cat > conftest.$ac_ext <<EOF
18929 #line 18930 "configure"
18930 #include "confdefs.h"
18931 /* System header to define __stub macros and hopefully few prototypes,
18932 which can conflict with char mdbm_set_chain(); below. */
18933 #include <assert.h>
18934 /* Override any gcc2 internal prototype to avoid an error. */
18935 /* We use char because int might match the return type of a gcc2
18936 builtin and then its argument prototype would still apply. */
18937 char mdbm_set_chain();
18942 /* The GNU C library defines this for functions which it implements
18943 to always fail with ENOSYS. Some functions are actually named
18944 something starting with __ and the normal name is an alias. */
18945 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18948 f = mdbm_set_chain;
18953 if { (eval echo configure:18954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18955 eval "ac_cv_func_mdbm_set_chain=yes"
18957 echo "configure: failed program was:" >&5
18958 cat conftest.$ac_ext >&5
18960 eval "ac_cv_func_mdbm_set_chain=no"
18965 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18966 echo "$ac_t""yes" 1>&6
18969 echo "$ac_t""no" 1>&6
18971 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18972 echo "configure:18973: checking for mdbm_set_chain in -lmdbm" >&5
18973 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18974 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18975 echo $ac_n "(cached) $ac_c" 1>&6
18977 ac_save_LIBS="$LIBS"
18978 LIBS="-lmdbm $LIBS"
18979 cat > conftest.$ac_ext <<EOF
18980 #line 18981 "configure"
18981 #include "confdefs.h"
18982 /* Override any gcc2 internal prototype to avoid an error. */
18983 /* We use char because int might match the return type of a gcc2
18984 builtin and then its argument prototype would still apply. */
18985 char mdbm_set_chain();
18991 if { (eval echo configure:18992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18993 eval "ac_cv_lib_$ac_lib_var=yes"
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18998 eval "ac_cv_lib_$ac_lib_var=no"
19001 LIBS="$ac_save_LIBS"
19004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19005 echo "$ac_t""yes" 1>&6
19006 ol_cv_lib_mdbm=-lmdbm
19008 echo "$ac_t""no" 1>&6
19019 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19022 for ac_hdr in mdbm.h
19024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19026 echo "configure:19027: checking for $ac_hdr" >&5
19027 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19028 echo $ac_n "(cached) $ac_c" 1>&6
19030 cat > conftest.$ac_ext <<EOF
19031 #line 19032 "configure"
19032 #include "confdefs.h"
19035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19036 { (eval echo configure:19037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19038 if test -z "$ac_err"; then
19040 eval "ac_cv_header_$ac_safe=yes"
19043 echo "configure: failed program was:" >&5
19044 cat conftest.$ac_ext >&5
19046 eval "ac_cv_header_$ac_safe=no"
19050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19051 echo "$ac_t""yes" 1>&6
19052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19053 cat >> confdefs.h <<EOF
19054 #define $ac_tr_hdr 1
19058 echo "$ac_t""no" 1>&6
19062 echo $ac_n "checking for db""... $ac_c" 1>&6
19063 echo "configure:19064: checking for db" >&5
19064 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19065 echo $ac_n "(cached) $ac_c" 1>&6
19068 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19076 echo "$ac_t""$ol_cv_mdbm" 1>&6
19077 if test $ol_cv_mdbm = yes ; then
19078 cat >> confdefs.h <<\EOF
19079 #define HAVE_MDBM 1
19085 if test $ol_cv_mdbm = yes ; then
19087 ol_with_ldbm_api=mdbm
19088 if test $ol_cv_lib_mdbm != yes ; then
19089 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19094 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19095 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19096 echo "configure:19097: checking for GDBM library" >&5
19097 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19098 echo $ac_n "(cached) $ac_c" 1>&6
19101 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19102 echo "configure:19103: checking for gdbm_open" >&5
19103 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19104 echo $ac_n "(cached) $ac_c" 1>&6
19106 cat > conftest.$ac_ext <<EOF
19107 #line 19108 "configure"
19108 #include "confdefs.h"
19109 /* System header to define __stub macros and hopefully few prototypes,
19110 which can conflict with char gdbm_open(); below. */
19111 #include <assert.h>
19112 /* Override any gcc2 internal prototype to avoid an error. */
19113 /* We use char because int might match the return type of a gcc2
19114 builtin and then its argument prototype would still apply. */
19120 /* The GNU C library defines this for functions which it implements
19121 to always fail with ENOSYS. Some functions are actually named
19122 something starting with __ and the normal name is an alias. */
19123 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19131 if { (eval echo configure:19132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19133 eval "ac_cv_func_gdbm_open=yes"
19135 echo "configure: failed program was:" >&5
19136 cat conftest.$ac_ext >&5
19138 eval "ac_cv_func_gdbm_open=no"
19143 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19144 echo "$ac_t""yes" 1>&6
19147 echo "$ac_t""no" 1>&6
19149 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19150 echo "configure:19151: checking for gdbm_open in -lgdbm" >&5
19151 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19152 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19153 echo $ac_n "(cached) $ac_c" 1>&6
19155 ac_save_LIBS="$LIBS"
19156 LIBS="-lgdbm $LIBS"
19157 cat > conftest.$ac_ext <<EOF
19158 #line 19159 "configure"
19159 #include "confdefs.h"
19160 /* Override any gcc2 internal prototype to avoid an error. */
19161 /* We use char because int might match the return type of a gcc2
19162 builtin and then its argument prototype would still apply. */
19169 if { (eval echo configure:19170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19171 eval "ac_cv_lib_$ac_lib_var=yes"
19173 echo "configure: failed program was:" >&5
19174 cat conftest.$ac_ext >&5
19176 eval "ac_cv_lib_$ac_lib_var=no"
19179 LIBS="$ac_save_LIBS"
19182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19183 echo "$ac_t""yes" 1>&6
19184 ol_cv_lib_gdbm=-lgdbm
19186 echo "$ac_t""no" 1>&6
19197 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19200 for ac_hdr in gdbm.h
19202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19204 echo "configure:19205: checking for $ac_hdr" >&5
19205 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19206 echo $ac_n "(cached) $ac_c" 1>&6
19208 cat > conftest.$ac_ext <<EOF
19209 #line 19210 "configure"
19210 #include "confdefs.h"
19213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19214 { (eval echo configure:19215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19216 if test -z "$ac_err"; then
19218 eval "ac_cv_header_$ac_safe=yes"
19221 echo "configure: failed program was:" >&5
19222 cat conftest.$ac_ext >&5
19224 eval "ac_cv_header_$ac_safe=no"
19228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19229 echo "$ac_t""yes" 1>&6
19230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19231 cat >> confdefs.h <<EOF
19232 #define $ac_tr_hdr 1
19236 echo "$ac_t""no" 1>&6
19240 echo $ac_n "checking for db""... $ac_c" 1>&6
19241 echo "configure:19242: checking for db" >&5
19242 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19243 echo $ac_n "(cached) $ac_c" 1>&6
19246 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19254 echo "$ac_t""$ol_cv_gdbm" 1>&6
19255 if test $ol_cv_gdbm = yes ; then
19256 cat >> confdefs.h <<\EOF
19257 #define HAVE_GDBM 1
19263 if test $ol_cv_gdbm = yes ; then
19265 ol_with_ldbm_api=gdbm
19267 if test $ol_cv_lib_gdbm != yes ; then
19268 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19273 if test $ol_with_ldbm_api = ndbm ; then
19274 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19275 echo "configure:19276: checking for NDBM library" >&5
19276 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19277 echo $ac_n "(cached) $ac_c" 1>&6
19280 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19281 echo "configure:19282: checking for dbm_open" >&5
19282 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19283 echo $ac_n "(cached) $ac_c" 1>&6
19285 cat > conftest.$ac_ext <<EOF
19286 #line 19287 "configure"
19287 #include "confdefs.h"
19288 /* System header to define __stub macros and hopefully few prototypes,
19289 which can conflict with char dbm_open(); below. */
19290 #include <assert.h>
19291 /* Override any gcc2 internal prototype to avoid an error. */
19292 /* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19299 /* The GNU C library defines this for functions which it implements
19300 to always fail with ENOSYS. Some functions are actually named
19301 something starting with __ and the normal name is an alias. */
19302 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19310 if { (eval echo configure:19311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19312 eval "ac_cv_func_dbm_open=yes"
19314 echo "configure: failed program was:" >&5
19315 cat conftest.$ac_ext >&5
19317 eval "ac_cv_func_dbm_open=no"
19322 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19323 echo "$ac_t""yes" 1>&6
19326 echo "$ac_t""no" 1>&6
19328 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19329 echo "configure:19330: checking for dbm_open in -lndbm" >&5
19330 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19331 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19332 echo $ac_n "(cached) $ac_c" 1>&6
19334 ac_save_LIBS="$LIBS"
19335 LIBS="-lndbm $LIBS"
19336 cat > conftest.$ac_ext <<EOF
19337 #line 19338 "configure"
19338 #include "confdefs.h"
19339 /* Override any gcc2 internal prototype to avoid an error. */
19340 /* We use char because int might match the return type of a gcc2
19341 builtin and then its argument prototype would still apply. */
19348 if { (eval echo configure:19349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19350 eval "ac_cv_lib_$ac_lib_var=yes"
19352 echo "configure: failed program was:" >&5
19353 cat conftest.$ac_ext >&5
19355 eval "ac_cv_lib_$ac_lib_var=no"
19358 LIBS="$ac_save_LIBS"
19361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19362 echo "$ac_t""yes" 1>&6
19363 ol_cv_lib_ndbm=-lndbm
19365 echo "$ac_t""no" 1>&6
19367 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19368 echo "configure:19369: checking for dbm_open in -ldbm" >&5
19369 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19371 echo $ac_n "(cached) $ac_c" 1>&6
19373 ac_save_LIBS="$LIBS"
19375 cat > conftest.$ac_ext <<EOF
19376 #line 19377 "configure"
19377 #include "confdefs.h"
19378 /* Override any gcc2 internal prototype to avoid an error. */
19379 /* We use char because int might match the return type of a gcc2
19380 builtin and then its argument prototype would still apply. */
19387 if { (eval echo configure:19388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19389 eval "ac_cv_lib_$ac_lib_var=yes"
19391 echo "configure: failed program was:" >&5
19392 cat conftest.$ac_ext >&5
19394 eval "ac_cv_lib_$ac_lib_var=no"
19397 LIBS="$ac_save_LIBS"
19400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19401 echo "$ac_t""yes" 1>&6
19402 ol_cv_lib_ndbm=-ldbm
19404 echo "$ac_t""no" 1>&6
19417 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19420 for ac_hdr in ndbm.h
19422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19424 echo "configure:19425: checking for $ac_hdr" >&5
19425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19426 echo $ac_n "(cached) $ac_c" 1>&6
19428 cat > conftest.$ac_ext <<EOF
19429 #line 19430 "configure"
19430 #include "confdefs.h"
19433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19434 { (eval echo configure:19435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19436 if test -z "$ac_err"; then
19438 eval "ac_cv_header_$ac_safe=yes"
19441 echo "configure: failed program was:" >&5
19442 cat conftest.$ac_ext >&5
19444 eval "ac_cv_header_$ac_safe=no"
19448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19449 echo "$ac_t""yes" 1>&6
19450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19451 cat >> confdefs.h <<EOF
19452 #define $ac_tr_hdr 1
19456 echo "$ac_t""no" 1>&6
19460 echo $ac_n "checking for db""... $ac_c" 1>&6
19461 echo "configure:19462: checking for db" >&5
19462 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19463 echo $ac_n "(cached) $ac_c" 1>&6
19466 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19474 echo "$ac_t""$ol_cv_ndbm" 1>&6
19475 if test $ol_cv_ndbm = yes ; then
19476 cat >> confdefs.h <<\EOF
19477 #define HAVE_NDBM 1
19483 if test $ol_cv_ndbm = yes ; then
19485 ol_with_ldbm_api=ndbm
19487 if test $ol_cv_lib_ndbm != yes ; then
19488 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19493 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19494 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19495 if test $ol_enable_ldbm = yes ; then
19496 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19499 echo "configure: warning: disabling LDBM" 1>&2
19503 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19504 BUILD_LIBS_DYNAMIC=shared
19505 cat >> confdefs.h <<\EOF
19506 #define LDAP_LIBS_DYNAMIC 1
19510 BUILD_LIBS_DYNAMIC=static
19513 if test $ol_enable_wrappers != no ; then
19514 for ac_hdr in tcpd.h
19516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19518 echo "configure:19519: checking for $ac_hdr" >&5
19519 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19520 echo $ac_n "(cached) $ac_c" 1>&6
19522 cat > conftest.$ac_ext <<EOF
19523 #line 19524 "configure"
19524 #include "confdefs.h"
19527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19528 { (eval echo configure:19529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19530 if test -z "$ac_err"; then
19532 eval "ac_cv_header_$ac_safe=yes"
19535 echo "configure: failed program was:" >&5
19536 cat conftest.$ac_ext >&5
19538 eval "ac_cv_header_$ac_safe=no"
19542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19543 echo "$ac_t""yes" 1>&6
19544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19545 cat >> confdefs.h <<EOF
19546 #define $ac_tr_hdr 1
19549 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19550 echo "configure:19551: checking for TCP wrappers library" >&5
19552 LIBS="$LIBS -lwrap"
19553 cat > conftest.$ac_ext <<EOF
19554 #line 19555 "configure"
19555 #include "confdefs.h"
19558 int allow_severity = 0;
19559 int deny_severity = 0;
19561 struct request_info *req;
19569 if { (eval echo configure:19570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19571 echo "$ac_t""-lwrap" 1>&6
19575 echo "configure: failed program was:" >&5
19576 cat conftest.$ac_ext >&5
19580 cat > conftest.$ac_ext <<EOF
19581 #line 19582 "configure"
19582 #include "confdefs.h"
19585 int allow_severity = 0;
19586 int deny_severity = 0;
19588 struct request_info *req;
19596 if { (eval echo configure:19597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19598 echo "$ac_t""-lwrap -lnsl" 1>&6
19600 LIBS="$save_LIBS -lnsl"
19602 echo "configure: failed program was:" >&5
19603 cat conftest.$ac_ext >&5
19606 echo "$ac_t""no" 1>&6
19614 echo "$ac_t""no" 1>&6
19620 if test $have_wrappers = yes ; then
19621 cat >> confdefs.h <<\EOF
19622 #define HAVE_TCPD 1
19626 elif test $ol_enable_wrappers = yes ; then
19627 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19629 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19634 if test $ol_enable_syslog != no ; then
19635 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19636 echo "configure:19637: checking for openlog" >&5
19637 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19638 echo $ac_n "(cached) $ac_c" 1>&6
19640 cat > conftest.$ac_ext <<EOF
19641 #line 19642 "configure"
19642 #include "confdefs.h"
19643 /* System header to define __stub macros and hopefully few prototypes,
19644 which can conflict with char openlog(); below. */
19645 #include <assert.h>
19646 /* Override any gcc2 internal prototype to avoid an error. */
19647 /* We use char because int might match the return type of a gcc2
19648 builtin and then its argument prototype would still apply. */
19654 /* The GNU C library defines this for functions which it implements
19655 to always fail with ENOSYS. Some functions are actually named
19656 something starting with __ and the normal name is an alias. */
19657 #if defined (__stub_openlog) || defined (__stub___openlog)
19665 if { (eval echo configure:19666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19667 eval "ac_cv_func_openlog=yes"
19669 echo "configure: failed program was:" >&5
19670 cat conftest.$ac_ext >&5
19672 eval "ac_cv_func_openlog=no"
19677 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19678 echo "$ac_t""yes" 1>&6
19681 echo "$ac_t""no" 1>&6
19684 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19685 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19687 ol_enable_syslog=$ac_cv_func_openlog
19692 if test $ol_enable_sql != no ; then
19693 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19694 echo "configure:19695: checking for SQLDriverConnect in -liodbc" >&5
19695 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19697 echo $ac_n "(cached) $ac_c" 1>&6
19699 ac_save_LIBS="$LIBS"
19700 LIBS="-liodbc $LIBS"
19701 cat > conftest.$ac_ext <<EOF
19702 #line 19703 "configure"
19703 #include "confdefs.h"
19704 /* Override any gcc2 internal prototype to avoid an error. */
19705 /* We use char because int might match the return type of a gcc2
19706 builtin and then its argument prototype would still apply. */
19707 char SQLDriverConnect();
19713 if { (eval echo configure:19714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19715 eval "ac_cv_lib_$ac_lib_var=yes"
19717 echo "configure: failed program was:" >&5
19718 cat conftest.$ac_ext >&5
19720 eval "ac_cv_lib_$ac_lib_var=no"
19723 LIBS="$ac_save_LIBS"
19726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19727 echo "$ac_t""yes" 1>&6
19730 echo "$ac_t""no" 1>&6
19734 if test $have_iodbc = yes ; then
19735 ol_link_sql="-liodbc"
19737 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19738 echo "configure:19739: checking for SQLDriverConnect in -lodbc" >&5
19739 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19741 echo $ac_n "(cached) $ac_c" 1>&6
19743 ac_save_LIBS="$LIBS"
19744 LIBS="-lodbc $LIBS"
19745 cat > conftest.$ac_ext <<EOF
19746 #line 19747 "configure"
19747 #include "confdefs.h"
19748 /* Override any gcc2 internal prototype to avoid an error. */
19749 /* We use char because int might match the return type of a gcc2
19750 builtin and then its argument prototype would still apply. */
19751 char SQLDriverConnect();
19757 if { (eval echo configure:19758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19759 eval "ac_cv_lib_$ac_lib_var=yes"
19761 echo "configure: failed program was:" >&5
19762 cat conftest.$ac_ext >&5
19764 eval "ac_cv_lib_$ac_lib_var=no"
19767 LIBS="$ac_save_LIBS"
19770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19771 echo "$ac_t""yes" 1>&6
19774 echo "$ac_t""no" 1>&6
19778 if test $have_odbc = yes ; then
19779 ol_link_sql="-lodbc"
19783 if test $ol_link_sql != no ; then
19784 SLAPD_SQL_LIBS="$ol_link_sql"
19786 elif test $ol_enable_sql != auto ; then
19787 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19792 for ac_hdr in termcap.h ncurses.h
19794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19796 echo "configure:19797: checking for $ac_hdr" >&5
19797 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19798 echo $ac_n "(cached) $ac_c" 1>&6
19800 cat > conftest.$ac_ext <<EOF
19801 #line 19802 "configure"
19802 #include "confdefs.h"
19805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19806 { (eval echo configure:19807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19808 if test -z "$ac_err"; then
19810 eval "ac_cv_header_$ac_safe=yes"
19813 echo "configure: failed program was:" >&5
19814 cat conftest.$ac_ext >&5
19816 eval "ac_cv_header_$ac_safe=no"
19820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19821 echo "$ac_t""yes" 1>&6
19822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19823 cat >> confdefs.h <<EOF
19824 #define $ac_tr_hdr 1
19828 echo "$ac_t""no" 1>&6
19833 if test $ol_link_termcap = no ; then
19834 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19835 echo "configure:19836: checking for tputs in -ltermcap" >&5
19836 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19838 echo $ac_n "(cached) $ac_c" 1>&6
19840 ac_save_LIBS="$LIBS"
19841 LIBS="-ltermcap $LIBS"
19842 cat > conftest.$ac_ext <<EOF
19843 #line 19844 "configure"
19844 #include "confdefs.h"
19845 /* Override any gcc2 internal prototype to avoid an error. */
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19854 if { (eval echo configure:19855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19856 eval "ac_cv_lib_$ac_lib_var=yes"
19858 echo "configure: failed program was:" >&5
19859 cat conftest.$ac_ext >&5
19861 eval "ac_cv_lib_$ac_lib_var=no"
19864 LIBS="$ac_save_LIBS"
19867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19868 echo "$ac_t""yes" 1>&6
19871 echo "$ac_t""no" 1>&6
19875 if test $have_termcap = yes ; then
19876 cat >> confdefs.h <<\EOF
19877 #define HAVE_TERMCAP 1
19880 ol_link_termcap=yes
19881 TERMCAP_LIBS=-ltermcap
19885 if test $ol_link_termcap = no ; then
19886 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19887 echo "configure:19888: checking for initscr in -lncurses" >&5
19888 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19889 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19890 echo $ac_n "(cached) $ac_c" 1>&6
19892 ac_save_LIBS="$LIBS"
19893 LIBS="-lncurses $LIBS"
19894 cat > conftest.$ac_ext <<EOF
19895 #line 19896 "configure"
19896 #include "confdefs.h"
19897 /* Override any gcc2 internal prototype to avoid an error. */
19898 /* We use char because int might match the return type of a gcc2
19899 builtin and then its argument prototype would still apply. */
19906 if { (eval echo configure:19907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19908 eval "ac_cv_lib_$ac_lib_var=yes"
19910 echo "configure: failed program was:" >&5
19911 cat conftest.$ac_ext >&5
19913 eval "ac_cv_lib_$ac_lib_var=no"
19916 LIBS="$ac_save_LIBS"
19919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19920 echo "$ac_t""yes" 1>&6
19923 echo "$ac_t""no" 1>&6
19927 if test $have_ncurses = yes ; then
19928 cat >> confdefs.h <<\EOF
19929 #define HAVE_NCURSES 1
19932 ol_link_termcap=yes
19933 TERMCAP_LIBS=-lncurses
19937 if test $ol_link_termcap = no ; then
19938 cat >> confdefs.h <<\EOF
19939 #define NO_TERMCAP 1
19947 if test $ol_with_cyrus_sasl != no ; then
19948 for ac_hdr in sasl/sasl.h sasl.h
19950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19952 echo "configure:19953: checking for $ac_hdr" >&5
19953 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19954 echo $ac_n "(cached) $ac_c" 1>&6
19956 cat > conftest.$ac_ext <<EOF
19957 #line 19958 "configure"
19958 #include "confdefs.h"
19961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19962 { (eval echo configure:19963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19964 if test -z "$ac_err"; then
19966 eval "ac_cv_header_$ac_safe=yes"
19969 echo "configure: failed program was:" >&5
19970 cat conftest.$ac_ext >&5
19972 eval "ac_cv_header_$ac_safe=no"
19976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19977 echo "$ac_t""yes" 1>&6
19978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19979 cat >> confdefs.h <<EOF
19980 #define $ac_tr_hdr 1
19984 echo "$ac_t""no" 1>&6
19989 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19990 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19991 echo "configure:19992: checking for sasl_client_init in -lsasl2" >&5
19992 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19993 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19994 echo $ac_n "(cached) $ac_c" 1>&6
19996 ac_save_LIBS="$LIBS"
19997 LIBS="-lsasl2 $LIBS"
19998 cat > conftest.$ac_ext <<EOF
19999 #line 20000 "configure"
20000 #include "confdefs.h"
20001 /* Override any gcc2 internal prototype to avoid an error. */
20002 /* We use char because int might match the return type of a gcc2
20003 builtin and then its argument prototype would still apply. */
20004 char sasl_client_init();
20010 if { (eval echo configure:20011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20012 eval "ac_cv_lib_$ac_lib_var=yes"
20014 echo "configure: failed program was:" >&5
20015 cat conftest.$ac_ext >&5
20017 eval "ac_cv_lib_$ac_lib_var=no"
20020 LIBS="$ac_save_LIBS"
20023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20024 echo "$ac_t""yes" 1>&6
20025 ol_link_sasl="-lsasl2"
20027 echo "$ac_t""no" 1>&6
20028 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20029 echo "configure:20030: checking for sasl_client_init in -lsasl" >&5
20030 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20031 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20032 echo $ac_n "(cached) $ac_c" 1>&6
20034 ac_save_LIBS="$LIBS"
20035 LIBS="-lsasl $LIBS"
20036 cat > conftest.$ac_ext <<EOF
20037 #line 20038 "configure"
20038 #include "confdefs.h"
20039 /* Override any gcc2 internal prototype to avoid an error. */
20040 /* We use char because int might match the return type of a gcc2
20041 builtin and then its argument prototype would still apply. */
20042 char sasl_client_init();
20048 if { (eval echo configure:20049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20050 eval "ac_cv_lib_$ac_lib_var=yes"
20052 echo "configure: failed program was:" >&5
20053 cat conftest.$ac_ext >&5
20055 eval "ac_cv_lib_$ac_lib_var=no"
20058 LIBS="$ac_save_LIBS"
20061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20062 echo "$ac_t""yes" 1>&6
20063 ol_link_sasl="-lsasl"
20065 echo "$ac_t""no" 1>&6
20072 if test $ol_link_sasl = no ; then
20073 if test $ol_with_cyrus_sasl != auto ; then
20074 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20076 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20077 echo "configure: warning: SASL authentication not supported!" 1>&2
20078 if test $ol_link_tls = no ; then
20079 echo "configure: warning: Strong authentication not supported!" 1>&2
20083 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20084 echo "configure:20085: checking Cyrus SASL library version" >&5
20085 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20086 echo $ac_n "(cached) $ac_c" 1>&6
20089 cat > conftest.$ac_ext <<EOF
20090 #line 20091 "configure"
20091 #include "confdefs.h"
20093 #ifdef HAVE_SASL_SASL_H
20094 #include <sasl/sasl.h>
20099 /* require 2.1.3 or later */
20100 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20101 char *__sasl_compat = "1.5.x okay";
20102 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20103 __sasl_compat "2.2+ or better okay (we guess)";
20104 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20105 && SASL_VERSION_STEP >=3
20106 __sasl_compat = "2.1.3+ or better okay";
20110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20111 egrep "__sasl_compat" >/dev/null 2>&1; then
20113 ol_cv_sasl_compat=yes
20116 ol_cv_sasl_compat=no
20122 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20124 if test $ol_cv_sasl_compat = no ; then
20126 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20129 cat >> confdefs.h <<\EOF
20130 #define HAVE_CYRUS_SASL 1
20133 SASL_LIBS="$ol_link_sasl"
20134 if test $ol_enable_spasswd != no ; then
20135 ol_link_spasswd=yes
20140 echo "configure: warning: SASL authentication not supported!" 1>&2
20141 if test $ol_link_tls = no ; then
20142 echo "configure: warning: Strong authentication not supported!" 1>&2
20146 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20148 if test -r /dev/urandom ; then
20149 dev="/dev/urandom";
20150 elif test -r /idev/urandom ; then
20151 dev="/idev/urandom";
20152 elif test -r /dev/srandom ; then
20153 dev="/dev/srandom";
20154 elif test -r /dev/random ; then
20156 elif test -r /idev/random ; then
20157 dev="/idev/random";
20160 if test $dev != no ; then
20161 cat >> confdefs.h <<EOF
20162 #define URANDOM_DEVICE "$dev"
20169 if test $ol_with_fetch != no ; then
20171 LIBS="-lfetch -lcom_err $LIBS"
20172 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20173 echo "configure:20174: checking fetch(3) library" >&5
20174 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20175 echo $ac_n "(cached) $ac_c" 1>&6
20178 cat > conftest.$ac_ext <<EOF
20179 #line 20180 "configure"
20180 #include "confdefs.h"
20182 #include <sys/param.h>
20186 struct url *u = fetchParseURL("file:///");
20189 if { (eval echo configure:20190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20191 ol_cv_lib_fetch=yes
20193 echo "configure: failed program was:" >&5
20194 cat conftest.$ac_ext >&5
20201 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20203 if test $ol_cv_lib_fetch != no ; then
20204 ol_link_fetch="-lfetch -lcom_err"
20205 cat >> confdefs.h <<\EOF
20206 #define HAVE_FETCH 1
20212 if test $ol_cv_lib_fetch != no ; then
20213 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20214 ol_link_fetch=freebsd
20216 elif test $ol_with_fetch != auto ; then
20217 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20221 ol_link_readline=no
20222 if test $ol_with_readline != no ; then
20223 for ac_hdr in readline/readline.h readline/history.h
20225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20227 echo "configure:20228: checking for $ac_hdr" >&5
20228 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20229 echo $ac_n "(cached) $ac_c" 1>&6
20231 cat > conftest.$ac_ext <<EOF
20232 #line 20233 "configure"
20233 #include "confdefs.h"
20236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20237 { (eval echo configure:20238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20239 if test -z "$ac_err"; then
20241 eval "ac_cv_header_$ac_safe=yes"
20244 echo "configure: failed program was:" >&5
20245 cat conftest.$ac_ext >&5
20247 eval "ac_cv_header_$ac_safe=no"
20251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20252 echo "$ac_t""yes" 1>&6
20253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20254 cat >> confdefs.h <<EOF
20255 #define $ac_tr_hdr 1
20259 echo "$ac_t""no" 1>&6
20264 if test $ac_cv_header_readline_readline_h = yes ; then
20266 LIBS="$TERMCAP_LIBS $LIBS"
20267 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20268 echo "configure:20269: checking for readline in -lreadline" >&5
20269 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20270 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20271 echo $ac_n "(cached) $ac_c" 1>&6
20273 ac_save_LIBS="$LIBS"
20274 LIBS="-lreadline $LIBS"
20275 cat > conftest.$ac_ext <<EOF
20276 #line 20277 "configure"
20277 #include "confdefs.h"
20278 /* Override any gcc2 internal prototype to avoid an error. */
20279 /* We use char because int might match the return type of a gcc2
20280 builtin and then its argument prototype would still apply. */
20287 if { (eval echo configure:20288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20289 eval "ac_cv_lib_$ac_lib_var=yes"
20291 echo "configure: failed program was:" >&5
20292 cat conftest.$ac_ext >&5
20294 eval "ac_cv_lib_$ac_lib_var=no"
20297 LIBS="$ac_save_LIBS"
20300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20301 echo "$ac_t""yes" 1>&6
20304 echo "$ac_t""no" 1>&6
20310 if test $have_readline = yes ; then
20311 ol_with_readline=found
20312 ol_link_readline=yes
20314 READLINE_LIBS="-lreadline"
20319 if test $ol_link_readline = yes ; then
20320 cat >> confdefs.h <<\EOF
20321 #define HAVE_READLINE 1
20327 if test $ol_enable_crypt != no ; then
20328 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20329 echo "configure:20330: checking for crypt" >&5
20330 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20331 echo $ac_n "(cached) $ac_c" 1>&6
20333 cat > conftest.$ac_ext <<EOF
20334 #line 20335 "configure"
20335 #include "confdefs.h"
20336 /* System header to define __stub macros and hopefully few prototypes,
20337 which can conflict with char crypt(); below. */
20338 #include <assert.h>
20339 /* Override any gcc2 internal prototype to avoid an error. */
20340 /* We use char because int might match the return type of a gcc2
20341 builtin and then its argument prototype would still apply. */
20347 /* The GNU C library defines this for functions which it implements
20348 to always fail with ENOSYS. Some functions are actually named
20349 something starting with __ and the normal name is an alias. */
20350 #if defined (__stub_crypt) || defined (__stub___crypt)
20358 if { (eval echo configure:20359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20360 eval "ac_cv_func_crypt=yes"
20362 echo "configure: failed program was:" >&5
20363 cat conftest.$ac_ext >&5
20365 eval "ac_cv_func_crypt=no"
20370 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20371 echo "$ac_t""yes" 1>&6
20374 echo "$ac_t""no" 1>&6
20376 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20377 echo "configure:20378: checking for crypt in -lcrypt" >&5
20378 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20379 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20380 echo $ac_n "(cached) $ac_c" 1>&6
20382 ac_save_LIBS="$LIBS"
20383 LIBS="-lcrypt $LIBS"
20384 cat > conftest.$ac_ext <<EOF
20385 #line 20386 "configure"
20386 #include "confdefs.h"
20387 /* Override any gcc2 internal prototype to avoid an error. */
20388 /* We use char because int might match the return type of a gcc2
20389 builtin and then its argument prototype would still apply. */
20396 if { (eval echo configure:20397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20398 eval "ac_cv_lib_$ac_lib_var=yes"
20400 echo "configure: failed program was:" >&5
20401 cat conftest.$ac_ext >&5
20403 eval "ac_cv_lib_$ac_lib_var=no"
20406 LIBS="$ac_save_LIBS"
20409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20410 echo "$ac_t""yes" 1>&6
20411 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20414 echo "$ac_t""no" 1>&6
20421 if test $have_crypt = yes ; then
20422 cat >> confdefs.h <<\EOF
20423 #define HAVE_CRYPT 1
20427 echo "configure: warning: could not find crypt" 1>&2
20428 if test $ol_enable_crypt = yes ; then
20429 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20432 echo "configure: warning: disabling crypt support" 1>&2
20437 if test $ol_enable_proctitle != no ; then
20438 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20439 echo "configure:20440: checking for setproctitle" >&5
20440 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20441 echo $ac_n "(cached) $ac_c" 1>&6
20443 cat > conftest.$ac_ext <<EOF
20444 #line 20445 "configure"
20445 #include "confdefs.h"
20446 /* System header to define __stub macros and hopefully few prototypes,
20447 which can conflict with char setproctitle(); below. */
20448 #include <assert.h>
20449 /* Override any gcc2 internal prototype to avoid an error. */
20450 /* We use char because int might match the return type of a gcc2
20451 builtin and then its argument prototype would still apply. */
20452 char setproctitle();
20457 /* The GNU C library defines this for functions which it implements
20458 to always fail with ENOSYS. Some functions are actually named
20459 something starting with __ and the normal name is an alias. */
20460 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20468 if { (eval echo configure:20469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20470 eval "ac_cv_func_setproctitle=yes"
20472 echo "configure: failed program was:" >&5
20473 cat conftest.$ac_ext >&5
20475 eval "ac_cv_func_setproctitle=no"
20480 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20481 echo "$ac_t""yes" 1>&6
20482 have_setproctitle=yes
20484 echo "$ac_t""no" 1>&6
20486 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20487 echo "configure:20488: checking for setproctitle in -lutil" >&5
20488 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20489 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20490 echo $ac_n "(cached) $ac_c" 1>&6
20492 ac_save_LIBS="$LIBS"
20493 LIBS="-lutil $LIBS"
20494 cat > conftest.$ac_ext <<EOF
20495 #line 20496 "configure"
20496 #include "confdefs.h"
20497 /* Override any gcc2 internal prototype to avoid an error. */
20498 /* We use char because int might match the return type of a gcc2
20499 builtin and then its argument prototype would still apply. */
20500 char setproctitle();
20506 if { (eval echo configure:20507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20508 eval "ac_cv_lib_$ac_lib_var=yes"
20510 echo "configure: failed program was:" >&5
20511 cat conftest.$ac_ext >&5
20513 eval "ac_cv_lib_$ac_lib_var=no"
20516 LIBS="$ac_save_LIBS"
20519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20520 echo "$ac_t""yes" 1>&6
20521 have_setproctitle=yes
20522 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20524 echo "$ac_t""no" 1>&6
20525 have_setproctitle=no
20526 LIBOBJS="$LIBOBJS setproctitle.o"
20527 LIBSRCS="$LIBSRCS setproctitle.c"
20533 if test $have_setproctitle = yes ; then
20534 cat >> confdefs.h <<\EOF
20535 #define HAVE_SETPROCTITLE 1
20541 if test $ol_enable_slp != no ; then
20542 for ac_hdr in slp.h
20544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20546 echo "configure:20547: checking for $ac_hdr" >&5
20547 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20548 echo $ac_n "(cached) $ac_c" 1>&6
20550 cat > conftest.$ac_ext <<EOF
20551 #line 20552 "configure"
20552 #include "confdefs.h"
20555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20556 { (eval echo configure:20557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20558 if test -z "$ac_err"; then
20560 eval "ac_cv_header_$ac_safe=yes"
20563 echo "configure: failed program was:" >&5
20564 cat conftest.$ac_ext >&5
20566 eval "ac_cv_header_$ac_safe=no"
20570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20571 echo "$ac_t""yes" 1>&6
20572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20573 cat >> confdefs.h <<EOF
20574 #define $ac_tr_hdr 1
20578 echo "$ac_t""no" 1>&6
20583 if test $ac_cv_header_slp_h = yes ; then
20584 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20585 echo "configure:20586: checking for SLPOpen in -lslp" >&5
20586 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20587 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20588 echo $ac_n "(cached) $ac_c" 1>&6
20590 ac_save_LIBS="$LIBS"
20592 cat > conftest.$ac_ext <<EOF
20593 #line 20594 "configure"
20594 #include "confdefs.h"
20595 /* Override any gcc2 internal prototype to avoid an error. */
20596 /* We use char because int might match the return type of a gcc2
20597 builtin and then its argument prototype would still apply. */
20604 if { (eval echo configure:20605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20606 eval "ac_cv_lib_$ac_lib_var=yes"
20608 echo "configure: failed program was:" >&5
20609 cat conftest.$ac_ext >&5
20611 eval "ac_cv_lib_$ac_lib_var=no"
20614 LIBS="$ac_save_LIBS"
20617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20618 echo "$ac_t""yes" 1>&6
20621 echo "$ac_t""no" 1>&6
20625 if test $have_slp = yes ; then
20626 cat >> confdefs.h <<\EOF
20630 SLAPD_SLP_LIBS=-lslp
20633 elif test $ol_enable_slp = yes ; then
20634 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20638 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20639 echo "configure:20640: checking for ANSI C header files" >&5
20640 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20641 echo $ac_n "(cached) $ac_c" 1>&6
20643 cat > conftest.$ac_ext <<EOF
20644 #line 20645 "configure"
20645 #include "confdefs.h"
20646 #include <stdlib.h>
20647 #include <stdarg.h>
20648 #include <string.h>
20651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20652 { (eval echo configure:20653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20654 if test -z "$ac_err"; then
20656 ac_cv_header_stdc=yes
20659 echo "configure: failed program was:" >&5
20660 cat conftest.$ac_ext >&5
20662 ac_cv_header_stdc=no
20666 if test $ac_cv_header_stdc = yes; then
20667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20668 cat > conftest.$ac_ext <<EOF
20669 #line 20670 "configure"
20670 #include "confdefs.h"
20671 #include <string.h>
20673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20674 egrep "memchr" >/dev/null 2>&1; then
20678 ac_cv_header_stdc=no
20684 if test $ac_cv_header_stdc = yes; then
20685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20686 cat > conftest.$ac_ext <<EOF
20687 #line 20688 "configure"
20688 #include "confdefs.h"
20689 #include <stdlib.h>
20691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20692 egrep "free" >/dev/null 2>&1; then
20696 ac_cv_header_stdc=no
20702 if test $ac_cv_header_stdc = yes; then
20703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20704 if test "$cross_compiling" = yes; then
20707 cat > conftest.$ac_ext <<EOF
20708 #line 20709 "configure"
20709 #include "confdefs.h"
20711 #if ((' ' & 0x0FF) == 0x020)
20712 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20713 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20715 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20716 || ('j' <= (c) && (c) <= 'r') \
20717 || ('s' <= (c) && (c) <= 'z'))
20718 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20721 int main () { int i; for (i = 0; i < 256; i++)
20722 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20726 if { (eval echo configure:20727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20730 echo "configure: failed program was:" >&5
20731 cat conftest.$ac_ext >&5
20733 ac_cv_header_stdc=no
20741 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20742 if test $ac_cv_header_stdc = yes; then
20743 cat >> confdefs.h <<\EOF
20744 #define STDC_HEADERS 1
20749 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20750 echo "configure:20751: checking for mode_t" >&5
20751 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20752 echo $ac_n "(cached) $ac_c" 1>&6
20754 cat > conftest.$ac_ext <<EOF
20755 #line 20756 "configure"
20756 #include "confdefs.h"
20757 #include <sys/types.h>
20759 #include <stdlib.h>
20760 #include <stddef.h>
20764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20765 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20767 eval "ac_cv_type_mode_t=yes"
20770 eval "ac_cv_type_mode_t=no"
20775 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20776 echo "$ac_t""yes" 1>&6
20778 echo "$ac_t""no" 1>&6
20779 cat >> confdefs.h <<EOF
20785 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20786 echo "configure:20787: checking for off_t" >&5
20787 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20788 echo $ac_n "(cached) $ac_c" 1>&6
20790 cat > conftest.$ac_ext <<EOF
20791 #line 20792 "configure"
20792 #include "confdefs.h"
20793 #include <sys/types.h>
20795 #include <stdlib.h>
20796 #include <stddef.h>
20800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20801 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20803 eval "ac_cv_type_off_t=yes"
20806 eval "ac_cv_type_off_t=no"
20811 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20812 echo "$ac_t""yes" 1>&6
20814 echo "$ac_t""no" 1>&6
20815 cat >> confdefs.h <<EOF
20821 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20822 echo "configure:20823: checking for pid_t" >&5
20823 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20824 echo $ac_n "(cached) $ac_c" 1>&6
20826 cat > conftest.$ac_ext <<EOF
20827 #line 20828 "configure"
20828 #include "confdefs.h"
20829 #include <sys/types.h>
20831 #include <stdlib.h>
20832 #include <stddef.h>
20836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20837 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20839 eval "ac_cv_type_pid_t=yes"
20842 eval "ac_cv_type_pid_t=no"
20847 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20848 echo "$ac_t""yes" 1>&6
20850 echo "$ac_t""no" 1>&6
20851 cat >> confdefs.h <<EOF
20857 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20858 echo "configure:20859: checking for ptrdiff_t" >&5
20859 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20860 echo $ac_n "(cached) $ac_c" 1>&6
20862 cat > conftest.$ac_ext <<EOF
20863 #line 20864 "configure"
20864 #include "confdefs.h"
20865 #include <stddef.h>
20870 if { (eval echo configure:20871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20872 am_cv_type_ptrdiff_t=yes
20874 echo "configure: failed program was:" >&5
20875 cat conftest.$ac_ext >&5
20877 am_cv_type_ptrdiff_t=no
20882 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20883 if test $am_cv_type_ptrdiff_t = yes; then
20884 cat >> confdefs.h <<\EOF
20885 #define HAVE_PTRDIFF_T 1
20890 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20891 echo "configure:20892: checking return type of signal handlers" >&5
20892 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20893 echo $ac_n "(cached) $ac_c" 1>&6
20895 cat > conftest.$ac_ext <<EOF
20896 #line 20897 "configure"
20897 #include "confdefs.h"
20898 #include <sys/types.h>
20899 #include <signal.h>
20904 extern "C" void (*signal (int, void (*)(int)))(int);
20906 void (*signal ()) ();
20913 if { (eval echo configure:20914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20915 ac_cv_type_signal=void
20917 echo "configure: failed program was:" >&5
20918 cat conftest.$ac_ext >&5
20920 ac_cv_type_signal=int
20925 echo "$ac_t""$ac_cv_type_signal" 1>&6
20926 cat >> confdefs.h <<EOF
20927 #define RETSIGTYPE $ac_cv_type_signal
20931 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20932 echo "configure:20933: checking for size_t" >&5
20933 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20934 echo $ac_n "(cached) $ac_c" 1>&6
20936 cat > conftest.$ac_ext <<EOF
20937 #line 20938 "configure"
20938 #include "confdefs.h"
20939 #include <sys/types.h>
20941 #include <stdlib.h>
20942 #include <stddef.h>
20946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20947 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20949 eval "ac_cv_type_size_t=yes"
20952 eval "ac_cv_type_size_t=no"
20957 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20958 echo "$ac_t""yes" 1>&6
20960 echo "$ac_t""no" 1>&6
20961 cat >> confdefs.h <<EOF
20962 #define size_t unsigned
20968 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20969 echo "configure:20970: checking for ssize_t" >&5
20970 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20971 echo $ac_n "(cached) $ac_c" 1>&6
20973 cat > conftest.$ac_ext <<EOF
20974 #line 20975 "configure"
20975 #include "confdefs.h"
20976 #include <sys/types.h>
20978 #include <stdlib.h>
20979 #include <stddef.h>
20983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20984 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20986 eval "ac_cv_type_ssize_t=yes"
20989 eval "ac_cv_type_ssize_t=no"
20994 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20995 echo "$ac_t""yes" 1>&6
20997 echo "$ac_t""no" 1>&6
20998 cat >> confdefs.h <<EOF
20999 #define ssize_t signed int
21004 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21005 echo "configure:21006: checking for caddr_t" >&5
21006 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21007 echo $ac_n "(cached) $ac_c" 1>&6
21009 cat > conftest.$ac_ext <<EOF
21010 #line 21011 "configure"
21011 #include "confdefs.h"
21012 #include <sys/types.h>
21014 #include <stdlib.h>
21015 #include <stddef.h>
21019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21020 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21022 eval "ac_cv_type_caddr_t=yes"
21025 eval "ac_cv_type_caddr_t=no"
21030 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21031 echo "$ac_t""yes" 1>&6
21033 echo "$ac_t""no" 1>&6
21034 cat >> confdefs.h <<EOF
21035 #define caddr_t char *
21041 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21042 echo "configure:21043: checking for socklen_t" >&5
21043 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21044 echo $ac_n "(cached) $ac_c" 1>&6
21046 cat > conftest.$ac_ext <<EOF
21047 #line 21048 "configure"
21048 #include "confdefs.h"
21050 #ifdef HAVE_SYS_TYPES_H
21051 #include <sys/types.h>
21053 #ifdef HAVE_SYS_SOCKET_H
21054 #include <sys/socket.h>
21061 if { (eval echo configure:21062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21063 ol_cv_type_socklen_t=yes
21065 echo "configure: failed program was:" >&5
21066 cat conftest.$ac_ext >&5
21068 ol_cv_type_socklen_t=no
21073 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21074 if test $ol_cv_type_socklen_t = no; then
21075 cat >> confdefs.h <<\EOF
21076 #define socklen_t int
21081 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21082 echo "configure:21083: checking for member st_blksize in aggregate type struct stat" >&5
21083 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21084 echo $ac_n "(cached) $ac_c" 1>&6
21086 cat > conftest.$ac_ext <<EOF
21087 #line 21088 "configure"
21088 #include "confdefs.h"
21089 #include <sys/types.h>
21090 #include <sys/stat.h>
21092 struct stat foo; foo.st_blksize;
21095 if { (eval echo configure:21096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21097 ac_cv_c_struct_member_st_blksize=yes
21099 echo "configure: failed program was:" >&5
21100 cat conftest.$ac_ext >&5
21102 ac_cv_c_struct_member_st_blksize=no
21107 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21108 st_blksize="$ac_cv_c_struct_member_st_blksize"
21109 if test $ac_cv_c_struct_member_st_blksize = yes; then
21110 cat >> confdefs.h <<\EOF
21111 #define HAVE_ST_BLKSIZE 1
21116 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21117 echo "configure:21118: checking whether time.h and sys/time.h may both be included" >&5
21118 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21119 echo $ac_n "(cached) $ac_c" 1>&6
21121 cat > conftest.$ac_ext <<EOF
21122 #line 21123 "configure"
21123 #include "confdefs.h"
21124 #include <sys/types.h>
21125 #include <sys/time.h>
21131 if { (eval echo configure:21132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21133 ac_cv_header_time=yes
21135 echo "configure: failed program was:" >&5
21136 cat conftest.$ac_ext >&5
21138 ac_cv_header_time=no
21143 echo "$ac_t""$ac_cv_header_time" 1>&6
21144 if test $ac_cv_header_time = yes; then
21145 cat >> confdefs.h <<\EOF
21146 #define TIME_WITH_SYS_TIME 1
21151 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21152 echo "configure:21153: checking whether struct tm is in sys/time.h or time.h" >&5
21153 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21154 echo $ac_n "(cached) $ac_c" 1>&6
21156 cat > conftest.$ac_ext <<EOF
21157 #line 21158 "configure"
21158 #include "confdefs.h"
21159 #include <sys/types.h>
21162 struct tm *tp; tp->tm_sec;
21165 if { (eval echo configure:21166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21167 ac_cv_struct_tm=time.h
21169 echo "configure: failed program was:" >&5
21170 cat conftest.$ac_ext >&5
21172 ac_cv_struct_tm=sys/time.h
21177 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21178 if test $ac_cv_struct_tm = sys/time.h; then
21179 cat >> confdefs.h <<\EOF
21180 #define TM_IN_SYS_TIME 1
21185 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21186 echo "configure:21187: checking for uid_t in sys/types.h" >&5
21187 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21188 echo $ac_n "(cached) $ac_c" 1>&6
21190 cat > conftest.$ac_ext <<EOF
21191 #line 21192 "configure"
21192 #include "confdefs.h"
21193 #include <sys/types.h>
21195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21196 egrep "uid_t" >/dev/null 2>&1; then
21198 ac_cv_type_uid_t=yes
21201 ac_cv_type_uid_t=no
21207 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21208 if test $ac_cv_type_uid_t = no; then
21209 cat >> confdefs.h <<\EOF
21213 cat >> confdefs.h <<\EOF
21219 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21220 echo "configure:21221: checking for sig_atomic_t" >&5
21221 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21222 echo $ac_n "(cached) $ac_c" 1>&6
21224 cat > conftest.$ac_ext <<EOF
21225 #line 21226 "configure"
21226 #include "confdefs.h"
21227 #include <signal.h>
21229 sig_atomic_t atomic;
21232 if { (eval echo configure:21233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21234 ol_cv_type_sig_atomic_t=yes
21236 echo "configure: failed program was:" >&5
21237 cat conftest.$ac_ext >&5
21239 ol_cv_type_sig_atomic_t=no
21244 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21245 if test $ol_cv_type_sig_atomic_t = no; then
21246 cat >> confdefs.h <<\EOF
21247 #define sig_atomic_t int
21254 # test for pw_gecos in struct passwd
21255 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21256 echo "configure:21257: checking struct passwd for pw_gecos" >&5
21257 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21258 echo $ac_n "(cached) $ac_c" 1>&6
21261 cat > conftest.$ac_ext <<EOF
21262 #line 21263 "configure"
21263 #include "confdefs.h"
21268 pwd.pw_gecos = pwd.pw_name;
21272 if { (eval echo configure:21273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21274 ol_cv_struct_passwd_pw_gecos=yes
21276 echo "configure: failed program was:" >&5
21277 cat conftest.$ac_ext >&5
21279 ol_cv_struct_passwd_pw_gecos=no
21284 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21285 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21286 cat >> confdefs.h <<\EOF
21287 #define HAVE_PW_GECOS 1
21292 # test for pw_passwd in struct passwd
21293 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21294 echo "configure:21295: checking struct passwd for pw_passwd" >&5
21295 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21296 echo $ac_n "(cached) $ac_c" 1>&6
21299 cat > conftest.$ac_ext <<EOF
21300 #line 21301 "configure"
21301 #include "confdefs.h"
21306 pwd.pw_passwd = pwd.pw_name;
21310 if { (eval echo configure:21311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21312 ol_cv_struct_passwd_pw_passwd=yes
21314 echo "configure: failed program was:" >&5
21315 cat conftest.$ac_ext >&5
21317 ol_cv_struct_passwd_pw_passwd=no
21322 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21323 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21324 cat >> confdefs.h <<\EOF
21325 #define HAVE_PW_PASSWD 1
21331 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21332 echo "configure:21333: checking if toupper() requires islower()" >&5
21333 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21334 echo $ac_n "(cached) $ac_c" 1>&6
21337 if test "$cross_compiling" = yes; then
21338 ol_cv_c_upper_lower=safe
21340 cat > conftest.$ac_ext <<EOF
21341 #line 21342 "configure"
21342 #include "confdefs.h"
21347 if ('C' == toupper('C'))
21353 if { (eval echo configure:21354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21355 ol_cv_c_upper_lower=no
21357 echo "configure: failed program was:" >&5
21358 cat conftest.$ac_ext >&5
21360 ol_cv_c_upper_lower=yes
21367 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21368 if test $ol_cv_c_upper_lower != no ; then
21369 cat >> confdefs.h <<\EOF
21370 #define C_UPPER_LOWER 1
21375 echo $ac_n "checking for working const""... $ac_c" 1>&6
21376 echo "configure:21377: checking for working const" >&5
21377 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21378 echo $ac_n "(cached) $ac_c" 1>&6
21380 cat > conftest.$ac_ext <<EOF
21381 #line 21382 "configure"
21382 #include "confdefs.h"
21386 /* Ultrix mips cc rejects this. */
21387 typedef int charset[2]; const charset x;
21388 /* SunOS 4.1.1 cc rejects this. */
21389 char const *const *ccp;
21391 /* NEC SVR4.0.2 mips cc rejects this. */
21392 struct point {int x, y;};
21393 static struct point const zero = {0,0};
21394 /* AIX XL C 1.02.0.0 rejects this.
21395 It does not let you subtract one const X* pointer from another in an arm
21396 of an if-expression whose if-part is not a constant expression */
21397 const char *g = "string";
21398 ccp = &g + (g ? g-g : 0);
21399 /* HPUX 7.0 cc rejects these. */
21402 ccp = (char const *const *) p;
21403 { /* SCO 3.2v4 cc rejects this. */
21405 char const *s = 0 ? (char *) 0 : (char const *) 0;
21409 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21410 int x[] = {25, 17};
21411 const int *foo = &x[0];
21414 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21415 typedef const int *iptr;
21419 { /* AIX XL C 1.02.0.0 rejects this saying
21420 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21421 struct s { int j; const int *ap[3]; };
21422 struct s *b; b->j = 5;
21424 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21425 const int foo = 10;
21430 if { (eval echo configure:21431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21434 echo "configure: failed program was:" >&5
21435 cat conftest.$ac_ext >&5
21442 echo "$ac_t""$ac_cv_c_const" 1>&6
21443 if test $ac_cv_c_const = no; then
21444 cat >> confdefs.h <<\EOF
21450 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21451 echo "configure:21452: checking if compiler understands volatile" >&5
21452 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21453 echo $ac_n "(cached) $ac_c" 1>&6
21455 cat > conftest.$ac_ext <<EOF
21456 #line 21457 "configure"
21457 #include "confdefs.h"
21460 volatile int a; int * volatile b = x ? &y : &z;
21461 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21465 if { (eval echo configure:21466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21467 ol_cv_c_volatile=yes
21469 echo "configure: failed program was:" >&5
21470 cat conftest.$ac_ext >&5
21472 ol_cv_c_volatile=no
21477 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21478 if test $ol_cv_c_volatile = yes; then
21481 cat >> confdefs.h <<\EOF
21488 if test $cross_compiling = yes ; then
21489 cat >> confdefs.h <<\EOF
21490 #define CROSS_COMPILING 1
21494 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21495 echo "configure:21496: checking whether byte ordering is bigendian" >&5
21496 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21497 echo $ac_n "(cached) $ac_c" 1>&6
21499 ac_cv_c_bigendian=unknown
21500 # See if sys/param.h defines the BYTE_ORDER macro.
21501 cat > conftest.$ac_ext <<EOF
21502 #line 21503 "configure"
21503 #include "confdefs.h"
21504 #include <sys/types.h>
21505 #include <sys/param.h>
21508 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21509 bogus endian macros
21513 if { (eval echo configure:21514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21515 # It does; now see whether it defined to BIG_ENDIAN or not.
21516 cat > conftest.$ac_ext <<EOF
21517 #line 21518 "configure"
21518 #include "confdefs.h"
21519 #include <sys/types.h>
21520 #include <sys/param.h>
21523 #if BYTE_ORDER != BIG_ENDIAN
21528 if { (eval echo configure:21529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21530 ac_cv_c_bigendian=yes
21532 echo "configure: failed program was:" >&5
21533 cat conftest.$ac_ext >&5
21535 ac_cv_c_bigendian=no
21539 echo "configure: failed program was:" >&5
21540 cat conftest.$ac_ext >&5
21543 if test $ac_cv_c_bigendian = unknown; then
21544 if test "$cross_compiling" = yes; then
21545 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21547 cat > conftest.$ac_ext <<EOF
21548 #line 21549 "configure"
21549 #include "confdefs.h"
21551 /* Are we little or big endian? From Harbison&Steele. */
21555 char c[sizeof (long)];
21558 exit (u.c[sizeof (long) - 1] == 1);
21561 if { (eval echo configure:21562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21563 ac_cv_c_bigendian=no
21565 echo "configure: failed program was:" >&5
21566 cat conftest.$ac_ext >&5
21568 ac_cv_c_bigendian=yes
21576 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21577 if test $ac_cv_c_bigendian = yes; then
21578 cat >> confdefs.h <<\EOF
21579 #define WORDS_BIGENDIAN 1
21586 echo $ac_n "checking size of short""... $ac_c" 1>&6
21587 echo "configure:21588: checking size of short" >&5
21588 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21589 echo $ac_n "(cached) $ac_c" 1>&6
21591 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21595 #include "confdefs.h"
21596 #include <sys/types.h>
21600 switch (0) case 0: case (sizeof (short) == $ac_size):;
21603 if { (eval echo configure:21604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21605 ac_cv_sizeof_short=$ac_size
21607 echo "configure: failed program was:" >&5
21608 cat conftest.$ac_ext >&5
21611 if test x$ac_cv_sizeof_short != x ; then break; fi
21616 if test x$ac_cv_sizeof_short = x ; then
21617 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21619 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21620 cat >> confdefs.h <<EOF
21621 #define SIZEOF_SHORT $ac_cv_sizeof_short
21625 echo $ac_n "checking size of int""... $ac_c" 1>&6
21626 echo "configure:21627: checking size of int" >&5
21627 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21628 echo $ac_n "(cached) $ac_c" 1>&6
21630 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21631 cat > conftest.$ac_ext <<EOF
21632 #line 21633 "configure"
21633 #include "confdefs.h"
21634 #include "confdefs.h"
21635 #include <sys/types.h>
21639 switch (0) case 0: case (sizeof (int) == $ac_size):;
21642 if { (eval echo configure:21643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21644 ac_cv_sizeof_int=$ac_size
21646 echo "configure: failed program was:" >&5
21647 cat conftest.$ac_ext >&5
21650 if test x$ac_cv_sizeof_int != x ; then break; fi
21655 if test x$ac_cv_sizeof_int = x ; then
21656 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21658 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21659 cat >> confdefs.h <<EOF
21660 #define SIZEOF_INT $ac_cv_sizeof_int
21664 echo $ac_n "checking size of long""... $ac_c" 1>&6
21665 echo "configure:21666: checking size of long" >&5
21666 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21667 echo $ac_n "(cached) $ac_c" 1>&6
21669 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21670 cat > conftest.$ac_ext <<EOF
21671 #line 21672 "configure"
21672 #include "confdefs.h"
21673 #include "confdefs.h"
21674 #include <sys/types.h>
21678 switch (0) case 0: case (sizeof (long) == $ac_size):;
21681 if { (eval echo configure:21682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21683 ac_cv_sizeof_long=$ac_size
21685 echo "configure: failed program was:" >&5
21686 cat conftest.$ac_ext >&5
21689 if test x$ac_cv_sizeof_long != x ; then break; fi
21694 if test x$ac_cv_sizeof_long = x ; then
21695 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21697 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21698 cat >> confdefs.h <<EOF
21699 #define SIZEOF_LONG $ac_cv_sizeof_long
21704 if test "$ac_cv_sizeof_int" -lt 4 ; then
21705 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21707 cat >> confdefs.h <<\EOF
21708 #define LBER_INT_T long
21712 cat >> confdefs.h <<\EOF
21713 #define LBER_INT_T int
21718 cat >> confdefs.h <<\EOF
21719 #define LBER_LEN_T long
21722 cat >> confdefs.h <<\EOF
21723 #define LBER_SOCKET_T int
21726 cat >> confdefs.h <<\EOF
21727 #define LBER_TAG_T long
21731 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21732 echo "configure:21733: checking for 8-bit clean memcmp" >&5
21733 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21734 echo $ac_n "(cached) $ac_c" 1>&6
21736 if test "$cross_compiling" = yes; then
21737 ac_cv_func_memcmp_clean=no
21739 cat > conftest.$ac_ext <<EOF
21740 #line 21741 "configure"
21741 #include "confdefs.h"
21745 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21746 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21750 if { (eval echo configure:21751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21752 ac_cv_func_memcmp_clean=yes
21754 echo "configure: failed program was:" >&5
21755 cat conftest.$ac_ext >&5
21757 ac_cv_func_memcmp_clean=no
21764 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21765 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21767 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21768 echo "configure:21769: checking for strftime" >&5
21769 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21770 echo $ac_n "(cached) $ac_c" 1>&6
21772 cat > conftest.$ac_ext <<EOF
21773 #line 21774 "configure"
21774 #include "confdefs.h"
21775 /* System header to define __stub macros and hopefully few prototypes,
21776 which can conflict with char strftime(); below. */
21777 #include <assert.h>
21778 /* Override any gcc2 internal prototype to avoid an error. */
21779 /* We use char because int might match the return type of a gcc2
21780 builtin and then its argument prototype would still apply. */
21786 /* The GNU C library defines this for functions which it implements
21787 to always fail with ENOSYS. Some functions are actually named
21788 something starting with __ and the normal name is an alias. */
21789 #if defined (__stub_strftime) || defined (__stub___strftime)
21797 if { (eval echo configure:21798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21799 eval "ac_cv_func_strftime=yes"
21801 echo "configure: failed program was:" >&5
21802 cat conftest.$ac_ext >&5
21804 eval "ac_cv_func_strftime=no"
21809 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21810 echo "$ac_t""yes" 1>&6
21811 cat >> confdefs.h <<\EOF
21812 #define HAVE_STRFTIME 1
21816 echo "$ac_t""no" 1>&6
21817 # strftime is in -lintl on SCO UNIX.
21818 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21819 echo "configure:21820: checking for strftime in -lintl" >&5
21820 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21822 echo $ac_n "(cached) $ac_c" 1>&6
21824 ac_save_LIBS="$LIBS"
21825 LIBS="-lintl $LIBS"
21826 cat > conftest.$ac_ext <<EOF
21827 #line 21828 "configure"
21828 #include "confdefs.h"
21829 /* Override any gcc2 internal prototype to avoid an error. */
21830 /* We use char because int might match the return type of a gcc2
21831 builtin and then its argument prototype would still apply. */
21838 if { (eval echo configure:21839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21840 eval "ac_cv_lib_$ac_lib_var=yes"
21842 echo "configure: failed program was:" >&5
21843 cat conftest.$ac_ext >&5
21845 eval "ac_cv_lib_$ac_lib_var=no"
21848 LIBS="$ac_save_LIBS"
21851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21852 echo "$ac_t""yes" 1>&6
21853 cat >> confdefs.h <<\EOF
21854 #define HAVE_STRFTIME 1
21857 LIBS="-lintl $LIBS"
21859 echo "$ac_t""no" 1>&6
21865 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21866 echo "configure:21867: checking for inet_aton()" >&5
21867 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21868 echo $ac_n "(cached) $ac_c" 1>&6
21870 cat > conftest.$ac_ext <<EOF
21871 #line 21872 "configure"
21872 #include "confdefs.h"
21874 #ifdef HAVE_SYS_TYPES_H
21875 # include <sys/types.h>
21877 #ifdef HAVE_SYS_SOCKET_H
21878 # include <sys/socket.h>
21879 # ifdef HAVE_SYS_SELECT_H
21880 # include <sys/select.h>
21882 # include <netinet/in.h>
21883 # ifdef HAVE_ARPA_INET_H
21884 # include <arpa/inet.h>
21890 int rc = inet_aton( "255.255.255.255", &in );
21893 if { (eval echo configure:21894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21895 ol_cv_func_inet_aton=yes
21897 echo "configure: failed program was:" >&5
21898 cat conftest.$ac_ext >&5
21900 ol_cv_func_inet_aton=no
21905 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21906 if test $ol_cv_func_inet_aton != no; then
21907 cat >> confdefs.h <<\EOF
21908 #define HAVE_INET_ATON 1
21914 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21915 echo "configure:21916: checking for _spawnlp" >&5
21916 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21917 echo $ac_n "(cached) $ac_c" 1>&6
21919 cat > conftest.$ac_ext <<EOF
21920 #line 21921 "configure"
21921 #include "confdefs.h"
21922 /* System header to define __stub macros and hopefully few prototypes,
21923 which can conflict with char _spawnlp(); below. */
21924 #include <assert.h>
21925 /* Override any gcc2 internal prototype to avoid an error. */
21926 /* We use char because int might match the return type of a gcc2
21927 builtin and then its argument prototype would still apply. */
21933 /* The GNU C library defines this for functions which it implements
21934 to always fail with ENOSYS. Some functions are actually named
21935 something starting with __ and the normal name is an alias. */
21936 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21944 if { (eval echo configure:21945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21946 eval "ac_cv_func__spawnlp=yes"
21948 echo "configure: failed program was:" >&5
21949 cat conftest.$ac_ext >&5
21951 eval "ac_cv_func__spawnlp=no"
21956 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21957 echo "$ac_t""yes" 1>&6
21958 cat >> confdefs.h <<\EOF
21959 #define HAVE_SPAWNLP 1
21963 echo "$ac_t""no" 1>&6
21967 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21968 echo "configure:21969: checking for _snprintf" >&5
21969 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21970 echo $ac_n "(cached) $ac_c" 1>&6
21972 cat > conftest.$ac_ext <<EOF
21973 #line 21974 "configure"
21974 #include "confdefs.h"
21975 /* System header to define __stub macros and hopefully few prototypes,
21976 which can conflict with char _snprintf(); below. */
21977 #include <assert.h>
21978 /* Override any gcc2 internal prototype to avoid an error. */
21979 /* We use char because int might match the return type of a gcc2
21980 builtin and then its argument prototype would still apply. */
21986 /* The GNU C library defines this for functions which it implements
21987 to always fail with ENOSYS. Some functions are actually named
21988 something starting with __ and the normal name is an alias. */
21989 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21997 if { (eval echo configure:21998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21999 eval "ac_cv_func__snprintf=yes"
22001 echo "configure: failed program was:" >&5
22002 cat conftest.$ac_ext >&5
22004 eval "ac_cv_func__snprintf=no"
22009 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22010 echo "$ac_t""yes" 1>&6
22011 ac_cv_func_snprintf=yes
22012 cat >> confdefs.h <<\EOF
22013 #define snprintf _snprintf
22018 echo "$ac_t""no" 1>&6
22022 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22023 echo "configure:22024: checking for _vsnprintf" >&5
22024 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22025 echo $ac_n "(cached) $ac_c" 1>&6
22027 cat > conftest.$ac_ext <<EOF
22028 #line 22029 "configure"
22029 #include "confdefs.h"
22030 /* System header to define __stub macros and hopefully few prototypes,
22031 which can conflict with char _vsnprintf(); below. */
22032 #include <assert.h>
22033 /* Override any gcc2 internal prototype to avoid an error. */
22034 /* We use char because int might match the return type of a gcc2
22035 builtin and then its argument prototype would still apply. */
22041 /* The GNU C library defines this for functions which it implements
22042 to always fail with ENOSYS. Some functions are actually named
22043 something starting with __ and the normal name is an alias. */
22044 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22052 if { (eval echo configure:22053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22054 eval "ac_cv_func__vsnprintf=yes"
22056 echo "configure: failed program was:" >&5
22057 cat conftest.$ac_ext >&5
22059 eval "ac_cv_func__vsnprintf=no"
22064 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22065 echo "$ac_t""yes" 1>&6
22066 ac_cv_func_vsnprintf=yes
22067 cat >> confdefs.h <<\EOF
22068 #define vsnprintf _vsnprintf
22073 echo "$ac_t""no" 1>&6
22077 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22078 echo "configure:22079: checking for vprintf" >&5
22079 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22080 echo $ac_n "(cached) $ac_c" 1>&6
22082 cat > conftest.$ac_ext <<EOF
22083 #line 22084 "configure"
22084 #include "confdefs.h"
22085 /* System header to define __stub macros and hopefully few prototypes,
22086 which can conflict with char vprintf(); below. */
22087 #include <assert.h>
22088 /* Override any gcc2 internal prototype to avoid an error. */
22089 /* We use char because int might match the return type of a gcc2
22090 builtin and then its argument prototype would still apply. */
22096 /* The GNU C library defines this for functions which it implements
22097 to always fail with ENOSYS. Some functions are actually named
22098 something starting with __ and the normal name is an alias. */
22099 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22107 if { (eval echo configure:22108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22109 eval "ac_cv_func_vprintf=yes"
22111 echo "configure: failed program was:" >&5
22112 cat conftest.$ac_ext >&5
22114 eval "ac_cv_func_vprintf=no"
22119 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22120 echo "$ac_t""yes" 1>&6
22121 cat >> confdefs.h <<\EOF
22122 #define HAVE_VPRINTF 1
22126 echo "$ac_t""no" 1>&6
22129 if test "$ac_cv_func_vprintf" != yes; then
22130 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22131 echo "configure:22132: checking for _doprnt" >&5
22132 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22133 echo $ac_n "(cached) $ac_c" 1>&6
22135 cat > conftest.$ac_ext <<EOF
22136 #line 22137 "configure"
22137 #include "confdefs.h"
22138 /* System header to define __stub macros and hopefully few prototypes,
22139 which can conflict with char _doprnt(); below. */
22140 #include <assert.h>
22141 /* Override any gcc2 internal prototype to avoid an error. */
22142 /* We use char because int might match the return type of a gcc2
22143 builtin and then its argument prototype would still apply. */
22149 /* The GNU C library defines this for functions which it implements
22150 to always fail with ENOSYS. Some functions are actually named
22151 something starting with __ and the normal name is an alias. */
22152 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22160 if { (eval echo configure:22161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22162 eval "ac_cv_func__doprnt=yes"
22164 echo "configure: failed program was:" >&5
22165 cat conftest.$ac_ext >&5
22167 eval "ac_cv_func__doprnt=no"
22172 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22173 echo "$ac_t""yes" 1>&6
22174 cat >> confdefs.h <<\EOF
22175 #define HAVE_DOPRNT 1
22179 echo "$ac_t""no" 1>&6
22185 if test $ac_cv_func_vprintf = yes ; then
22186 for ac_func in vsnprintf vsprintf
22188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22189 echo "configure:22190: checking for $ac_func" >&5
22190 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22191 echo $ac_n "(cached) $ac_c" 1>&6
22193 cat > conftest.$ac_ext <<EOF
22194 #line 22195 "configure"
22195 #include "confdefs.h"
22196 /* System header to define __stub macros and hopefully few prototypes,
22197 which can conflict with char $ac_func(); below. */
22198 #include <assert.h>
22199 /* Override any gcc2 internal prototype to avoid an error. */
22200 /* We use char because int might match the return type of a gcc2
22201 builtin and then its argument prototype would still apply. */
22207 /* The GNU C library defines this for functions which it implements
22208 to always fail with ENOSYS. Some functions are actually named
22209 something starting with __ and the normal name is an alias. */
22210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22218 if { (eval echo configure:22219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22220 eval "ac_cv_func_$ac_func=yes"
22222 echo "configure: failed program was:" >&5
22223 cat conftest.$ac_ext >&5
22225 eval "ac_cv_func_$ac_func=no"
22230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22231 echo "$ac_t""yes" 1>&6
22232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22233 cat >> confdefs.h <<EOF
22234 #define $ac_tr_func 1
22238 echo "$ac_t""no" 1>&6
22299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22300 echo "configure:22301: checking for $ac_func" >&5
22301 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22302 echo $ac_n "(cached) $ac_c" 1>&6
22304 cat > conftest.$ac_ext <<EOF
22305 #line 22306 "configure"
22306 #include "confdefs.h"
22307 /* System header to define __stub macros and hopefully few prototypes,
22308 which can conflict with char $ac_func(); below. */
22309 #include <assert.h>
22310 /* Override any gcc2 internal prototype to avoid an error. */
22311 /* We use char because int might match the return type of a gcc2
22312 builtin and then its argument prototype would still apply. */
22318 /* The GNU C library defines this for functions which it implements
22319 to always fail with ENOSYS. Some functions are actually named
22320 something starting with __ and the normal name is an alias. */
22321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22329 if { (eval echo configure:22330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22331 eval "ac_cv_func_$ac_func=yes"
22333 echo "configure: failed program was:" >&5
22334 cat conftest.$ac_ext >&5
22336 eval "ac_cv_func_$ac_func=no"
22341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22342 echo "$ac_t""yes" 1>&6
22343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22344 cat >> confdefs.h <<EOF
22345 #define $ac_tr_func 1
22349 echo "$ac_t""no" 1>&6
22354 for ac_func in getopt
22356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22357 echo "configure:22358: checking for $ac_func" >&5
22358 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22359 echo $ac_n "(cached) $ac_c" 1>&6
22361 cat > conftest.$ac_ext <<EOF
22362 #line 22363 "configure"
22363 #include "confdefs.h"
22364 /* System header to define __stub macros and hopefully few prototypes,
22365 which can conflict with char $ac_func(); below. */
22366 #include <assert.h>
22367 /* Override any gcc2 internal prototype to avoid an error. */
22368 /* We use char because int might match the return type of a gcc2
22369 builtin and then its argument prototype would still apply. */
22375 /* The GNU C library defines this for functions which it implements
22376 to always fail with ENOSYS. Some functions are actually named
22377 something starting with __ and the normal name is an alias. */
22378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22386 if { (eval echo configure:22387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22388 eval "ac_cv_func_$ac_func=yes"
22390 echo "configure: failed program was:" >&5
22391 cat conftest.$ac_ext >&5
22393 eval "ac_cv_func_$ac_func=no"
22398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22399 echo "$ac_t""yes" 1>&6
22400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22401 cat >> confdefs.h <<EOF
22402 #define $ac_tr_func 1
22406 echo "$ac_t""no" 1>&6
22407 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22413 if test "$ac_cv_func_getopt" != yes; then
22414 LIBSRCS="$LIBSRCS getopt.c"
22417 # Check Configuration
22418 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22419 echo "configure:22420: checking declaration of sys_errlist" >&5
22420 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22421 echo $ac_n "(cached) $ac_c" 1>&6
22424 cat > conftest.$ac_ext <<EOF
22425 #line 22426 "configure"
22426 #include "confdefs.h"
22429 #include <sys/types.h>
22432 #include <stdlib.h>
22435 char *c = (char *) *sys_errlist
22438 if { (eval echo configure:22439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22440 ol_cv_dcl_sys_errlist=yes
22441 ol_cv_have_sys_errlist=yes
22443 echo "configure: failed program was:" >&5
22444 cat conftest.$ac_ext >&5
22446 ol_cv_dcl_sys_errlist=no
22451 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22453 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22454 if test $ol_cv_dcl_sys_errlist = no ; then
22455 cat >> confdefs.h <<\EOF
22456 #define DECL_SYS_ERRLIST 1
22460 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22461 echo "configure:22462: checking existence of sys_errlist" >&5
22462 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22463 echo $ac_n "(cached) $ac_c" 1>&6
22466 cat > conftest.$ac_ext <<EOF
22467 #line 22468 "configure"
22468 #include "confdefs.h"
22471 char *c = (char *) *sys_errlist
22474 if { (eval echo configure:22475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22476 ol_cv_have_sys_errlist=yes
22478 echo "configure: failed program was:" >&5
22479 cat conftest.$ac_ext >&5
22481 ol_cv_have_sys_errlist=no
22486 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22488 if test $ol_cv_have_sys_errlist = yes ; then
22489 cat >> confdefs.h <<\EOF
22490 #define HAVE_SYS_ERRLIST 1
22497 if test "$ol_enable_debug" != no ; then
22498 cat >> confdefs.h <<\EOF
22499 #define LDAP_DEBUG 1
22503 if test "$ol_enable_syslog" = yes ; then
22504 cat >> confdefs.h <<\EOF
22505 #define LDAP_SYSLOG 1
22509 if test "$ol_enable_cache" = no ; then
22510 cat >> confdefs.h <<\EOF
22511 #define LDAP_NOCACHE 1
22515 if test "$ol_link_kbind" != no ; then
22516 cat >> confdefs.h <<\EOF
22517 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22521 if test "$ol_enable_proctitle" != no ; then
22522 cat >> confdefs.h <<\EOF
22523 #define LDAP_PROCTITLE 1
22527 if test "$ol_enable_referrals" != no ; then
22528 cat >> confdefs.h <<\EOF
22529 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22533 if test "$ol_enable_local" != no; then
22534 cat >> confdefs.h <<\EOF
22535 #define LDAP_PF_LOCAL 1
22539 if test "$ol_link_ipv6" != no; then
22540 cat >> confdefs.h <<\EOF
22541 #define LDAP_PF_INET6 1
22545 if test "$ol_enable_cleartext" != no ; then
22546 cat >> confdefs.h <<\EOF
22547 #define SLAPD_CLEARTEXT 1
22551 if test "$ol_enable_crypt" != no ; then
22552 cat >> confdefs.h <<\EOF
22553 #define SLAPD_CRYPT 1
22557 if test "$ol_link_kpasswd" != no ; then
22558 cat >> confdefs.h <<\EOF
22559 #define SLAPD_KPASSWD 1
22563 if test "$ol_link_spasswd" != no ; then
22564 cat >> confdefs.h <<\EOF
22565 #define SLAPD_SPASSWD 1
22569 if test "$ol_enable_multimaster" != no ; then
22570 cat >> confdefs.h <<\EOF
22571 #define SLAPD_MULTIMASTER 1
22575 if test "$ol_enable_phonetic" != no ; then
22576 cat >> confdefs.h <<\EOF
22577 #define SLAPD_PHONETIC 1
22581 if test "$ol_enable_rlookups" != no ; then
22582 cat >> confdefs.h <<\EOF
22583 #define SLAPD_RLOOKUPS 1
22587 if test "$ol_enable_aci" != no ; then
22588 cat >> confdefs.h <<\EOF
22589 #define SLAPD_ACI_ENABLED 1
22594 if test "$ol_link_modules" != no ; then
22595 cat >> confdefs.h <<\EOF
22596 #define SLAPD_MODULES 1
22600 SLAPD_MODULES_LDFLAGS="-dlopen self"
22603 if test "$ol_enable_bdb" != no ; then
22604 cat >> confdefs.h <<\EOF
22605 #define SLAPD_BDB 1
22610 if test "$ol_with_bdb_module" != static ; then
22611 cat >> confdefs.h <<\EOF
22612 #define SLAPD_BDB_DYNAMIC 1
22616 BUILD_BDB_DYNAMIC=shared
22617 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22619 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22623 if test "$ol_link_dnssrv" != no ; then
22624 cat >> confdefs.h <<\EOF
22625 #define SLAPD_DNSSRV 1
22630 if test "$ol_with_dnssrv_module" != static ; then
22631 cat >> confdefs.h <<\EOF
22632 #define SLAPD_DNSSRV_DYNAMIC 1
22636 BUILD_DNSSRV_DYNAMIC=shared
22637 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22639 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22643 if test "$ol_enable_ldap" != no ; then
22644 cat >> confdefs.h <<\EOF
22645 #define SLAPD_LDAP 1
22650 if test "$ol_with_ldap_module" != static ; then
22651 cat >> confdefs.h <<\EOF
22652 #define SLAPD_LDAP_DYNAMIC 1
22656 BUILD_LDAP_DYNAMIC=shared
22657 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22659 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22663 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22664 cat >> confdefs.h <<\EOF
22665 #define SLAPD_LDBM 1
22671 if test "$ol_with_ldbm_module" != static ; then
22672 cat >> confdefs.h <<\EOF
22673 #define SLAPD_LDBM_DYNAMIC 1
22677 BUILD_LDBM_DYNAMIC=shared
22678 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22680 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22684 if test "$ol_enable_meta" != no ; then
22685 if test "$ol_enable_ldap" = no ; then
22686 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22688 if test "$ol_enable_rewrite" = no ; then
22689 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22691 cat >> confdefs.h <<\EOF
22692 #define SLAPD_META 1
22699 if test "$ol_with_meta_module" != static ; then
22700 cat >> confdefs.h <<\EOF
22701 #define SLAPD_META_DYNAMIC 1
22705 BUILD_META_DYNAMIC=shared
22706 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22708 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22712 if test "$ol_enable_monitor" != no ; then
22713 cat >> confdefs.h <<\EOF
22714 #define SLAPD_MONITOR 1
22719 if test "$ol_with_monitor_module" != static ; then
22720 cat >> confdefs.h <<\EOF
22721 #define SLAPD_MONITOR_DYNAMIC 1
22725 BUILD_MONITOR_DYNAMIC=shared
22726 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22728 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22732 if test "$ol_enable_null" != no ; then
22733 cat >> confdefs.h <<\EOF
22734 #define SLAPD_NULL 1
22739 if test "$ol_with_null_module" != static ; then
22740 cat >> confdefs.h <<\EOF
22741 #define SLAPD_NULL_DYNAMIC 1
22745 BUILD_NULL_DYNAMIC=shared
22746 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22748 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22752 if test "$ol_enable_passwd" != no ; then
22753 cat >> confdefs.h <<\EOF
22754 #define SLAPD_PASSWD 1
22759 if test "$ol_with_passwd_module" != static ; then
22760 cat >> confdefs.h <<\EOF
22761 #define SLAPD_PASSWD_DYNAMIC 1
22765 BUILD_PASSWD_DYNAMIC=shared
22766 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22768 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22772 if test "$ol_link_perl" != no ; then
22773 cat >> confdefs.h <<\EOF
22774 #define SLAPD_PERL 1
22779 if test "$ol_with_perl_module" != static ; then
22780 cat >> confdefs.h <<\EOF
22781 #define SLAPD_PERL_DYNAMIC 1
22785 BUILD_PERL_DYNAMIC=shared
22786 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22788 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22792 if test "$ol_enable_shell" != no ; then
22793 cat >> confdefs.h <<\EOF
22794 #define SLAPD_SHELL 1
22799 if test "$ol_with_shell_module" != static ; then
22800 cat >> confdefs.h <<\EOF
22801 #define SLAPD_SHELL_DYNAMIC 1
22805 BUILD_SHELL_DYNAMIC=shared
22806 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22808 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22812 if test "$ol_link_sql" != no ; then
22813 cat >> confdefs.h <<\EOF
22814 #define SLAPD_SQL 1
22819 if test "$ol_with_sql_module" != static; then
22820 cat >> confdefs.h <<\EOF
22821 #define SLAPD_SQL_DYNAMIC 1
22825 BUILD_SQL_DYNAMIC=shared
22826 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22828 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22832 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22833 $BUILD_SLAPD = yes ; then
22837 if test "$ol_enable_rewrite" != no ; then
22838 cat >> confdefs.h <<\EOF
22839 #define ENABLE_REWRITE 1
22847 if test "$ac_cv_mingw32" = yes ; then
22849 SLAPD_MODULES_LDFLAGS=
22919 # Check whether --with-xxinstall or --without-xxinstall was given.
22920 if test "${with_xxinstall+set}" = set; then
22921 withval="$with_xxinstall"
22929 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22932 # Let make expand exec_prefix.
22933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22935 # Any assignment to VPATH causes Sun make to only execute
22936 # the first set of double-colon rules, so remove it if not needed.
22937 # If there is a colon in the path, we need to keep it.
22938 if test "x$srcdir" = x.; then
22939 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22942 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22944 DEFS=-DHAVE_CONFIG_H
22946 # Without the "./", some shells look in PATH for config.status.
22947 : ${CONFIG_STATUS=./config.status}
22949 echo creating $CONFIG_STATUS
22950 rm -f $CONFIG_STATUS
22951 cat > $CONFIG_STATUS <<EOF
22953 # Generated automatically by configure.
22954 # Run this file to recreate the current configuration.
22955 # This directory was configured as follows,
22956 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22958 # $0 $ac_configure_args
22960 # Compiler output produced by configure, useful for debugging
22961 # configure, is in ./config.log if it exists.
22963 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22966 case "\$ac_option" in
22967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22968 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22969 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22970 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22971 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22973 -help | --help | --hel | --he | --h)
22974 echo "\$ac_cs_usage"; exit 0 ;;
22975 *) echo "\$ac_cs_usage"; exit 1 ;;
22979 ac_given_srcdir=$srcdir
22980 ac_given_INSTALL="$INSTALL"
22982 trap 'rm -fr `echo "\
22983 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22984 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22985 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22986 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22987 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22988 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22989 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22990 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22991 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22992 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22993 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22994 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22995 include/Makefile:build/top.mk:include/Makefile.in \
22996 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22997 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22998 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22999 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23000 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23001 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23002 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23003 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23004 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23005 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23006 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23007 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23008 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23009 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23010 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23011 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23012 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23013 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23014 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23015 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23016 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23017 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23018 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23019 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23020 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23021 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23022 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23023 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23024 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23026 cat >> $CONFIG_STATUS <<EOF
23028 # Protect against being on the right side of a sed subst in config.status.
23029 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23030 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23034 s%@CFLAGS@%$CFLAGS%g
23035 s%@CPPFLAGS@%$CPPFLAGS%g
23036 s%@CXXFLAGS@%$CXXFLAGS%g
23037 s%@FFLAGS@%$FFLAGS%g
23039 s%@LDFLAGS@%$LDFLAGS%g
23041 s%@exec_prefix@%$exec_prefix%g
23042 s%@prefix@%$prefix%g
23043 s%@program_transform_name@%$program_transform_name%g
23044 s%@bindir@%$bindir%g
23045 s%@sbindir@%$sbindir%g
23046 s%@libexecdir@%$libexecdir%g
23047 s%@datadir@%$datadir%g
23048 s%@sysconfdir@%$sysconfdir%g
23049 s%@sharedstatedir@%$sharedstatedir%g
23050 s%@localstatedir@%$localstatedir%g
23051 s%@libdir@%$libdir%g
23052 s%@includedir@%$includedir%g
23053 s%@oldincludedir@%$oldincludedir%g
23054 s%@infodir@%$infodir%g
23055 s%@mandir@%$mandir%g
23057 s%@host_alias@%$host_alias%g
23058 s%@host_cpu@%$host_cpu%g
23059 s%@host_vendor@%$host_vendor%g
23060 s%@host_os@%$host_os%g
23061 s%@target@%$target%g
23062 s%@target_alias@%$target_alias%g
23063 s%@target_cpu@%$target_cpu%g
23064 s%@target_vendor@%$target_vendor%g
23065 s%@target_os@%$target_os%g
23067 s%@build_alias@%$build_alias%g
23068 s%@build_cpu@%$build_cpu%g
23069 s%@build_vendor@%$build_vendor%g
23070 s%@build_os@%$build_os%g
23071 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23072 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23073 s%@INSTALL_DATA@%$INSTALL_DATA%g
23074 s%@PACKAGE@%$PACKAGE%g
23075 s%@VERSION@%$VERSION%g
23076 s%@ACLOCAL@%$ACLOCAL%g
23077 s%@AUTOCONF@%$AUTOCONF%g
23078 s%@AUTOMAKE@%$AUTOMAKE%g
23079 s%@AUTOHEADER@%$AUTOHEADER%g
23080 s%@MAKEINFO@%$MAKEINFO%g
23081 s%@install_sh@%$install_sh%g
23084 s%@AMTARFLAGS@%$AMTARFLAGS%g
23085 s%@SET_MAKE@%$SET_MAKE%g
23086 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23087 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23088 s%@top_builddir@%$top_builddir%g
23089 s%@ldap_subdir@%$ldap_subdir%g
23093 s%@OBJEXT@%$OBJEXT%g
23094 s%@EXEEXT@%$EXEEXT%g
23096 s%@RANLIB@%$RANLIB%g
23098 s%@DLLTOOL@%$DLLTOOL%g
23100 s%@OBJDUMP@%$OBJDUMP%g
23102 s%@LIBTOOL@%$LIBTOOL%g
23104 s%@SENDMAIL@%$SENDMAIL%g
23105 s%@EDITOR@%$EDITOR%g
23106 s%@PERLBIN@%$PERLBIN%g
23107 s%@OL_MKDEP@%$OL_MKDEP%g
23108 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23109 s%@LIBOBJS@%$LIBOBJS%g
23110 s%@LIBSRCS@%$LIBSRCS%g
23112 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23113 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23114 s%@BUILD_BDB@%$BUILD_BDB%g
23115 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23116 s%@BUILD_LDAP@%$BUILD_LDAP%g
23117 s%@BUILD_LDBM@%$BUILD_LDBM%g
23118 s%@BUILD_META@%$BUILD_META%g
23119 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23120 s%@BUILD_NULL@%$BUILD_NULL%g
23121 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23122 s%@BUILD_PERL@%$BUILD_PERL%g
23123 s%@BUILD_SHELL@%$BUILD_SHELL%g
23124 s%@BUILD_SQL@%$BUILD_SQL%g
23125 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23126 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23127 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23128 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23129 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23130 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23131 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23132 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23133 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23134 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23135 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23136 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23137 s%@LDBM_LIB@%$LDBM_LIB%g
23138 s%@LDAP_LIBS@%$LDAP_LIBS%g
23139 s%@LDIF_LIBS@%$LDIF_LIBS%g
23140 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23141 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23142 s%@LDBM_LIBS@%$LDBM_LIBS%g
23143 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23144 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23145 s%@WRAP_LIBS@%$WRAP_LIBS%g
23146 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23147 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23148 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23149 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23150 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23151 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23152 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23153 s%@KRB4_LIBS@%$KRB4_LIBS%g
23154 s%@KRB5_LIBS@%$KRB5_LIBS%g
23155 s%@READLINE_LIBS@%$READLINE_LIBS%g
23156 s%@SASL_LIBS@%$SASL_LIBS%g
23157 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23158 s%@TLS_LIBS@%$TLS_LIBS%g
23159 s%@MODULES_LIBS@%$MODULES_LIBS%g
23160 s%@AUTH_LIBS@%$AUTH_LIBS%g
23161 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23162 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23163 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23164 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23169 cat >> $CONFIG_STATUS <<\EOF
23171 # Split the substitutions into bite-sized pieces for seds with
23172 # small command number limits, like on Digital OSF/1 and HP-UX.
23173 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23174 ac_file=1 # Number of current file.
23175 ac_beg=1 # First line for current file.
23176 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23179 while $ac_more_lines; do
23180 if test $ac_beg -gt 1; then
23181 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23183 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23185 if test ! -s conftest.s$ac_file; then
23186 ac_more_lines=false
23187 rm -f conftest.s$ac_file
23189 if test -z "$ac_sed_cmds"; then
23190 ac_sed_cmds="sed -f conftest.s$ac_file"
23192 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23194 ac_file=`expr $ac_file + 1`
23196 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23199 if test -z "$ac_sed_cmds"; then
23204 cat >> $CONFIG_STATUS <<EOF
23206 CONFIG_FILES=\${CONFIG_FILES-"\
23207 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23208 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23209 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23210 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23211 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23212 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23213 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23214 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23215 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
23216 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
23217 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
23218 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23219 include/Makefile:build/top.mk:include/Makefile.in \
23220 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23221 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23222 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23223 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23224 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23225 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23226 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23227 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23228 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23229 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23230 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23231 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23232 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23233 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23234 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23235 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23236 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23237 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23238 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23239 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23240 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23241 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23242 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23243 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23244 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23245 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23246 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23247 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23250 cat >> $CONFIG_STATUS <<\EOF
23251 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23254 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23255 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23256 *) ac_file_in="${ac_file}.in" ;;
23259 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23261 # Remove last slash and all that follows it. Not all systems have dirname.
23262 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23263 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23264 # The file is in a subdirectory.
23265 test ! -d "$ac_dir" && mkdir "$ac_dir"
23266 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23267 # A "../" for each directory in $ac_dir_suffix.
23268 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23270 ac_dir_suffix= ac_dots=
23273 case "$ac_given_srcdir" in
23275 if test -z "$ac_dots"; then top_srcdir=.
23276 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23277 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23278 *) # Relative path.
23279 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23280 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23283 case "$ac_given_INSTALL" in
23284 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23285 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23288 echo creating "$ac_file"
23290 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23292 *[Mm]akefile*) ac_comsub="1i\\
23293 # $configure_input" ;;
23297 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23299 s%@configure_input@%$configure_input%g
23300 s%@srcdir@%$srcdir%g
23301 s%@top_srcdir@%$top_srcdir%g
23302 s%@INSTALL@%$INSTALL%g
23303 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23307 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23308 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23310 # ac_d sets the value in "#define NAME VALUE" lines.
23311 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23312 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23315 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23316 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23317 ac_uB='\([ ]\)%\1#\2define\3'
23320 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23321 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23322 ac_eB='$%\1#\2define\3'
23326 if test "${CONFIG_HEADERS+set}" != set; then
23328 cat >> $CONFIG_STATUS <<EOF
23329 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23331 cat >> $CONFIG_STATUS <<\EOF
23333 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23336 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23337 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23338 *) ac_file_in="${ac_file}.in" ;;
23341 echo creating $ac_file
23343 rm -f conftest.frag conftest.in conftest.out
23344 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23345 cat $ac_file_inputs > conftest.in
23349 # Transform confdefs.h into a sed script conftest.vals that substitutes
23350 # the proper values into config.h.in to produce config.h. And first:
23351 # Protect against being on the right side of a sed subst in config.status.
23352 # Protect against being in an unquoted here document in config.status.
23353 rm -f conftest.vals
23354 cat > conftest.hdr <<\EOF
23357 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23361 sed -n -f conftest.hdr confdefs.h > conftest.vals
23364 # This sed command replaces #undef with comments. This is necessary, for
23365 # example, in the case of _POSIX_SOURCE, which is predefined and required
23366 # on some systems where configure will not decide to define it.
23367 cat >> conftest.vals <<\EOF
23368 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23371 # Break up conftest.vals because some shells have a limit on
23372 # the size of here documents, and old seds have small limits too.
23374 rm -f conftest.tail
23377 ac_lines=`grep -c . conftest.vals`
23378 # grep -c gives empty output for an empty file on some AIX systems.
23379 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23380 # Write a limited-size here document to conftest.frag.
23381 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23382 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23384 sed -f conftest.frag conftest.in > conftest.out
23386 mv conftest.out conftest.in
23387 ' >> $CONFIG_STATUS
23388 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23389 rm -f conftest.vals
23390 mv conftest.tail conftest.vals
23392 rm -f conftest.vals
23394 cat >> $CONFIG_STATUS <<\EOF
23395 rm -f conftest.frag conftest.h
23396 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23397 cat conftest.in >> conftest.h
23399 if cmp -s $ac_file conftest.h 2>/dev/null; then
23400 echo "$ac_file is unchanged"
23403 # Remove last slash and all that follows it. Not all systems have dirname.
23404 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23405 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23406 # The file is in a subdirectory.
23407 test ! -d "$ac_dir" && mkdir "$ac_dir"
23410 mv conftest.h $ac_file
23415 cat >> $CONFIG_STATUS <<EOF
23418 cat >> $CONFIG_STATUS <<\EOF
23421 echo Please run \"make depend\" to build dependencies
23425 chmod +x $CONFIG_STATUS
23426 rm -fr confdefs* $ac_clean_files
23427 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1