3 # from OpenLDAP: pkg/ldap/configure.in,v 1.432 2002/09/07 12:09:09 hyc Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
136 --enable-sql enable sql backend [no]"
138 --with-sql-module module type static|dynamic [static]"
140 --enable-tcl enable tcl backend [no]"
142 --with-tcl-module module type static|dynamic [static]"
145 SLURPD (Replication Daemon) Options:"
147 --enable-slurpd enable building slurpd [auto]"
150 Library Generation & Linking Options"
152 --enable-static[=PKGS] build static libraries [default=yes]"
154 --enable-shared[=PKGS] build shared libraries [default=yes]"
156 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
158 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
160 # Find the correct PATH separator. Usually this is `:', but
161 # DJGPP uses `;' like DOS.
162 if test "X${PATH_SEPARATOR+set}" != Xset; then
163 UNAME=${UNAME-`uname 2>/dev/null`}
165 *-DOS) lt_cv_sys_path_separator=';' ;;
166 *) lt_cv_sys_path_separator=':' ;;
168 PATH_SEPARATOR=$lt_cv_sys_path_separator
172 # Check that we are running under the correct shell.
173 SHELL=${CONFIG_SHELL-/bin/sh}
177 # Remove one level of quotation (which was required for Make).
178 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
183 if test "X$1" = X--no-reexec; then
184 # Discard the --no-reexec flag, and continue.
186 elif test "X$1" = X--fallback-echo; then
187 # Avoid inline document here, it may be left over
189 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
190 # Yippee, $echo works!
193 # Restart under the correct shell.
194 exec $SHELL "$0" --no-reexec ${1+"$@"}
197 if test "X$1" = X--fallback-echo; then
198 # used as fallback echo
206 # The HP-UX ksh and POSIX shell print the target directory to stdout
208 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
210 if test -z "$ECHO"; then
211 if test "X${echo_test_string+set}" != Xset; then
212 # find a string as large as possible, as long as the shell can cope with it
213 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
214 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
215 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
216 echo_test_string="`eval $cmd`" &&
217 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
224 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
225 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
226 test "X$echo_testing_string" = "X$echo_test_string"; then
229 # The Solaris, AIX, and Digital Unix default echo programs unquote
230 # backslashes. This makes it impossible to quote backslashes using
231 # echo "$something" | sed 's/\\/\\\\/g'
233 # So, first we look for a working echo in the user's PATH.
235 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
236 for dir in $PATH /usr/ucb; do
237 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
238 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
247 if test "X$echo" = Xecho; then
248 # We didn't find a better echo, so look for alternatives.
249 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
250 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
251 test "X$echo_testing_string" = "X$echo_test_string"; then
252 # This shell has a builtin print -r that does the trick.
254 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
255 test "X$CONFIG_SHELL" != X/bin/ksh; then
256 # If we have ksh, try running configure again with it.
257 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
258 export ORIGINAL_CONFIG_SHELL
259 CONFIG_SHELL=/bin/ksh
261 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
265 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
266 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
267 test "X$echo_testing_string" = "X$echo_test_string"; then
270 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
271 test "X$echo_testing_string" = 'X\t' &&
272 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
273 test "X$echo_testing_string" = "X$echo_test_string"; then
274 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
276 SHELL="$CONFIG_SHELL"
278 echo="$CONFIG_SHELL $0 --fallback-echo"
279 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
280 test "X$echo_testing_string" = 'X\t' &&
281 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
282 test "X$echo_testing_string" = "X$echo_test_string"; then
283 echo="$CONFIG_SHELL $0 --fallback-echo"
285 # maybe with a smaller string...
288 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
289 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
296 if test "$prev" != 'sed 50q "$0"'; then
297 echo_test_string=`eval $prev`
298 export echo_test_string
299 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
301 # Oops. We lost completely, so just stick with echo.
310 # Copy echo and quote the copy suitably for passing to libtool from
311 # the Makefile, instead of quoting the original, which is used later.
313 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
314 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
319 --disable-libtool-lock avoid locking (might break parallel builds)"
321 --with-pic try to use only PIC/non-PIC objects [default=use both]"
324 See INSTALL file for further details."
326 # Initialize some variables set by options.
327 # The variables have the same names as the options, with
328 # dashes changed to underlines.
330 cache_file=./config.cache
339 program_transform_name=s,x,x,
347 bindir='${exec_prefix}/bin'
348 sbindir='${exec_prefix}/sbin'
349 libexecdir='${exec_prefix}/libexec'
350 datadir='${prefix}/share'
351 sysconfdir='${prefix}/etc'
352 sharedstatedir='${prefix}/com'
353 localstatedir='${prefix}/var'
354 libdir='${exec_prefix}/lib'
355 includedir='${prefix}/include'
356 oldincludedir='/usr/include'
357 infodir='${prefix}/info'
358 mandir='${prefix}/man'
360 # Initialize some other variables.
363 SHELL=${CONFIG_SHELL-/bin/sh}
364 # Maximum number of lines to put in a shell here document.
371 # If the previous option needs an argument, assign it.
372 if test -n "$ac_prev"; then
373 eval "$ac_prev=\$ac_option"
379 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
383 # Accept the important Cygnus configure options, so we can diagnose typos.
387 -bindir | --bindir | --bindi | --bind | --bin | --bi)
389 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
390 bindir="$ac_optarg" ;;
392 -build | --build | --buil | --bui | --bu)
394 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395 build="$ac_optarg" ;;
397 -cache-file | --cache-file | --cache-fil | --cache-fi \
398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399 ac_prev=cache_file ;;
400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402 cache_file="$ac_optarg" ;;
404 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
406 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
408 datadir="$ac_optarg" ;;
410 -disable-* | --disable-*)
411 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
416 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
417 eval "enable_${ac_feature}=no" ;;
419 -enable-* | --enable-*)
420 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
423 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
425 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
430 eval "enable_${ac_feature}='$ac_optarg'" ;;
432 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
433 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
434 | --exec | --exe | --ex)
435 ac_prev=exec_prefix ;;
436 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
437 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
438 | --exec=* | --exe=* | --ex=*)
439 exec_prefix="$ac_optarg" ;;
441 -gas | --gas | --ga | --g)
442 # Obsolete; use --with-gas.
445 -help | --help | --hel | --he)
446 # Omit some internal or obsolete options to make the list less imposing.
447 # This message is too long to be a string in the A/UX 3.1 sh.
449 Usage: configure [options] [host]
450 Options: [defaults in brackets after descriptions]
452 --cache-file=FILE cache test results in FILE
453 --help print this message
454 --no-create do not create output files
455 --quiet, --silent do not print \`checking...' messages
456 --version print the version of autoconf that created configure
457 Directory and file names:
458 --prefix=PREFIX install architecture-independent files in PREFIX
460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
462 --bindir=DIR user executables in DIR [EPREFIX/bin]
463 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
464 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
465 --datadir=DIR read-only architecture-independent data in DIR
467 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
468 --sharedstatedir=DIR modifiable architecture-independent data in DIR
470 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
471 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
472 --includedir=DIR C header files in DIR [PREFIX/include]
473 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
474 --infodir=DIR info documentation in DIR [PREFIX/info]
475 --mandir=DIR man documentation in DIR [PREFIX/man]
476 --srcdir=DIR find the sources in DIR [configure dir or ..]
477 --program-prefix=PREFIX prepend PREFIX to installed program names
478 --program-suffix=SUFFIX append SUFFIX to installed program names
479 --program-transform-name=PROGRAM
480 run sed PROGRAM on installed program names
484 --build=BUILD configure for building on BUILD [BUILD=HOST]
485 --host=HOST configure for HOST [guessed]
486 --target=TARGET configure for TARGET [TARGET=HOST]
487 Features and packages:
488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
492 --x-includes=DIR X include files are in DIR
493 --x-libraries=DIR X library files are in DIR
495 if test -n "$ac_help"; then
496 echo "--enable and --with options recognized:$ac_help"
500 -host | --host | --hos | --ho)
502 -host=* | --host=* | --hos=* | --ho=*)
505 -includedir | --includedir | --includedi | --included | --include \
506 | --includ | --inclu | --incl | --inc)
507 ac_prev=includedir ;;
508 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
509 | --includ=* | --inclu=* | --incl=* | --inc=*)
510 includedir="$ac_optarg" ;;
512 -infodir | --infodir | --infodi | --infod | --info | --inf)
514 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
515 infodir="$ac_optarg" ;;
517 -libdir | --libdir | --libdi | --libd)
519 -libdir=* | --libdir=* | --libdi=* | --libd=*)
520 libdir="$ac_optarg" ;;
522 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
523 | --libexe | --libex | --libe)
524 ac_prev=libexecdir ;;
525 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
526 | --libexe=* | --libex=* | --libe=*)
527 libexecdir="$ac_optarg" ;;
529 -localstatedir | --localstatedir | --localstatedi | --localstated \
530 | --localstate | --localstat | --localsta | --localst \
531 | --locals | --local | --loca | --loc | --lo)
532 ac_prev=localstatedir ;;
533 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
534 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
535 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
536 localstatedir="$ac_optarg" ;;
538 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
540 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
541 mandir="$ac_optarg" ;;
544 # Obsolete; use --without-fp.
547 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
551 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
552 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
555 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
556 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
557 | --oldin | --oldi | --old | --ol | --o)
558 ac_prev=oldincludedir ;;
559 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
560 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
561 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
562 oldincludedir="$ac_optarg" ;;
564 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
566 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
567 prefix="$ac_optarg" ;;
569 -program-prefix | --program-prefix | --program-prefi | --program-pref \
570 | --program-pre | --program-pr | --program-p)
571 ac_prev=program_prefix ;;
572 -program-prefix=* | --program-prefix=* | --program-prefi=* \
573 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
574 program_prefix="$ac_optarg" ;;
576 -program-suffix | --program-suffix | --program-suffi | --program-suff \
577 | --program-suf | --program-su | --program-s)
578 ac_prev=program_suffix ;;
579 -program-suffix=* | --program-suffix=* | --program-suffi=* \
580 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
581 program_suffix="$ac_optarg" ;;
583 -program-transform-name | --program-transform-name \
584 | --program-transform-nam | --program-transform-na \
585 | --program-transform-n | --program-transform- \
586 | --program-transform | --program-transfor \
587 | --program-transfo | --program-transf \
588 | --program-trans | --program-tran \
589 | --progr-tra | --program-tr | --program-t)
590 ac_prev=program_transform_name ;;
591 -program-transform-name=* | --program-transform-name=* \
592 | --program-transform-nam=* | --program-transform-na=* \
593 | --program-transform-n=* | --program-transform-=* \
594 | --program-transform=* | --program-transfor=* \
595 | --program-transfo=* | --program-transf=* \
596 | --program-trans=* | --program-tran=* \
597 | --progr-tra=* | --program-tr=* | --program-t=*)
598 program_transform_name="$ac_optarg" ;;
600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
601 | -silent | --silent | --silen | --sile | --sil)
604 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
606 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
608 sbindir="$ac_optarg" ;;
610 -sharedstatedir | --sharedstatedir | --sharedstatedi \
611 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
612 | --sharedst | --shareds | --shared | --share | --shar \
614 ac_prev=sharedstatedir ;;
615 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
616 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
617 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
619 sharedstatedir="$ac_optarg" ;;
621 -site | --site | --sit)
623 -site=* | --site=* | --sit=*)
626 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
628 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
629 srcdir="$ac_optarg" ;;
631 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
632 | --syscon | --sysco | --sysc | --sys | --sy)
633 ac_prev=sysconfdir ;;
634 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
635 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
636 sysconfdir="$ac_optarg" ;;
638 -target | --target | --targe | --targ | --tar | --ta | --t)
640 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
641 target="$ac_optarg" ;;
643 -v | -verbose | --verbose | --verbos | --verbo | --verb)
646 -version | --version | --versio | --versi | --vers)
647 echo "configure generated by autoconf version 2.13.1"
651 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
652 # Reject names that are not valid shell variable names.
653 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
654 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
656 ac_package=`echo $ac_package| sed 's/-/_/g'`
661 eval "with_${ac_package}='$ac_optarg'" ;;
663 -without-* | --without-*)
664 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
665 # Reject names that are not valid shell variable names.
666 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
667 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
669 ac_package=`echo $ac_package| sed 's/-/_/g'`
670 eval "with_${ac_package}=no" ;;
673 # Obsolete; use --with-x.
676 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
677 | --x-incl | --x-inc | --x-in | --x-i)
678 ac_prev=x_includes ;;
679 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
680 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
681 x_includes="$ac_optarg" ;;
683 -x-libraries | --x-libraries | --x-librarie | --x-librari \
684 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
685 ac_prev=x_libraries ;;
686 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
687 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
688 x_libraries="$ac_optarg" ;;
690 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
694 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
695 echo "configure: warning: $ac_option: invalid host type" 1>&2
697 if test "x$nonopt" != xNONE; then
698 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
706 if test -n "$ac_prev"; then
707 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
710 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
712 # File descriptor usage:
715 # 2 errors and warnings
716 # 3 some systems may open it to /dev/tty
717 # 4 used on the Kubota Titan
718 # 6 checking for... messages and results
719 # 5 compiler messages saved in config.log
720 if test "$silent" = yes; then
728 This file contains any messages produced by compilers while
729 running configure, to aid debugging if configure makes a mistake.
732 # Strip out --no-create and --no-recursion so they do not pile up.
733 # Also quote any args containing shell metacharacters.
738 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
739 | --no-cr | --no-c) ;;
740 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
741 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
742 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
743 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
744 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
749 # Only set these to C if already set. These must not be set unconditionally
750 # because not all systems understand e.g. LANG=C (notably SCO).
751 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
752 # Non-C LC_CTYPE values break the ctype check.
753 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
754 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
755 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
756 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
759 rm -rf conftest* confdefs.h
760 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
763 # A filename unique to this package, relative to the directory that
764 # configure is in, which we can look for to find out if srcdir is correct.
765 ac_unique_file=build/version.sh
767 # Find the source files, if location was not specified.
768 if test -z "$srcdir"; then
769 ac_srcdir_defaulted=yes
770 # Try the directory containing this script, then its parent.
772 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
773 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
775 if test ! -r $srcdir/$ac_unique_file; then
779 ac_srcdir_defaulted=no
781 if test ! -r $srcdir/$ac_unique_file; then
782 if test "$ac_srcdir_defaulted" = yes; then
783 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
785 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
788 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
790 # Prefer explicitly selected file to automatically selected ones.
791 if test -z "$CONFIG_SITE"; then
792 if test "x$prefix" != xNONE; then
793 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
795 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
798 for ac_site_file in $CONFIG_SITE; do
799 if test -r "$ac_site_file"; then
800 echo "loading site script $ac_site_file"
807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
808 ac_cpp='$CPP $CPPFLAGS'
809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
811 cross_compiling=$ac_cv_prog_cc_cross
815 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
816 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
817 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
824 ac_n= ac_c='\c' ac_t=
828 # set unset (borrowed from autoconf 2.49c)
829 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
835 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
838 for ac_dir in build $srcdir/build; do
839 if test -f $ac_dir/install-sh; then
841 ac_install_sh="$ac_aux_dir/install-sh -c"
843 elif test -f $ac_dir/install.sh; then
845 ac_install_sh="$ac_aux_dir/install.sh -c"
847 elif test -f $ac_dir/shtool; then
849 ac_install_sh="$ac_aux_dir/shtool install -c"
853 if test -z "$ac_aux_dir"; then
854 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
858 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
860 eval `$ac_aux_dir/version.sh`
861 if test -z "$OL_STRING"; then
862 { echo "configure: error: could not determine version" 1>&2; exit 1; }
865 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
866 ac_cv_shtool="$ac_aux_dir/shtool"
868 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
871 SHTOOL="$ac_cv_shtool"
873 TB=`$SHTOOL echo -e %B`
874 TN=`$SHTOOL echo -e %b`
876 echo "Configuring $TB$OL_STRING$TN ..."
879 echo $ac_n "checking host system type""... $ac_c" 1>&6
880 echo "configure:881: checking host system type" >&5
881 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 ac_cv_host_alias=$host
889 case "$ac_cv_host_alias" in
893 if ac_cv_host_alias=`$ac_config_guess`; then :
894 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896 *) ac_cv_host_alias=$nonopt ;;
900 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
901 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
902 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
903 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo $ac_n "(cached) $ac_c" 1>&6
908 echo "$ac_t""$ac_cv_host" 1>&6
911 host_alias=$ac_cv_host_alias
912 host_cpu=$ac_cv_host_cpu
913 host_vendor=$ac_cv_host_vendor
914 host_os=$ac_cv_host_os
920 echo $ac_n "checking target system type""... $ac_c" 1>&6
921 echo "configure:922: checking target system type" >&5
922 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
924 # Make sure we can run config.sub.
925 if $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 ac_cv_target_alias=$target
930 case "$ac_cv_target_alias" in
934 ac_cv_target_alias=$host_alias ;;
936 *) ac_cv_target_alias=$nonopt ;;
940 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
941 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo $ac_n "(cached) $ac_c" 1>&6
948 echo "$ac_t""$ac_cv_target" 1>&6
951 target_alias=$ac_cv_target_alias
952 target_cpu=$ac_cv_target_cpu
953 target_vendor=$ac_cv_target_vendor
954 target_os=$ac_cv_target_os
960 echo $ac_n "checking build system type""... $ac_c" 1>&6
961 echo "configure:962: checking build system type" >&5
962 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
964 # Make sure we can run config.sub.
965 if $ac_config_sub sun4 >/dev/null 2>&1; then :
966 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
969 ac_cv_build_alias=$build
970 case "$ac_cv_build_alias" in
974 ac_cv_build_alias=$host_alias ;;
976 *) ac_cv_build_alias=$nonopt ;;
980 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
981 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo $ac_n "(cached) $ac_c" 1>&6
988 echo "$ac_t""$ac_cv_build" 1>&6
991 build_alias=$ac_cv_build_alias
992 build_cpu=$ac_cv_build_cpu
993 build_vendor=$ac_cv_build_vendor
994 build_os=$ac_cv_build_os
1000 # Do some error checking and defaulting for the host and target type.
1002 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 # 1. You are not allowed to specify --host, --target, and nonopt at the
1007 # 2. Host defaults to nonopt.
1008 # 3. If nonopt is not specified, then host defaults to the current host,
1009 # as determined by config.guess.
1010 # 4. Target and build default to nonopt.
1011 # 5. If nonopt is not specified, then target and build default to host.
1013 # The aliases save the names the user supplied, while $host etc.
1014 # will get canonicalized.
1015 case $host---$target---$nonopt in
1016 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1026 # Find a good install program. We prefer a C program (faster),
1027 # so one script is as good as another. But avoid the broken or
1028 # incompatible versions:
1029 # SysV /etc/install, /usr/sbin/install
1030 # SunOS /usr/etc/install
1031 # IRIX /sbin/install
1033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1036 # ./install, which can be erroneously created by make from ./install.sh.
1037 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1038 echo "configure:1039: checking for a BSD compatible install" >&5
1039 if test -z "$INSTALL"; then
1040 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1044 for ac_dir in $PATH; do
1045 # Account for people who put trailing slashes in PATH elements.
1047 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 # Don't use installbsd from OSF since it installs stuff as root
1052 for ac_prog in ginstall scoinst install; do
1053 if test -f $ac_dir/$ac_prog; then
1054 if test $ac_prog = install &&
1055 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # AIX install. It has an incompatible calling convention.
1058 elif test $ac_prog = install &&
1059 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # program-specific install script used by HP pwplus--don't use.
1063 ac_cv_path_install="$ac_dir/$ac_prog -c"
1074 if test "${ac_cv_path_install+set}" = set; then
1075 INSTALL="$ac_cv_path_install"
1077 # As a last resort, use the slow shell script. We don't cache a
1078 # path for INSTALL within a source directory, because that will
1079 # break other packages using the cache if that directory is
1080 # removed, or if the path is relative.
1081 INSTALL="$ac_install_sh"
1084 echo "$ac_t""$INSTALL" 1>&6
1086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1087 # It thinks the first close brace ends the variable substitution.
1088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1094 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether build environment is sane" >&5
1098 echo timestamp > conftestfile
1099 # Do `set' in a subshell so we don't clobber the current shell's
1100 # arguments. Must try -L first in case configure is actually a
1101 # symlink; some systems play weird games with the mod time of symlinks
1102 # (eg FreeBSD returns the mod time of the symlink's containing
1105 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1106 if test "$*" = "X"; then
1108 set X `ls -t $srcdir/configure conftestfile`
1110 if test "$*" != "X $srcdir/configure conftestfile" \
1111 && test "$*" != "X conftestfile $srcdir/configure"; then
1113 # If neither matched, then we have a broken ls. This can happen
1114 # if, for instance, CONFIG_SHELL is bash and it inherits a
1115 # broken ls alias from the environment. This has actually
1116 # happened. Such a system could not be considered "sane".
1117 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1118 alias in your environment" 1>&2; exit 1; }
1121 test "$2" = conftestfile
1127 { echo "configure: error: newly created file is older than distributed files!
1128 Check your system clock" 1>&2; exit 1; }
1131 echo "$ac_t""yes" 1>&6
1132 if test "$program_transform_name" = s,x,x,; then
1133 program_transform_name=
1135 # Double any \ or $. echo might interpret backslashes.
1136 cat <<\EOF_SED > conftestsed
1137 s,\\,\\\\,g; s,\$,$$,g
1139 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1142 test "$program_prefix" != NONE &&
1143 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1144 # Use a double $ so make ignores it.
1145 test "$program_suffix" != NONE &&
1146 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1148 # sed with no file args requires a program.
1149 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1151 for ac_prog in mawk gawk nawk awk
1153 # Extract the first word of "$ac_prog", so it can be a program name with args.
1154 set dummy $ac_prog; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$AWK"; then
1161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_AWK="$ac_prog"
1175 AWK="$ac_cv_prog_AWK"
1176 if test -n "$AWK"; then
1177 echo "$ac_t""$AWK" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 test -n "$AWK" && break
1185 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5
1187 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1188 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftestmake <<\EOF
1193 @echo 'ac_maketemp="${MAKE}"'
1195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1196 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1197 if test -n "$ac_maketemp"; then
1198 eval ac_cv_prog_make_${ac_make}_set=yes
1200 eval ac_cv_prog_make_${ac_make}_set=no
1204 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1208 echo "$ac_t""no" 1>&6
1209 SET_MAKE="MAKE=${MAKE-make}"
1218 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1219 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224 missing_dir=`cd $ac_aux_dir && pwd`
1225 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1226 echo "configure:1227: checking for working aclocal" >&5
1227 # Run test in a subshell; some versions of sh will print an error if
1228 # an executable is not found, even if stderr is redirected.
1229 # Redirect stdin to placate older versions of autoconf. Sigh.
1230 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1232 echo "$ac_t""found" 1>&6
1234 ACLOCAL="$missing_dir/missing aclocal"
1235 echo "$ac_t""missing" 1>&6
1238 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1239 echo "configure:1240: checking for working autoconf" >&5
1240 # Run test in a subshell; some versions of sh will print an error if
1241 # an executable is not found, even if stderr is redirected.
1242 # Redirect stdin to placate older versions of autoconf. Sigh.
1243 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1245 echo "$ac_t""found" 1>&6
1247 AUTOCONF="$missing_dir/missing autoconf"
1248 echo "$ac_t""missing" 1>&6
1251 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1252 echo "configure:1253: checking for working automake" >&5
1253 # Run test in a subshell; some versions of sh will print an error if
1254 # an executable is not found, even if stderr is redirected.
1255 # Redirect stdin to placate older versions of autoconf. Sigh.
1256 if (automake --version) < /dev/null > /dev/null 2>&1; then
1258 echo "$ac_t""found" 1>&6
1260 AUTOMAKE="$missing_dir/missing automake"
1261 echo "$ac_t""missing" 1>&6
1264 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1265 echo "configure:1266: checking for working autoheader" >&5
1266 # Run test in a subshell; some versions of sh will print an error if
1267 # an executable is not found, even if stderr is redirected.
1268 # Redirect stdin to placate older versions of autoconf. Sigh.
1269 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1270 AUTOHEADER=autoheader
1271 echo "$ac_t""found" 1>&6
1273 AUTOHEADER="$missing_dir/missing autoheader"
1274 echo "$ac_t""missing" 1>&6
1277 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1278 echo "configure:1279: checking for working makeinfo" >&5
1279 # Run test in a subshell; some versions of sh will print an error if
1280 # an executable is not found, even if stderr is redirected.
1281 # Redirect stdin to placate older versions of autoconf. Sigh.
1282 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1284 echo "$ac_t""found" 1>&6
1286 MAKEINFO="$missing_dir/missing makeinfo"
1287 echo "$ac_t""missing" 1>&6
1290 install_sh="$missing_dir/install-sh"
1291 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1293 for ac_prog in gnutar gtar tar
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$AMTAR"; then
1303 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AMTAR="$ac_prog"
1317 AMTAR="$ac_cv_prog_AMTAR"
1318 if test -n "$AMTAR"; then
1319 echo "$ac_t""$AMTAR" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 test -n "$AMTAR" && break
1329 if test -n "$AMTAR"; then
1330 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_PACKAGE "$PACKAGE"
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_VERSION "$VERSION"
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION $OL_API_INC
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1361 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1367 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1368 echo "configure:1369: checking configure arguments" >&5
1373 ldap_subdir="/openldap"
1375 # Check whether --with-subdir or --without-subdir was given.
1376 if test "${with_subdir+set}" = set; then
1377 withval="$with_subdir"
1384 ldap_subdir="$withval"
1387 ldap_subdir="/$withval"
1394 # OpenLDAP --enable-debug
1395 # Check whether --enable-debug or --disable-debug was given.
1396 if test "${enable_debug+set}" = set; then
1397 enableval="$enable_debug"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1408 ol_enable_debug="$ol_arg"
1411 ol_enable_debug="yes"
1413 # end --enable-debug
1414 # OpenLDAP --enable-syslog
1415 # Check whether --enable-syslog or --disable-syslog was given.
1416 if test "${enable_syslog+set}" = set; then
1417 enableval="$enable_syslog"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1428 ol_enable_syslog="$ol_arg"
1431 ol_enable_syslog="auto"
1433 # end --enable-syslog
1434 # OpenLDAP --enable-proctitle
1435 # Check whether --enable-proctitle or --disable-proctitle was given.
1436 if test "${enable_proctitle+set}" = set; then
1437 enableval="$enable_proctitle"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1448 ol_enable_proctitle="$ol_arg"
1451 ol_enable_proctitle="yes"
1453 # end --enable-proctitle
1454 # OpenLDAP --enable-cache
1455 # Check whether --enable-cache or --disable-cache was given.
1456 if test "${enable_cache+set}" = set; then
1457 enableval="$enable_cache"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1468 ol_enable_cache="$ol_arg"
1471 ol_enable_cache="no"
1473 # end --enable-cache
1474 # OpenLDAP --enable-referrals
1475 # Check whether --enable-referrals or --disable-referrals was given.
1476 if test "${enable_referrals+set}" = set; then
1477 enableval="$enable_referrals"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1488 ol_enable_referrals="$ol_arg"
1491 ol_enable_referrals="no"
1493 # end --enable-referrals
1494 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1535 # OpenLDAP --enable-x_compile
1536 # Check whether --enable-x_compile or --disable-x_compile was given.
1537 if test "${enable_x_compile+set}" = set; then
1538 enableval="$enable_x_compile"
1541 for ol_val in yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1549 ol_enable_x_compile="$ol_arg"
1552 ol_enable_x_compile="no"
1554 # end --enable-x_compile
1557 # OpenLDAP --with-cyrus_sasl
1558 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1559 if test "${with_cyrus_sasl+set}" = set; then
1560 withval="$with_cyrus_sasl"
1563 for ol_val in auto yes no ; do
1564 if test "$withval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1571 ol_with_cyrus_sasl="$ol_arg"
1574 ol_with_cyrus_sasl="auto"
1576 # end --with-cyrus_sasl
1578 # OpenLDAP --with-fetch
1579 # Check whether --with-fetch or --without-fetch was given.
1580 if test "${with_fetch+set}" = set; then
1581 withval="$with_fetch"
1584 for ol_val in auto yes no ; do
1585 if test "$withval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1592 ol_with_fetch="$ol_arg"
1595 ol_with_fetch="auto"
1599 # OpenLDAP --with-kerberos
1600 # Check whether --with-kerberos or --without-kerberos was given.
1601 if test "${with_kerberos+set}" = set; then
1602 withval="$with_kerberos"
1605 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1606 if test "$withval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1613 ol_with_kerberos="$ol_arg"
1616 ol_with_kerberos="auto"
1618 # end --with-kerberos
1620 # OpenLDAP --with-readline
1621 # Check whether --with-readline or --without-readline was given.
1622 if test "${with_readline+set}" = set; then
1623 withval="$with_readline"
1626 for ol_val in auto yes no ; do
1627 if test "$withval" = "$ol_val" ; then
1631 if test "$ol_arg" = "invalid" ; then
1632 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1634 ol_with_readline="$ol_arg"
1637 ol_with_readline="auto"
1639 # end --with-readline
1641 # OpenLDAP --with-threads
1642 # Check whether --with-threads or --without-threads was given.
1643 if test "${with_threads+set}" = set; then
1644 withval="$with_threads"
1647 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1655 ol_with_threads="$ol_arg"
1658 ol_with_threads="auto"
1660 # end --with-threads
1662 # OpenLDAP --with-tls
1663 # Check whether --with-tls or --without-tls was given.
1664 if test "${with_tls+set}" = set; then
1668 for ol_val in auto ssleay openssl yes no ; do
1669 if test "$withval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1676 ol_with_tls="$ol_arg"
1683 # OpenLDAP --with-yielding_select
1684 # Check whether --with-yielding_select or --without-yielding_select was given.
1685 if test "${with_yielding_select+set}" = set; then
1686 withval="$with_yielding_select"
1689 for ol_val in auto yes no manual ; do
1690 if test "$withval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1697 ol_with_yielding_select="$ol_arg"
1700 ol_with_yielding_select="auto"
1702 # end --with-yielding_select
1706 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1707 if test "${with_xxslapdoptions+set}" = set; then
1708 withval="$with_xxslapdoptions"
1712 # OpenLDAP --enable-slapd
1713 # Check whether --enable-slapd or --disable-slapd was given.
1714 if test "${enable_slapd+set}" = set; then
1715 enableval="$enable_slapd"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1726 ol_enable_slapd="$ol_arg"
1729 ol_enable_slapd="yes"
1731 # end --enable-slapd
1732 # OpenLDAP --enable-aci
1733 # Check whether --enable-aci or --disable-aci was given.
1734 if test "${enable_aci+set}" = set; then
1735 enableval="$enable_aci"
1738 for ol_val in auto yes no ; do
1739 if test "$enableval" = "$ol_val" ; then
1743 if test "$ol_arg" = "invalid" ; then
1744 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1746 ol_enable_aci="$ol_arg"
1752 # OpenLDAP --enable-cleartext
1753 # Check whether --enable-cleartext or --disable-cleartext was given.
1754 if test "${enable_cleartext+set}" = set; then
1755 enableval="$enable_cleartext"
1758 for ol_val in auto yes no ; do
1759 if test "$enableval" = "$ol_val" ; then
1763 if test "$ol_arg" = "invalid" ; then
1764 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1766 ol_enable_cleartext="$ol_arg"
1769 ol_enable_cleartext="yes"
1771 # end --enable-cleartext
1772 # OpenLDAP --enable-crypt
1773 # Check whether --enable-crypt or --disable-crypt was given.
1774 if test "${enable_crypt+set}" = set; then
1775 enableval="$enable_crypt"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1786 ol_enable_crypt="$ol_arg"
1789 ol_enable_crypt="no"
1791 # end --enable-crypt
1792 # OpenLDAP --enable-dynamic
1793 # Check whether --enable-dynamic or --disable-dynamic was given.
1794 if test "${enable_dynamic+set}" = set; then
1795 enableval="$enable_dynamic"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1806 ol_enable_dynamic="$ol_arg"
1809 ol_enable_dynamic="no"
1811 # end --enable-dynamic
1812 # OpenLDAP --enable-kpasswd
1813 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1814 if test "${enable_kpasswd+set}" = set; then
1815 enableval="$enable_kpasswd"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1826 ol_enable_kpasswd="$ol_arg"
1829 ol_enable_kpasswd="no"
1831 # end --enable-kpasswd
1832 # OpenLDAP --enable-lmpasswd
1833 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1834 if test "${enable_lmpasswd+set}" = set; then
1835 enableval="$enable_lmpasswd"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1846 ol_enable_lmpasswd="$ol_arg"
1849 ol_enable_lmpasswd="no"
1851 # end --enable-lmpasswd
1852 # OpenLDAP --enable-spasswd
1853 # Check whether --enable-spasswd or --disable-spasswd was given.
1854 if test "${enable_spasswd+set}" = set; then
1855 enableval="$enable_spasswd"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1866 ol_enable_spasswd="$ol_arg"
1869 ol_enable_spasswd="no"
1871 # end --enable-spasswd
1872 # OpenLDAP --enable-modules
1873 # Check whether --enable-modules or --disable-modules was given.
1874 if test "${enable_modules+set}" = set; then
1875 enableval="$enable_modules"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1886 ol_enable_modules="$ol_arg"
1889 ol_enable_modules="no"
1891 # end --enable-modules
1892 ol_enable_multimaster=${ol_enable_multimaster-no}
1893 # OpenLDAP --enable-phonetic
1894 # Check whether --enable-phonetic or --disable-phonetic was given.
1895 if test "${enable_phonetic+set}" = set; then
1896 enableval="$enable_phonetic"
1899 for ol_val in auto yes no ; do
1900 if test "$enableval" = "$ol_val" ; then
1904 if test "$ol_arg" = "invalid" ; then
1905 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1907 ol_enable_phonetic="$ol_arg"
1910 ol_enable_phonetic="no"
1912 # end --enable-phonetic
1913 # OpenLDAP --enable-rewrite
1914 # Check whether --enable-rewrite or --disable-rewrite was given.
1915 if test "${enable_rewrite+set}" = set; then
1916 enableval="$enable_rewrite"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1927 ol_enable_rewrite="$ol_arg"
1930 ol_enable_rewrite="no"
1932 # end --enable-rewrite
1933 # OpenLDAP --enable-rlookups
1934 # Check whether --enable-rlookups or --disable-rlookups was given.
1935 if test "${enable_rlookups+set}" = set; then
1936 enableval="$enable_rlookups"
1939 for ol_val in auto yes no ; do
1940 if test "$enableval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1947 ol_enable_rlookups="$ol_arg"
1950 ol_enable_rlookups="no"
1952 # end --enable-rlookups
1953 # OpenLDAP --enable-slp
1954 # Check whether --enable-slp or --disable-slp was given.
1955 if test "${enable_slp+set}" = set; then
1956 enableval="$enable_slp"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1967 ol_enable_slp="$ol_arg"
1973 # OpenLDAP --enable-wrappers
1974 # Check whether --enable-wrappers or --disable-wrappers was given.
1975 if test "${enable_wrappers+set}" = set; then
1976 enableval="$enable_wrappers"
1979 for ol_val in auto yes no ; do
1980 if test "$enableval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1987 ol_enable_wrappers="$ol_arg"
1990 ol_enable_wrappers="no"
1992 # end --enable-wrappers
1994 # OpenLDAP --enable-bdb
1995 # Check whether --enable-bdb or --disable-bdb was given.
1996 if test "${enable_bdb+set}" = set; then
1997 enableval="$enable_bdb"
2000 for ol_val in auto yes no ; do
2001 if test "$enableval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2008 ol_enable_bdb="$ol_arg"
2014 # OpenLDAP --with-bdb_module
2015 # Check whether --with-bdb_module or --without-bdb_module was given.
2016 if test "${with_bdb_module+set}" = set; then
2017 withval="$with_bdb_module"
2020 for ol_val in static dynamic ; do
2021 if test "$withval" = "$ol_val" ; then
2025 if test "$ol_arg" = "invalid" ; then
2026 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2028 ol_with_bdb_module="$ol_arg"
2031 ol_with_bdb_module="static"
2033 # end --with-bdb_module
2035 # OpenLDAP --enable-dnssrv
2036 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2037 if test "${enable_dnssrv+set}" = set; then
2038 enableval="$enable_dnssrv"
2041 for ol_val in auto yes no ; do
2042 if test "$enableval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2049 ol_enable_dnssrv="$ol_arg"
2052 ol_enable_dnssrv="no"
2054 # end --enable-dnssrv
2055 # OpenLDAP --with-dnssrv_module
2056 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2057 if test "${with_dnssrv_module+set}" = set; then
2058 withval="$with_dnssrv_module"
2061 for ol_val in static dynamic ; do
2062 if test "$withval" = "$ol_val" ; then
2066 if test "$ol_arg" = "invalid" ; then
2067 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2069 ol_with_dnssrv_module="$ol_arg"
2072 ol_with_dnssrv_module="static"
2074 # end --with-dnssrv_module
2076 # OpenLDAP --enable-ldap
2077 # Check whether --enable-ldap or --disable-ldap was given.
2078 if test "${enable_ldap+set}" = set; then
2079 enableval="$enable_ldap"
2082 for ol_val in auto yes no ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2090 ol_enable_ldap="$ol_arg"
2096 # OpenLDAP --with-ldap_module
2097 # Check whether --with-ldap_module or --without-ldap_module was given.
2098 if test "${with_ldap_module+set}" = set; then
2099 withval="$with_ldap_module"
2102 for ol_val in static dynamic ; do
2103 if test "$withval" = "$ol_val" ; then
2107 if test "$ol_arg" = "invalid" ; then
2108 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2110 ol_with_ldap_module="$ol_arg"
2113 ol_with_ldap_module="static"
2115 # end --with-ldap_module
2117 # OpenLDAP --enable-ldbm
2118 # Check whether --enable-ldbm or --disable-ldbm was given.
2119 if test "${enable_ldbm+set}" = set; then
2120 enableval="$enable_ldbm"
2123 for ol_val in auto yes no ; do
2124 if test "$enableval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2131 ol_enable_ldbm="$ol_arg"
2137 # OpenLDAP --with-ldbm_api
2138 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2139 if test "${with_ldbm_api+set}" = set; then
2140 withval="$with_ldbm_api"
2143 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2144 if test "$withval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2151 ol_with_ldbm_api="$ol_arg"
2154 ol_with_ldbm_api="auto"
2156 # end --with-ldbm_api
2158 # OpenLDAP --with-ldbm_module
2159 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2160 if test "${with_ldbm_module+set}" = set; then
2161 withval="$with_ldbm_module"
2164 for ol_val in static dynamic ; do
2165 if test "$withval" = "$ol_val" ; then
2169 if test "$ol_arg" = "invalid" ; then
2170 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2172 ol_with_ldbm_module="$ol_arg"
2175 ol_with_ldbm_module="static"
2177 # end --with-ldbm_module
2179 # OpenLDAP --with-ldbm_type
2180 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2181 if test "${with_ldbm_type+set}" = set; then
2182 withval="$with_ldbm_type"
2185 for ol_val in auto btree hash ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2193 ol_with_ldbm_type="$ol_arg"
2196 ol_with_ldbm_type="auto"
2198 # end --with-ldbm_type
2200 # OpenLDAP --enable-meta
2201 # Check whether --enable-meta or --disable-meta was given.
2202 if test "${enable_meta+set}" = set; then
2203 enableval="$enable_meta"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2214 ol_enable_meta="$ol_arg"
2220 # OpenLDAP --with-meta_module
2221 # Check whether --with-meta_module or --without-meta_module was given.
2222 if test "${with_meta_module+set}" = set; then
2223 withval="$with_meta_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2234 ol_with_meta_module="$ol_arg"
2237 ol_with_meta_module="static"
2239 # end --with-meta_module
2241 # OpenLDAP --enable-monitor
2242 # Check whether --enable-monitor or --disable-monitor was given.
2243 if test "${enable_monitor+set}" = set; then
2244 enableval="$enable_monitor"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2255 ol_enable_monitor="$ol_arg"
2258 ol_enable_monitor="no"
2260 # end --enable-monitor
2261 # OpenLDAP --with-monitor_module
2262 # Check whether --with-monitor_module or --without-monitor_module was given.
2263 if test "${with_monitor_module+set}" = set; then
2264 withval="$with_monitor_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2275 ol_with_monitor_module="$ol_arg"
2278 ol_with_monitor_module="static"
2280 # end --with-monitor_module
2282 # OpenLDAP --enable-null
2283 # Check whether --enable-null or --disable-null was given.
2284 if test "${enable_null+set}" = set; then
2285 enableval="$enable_null"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2296 ol_enable_null="$ol_arg"
2302 # OpenLDAP --with-null_module
2303 # Check whether --with-null_module or --without-null_module was given.
2304 if test "${with_null_module+set}" = set; then
2305 withval="$with_null_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2316 ol_with_null_module="$ol_arg"
2319 ol_with_null_module="static"
2321 # end --with-null_module
2323 # OpenLDAP --enable-passwd
2324 # Check whether --enable-passwd or --disable-passwd was given.
2325 if test "${enable_passwd+set}" = set; then
2326 enableval="$enable_passwd"
2329 for ol_val in auto yes no ; do
2330 if test "$enableval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2337 ol_enable_passwd="$ol_arg"
2340 ol_enable_passwd="no"
2342 # end --enable-passwd
2343 # OpenLDAP --with-passwd_module
2344 # Check whether --with-passwd_module or --without-passwd_module was given.
2345 if test "${with_passwd_module+set}" = set; then
2346 withval="$with_passwd_module"
2349 for ol_val in static dynamic ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2357 ol_with_passwd_module="$ol_arg"
2360 ol_with_passwd_module="static"
2362 # end --with-passwd_module
2364 # OpenLDAP --enable-perl
2365 # Check whether --enable-perl or --disable-perl was given.
2366 if test "${enable_perl+set}" = set; then
2367 enableval="$enable_perl"
2370 for ol_val in auto yes no ; do
2371 if test "$enableval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2378 ol_enable_perl="$ol_arg"
2384 # OpenLDAP --with-perl_module
2385 # Check whether --with-perl_module or --without-perl_module was given.
2386 if test "${with_perl_module+set}" = set; then
2387 withval="$with_perl_module"
2390 for ol_val in static dynamic ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2398 ol_with_perl_module="$ol_arg"
2401 ol_with_perl_module="static"
2403 # end --with-perl_module
2405 # OpenLDAP --enable-shell
2406 # Check whether --enable-shell or --disable-shell was given.
2407 if test "${enable_shell+set}" = set; then
2408 enableval="$enable_shell"
2411 for ol_val in auto yes no ; do
2412 if test "$enableval" = "$ol_val" ; then
2416 if test "$ol_arg" = "invalid" ; then
2417 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2419 ol_enable_shell="$ol_arg"
2422 ol_enable_shell="no"
2424 # end --enable-shell
2425 # OpenLDAP --with-shell_module
2426 # Check whether --with-shell_module or --without-shell_module was given.
2427 if test "${with_shell_module+set}" = set; then
2428 withval="$with_shell_module"
2431 for ol_val in static dynamic ; do
2432 if test "$withval" = "$ol_val" ; then
2436 if test "$ol_arg" = "invalid" ; then
2437 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2439 ol_with_shell_module="$ol_arg"
2442 ol_with_shell_module="static"
2444 # end --with-shell_module
2446 # OpenLDAP --enable-sql
2447 # Check whether --enable-sql or --disable-sql was given.
2448 if test "${enable_sql+set}" = set; then
2449 enableval="$enable_sql"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2460 ol_enable_sql="$ol_arg"
2466 # OpenLDAP --with-sql_module
2467 # Check whether --with-sql_module or --without-sql_module was given.
2468 if test "${with_sql_module+set}" = set; then
2469 withval="$with_sql_module"
2472 for ol_val in static dynamic ; do
2473 if test "$withval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2480 ol_with_sql_module="$ol_arg"
2483 ol_with_sql_module="static"
2485 # end --with-sql_module
2487 # OpenLDAP --enable-tcl
2488 # Check whether --enable-tcl or --disable-tcl was given.
2489 if test "${enable_tcl+set}" = set; then
2490 enableval="$enable_tcl"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2501 ol_enable_tcl="$ol_arg"
2507 # OpenLDAP --with-tcl_module
2508 # Check whether --with-tcl_module or --without-tcl_module was given.
2509 if test "${with_tcl_module+set}" = set; then
2510 withval="$with_tcl_module"
2513 for ol_val in static dynamic ; do
2514 if test "$withval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2521 ol_with_tcl_module="$ol_arg"
2524 ol_with_tcl_module="static"
2526 # end --with-tcl_module
2529 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2530 if test "${with_xxslurpdoptions+set}" = set; then
2531 withval="$with_xxslurpdoptions"
2535 # OpenLDAP --enable-slurpd
2536 # Check whether --enable-slurpd or --disable-slurpd was given.
2537 if test "${enable_slurpd+set}" = set; then
2538 enableval="$enable_slurpd"
2541 for ol_val in auto yes no ; do
2542 if test "$enableval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2549 ol_enable_slurpd="$ol_arg"
2552 ol_enable_slurpd="auto"
2554 # end --enable-slurpd
2556 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2557 if test "${with_xxliboptions+set}" = set; then
2558 withval="$with_xxliboptions"
2562 # Check whether --enable-static or --disable-static was given.
2563 if test "${enable_static+set}" = set; then
2564 enableval="$enable_static"
2565 p=${PACKAGE-default}
2567 yes) enable_static=yes ;;
2568 no) enable_static=no ;;
2571 # Look at the argument we got. We use all the common list separators.
2572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2573 for pkg in $enableval; do
2574 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-shared or --disable-shared was given.
2586 if test "${enable_shared+set}" = set; then
2587 enableval="$enable_shared"
2588 p=${PACKAGE-default}
2590 yes) enable_shared=yes ;;
2591 no) enable_shared=no ;;
2594 # Look at the argument we got. We use all the common list separators.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2596 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2611 if test $ol_enable_slapd = no ; then
2612 if test $ol_enable_bdb = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2615 if test $ol_enable_dnssrv = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2618 if test $ol_enable_ldap = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2621 if test $ol_enable_ldbm = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2624 if test $ol_enable_meta = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2627 if test $ol_enable_monitor = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2630 if test $ol_enable_null = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2633 if test $ol_enable_passwd = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2636 if test $ol_enable_perl = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2639 if test $ol_enable_shell = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2642 if test $ol_enable_tcl = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2645 if test $ol_enable_sql = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2648 if test $ol_enable_modules = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2651 if test $ol_enable_multimaster = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2654 if test $ol_enable_wrappers = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2657 if test $ol_enable_phonetic = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2660 if test $ol_enable_rlookups = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2663 if test $ol_enable_aci = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2666 if test $ol_with_ldbm_api != auto ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2669 if test $ol_with_ldbm_type != auto ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2672 if test $ol_with_bdb_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2675 if test $ol_with_dnssrv_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2678 if test $ol_with_ldap_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2681 if test $ol_with_ldbm_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2684 if test $ol_with_meta_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2687 if test $ol_with_monitor_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2690 if test $ol_with_null_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2693 if test $ol_with_passwd_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2696 if test $ol_with_perl_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2699 if test $ol_with_shell_module != static ; then
2700 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2702 if test $ol_with_tcl_module != static ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2705 if test $ol_with_sql_module != static ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2708 if test $ol_enable_slurpd = yes ; then
2709 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2711 if test $ol_enable_rewrite = yes ; then
2712 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2715 # force settings to no
2721 ol_enable_monitor=no
2729 ol_enable_modules=no
2730 ol_enable_multimaster=no
2731 ol_enable_phonetic=no
2732 ol_enable_rlookups=no
2734 ol_enable_wrappers=no
2735 ol_enable_dynamic=no
2738 ol_with_ldbm_type=no
2740 ol_with_bdb_module=static
2741 ol_with_dnssrv_module=static
2742 ol_with_ldap_module=static
2743 ol_with_ldbm_module=static
2744 ol_with_meta_module=static
2745 ol_with_monitor_module=static
2746 ol_with_null_module=static
2747 ol_with_passwd_module=static
2748 ol_with_perl_module=static
2749 ol_with_shell_module=static
2750 ol_with_tcl_module=static
2751 ol_with_sql_module=static
2755 ol_enable_rewrite=no
2757 elif test $ol_enable_ldbm = no ; then
2759 if test $ol_with_ldbm_api != auto ; then
2760 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2763 if test $ol_with_ldbm_type != auto ; then
2764 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2767 if test $ol_with_ldbm_module != static ; then
2768 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2771 if test $ol_enable_modules != yes -a \
2772 $ol_enable_bdb = no -a \
2773 $ol_enable_dnssrv = no -a \
2774 $ol_enable_ldap = no -a \
2775 $ol_enable_meta = no -a \
2776 $ol_enable_monitor = no -a \
2777 $ol_enable_null = no -a \
2778 $ol_enable_passwd = no -a \
2779 $ol_enable_perl = no -a \
2780 $ol_enable_shell = no -a \
2781 $ol_enable_sql = no -a \
2782 $ol_enable_tcl = no ; then
2784 if test $ol_enable_slapd = yes ; then
2785 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2787 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2793 ol_with_ldbm_type=no
2794 ol_with_ldbm_module=static
2796 if test $ol_enable_bdb != no ; then
2797 ol_with_ldbm_api=berkeley
2801 if test $ol_with_ldbm_api = gdbm -a \
2802 $ol_with_ldbm_type = btree ; then
2803 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2805 if test $ol_with_ldbm_api = mdbm -a \
2806 $ol_with_ldbm_type = btree ; then
2807 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2809 if test $ol_with_ldbm_api = ndbm -a \
2810 $ol_with_ldbm_type = btree ; then
2811 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2814 if test $ol_enable_bdb = yes ; then
2815 if test $ol_with_ldbm_api = auto ; then
2816 ol_with_ldbm_api=berkeley
2817 elif test $ol_with_ldbm_api != berkeley ; then
2818 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2821 elif test $ol_enable_bdb = auto ; then
2822 if test $ol_with_ldbm_api != berkeley \
2823 -o $ol_with_ldbm_api != auto ; then
2824 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2830 if test $ol_enable_slurpd = yes ; then
2831 if test $ol_with_threads = no ; then
2832 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2836 if test $ol_enable_lmpasswd = yes ; then
2837 if test $ol_with_tls = no ; then
2838 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2842 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2843 if test $ol_with_kerberos = no ; then
2844 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2845 elif test $ol_with_kerberos = auto ; then
2846 ol_with_kerberos=yes
2849 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2850 if test $ol_with_kerberos = auto ; then
2852 elif test $ol_with_kerberos != no ; then
2853 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2858 if test $ol_enable_spasswd = yes ; then
2859 if test $ol_with_cyrus_sasl = no ; then
2860 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2862 ol_with_cyrus_sasl=yes
2865 echo "$ac_t""done" 1>&6
2894 BUILD_BDB_DYNAMIC=static
2895 BUILD_DNSSRV_DYNAMIC=static
2896 BUILD_LDAP_DYNAMIC=static
2897 BUILD_LDBM_DYNAMIC=static
2898 BUILD_META_DYNAMIC=static
2899 BUILD_MONITOR_DYNAMIC=static
2900 BUILD_NULL_DYNAMIC=static
2901 BUILD_PASSWD_DYNAMIC=static
2902 BUILD_PERL_DYNAMIC=static
2903 BUILD_SHELL_DYNAMIC=static
2904 BUILD_TCL_DYNAMIC=static
2905 BUILD_SQL_DYNAMIC=static
2907 SLAPD_MODULES_LDFLAGS=
2908 SLAPD_MODULES_CPPFLAGS=
2910 SLAPD_STATIC_BACKENDS=
2911 SLAPD_DYNAMIC_BACKENDS=
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2946 echo "configure:2947: checking for a BSD compatible install" >&5
2947 if test -z "$INSTALL"; then
2948 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2952 for ac_dir in $PATH; do
2953 # Account for people who put trailing slashes in PATH elements.
2955 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2960 for ac_prog in ginstall scoinst install; do
2961 if test -f $ac_dir/$ac_prog; then
2962 if test $ac_prog = install &&
2963 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2966 elif test $ac_prog = install &&
2967 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2971 ac_cv_path_install="$ac_dir/$ac_prog -c"
2982 if test "${ac_cv_path_install+set}" = set; then
2983 INSTALL="$ac_cv_path_install"
2985 # As a last resort, use the slow shell script. We don't cache a
2986 # path for INSTALL within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the path is relative.
2989 INSTALL="$ac_install_sh"
2992 echo "$ac_t""$INSTALL" 1>&6
2994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2995 # It thinks the first close brace ends the variable substitution.
2996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_MKVERSION 1
3012 *-*-aix*) if test -z "$CC" ; then
3013 case "$ol_with_threads" in
3014 auto | yes | posix) ol_aix_threads=yes ;;
3020 if test $ol_aix_threads = yes ; then
3021 if test -z "${CC}" ; then
3022 for ac_prog in cc_r xlc_r cc
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_CC="$ac_prog"
3047 if test -n "$CC"; then
3048 echo "$ac_t""$CC" 1>&6
3050 echo "$ac_t""no" 1>&6
3053 test -n "$CC" && break
3057 if test "$CC" = cc ; then
3058 if test $ol_with_threads != auto ; then
3059 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3061 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3067 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3068 ol_with_threads=posix
3069 ol_cv_pthread_create=yes
3073 if test -z "${CC}"; then
3074 for ac_prog in cc gcc
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3080 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_CC="$ac_prog"
3099 if test -n "$CC"; then
3100 echo "$ac_t""$CC" 1>&6
3102 echo "$ac_t""no" 1>&6
3105 test -n "$CC" && break
3107 test -n "$CC" || CC="missing"
3110 if test "${CC}" = "missing" ; then
3111 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3115 if test -z "${AR}"; then
3116 for ac_prog in ar gar
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_word" >&5
3122 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 if test -n "$AR"; then
3126 ac_cv_prog_AR="$AR" # Let the user override the test.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3130 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 if test -f $ac_dir/$ac_word; then
3133 ac_cv_prog_AR="$ac_prog"
3141 if test -n "$AR"; then
3142 echo "$ac_t""$AR" 1>&6
3144 echo "$ac_t""no" 1>&6
3147 test -n "$AR" && break
3149 test -n "$AR" || AR="missing"
3152 if test "${AR}" = "missing" ; then
3153 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3159 # Find the correct PATH separator. Usually this is `:', but
3160 # DJGPP uses `;' like DOS.
3161 if test "X${PATH_SEPARATOR+set}" != Xset; then
3162 UNAME=${UNAME-`uname 2>/dev/null`}
3164 *-DOS) lt_cv_sys_path_separator=';' ;;
3165 *) lt_cv_sys_path_separator=':' ;;
3167 PATH_SEPARATOR=$lt_cv_sys_path_separator
3170 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3171 echo "configure:3172: checking for Cygwin environment" >&5
3172 if eval "test \"\${ac_cv_cygwin+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"
3182 #define __CYGWIN__ __CYGWIN32__
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3199 echo "$ac_t""$ac_cv_cygwin" 1>&6
3201 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3202 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3203 echo "configure:3204: checking for mingw32 environment" >&5
3204 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3227 echo "$ac_t""$ac_cv_mingw32" 1>&6
3229 test "$ac_cv_mingw32" = yes && MINGW32=yes
3230 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3231 echo "configure:3232: checking for EMX OS/2 environment" >&5
3232 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3255 echo "$ac_t""$ac_cv_emxos2" 1>&6
3257 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3258 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3259 echo "configure:3260: checking how to run the C preprocessor" >&5
3260 # On Suns, sometimes $CPP names a directory.
3261 if test -n "$CPP" && test -d "$CPP"; then
3264 if test -z "$CPP"; then
3265 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 # This must be in double quotes, not single quotes, because CPP may get
3269 # substituted into the Makefile and "${CC-cc}" will confuse make.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp.
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3280 { (eval echo configure:3281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3282 if test -z "$ac_err"; then
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 CPP="${CC-cc} -E -traditional-cpp"
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 CPP="${CC-cc} -nologo -E"
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3314 { (eval echo configure:3315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3316 if test -z "$ac_err"; then
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3330 ac_cv_prog_CPP="$CPP"
3332 CPP="$ac_cv_prog_CPP"
3334 ac_cv_prog_CPP="$CPP"
3336 echo "$ac_t""$CPP" 1>&6
3338 # Check whether --enable-fast-install or --disable-fast-install was given.
3339 if test "${enable_fast_install+set}" = set; then
3340 enableval="$enable_fast_install"
3341 p=${PACKAGE-default}
3343 yes) enable_fast_install=yes ;;
3344 no) enable_fast_install=no ;;
3346 enable_fast_install=no
3347 # Look at the argument we got. We use all the common list separators.
3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3349 for pkg in $enableval; do
3350 if test "X$pkg" = "X$p"; then
3351 enable_fast_install=yes
3358 enable_fast_install=yes
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 for ac_dir in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir=.
3375 if test -f $ac_dir/$ac_word; then
3384 if test -n "$CC"; then
3385 echo "$ac_t""$CC" 1>&6
3387 echo "$ac_t""no" 1>&6
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3407 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy $ac_cv_prog_CC
3420 if test $# -gt 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3425 set dummy "$ac_dir/$ac_word" "$@"
3433 if test -n "$CC"; then
3434 echo "$ac_t""$CC" 1>&6
3436 echo "$ac_t""no" 1>&6
3439 if test -z "$CC"; then
3440 case "`uname -s`" in
3441 *win32* | *WIN32* | *CYGWIN*)
3442 # Extract the first word of "cl", so it can be a program name with args.
3443 set dummy cl; ac_word=$2
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_word" >&5
3446 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3454 for ac_dir in $ac_dummy; do
3455 test -z "$ac_dir" && ac_dir=.
3456 if test -f $ac_dir/$ac_word; then
3465 if test -n "$CC"; then
3466 echo "$ac_t""$CC" 1>&6
3468 echo "$ac_t""no" 1>&6
3473 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3476 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3477 echo "configure:3478: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cc_cross
3486 cat > conftest.$ac_ext << EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 ac_cv_prog_cc_works=yes
3495 # If we can't run a trivial program, we are probably using a cross compiler.
3496 if (./conftest; exit) 2>/dev/null; then
3497 ac_cv_prog_cc_cross=no
3499 ac_cv_prog_cc_cross=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 ac_cv_prog_cc_works=no
3508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3512 cross_compiling=$ac_cv_prog_cc_cross
3514 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3515 if test $ac_cv_prog_cc_works = no; then
3516 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3518 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3520 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3521 cross_compiling=$ac_cv_prog_cc_cross
3523 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3524 echo "configure:3525: checking whether we are using GNU C" >&5
3525 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.c <<EOF
3533 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3540 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3542 if test $ac_cv_prog_gcc = yes; then
3548 ac_test_CFLAGS="${CFLAGS+set}"
3549 ac_save_CFLAGS="$CFLAGS"
3551 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether ${CC-cc} accepts -g" >&5
3553 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 echo 'void f(){}' > conftest.c
3557 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3566 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS="$ac_save_CFLAGS"
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3576 if test "$GCC" = yes; then
3583 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3584 if test "${with_gnu_ld+set}" = set; then
3585 withval="$with_gnu_ld"
3586 test "$withval" = no || with_gnu_ld=yes
3592 if test "$GCC" = yes; then
3593 # Check if gcc -print-prog-name=ld gives a path.
3594 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ld used by GCC" >&5
3598 # gcc leaves a trailing carriage return which upsets mingw
3599 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3601 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3604 # Accept absolute paths.
3605 [\\/]* | [A-Za-z]:[\\/]*)
3606 re_direlt='/[^/][^/]*/\.\./'
3607 # Canonicalize the path of ld
3608 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3609 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3610 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3612 test -z "$LD" && LD="$ac_prog"
3615 # If it fails, then pretend we aren't using GCC.
3619 # If it is relative, then search for the first ld in PATH.
3623 elif test "$with_gnu_ld" = yes; then
3624 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3625 echo "configure:3626: checking for GNU ld" >&5
3627 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3628 echo "configure:3629: checking for non-GNU ld" >&5
3630 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 if test -z "$LD"; then
3634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3635 for ac_dir in $PATH; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3638 lt_cv_path_LD="$ac_dir/$ac_prog"
3639 # Check to see if the program is GNU ld. I'd rather use --version,
3640 # but apparently some GNU ld's only accept -v.
3641 # Break only if it was the GNU/non-GNU ld that we prefer.
3642 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3643 test "$with_gnu_ld" != no && break
3645 test "$with_gnu_ld" != yes && break
3651 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3656 if test -n "$LD"; then
3657 echo "$ac_t""$LD" 1>&6
3659 echo "$ac_t""no" 1>&6
3661 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3662 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3663 echo "configure:3664: checking if the linker ($LD) is GNU ld" >&5
3664 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3668 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3669 lt_cv_prog_gnu_ld=yes
3671 lt_cv_prog_gnu_ld=no
3675 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3676 with_gnu_ld=$lt_cv_prog_gnu_ld
3679 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $LD option to reload object files" >&5
3681 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 lt_cv_ld_reload_flag='-r'
3687 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3688 reload_flag=$lt_cv_ld_reload_flag
3689 test -n "$reload_flag" && reload_flag=" $reload_flag"
3691 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3692 echo "configure:3693: checking for BSD-compatible nm" >&5
3693 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3701 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3702 test -z "$ac_dir" && ac_dir=.
3703 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3704 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3705 # Check to see if the nm accepts a BSD-compat flag.
3706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3707 # nm: unknown option "B" ignored
3708 # Tru64's nm complains that /dev/null is an invalid object file
3709 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3710 lt_cv_path_NM="$tmp_nm -B"
3712 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3713 lt_cv_path_NM="$tmp_nm -p"
3716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3717 continue # so that we can try to find one that supports BSD flags
3722 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3727 echo "$ac_t""$NM" 1>&6
3729 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3730 echo "configure:3731: checking whether ln -s works" >&5
3731 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3735 if ln -s X conftestdata 2>/dev/null
3738 ac_cv_prog_LN_S="ln -s"
3743 LN_S="$ac_cv_prog_LN_S"
3744 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3745 echo "$ac_t""yes" 1>&6
3747 echo "$ac_t""no" 1>&6
3750 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3751 echo "configure:3752: checking how to recognise dependant libraries" >&5
3752 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 lt_cv_file_magic_cmd='$MAGIC_CMD'
3756 lt_cv_file_magic_test_file=
3757 lt_cv_deplibs_check_method='unknown'
3758 # Need to set the preceding variable on all platforms that support
3759 # interlibrary dependencies.
3760 # 'none' -- dependencies not supported.
3761 # `unknown' -- same as none, but documents that we really don't know.
3762 # 'pass_all' -- all dependencies passed with no checks.
3763 # 'test_compile' -- check by making test program.
3764 # 'file_magic [[regex]]' -- check by looking for files in library path
3765 # which responds to the $file_magic_cmd with a given egrep regex.
3766 # If you have `file' or equivalent on your system and you're not sure
3767 # whether `pass_all' will *always* work, you probably want this one.
3771 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_deplibs_check_method=pass_all
3779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3780 lt_cv_file_magic_cmd='/usr/bin/file -L'
3781 lt_cv_file_magic_test_file=/shlib/libc.so
3784 cygwin* | mingw* | pw32*)
3785 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3786 lt_cv_file_magic_cmd='$OBJDUMP -f'
3789 darwin* | rhapsody*)
3790 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3791 lt_cv_file_magic_cmd='/usr/bin/file -L'
3793 rhapsody* | darwin1.[012])
3794 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3797 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3803 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3806 # Not sure whether the presence of OpenBSD here was a mistake.
3807 # Let's accept both of them until this is cleared up.
3808 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3809 lt_cv_file_magic_cmd=/usr/bin/file
3810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3814 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_deplibs_check_method=pass_all
3823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3824 lt_cv_file_magic_cmd=/usr/bin/file
3825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3831 # this will be overridden with pass_all, but let us keep it just in case
3832 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3836 *-32|*"-32 ") libmagic=32-bit;;
3837 *-n32|*"-n32 ") libmagic=N32;;
3838 *-64|*"-64 ") libmagic=64-bit;;
3839 *) libmagic=never-match;;
3841 # this will be overridden with pass_all, but let us keep it just in case
3842 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3845 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3846 lt_cv_deplibs_check_method=pass_all
3849 # This must be Linux ELF.
3852 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3853 lt_cv_deplibs_check_method=pass_all ;;
3855 # glibc up to 2.1.1 does not perform some relocations on ARM
3856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3858 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3862 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3865 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3876 lt_cv_file_magic_cmd=/usr/bin/file
3877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3881 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3885 osf3* | osf4* | osf5*)
3886 # this will be overridden with pass_all, but let us keep it just in case
3887 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3888 lt_cv_file_magic_test_file=/shlib/libc.so
3889 lt_cv_deplibs_check_method=pass_all
3893 lt_cv_deplibs_check_method=pass_all
3897 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_file_magic_test_file=/lib/libc.so
3901 sysv5uw[78]* | sysv4*uw2*)
3902 lt_cv_deplibs_check_method=pass_all
3905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3906 case $host_vendor in
3908 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]'
3909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3912 lt_cv_deplibs_check_method=pass_all
3915 lt_cv_file_magic_cmd='/bin/file'
3916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3919 lt_cv_file_magic_cmd='/bin/file'
3920 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3921 lt_cv_file_magic_test_file=/lib/libc.so
3929 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3930 file_magic_cmd=$lt_cv_file_magic_cmd
3931 deplibs_check_method=$lt_cv_deplibs_check_method
3933 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3934 echo "configure:3935: checking for object suffix" >&5
3935 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3939 echo 'int i = 1;' > conftest.$ac_ext
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 for ac_file in conftest.*; do
3944 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3948 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3953 echo "$ac_t""$ac_cv_objext" 1>&6
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$ac_cv_objext
3960 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3961 echo "configure:3962: checking for executable suffix" >&5
3962 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3969 echo 'int main () { return 0; }' > conftest.$ac_ext
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3972 for file in conftest.*; do
3974 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3975 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3979 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3982 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3987 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3988 echo "$ac_t""${ac_cv_exeext}" 1>&6
3991 if test $host != $build; then
3992 ac_tool_prefix=${host_alias}-
4000 # Check for command to grab the raw symbol name followed by C symbol from nm.
4001 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4002 echo "configure:4003: checking command to parse $NM output" >&5
4003 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4007 # These are sane defaults that work on at least a few old systems.
4008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4010 # Character class describing NM global symbol codes.
4011 symcode='[BCDEGRST]'
4013 # Regexp to match symbols that can be accessed directly from C.
4014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4016 # Transform the above into a raw symbol and a C symbol.
4017 symxfrm='\1 \2\3 \3'
4019 # Transform an extracted symbol line into a proper C declaration
4020 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4022 # Transform an extracted symbol line into symbol name and symbol address
4023 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'"
4025 # Define system-specific variables.
4030 cygwin* | mingw* | pw32*)
4031 symcode='[ABCDGISTW]'
4033 hpux*) # Its linker distinguishes data from code symbols
4034 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4035 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4038 symcode='[BCDEGRST]'
4048 # Handle CRLF in mingw tool chain
4052 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4056 # If we're using GNU nm, then use its standard symbol codes.
4057 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4058 symcode='[ABCDGISTW]'
4061 # Try without a prefix undercore, then with it.
4062 for ac_symprfx in "" "_"; do
4064 # Write the raw and C identifiers.
4065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4067 # Check to see that the pipe works correctly.
4070 cat > conftest.$ac_ext <<EOF
4075 void nm_test_func(){}
4079 int main(){nm_test_var='a';nm_test_func();return(0);}
4082 if { (eval echo configure:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4083 # Now try to grab the symbols.
4085 if { (eval echo configure:4086: \"$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
4086 # Try sorting and uniquifying the output.
4087 if sort "$nlist" | uniq > "$nlist"T; then
4088 mv -f "$nlist"T "$nlist"
4093 # Make sure that we snagged all the symbols we need.
4094 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4095 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4096 cat <<EOF > conftest.$ac_ext
4102 # Now generate the symbol file.
4103 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4105 cat <<EOF >> conftest.$ac_ext
4106 #if defined (__STDC__) && __STDC__
4107 # define lt_ptr void *
4109 # define lt_ptr char *
4113 /* The mapping between symbol names and symbols. */
4118 lt_preloaded_symbols[] =
4121 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4122 cat <<\EOF >> conftest.$ac_ext
4130 # Now try linking the two files.
4131 mv conftest.$ac_objext conftstm.$ac_objext
4133 save_CFLAGS="$CFLAGS"
4134 LIBS="conftstm.$ac_objext"
4135 CFLAGS="$CFLAGS$no_builtin_flag"
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4140 CFLAGS="$save_CFLAGS"
4142 echo "cannot find nm_test_func in $nlist" >&5
4145 echo "cannot find nm_test_var in $nlist" >&5
4148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4151 echo "$progname: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 rm -f conftest* conftst*
4156 # Do not use the global_symbol_pipe unless it works.
4157 if test "$pipe_works" = yes; then
4160 lt_cv_sys_global_symbol_pipe=
4166 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4168 global_symbol_to_cdecl=
4169 global_symbol_to_c_name_address=
4171 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4172 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4174 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4176 echo "$ac_t""failed" 1>&6
4178 echo "$ac_t""ok" 1>&6
4181 for ac_hdr in dlfcn.h
4183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4185 echo "configure:4186: checking for $ac_hdr" >&5
4186 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4195 { (eval echo configure:4196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4197 if test -z "$ac_err"; then
4199 eval "ac_cv_header_$ac_safe=yes"
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 eval "ac_cv_header_$ac_safe=no"
4209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4212 cat >> confdefs.h <<EOF
4213 #define $ac_tr_hdr 1
4217 echo "$ac_t""no" 1>&6
4225 # Only perform the check for file, if the check method requires it
4226 case $deplibs_check_method in
4228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4229 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4230 echo "configure:4231: checking for ${ac_tool_prefix}file" >&5
4231 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4242 ac_save_MAGIC_CMD="$MAGIC_CMD"
4243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4244 ac_dummy="/usr/bin:$PATH"
4245 for ac_dir in $ac_dummy; do
4246 test -z "$ac_dir" && ac_dir=.
4247 if test -f $ac_dir/${ac_tool_prefix}file; then
4248 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4249 if test -n "$file_magic_test_file"; then
4250 case $deplibs_check_method in
4252 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4255 egrep "$file_magic_regex" > /dev/null; then
4260 *** Warning: the command libtool uses to detect shared libraries,
4261 *** $file_magic_cmd, produces output that libtool cannot recognize.
4262 *** The result is that libtool may fail to recognize shared libraries
4263 *** as such. This will affect the creation of libtool libraries that
4264 *** depend on shared libraries, but programs linked with such libtool
4265 *** libraries will work regardless of this problem. Nevertheless, you
4266 *** may want to report the problem to your system manager and/or to
4267 *** bug-libtool@gnu.org
4277 MAGIC_CMD="$ac_save_MAGIC_CMD"
4282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4283 if test -n "$MAGIC_CMD"; then
4284 echo "$ac_t""$MAGIC_CMD" 1>&6
4286 echo "$ac_t""no" 1>&6
4289 if test -z "$lt_cv_path_MAGIC_CMD"; then
4290 if test -n "$ac_tool_prefix"; then
4291 echo $ac_n "checking for file""... $ac_c" 1>&6
4292 echo "configure:4293: checking for file" >&5
4293 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4304 ac_save_MAGIC_CMD="$MAGIC_CMD"
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4306 ac_dummy="/usr/bin:$PATH"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/file; then
4310 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4311 if test -n "$file_magic_test_file"; then
4312 case $deplibs_check_method in
4314 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4317 egrep "$file_magic_regex" > /dev/null; then
4322 *** Warning: the command libtool uses to detect shared libraries,
4323 *** $file_magic_cmd, produces output that libtool cannot recognize.
4324 *** The result is that libtool may fail to recognize shared libraries
4325 *** as such. This will affect the creation of libtool libraries that
4326 *** depend on shared libraries, but programs linked with such libtool
4327 *** libraries will work regardless of this problem. Nevertheless, you
4328 *** may want to report the problem to your system manager and/or to
4329 *** bug-libtool@gnu.org
4339 MAGIC_CMD="$ac_save_MAGIC_CMD"
4344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4345 if test -n "$MAGIC_CMD"; then
4346 echo "$ac_t""$MAGIC_CMD" 1>&6
4348 echo "$ac_t""no" 1>&6
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4363 echo "configure:4364: checking for $ac_word" >&5
4364 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4372 for ac_dir in $ac_dummy; do
4373 test -z "$ac_dir" && ac_dir=.
4374 if test -f $ac_dir/$ac_word; then
4375 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4382 RANLIB="$ac_cv_prog_RANLIB"
4383 if test -n "$RANLIB"; then
4384 echo "$ac_t""$RANLIB" 1>&6
4386 echo "$ac_t""no" 1>&6
4390 if test -z "$ac_cv_prog_RANLIB"; then
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "ranlib", so it can be a program name with args.
4393 set dummy ranlib; ac_word=$2
4394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4395 echo "configure:4396: checking for $ac_word" >&5
4396 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 if test -n "$RANLIB"; then
4400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4404 for ac_dir in $ac_dummy; do
4405 test -z "$ac_dir" && ac_dir=.
4406 if test -f $ac_dir/$ac_word; then
4407 ac_cv_prog_RANLIB="ranlib"
4412 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4415 RANLIB="$ac_cv_prog_RANLIB"
4416 if test -n "$RANLIB"; then
4417 echo "$ac_t""$RANLIB" 1>&6
4419 echo "$ac_t""no" 1>&6
4427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}strip; ac_word=$2
4429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4430 echo "configure:4431: checking for $ac_word" >&5
4431 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 if test -n "$STRIP"; then
4435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4439 for ac_dir in $ac_dummy; do
4440 test -z "$ac_dir" && ac_dir=.
4441 if test -f $ac_dir/$ac_word; then
4442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4449 STRIP="$ac_cv_prog_STRIP"
4450 if test -n "$STRIP"; then
4451 echo "$ac_t""$STRIP" 1>&6
4453 echo "$ac_t""no" 1>&6
4457 if test -z "$ac_cv_prog_STRIP"; then
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "strip", so it can be a program name with args.
4460 set dummy strip; ac_word=$2
4461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4462 echo "configure:4463: checking for $ac_word" >&5
4463 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 if test -n "$STRIP"; then
4467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4471 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f $ac_dir/$ac_word; then
4474 ac_cv_prog_STRIP="strip"
4479 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4482 STRIP="$ac_cv_prog_STRIP"
4483 if test -n "$STRIP"; then
4484 echo "$ac_t""$STRIP" 1>&6
4486 echo "$ac_t""no" 1>&6
4496 enable_win32_dll=yes
4498 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4499 if test "${enable_libtool_lock+set}" = set; then
4500 enableval="$enable_libtool_lock"
4504 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4506 # Some flags need to be propagated to the compiler or linker for good
4510 # Find out which ABI we are using.
4511 echo '#line 4512 "configure"' > conftest.$ac_ext
4512 if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4513 case `/usr/bin/file conftest.$ac_objext` in
4529 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4530 SAVE_CFLAGS="$CFLAGS"
4531 CFLAGS="$CFLAGS -belf"
4532 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4533 echo "configure:4534: checking whether the C compiler needs -belf" >&5
4534 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543 cross_compiling=$ac_cv_prog_cc_cross
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555 lt_cv_cc_needs_belf=yes
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 lt_cv_cc_needs_belf=no
4564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 cross_compiling=$ac_cv_prog_cc_cross
4572 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4573 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4575 CFLAGS="$SAVE_CFLAGS"
4579 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4580 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_word" >&5
4584 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 if test -n "$DLLTOOL"; then
4588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4592 for ac_dir in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir=.
4594 if test -f $ac_dir/$ac_word; then
4595 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4602 DLLTOOL="$ac_cv_prog_DLLTOOL"
4603 if test -n "$DLLTOOL"; then
4604 echo "$ac_t""$DLLTOOL" 1>&6
4606 echo "$ac_t""no" 1>&6
4610 if test -z "$ac_cv_prog_DLLTOOL"; then
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "dlltool", so it can be a program name with args.
4613 set dummy dlltool; ac_word=$2
4614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_word" >&5
4616 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 if test -n "$DLLTOOL"; then
4620 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4624 for ac_dir in $ac_dummy; do
4625 test -z "$ac_dir" && ac_dir=.
4626 if test -f $ac_dir/$ac_word; then
4627 ac_cv_prog_DLLTOOL="dlltool"
4632 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4635 DLLTOOL="$ac_cv_prog_DLLTOOL"
4636 if test -n "$DLLTOOL"; then
4637 echo "$ac_t""$DLLTOOL" 1>&6
4639 echo "$ac_t""no" 1>&6
4647 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}as; ac_word=$2
4649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_word" >&5
4651 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test -n "$AS"; then
4655 ac_cv_prog_AS="$AS" # Let the user override the test.
4657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 if test -f $ac_dir/$ac_word; then
4662 ac_cv_prog_AS="${ac_tool_prefix}as"
4670 if test -n "$AS"; then
4671 echo "$ac_t""$AS" 1>&6
4673 echo "$ac_t""no" 1>&6
4677 if test -z "$ac_cv_prog_AS"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "as", so it can be a program name with args.
4680 set dummy as; ac_word=$2
4681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_word" >&5
4683 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 if test -n "$AS"; then
4687 ac_cv_prog_AS="$AS" # Let the user override the test.
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4699 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4703 if test -n "$AS"; then
4704 echo "$ac_t""$AS" 1>&6
4706 echo "$ac_t""no" 1>&6
4714 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_word" >&5
4718 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 if test -n "$OBJDUMP"; then
4722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4726 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f $ac_dir/$ac_word; then
4729 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4736 OBJDUMP="$ac_cv_prog_OBJDUMP"
4737 if test -n "$OBJDUMP"; then
4738 echo "$ac_t""$OBJDUMP" 1>&6
4740 echo "$ac_t""no" 1>&6
4744 if test -z "$ac_cv_prog_OBJDUMP"; then
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "objdump", so it can be a program name with args.
4747 set dummy objdump; ac_word=$2
4748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_word" >&5
4750 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 if test -n "$OBJDUMP"; then
4754 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/$ac_word; then
4761 ac_cv_prog_OBJDUMP="objdump"
4766 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4769 OBJDUMP="$ac_cv_prog_OBJDUMP"
4770 if test -n "$OBJDUMP"; then
4771 echo "$ac_t""$OBJDUMP" 1>&6
4773 echo "$ac_t""no" 1>&6
4782 # recent cygwin and mingw systems supply a stub DllMain which the user
4783 # can override, but on older systems we have to supply one
4784 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4785 echo "configure:4786: checking if libtool should supply DllMain function" >&5
4786 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800 lt_cv_need_dllmain=no
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 lt_cv_need_dllmain=yes
4810 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4813 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4814 # old mingw systems require "-dll" to link a DLL, while more recent ones
4816 SAVE_CFLAGS="$CFLAGS"
4817 CFLAGS="$CFLAGS -mdll"
4818 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4819 echo "configure:4820: checking how to link DLLs" >&5
4820 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 lt_cv_cc_dll_switch=-mdll
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 lt_cv_cc_dll_switch=-dll
4843 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4844 CFLAGS="$SAVE_CFLAGS" ;;
4845 *-*-cygwin* | *-*-pw32*)
4846 # cygwin systems need to pass --dll to the linker, and not link
4847 # crt.o which will require a WinMain@16 definition.
4848 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4854 # Sed substitution that helps us do robust quoting. It backslashifies
4855 # metacharacters that are still active within double-quoted strings.
4856 Xsed='sed -e s/^X//'
4857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4859 # Same as above, but do not quote variable references.
4860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4862 # Sed substitution to delay expansion of an escaped shell variable in a
4863 # double_quote_subst'ed string.
4864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4870 default_ofile=libtool
4871 can_build_shared=yes
4873 # All known linkers require a `.a' archive for static linking (except M$VC,
4874 # which needs '.lib').
4876 ltmain="$ac_aux_dir/ltmain.sh"
4877 ofile="$default_ofile"
4878 with_gnu_ld="$lt_cv_prog_gnu_ld"
4879 need_locks="$enable_libtool_lock"
4882 old_CFLAGS="$CFLAGS"
4884 # Set sane defaults for various variables
4885 test -z "$AR" && AR=ar
4886 test -z "$AR_FLAGS" && AR_FLAGS=cru
4887 test -z "$AS" && AS=as
4888 test -z "$CC" && CC=cc
4889 test -z "$DLLTOOL" && DLLTOOL=dlltool
4890 test -z "$LD" && LD=ld
4891 test -z "$LN_S" && LN_S="ln -s"
4892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4893 test -z "$NM" && NM=nm
4894 test -z "$OBJDUMP" && OBJDUMP=objdump
4895 test -z "$RANLIB" && RANLIB=:
4896 test -z "$STRIP" && STRIP=:
4897 test -z "$ac_objext" && ac_objext=o
4899 if test x"$host" != x"$build"; then
4900 ac_tool_prefix=${host_alias}-
4905 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4908 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4913 # AIX sometimes has problems with the GCC collect2 program. For some
4914 # reason, if we set the COLLECT_NAMES environment variable, the problems
4915 # vanish in a puff of smoke.
4916 if test "X${COLLECT_NAMES+set}" != Xset; then
4918 export COLLECT_NAMES
4923 # Determine commands to create old-style static archives.
4924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4925 old_postinstall_cmds='chmod 644 $oldlib'
4926 old_postuninstall_cmds=
4928 if test -n "$RANLIB"; then
4931 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4934 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4937 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4940 # Allow CC to be a program name with arguments.
4944 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4945 echo "configure:4946: checking for objdir" >&5
4946 rm -f .libs 2>/dev/null
4947 mkdir .libs 2>/dev/null
4948 if test -d .libs; then
4951 # MS-DOS does not allow filenames that begin with a dot.
4954 rmdir .libs 2>/dev/null
4955 echo "$ac_t""$objdir" 1>&6
4958 # Check whether --with-pic or --without-pic was given.
4959 if test "${with_pic+set}" = set; then
4966 test -z "$pic_mode" && pic_mode=default
4968 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4969 # in isolation, and that seeing it set (from the cache) indicates that
4970 # the associated values are set (in the cache) correctly too.
4971 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $compiler option to produce PIC" >&5
4973 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4977 lt_cv_prog_cc_shlib=
4979 lt_cv_prog_cc_static=
4980 lt_cv_prog_cc_no_builtin=
4981 lt_cv_prog_cc_can_build_shared=$can_build_shared
4983 if test "$GCC" = yes; then
4984 lt_cv_prog_cc_wl='-Wl,'
4985 lt_cv_prog_cc_static='-static'
4989 # Below there is a dirty hack to force normal static linking with -ldl
4990 # The problem is because libdl dynamically linked with both libc and
4991 # libC (AIX C++ library), which obviously doesn't included in libraries
4992 # list by gcc. This cause undefined symbols with -static flags.
4993 # This hack allows C programs to be linked with "-static -ldl", but
4994 # not sure about C++ programs.
4995 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4998 # FIXME: we need at least 68020 code to build shared libraries, but
4999 # adding the `-m68020' flag to GCC prevents building anything better,
5001 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5003 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5004 # PIC is the default for these OSes.
5006 darwin* | rhapsody*)
5007 # PIC is the default on this platform
5008 # Common symbols not allowed in MH_DYLIB files
5009 lt_cv_prog_cc_pic='-fno-common'
5011 cygwin* | mingw* | pw32* | os2*)
5012 # This hack is so that the source file can tell whether it is being
5013 # built for inclusion in a dll (and should export symbols for example).
5014 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5017 if test -d /usr/nec; then
5018 lt_cv_prog_cc_pic=-Kconform_pic
5022 lt_cv_prog_cc_pic='-fPIC'
5026 # PORTME Check for PIC flags for the system compiler.
5028 aix3* | aix4* | aix5*)
5029 lt_cv_prog_cc_wl='-Wl,'
5030 # All AIX code is PIC.
5031 if test "$host_cpu" = ia64; then
5032 # AIX 5 now supports IA64 processor
5033 lt_cv_prog_cc_static='-Bstatic'
5035 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5039 hpux9* | hpux10* | hpux11*)
5040 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5041 lt_cv_prog_cc_wl='-Wl,'
5042 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5043 lt_cv_prog_cc_pic='+Z'
5047 lt_cv_prog_cc_wl='-Wl,'
5048 lt_cv_prog_cc_static='-non_shared'
5049 # PIC (with -KPIC) is the default.
5052 cygwin* | mingw* | pw32* | os2*)
5053 # This hack is so that the source file can tell whether it is being
5054 # built for inclusion in a dll (and should export symbols for example).
5055 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5059 lt_cv_prog_cc_pic='-KPIC'
5060 lt_cv_prog_cc_static='-Bstatic'
5063 osf3* | osf4* | osf5*)
5064 # All OSF/1 code is PIC.
5065 lt_cv_prog_cc_wl='-Wl,'
5066 lt_cv_prog_cc_static='-non_shared'
5070 lt_cv_prog_cc_pic='-Kpic'
5071 lt_cv_prog_cc_static='-dn'
5072 lt_cv_prog_cc_shlib='-belf'
5076 lt_cv_prog_cc_pic='-KPIC'
5077 lt_cv_prog_cc_static='-Bstatic'
5078 lt_cv_prog_cc_wl='-Wl,'
5082 lt_cv_prog_cc_pic='-PIC'
5083 lt_cv_prog_cc_static='-Bstatic'
5084 lt_cv_prog_cc_wl='-Qoption ld '
5087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5088 lt_cv_prog_cc_pic='-KPIC'
5089 lt_cv_prog_cc_static='-Bstatic'
5090 if test "x$host_vendor" = xsni; then
5091 lt_cv_prog_cc_wl='-LD'
5093 lt_cv_prog_cc_wl='-Wl,'
5098 lt_cv_prog_cc_pic='-pic'
5099 lt_cv_prog_cc_static='-Bstatic'
5103 if test -d /usr/nec ;then
5104 lt_cv_prog_cc_pic='-Kconform_pic'
5105 lt_cv_prog_cc_static='-Bstatic'
5110 lt_cv_prog_cc_can_build_shared=no
5117 if test -z "$lt_cv_prog_cc_pic"; then
5118 echo "$ac_t""none" 1>&6
5120 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5122 # Check to make sure the pic_flag actually works.
5123 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5124 echo "configure:5125: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5125 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 save_CFLAGS="$CFLAGS"
5129 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5130 cat > conftest.$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 hpux9* | hpux10* | hpux11*)
5142 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5143 # they create non-PIC objects. So, if there were any warnings, we
5144 # assume that PIC is not supported.
5145 if test -s conftest.err; then
5146 lt_cv_prog_cc_pic_works=no
5148 lt_cv_prog_cc_pic_works=yes
5152 lt_cv_prog_cc_pic_works=yes
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 lt_cv_prog_cc_pic_works=no
5164 CFLAGS="$save_CFLAGS"
5169 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5171 lt_cv_prog_cc_can_build_shared=no
5173 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5176 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5179 # Check for any special shared library compilation flags.
5180 if test -n "$lt_cv_prog_cc_shlib"; then
5181 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5182 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5184 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5185 lt_cv_prog_cc_can_build_shared=no
5189 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5190 echo "configure:5191: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5191 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 lt_cv_prog_cc_static_works=no
5195 save_LDFLAGS="$LDFLAGS"
5196 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5207 lt_cv_prog_cc_static_works=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5213 LDFLAGS="$save_LDFLAGS"
5218 # Belt *and* braces to stop my trousers falling down:
5219 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5220 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5222 pic_flag="$lt_cv_prog_cc_pic"
5223 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5224 wl="$lt_cv_prog_cc_wl"
5225 link_static_flag="$lt_cv_prog_cc_static"
5226 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5227 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5230 # Check to see if options -o and -c are simultaneously supported by compiler
5231 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5232 echo "configure:5233: checking if $compiler supports -c -o file.$ac_objext" >&5
5233 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5237 $rm -r conftest 2>/dev/null
5240 echo "int some_variable = 0;" > conftest.$ac_ext
5242 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5243 # that will create temporary files in the current directory regardless of
5244 # the output directory. Thus, making CWD read-only will cause this test
5245 # to fail, enabling locking or at least warning the user not to do parallel
5248 save_CFLAGS="$CFLAGS"
5249 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5251 if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5252 # The compiler can only warn and ignore the option if not recognized
5253 # So say no if there are warnings
5254 if test -s out/conftest.err; then
5255 lt_cv_compiler_c_o=no
5257 lt_cv_compiler_c_o=yes
5260 # Append any errors to the config.log.
5261 cat out/conftest.err 1>&5
5262 lt_cv_compiler_c_o=no
5264 CFLAGS="$save_CFLAGS"
5270 $rm -r conftest 2>/dev/null
5274 compiler_c_o=$lt_cv_compiler_c_o
5275 echo "$ac_t""$compiler_c_o" 1>&6
5277 if test x"$compiler_c_o" = x"yes"; then
5278 # Check to see if we can write to a .lo
5279 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5280 echo "configure:5281: checking if $compiler supports -c -o file.lo" >&5
5281 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5285 lt_cv_compiler_o_lo=no
5286 save_CFLAGS="$CFLAGS"
5287 CFLAGS="$CFLAGS -c -o conftest.lo"
5288 save_objext="$ac_objext"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5295 int some_variable = 0;
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 # The compiler can only warn and ignore the option if not recognized
5301 # So say no if there are warnings
5302 if test -s conftest.err; then
5303 lt_cv_compiler_o_lo=no
5305 lt_cv_compiler_o_lo=yes
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5313 ac_objext="$save_objext"
5314 CFLAGS="$save_CFLAGS"
5318 compiler_o_lo=$lt_cv_compiler_o_lo
5319 echo "$ac_t""$compiler_o_lo" 1>&6
5324 # Check to see if we can do hard links to lock some files if needed
5325 hard_links="nottested"
5326 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5327 # do not overwrite the value of need_locks provided by the user
5328 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5329 echo "configure:5330: checking if we can lock with hard links" >&5
5332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5334 ln conftest.a conftest.b 2>&5 || hard_links=no
5335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5336 echo "$ac_t""$hard_links" 1>&6
5337 if test "$hard_links" = no; then
5338 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5345 if test "$GCC" = yes; then
5346 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5347 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5348 echo "configure:5349: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5349 echo "int some_variable = 0;" > conftest.$ac_ext
5350 save_CFLAGS="$CFLAGS"
5351 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5352 compiler_rtti_exceptions=no
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5358 int some_variable = 0;
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363 # The compiler can only warn and ignore the option if not recognized
5364 # So say no if there are warnings
5365 if test -s conftest.err; then
5366 compiler_rtti_exceptions=no
5368 compiler_rtti_exceptions=yes
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5376 CFLAGS="$save_CFLAGS"
5377 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5379 if test "$compiler_rtti_exceptions" = "yes"; then
5380 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5382 no_builtin_flag=' -fno-builtin'
5386 # See if the linker supports building shared libraries.
5387 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5388 echo "configure:5389: checking whether the linker ($LD) supports shared libraries" >&5
5390 allow_undefined_flag=
5392 need_lib_prefix=unknown
5393 need_version=unknown
5394 # when you set need_version to no, make sure it does not cause -set_version
5395 # flags to be left without arguments
5397 archive_expsym_cmds=
5398 old_archive_from_new_cmds=
5399 old_archive_from_expsyms_cmds=
5400 export_dynamic_flag_spec=
5401 whole_archive_flag_spec=
5402 thread_safe_flag_spec=
5403 hardcode_into_libs=no
5404 hardcode_libdir_flag_spec=
5405 hardcode_libdir_separator=
5408 hardcode_shlibpath_var=unsupported
5410 link_all_deplibs=unknown
5411 always_export_symbols=no
5412 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5413 # include_expsyms should be a list of space-separated symbols to be *always*
5414 # included in the symbol list
5416 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5419 # as well as any symbol that contains `d'.
5420 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5422 # platforms (ab)use it in PIC code, but their linkers get confused if
5423 # the symbol is explicitly referenced. Since portable code cannot
5424 # rely on this symbol name, it's probably fine to never include it in
5425 # preloaded symbol tables.
5426 extract_expsyms_cmds=
5429 cygwin* | mingw* | pw32*)
5430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5431 # When not using gcc, we currently assume that we are using
5432 # Microsoft Visual C++.
5433 if test "$GCC" != yes; then
5443 if test "$with_gnu_ld" = yes; then
5444 # If archive_cmds runs LD, not CC, wlarc should be empty
5447 # See if GNU ld supports shared libraries.
5449 aix3* | aix4* | aix5*)
5450 # On AIX, the GNU linker is very broken
5451 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5456 *** to be unable to reliably create shared libraries on AIX.
5457 *** Therefore, libtool is disabling shared libraries support. If you
5458 *** really care for shared libraries, you may want to modify your PATH
5459 *** so that a non-GNU linker is found, and then restart.
5465 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)'
5466 hardcode_libdir_flag_spec='-L$libdir'
5467 hardcode_minus_L=yes
5469 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5470 # that the semantics of dynamic libraries on AmigaOS, at least up
5471 # to version 4, is to share data among multiple programs linked
5472 # with the same dynamic library. Since this doesn't match the
5473 # behavior of shared libraries on other platforms, we can use
5479 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5480 allow_undefined_flag=unsupported
5481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5482 # support --undefined. This deserves some investigation. FIXME
5483 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5489 cygwin* | mingw* | pw32*)
5490 # hardcode_libdir_flag_spec is actually meaningless, as there is
5491 # no search path for DLLs.
5492 hardcode_libdir_flag_spec='-L$libdir'
5493 allow_undefined_flag=unsupported
5494 always_export_symbols=yes
5496 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5497 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5498 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5499 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5500 else $CC -o impgen impgen.c ; fi)~
5501 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5503 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5505 # cygwin and mingw dlls have different entry points and sets of symbols
5507 # FIXME: what about values for MSVC?
5508 dll_entry=__cygwin_dll_entry@12
5509 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5513 dll_entry=_DllMainCRTStartup@12
5514 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5518 # mingw and cygwin differ, and it's simplest to just exclude the union
5519 # of the two symbol sets.
5520 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5522 # recent cygwin and mingw systems supply a stub DllMain which the user
5523 # can override, but on older systems we have to supply one (in ltdll.c)
5524 if test "x$lt_cv_need_dllmain" = "xyes"; then
5525 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5526 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~
5527 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5533 # Extract the symbol export list from an `--export-all' def file,
5534 # then regenerate the def file from the symbol export list, so that
5535 # the compiled dll only exports the symbol export list.
5536 # Be careful not to strip the DATA tag left be newer dlltools.
5537 export_symbols_cmds="$ltdll_cmds"'
5538 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5539 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5541 # If the export-symbols file already is a .def file (1st line
5542 # is EXPORTS), use it as is.
5543 # If DATA tags from a recent dlltool are present, honour them!
5544 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5545 cp $export_symbols $output_objdir/$soname-def;
5547 echo EXPORTS > $output_objdir/$soname-def;
5549 cat $export_symbols | while read symbol; do
5552 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5553 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5555 _lt_hint=`expr 1 + \$_lt_hint`;
5559 $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~
5560 $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~
5561 $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~
5562 $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~
5563 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5571 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5572 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5577 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5582 *** create shared libraries on Solaris systems. Therefore, libtool
5583 *** is disabling shared libraries support. We urge you to upgrade GNU
5584 *** binutils to release 2.9.1 or newer. Another option is to modify
5585 *** your PATH or compiler configuration so that the native linker is
5586 *** used, and then restart.
5589 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5601 hardcode_shlibpath_var=no
5605 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5614 if test "$ld_shlibs" = yes; then
5615 runpath_var=LD_RUN_PATH
5616 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5617 export_dynamic_flag_spec='${wl}--export-dynamic'
5619 cygwin* | mingw* | pw32*)
5620 # dlltool doesn't understand --whole-archive et. al.
5621 whole_archive_flag_spec=
5624 # ancient GNU ld didn't support --whole-archive et. al.
5625 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5628 whole_archive_flag_spec=
5634 # PORTME fill in a description of your system's linker (not GNU ld)
5637 allow_undefined_flag=unsupported
5638 always_export_symbols=yes
5639 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'
5640 # Note: this linker hardcodes the directories in LIBPATH if there
5641 # are no directories specified by -L.
5642 hardcode_minus_L=yes
5643 if test "$GCC" = yes && test -z "$link_static_flag"; then
5644 # Neither direct hardcoding nor static linking is supported with a
5646 hardcode_direct=unsupported
5651 if test "$host_cpu" = ia64; then
5652 # On IA64, the linker does run time linking by default, so we don't
5653 # have to do anything special.
5654 aix_use_runtimelinking=no
5655 exp_sym_flag='-Bexport'
5658 aix_use_runtimelinking=no
5660 # Test if we are trying to use run time linking or normal
5661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5662 # need to do runtime linking.
5663 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5664 for ld_flag in $LDFLAGS; do
5665 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5666 aix_use_runtimelinking=yes
5672 exp_sym_flag='-bexport'
5673 no_entry_flag='-bnoentry'
5676 # When large executables or shared objects are built, AIX ld can
5677 # have problems creating the table of contents. If linking a library
5678 # or program results in "error TOC overflow" add -mminimal-toc to
5679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5684 hardcode_libdir_separator=':'
5685 if test "$GCC" = yes; then
5686 case $host_os in aix4.[012]|aix4.[012].*)
5687 collect2name=`${CC} -print-prog-name=collect2`
5688 if test -f "$collect2name" && \
5689 strings "$collect2name" | grep resolve_lib_name >/dev/null
5691 # We have reworked collect2
5694 # We have old collect2
5695 hardcode_direct=unsupported
5696 # It fails to find uninstalled libraries when the uninstalled
5697 # path is not listed in the libpath. Setting hardcode_minus_L
5698 # to unsupported forces relinking
5699 hardcode_minus_L=yes
5700 hardcode_libdir_flag_spec='-L$libdir'
5701 hardcode_libdir_separator=
5705 shared_flag='-shared'
5708 if test "$host_cpu" = ia64; then
5709 shared_flag='${wl}-G'
5711 if test "$aix_use_runtimelinking" = yes; then
5712 shared_flag='${wl}-G'
5714 shared_flag='${wl}-bM:SRE'
5719 # It seems that -bexpall can do strange things, so it is better to
5720 # generate a list of symbols to export.
5721 always_export_symbols=yes
5722 if test "$aix_use_runtimelinking" = yes; then
5723 # Warning - without using the other runtime loading flags (-brtl),
5724 # -berok will link without error, but may produce a broken library.
5725 allow_undefined_flag='-berok'
5726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5727 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"
5729 if test "$host_cpu" = ia64; then
5730 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5731 allow_undefined_flag="-z nodefs"
5732 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"
5734 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5735 # Warning - without using the other run time loading flags,
5736 # -berok will link without error, but may produce a broken library.
5737 allow_undefined_flag='${wl}-berok'
5738 # This is a bit strange, but is similar to how AIX traditionally builds
5739 # it's shared libraries.
5740 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'
5746 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)'
5747 hardcode_libdir_flag_spec='-L$libdir'
5748 hardcode_minus_L=yes
5749 # see comment about different semantics on the GNU ld section
5753 cygwin* | mingw* | pw32*)
5754 # When not using gcc, we currently assume that we are using
5755 # Microsoft Visual C++.
5756 # hardcode_libdir_flag_spec is actually meaningless, as there is
5757 # no search path for DLLs.
5758 hardcode_libdir_flag_spec=' '
5759 allow_undefined_flag=unsupported
5760 # Tell ltmain to make .lib files, not .a files.
5762 # FIXME: Setting linknames here is a bad hack.
5763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5764 # The linker will automatically build a .lib file if we build a DLL.
5765 old_archive_from_new_cmds='true'
5766 # FIXME: Should let the user specify the lib program.
5767 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5768 fix_srcfile_path='`cygpath -w "$srcfile"`'
5771 darwin* | rhapsody*)
5773 rhapsody* | darwin1.[012])
5774 allow_undefined_flag='-undefined suppress'
5777 allow_undefined_flag='-flat_namespace -undefined suppress'
5780 # FIXME: Relying on posixy $() will cause problems for
5781 # cross-compilation, but unfortunately the echo tests do not
5782 # yet detect zsh echo's removal of \ escapes.
5783 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'
5784 # We need to add '_' to the symbols in $export_symbols first
5785 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5787 hardcode_shlibpath_var=no
5788 whole_archive_flag_spec='-all_load $convenience'
5795 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5796 # support. Future versions do this automatically, but an explicit c++rt0.o
5797 # does not break anything, and helps significantly (at the cost of a little
5800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5801 hardcode_libdir_flag_spec='-R$libdir'
5803 hardcode_shlibpath_var=no
5806 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_minus_L=yes
5811 hardcode_shlibpath_var=no
5814 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5816 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5817 hardcode_libdir_flag_spec='-R$libdir'
5819 hardcode_shlibpath_var=no
5822 hpux9* | hpux10* | hpux11*)
5824 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' ;;
5825 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5828 hardcode_libdir_separator=:
5830 hardcode_minus_L=yes # Not in the search PATH, but as the default
5831 # location of the library.
5832 export_dynamic_flag_spec='${wl}-E'
5836 if test "$GCC" = yes; then
5837 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'
5839 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'
5841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5842 hardcode_libdir_separator=:
5843 link_all_deplibs=yes
5847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5852 hardcode_libdir_flag_spec='-R$libdir'
5854 hardcode_shlibpath_var=no
5858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5861 hardcode_libdir_separator=:
5862 hardcode_shlibpath_var=no
5867 hardcode_shlibpath_var=no
5868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5871 export_dynamic_flag_spec='${wl}-E'
5874 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5876 hardcode_libdir_flag_spec='-R$libdir'
5879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5887 hardcode_libdir_flag_spec='-L$libdir'
5888 hardcode_minus_L=yes
5889 allow_undefined_flag=unsupported
5890 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'
5891 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5895 if test "$GCC" = yes; then
5896 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5897 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'
5899 allow_undefined_flag=' -expect_unresolved \*'
5900 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'
5902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5903 hardcode_libdir_separator=:
5906 osf4* | osf5*) # as osf3* with the addition of -msym flag
5907 if test "$GCC" = yes; then
5908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5909 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5912 allow_undefined_flag=' -expect_unresolved \*'
5913 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'
5914 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5915 $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'
5917 #Both c and cxx compiler support -rpath directly
5918 hardcode_libdir_flag_spec='-rpath $libdir'
5920 hardcode_libdir_separator=:
5924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 hardcode_shlibpath_var=no
5926 runpath_var=LD_RUN_PATH
5927 hardcode_runpath_var=yes
5928 export_dynamic_flag_spec='${wl}-Bexport'
5932 # gcc --version < 3.0 without binutils cannot create self contained
5933 # shared libraries reliably, requiring libgcc.a to resolve some of
5934 # the object symbols generated in some cases. Libraries that use
5935 # assert need libgcc.a to resolve __eprintf, for example. Linking
5936 # a copy of libgcc.a into every shared library to guarantee resolving
5937 # such symbols causes other problems: According to Tim Van Holder
5938 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5939 # (to the application) exception stack for one thing.
5940 no_undefined_flag=' -z defs'
5941 if test "$GCC" = yes; then
5942 case `$CC --version 2>/dev/null` in
5946 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5947 *** create self contained shared libraries on Solaris systems, without
5948 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5949 *** -no-undefined support, which will at least allow you to build shared
5950 *** libraries. However, you may find that when you link such libraries
5951 *** into an application without using GCC, you have to manually add
5952 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5953 *** upgrade to a newer version of GCC. Another option is to rebuild your
5954 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5961 # $CC -shared without GNU ld will not create a library from C++
5962 # object files and a static libstdc++, better avoid it by now
5963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5966 hardcode_libdir_flag_spec='-R$libdir'
5967 hardcode_shlibpath_var=no
5969 solaris2.[0-5] | solaris2.[0-5].*) ;;
5970 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5973 link_all_deplibs=yes
5977 if test "x$host_vendor" = xsequent; then
5978 # Use $CC to link under sequent, because it throws in some extra .o
5979 # files that make .init and .fini sections work.
5980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5984 hardcode_libdir_flag_spec='-L$libdir'
5986 hardcode_minus_L=yes
5987 hardcode_shlibpath_var=no
5991 if test "x$host_vendor" = xsno; then
5992 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993 hardcode_direct=yes # is this really true???
5995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5996 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5998 runpath_var='LD_RUN_PATH'
5999 hardcode_shlibpath_var=no
6003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6004 hardcode_shlibpath_var=no
6005 export_dynamic_flag_spec='-Bexport'
6009 no_undefined_flag=' -z text'
6010 # $CC -shared without GNU ld will not create a library from C++
6011 # object files and a static libstdc++, better avoid it by now
6012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6013 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6015 hardcode_libdir_flag_spec=
6016 hardcode_shlibpath_var=no
6017 runpath_var='LD_RUN_PATH'
6021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6022 hardcode_libdir_flag_spec='-L$libdir'
6023 hardcode_shlibpath_var=no
6027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6028 hardcode_libdir_flag_spec='-L$libdir'
6029 hardcode_shlibpath_var=no
6033 if test -d /usr/nec; then
6034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6035 hardcode_shlibpath_var=no
6036 runpath_var=LD_RUN_PATH
6037 hardcode_runpath_var=yes
6043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6046 hardcode_shlibpath_var=no
6047 hardcode_runpath_var=yes
6048 runpath_var=LD_RUN_PATH
6051 sysv5uw7* | unixware7*)
6052 no_undefined_flag='${wl}-z ${wl}text'
6053 if test "$GCC" = yes; then
6054 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6056 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6058 runpath_var='LD_RUN_PATH'
6059 hardcode_shlibpath_var=no
6067 echo "$ac_t""$ld_shlibs" 1>&6
6068 test "$ld_shlibs" = no && can_build_shared=no
6070 # Check hardcoding attributes.
6071 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6072 echo "configure:6073: checking how to hardcode library paths into programs" >&5
6074 if test -n "$hardcode_libdir_flag_spec" || \
6075 test -n "$runpath_var"; then
6077 # We can hardcode non-existant directories.
6078 if test "$hardcode_direct" != no &&
6079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6080 # have to relink, otherwise we might link with an installed library
6081 # when we should be linking with a yet-to-be-installed one
6082 ## test "$hardcode_shlibpath_var" != no &&
6083 test "$hardcode_minus_L" != no; then
6084 # Linking always hardcodes the temporary library directory.
6085 hardcode_action=relink
6087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6088 hardcode_action=immediate
6091 # We cannot hardcode anything, or else we can only hardcode existing
6093 hardcode_action=unsupported
6095 echo "$ac_t""$hardcode_action" 1>&6
6099 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6100 echo "configure:6101: checking whether stripping libraries is possible" >&5
6101 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6102 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6103 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6104 echo "$ac_t""yes" 1>&6
6106 echo "$ac_t""no" 1>&6
6109 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6110 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6112 # PORTME Fill in your ld.so characteristics
6113 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6114 echo "configure:6115: checking dynamic linker characteristics" >&5
6116 libname_spec='lib$name'
6123 shlibpath_overrides_runpath=unknown
6125 dynamic_linker="$host_os ld.so"
6126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6132 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6133 shlibpath_var=LIBPATH
6135 # AIX has no versioning support, so we append a major version to the name.
6136 soname_spec='${libname}${release}.so$major'
6141 if test "$host_cpu" = ia64; then
6142 # AIX 5 supports IA64
6143 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6144 shlibpath_var=LD_LIBRARY_PATH
6146 # With GCC up to 2.95.x, collect2 would create an import file
6147 # for dependence libraries. The import file would start with
6148 # the line `#! .'. This would cause the generated library to
6149 # depend on `.', always an invalid library. This was fixed in
6150 # development snapshots of GCC prior to 3.0.
6152 aix4 | aix4.[01] | aix4.[01].*)
6153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6162 # AIX (on Power*) has no versioning support, so currently we can
6163 # not hardcode correct soname into executable. Probably we can
6164 # add versioning support to collect2, so additional links can
6165 # be useful in future.
6166 if test "$aix_use_runtimelinking" = yes; then
6167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6168 # instead of lib<name>.a to let people know that these are not
6169 # typical AIX shared libraries.
6170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6172 # We preserve .a as extension for shared libraries through AIX4.2
6173 # and later when we are not doing run time linking.
6174 library_names_spec='${libname}${release}.a $libname.a'
6175 soname_spec='${libname}${release}.so$major'
6177 shlibpath_var=LIBPATH
6182 library_names_spec='$libname.ixlibrary $libname.a'
6183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6184 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'
6188 library_names_spec='${libname}.so'
6189 dynamic_linker="$host_os ld.so"
6190 shlibpath_var=LIBRARY_PATH
6196 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6197 soname_spec='${libname}${release}.so$major'
6198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6199 shlibpath_var=LD_LIBRARY_PATH
6200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6202 export_dynamic_flag_spec=-rdynamic
6203 # the default ld.so.conf also contains /usr/contrib/lib and
6204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6205 # libtool to hard-code these into programs
6208 cygwin* | mingw* | pw32*)
6209 version_type=windows
6212 case $GCC,$host_os in
6214 library_names_spec='$libname.dll.a'
6215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6216 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6217 dldir=$destdir/`dirname \$dlpath`~
6218 test -d \$dldir || mkdir -p \$dldir~
6219 $install_prog .libs/$dlname \$dldir/$dlname'
6220 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6221 dlpath=$dir/\$dldll~
6225 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6232 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6235 dynamic_linker='Win32 ld.exe'
6236 # FIXME: first we should search . and the directory the executable is in
6240 darwin* | rhapsody*)
6241 dynamic_linker="$host_os dyld"
6245 # FIXME: Relying on posixy $() will cause problems for
6246 # cross-compilation, but unfortunately the echo tests do not
6247 # yet detect zsh echo's removal of \ escapes.
6248 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)'
6249 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6250 shlibpath_overrides_runpath=yes
6251 shlibpath_var=DYLD_LIBRARY_PATH
6259 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6260 version_type=freebsd-$objformat
6261 case $version_type in
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6268 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6272 shlibpath_var=LD_LIBRARY_PATH
6275 shlibpath_overrides_runpath=yes
6278 shlibpath_overrides_runpath=no
6279 hardcode_into_libs=yes
6288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6289 soname_spec='${libname}${release}.so$major'
6290 shlibpath_var=LD_LIBRARY_PATH
6291 hardcode_into_libs=yes
6294 hpux9* | hpux10* | hpux11*)
6295 # Give a soname corresponding to the major version so that dld.sl refuses to
6296 # link against other versions.
6297 dynamic_linker="$host_os dld.sl"
6301 shlibpath_var=SHLIB_PATH
6302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6303 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6304 soname_spec='${libname}${release}.sl$major'
6305 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6306 postinstall_cmds='chmod 555 $lib'
6313 soname_spec='${libname}${release}.so$major'
6314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6320 case $LD in # libtool.m4 will add one of these switches to LD
6321 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6322 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6323 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6324 *) libsuff= shlibsuff= libmagic=never-match;;
6328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6329 shlibpath_overrides_runpath=no
6330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6334 # No shared lib support for Linux oldld, aout, or coff.
6335 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6339 # This must be Linux ELF.
6344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6345 soname_spec='${libname}${release}.so$major'
6346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6347 shlibpath_var=LD_LIBRARY_PATH
6348 shlibpath_overrides_runpath=no
6349 # This implies no fast_install, which is unacceptable.
6350 # Some rework will be needed to allow for fast_install
6351 # before this can be enabled.
6352 hardcode_into_libs=yes
6354 # We used to test for /lib/ld.so.1 and disable shared libraries on
6355 # powerpc, because MkLinux only supported shared libraries with the
6356 # GNU dynamic linker. Since this was broken with cross compilers,
6357 # most powerpc-linux boxes support dynamic linking these days and
6358 # people can always --disable-shared, the test was removed, and we
6359 # assume the GNU/Linux dynamic linker is in use.
6360 dynamic_linker='GNU/Linux ld.so'
6367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6368 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6370 dynamic_linker='NetBSD (a.out) ld.so'
6372 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6373 soname_spec='${libname}${release}.so$major'
6374 dynamic_linker='NetBSD ld.elf_so'
6376 shlibpath_var=LD_LIBRARY_PATH
6377 shlibpath_overrides_runpath=yes
6378 hardcode_into_libs=yes
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6384 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6394 openbsd2.[89] | openbsd2.[89].*)
6395 shlibpath_overrides_runpath=no
6398 shlibpath_overrides_runpath=yes
6402 shlibpath_overrides_runpath=yes
6404 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6406 shlibpath_var=LD_LIBRARY_PATH
6410 libname_spec='$name'
6412 library_names_spec='$libname.dll $libname.a'
6413 dynamic_linker='OS/2 ld.exe'
6414 shlibpath_var=LIBPATH
6417 osf3* | osf4* | osf5*)
6420 soname_spec='${libname}${release}.so'
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6422 shlibpath_var=LD_LIBRARY_PATH
6423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6429 soname_spec='${libname}${release}.so$major'
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 shlibpath_var=LD_LIBRARY_PATH
6438 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6439 soname_spec='${libname}${release}.so$major'
6440 shlibpath_var=LD_LIBRARY_PATH
6441 shlibpath_overrides_runpath=yes
6442 hardcode_into_libs=yes
6443 # ldd complains unless libraries are executable
6444 postinstall_cmds='chmod +x $lib'
6449 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 shlibpath_overrides_runpath=yes
6453 if test "$with_gnu_ld" = yes; then
6459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6461 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6462 soname_spec='${libname}${release}.so$major'
6463 shlibpath_var=LD_LIBRARY_PATH
6464 case $host_vendor in
6466 shlibpath_overrides_runpath=no
6471 shlibpath_overrides_runpath=no
6472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480 soname_spec='${libname}${release}.so$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6489 soname_spec='${libname}${release}.so$major'
6490 shlibpath_var=LD_LIBRARY_PATH
6494 if test -d /usr/nec ;then
6496 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6497 soname_spec='$libname.so.$major'
6498 shlibpath_var=LD_LIBRARY_PATH
6506 echo "$ac_t""$dynamic_linker" 1>&6
6507 test "$dynamic_linker" = no && can_build_shared=no
6509 # Report the final consequences.
6510 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6511 echo "configure:6512: checking if libtool supports shared libraries" >&5
6512 echo "$ac_t""$can_build_shared" 1>&6
6514 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6515 echo "configure:6516: checking whether to build shared libraries" >&5
6516 test "$can_build_shared" = "no" && enable_shared=no
6518 # On AIX, shared libraries and static libraries use the same namespace, and
6519 # are all built from PIC.
6522 test "$enable_shared" = yes && enable_static=no
6523 if test -n "$RANLIB"; then
6524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6525 postinstall_cmds='$RANLIB $lib'
6530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6531 test "$enable_shared" = yes && enable_static=no
6535 echo "$ac_t""$enable_shared" 1>&6
6537 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6538 echo "configure:6539: checking whether to build static libraries" >&5
6539 # Make sure either enable_shared or enable_static is yes.
6540 test "$enable_shared" = yes || enable_static=yes
6541 echo "$ac_t""$enable_static" 1>&6
6543 if test "$hardcode_action" = relink; then
6544 # Fast installation is not supported
6545 enable_fast_install=no
6546 elif test "$shlibpath_overrides_runpath" = yes ||
6547 test "$enable_shared" = no; then
6548 # Fast installation is not necessary
6549 enable_fast_install=needless
6552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6553 if test "$GCC" = yes; then
6554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6557 if test "x$enable_dlopen" != xyes; then
6558 enable_dlopen=unknown
6559 enable_dlopen_self=unknown
6560 enable_dlopen_self_static=unknown
6567 lt_cv_dlopen="load_add_on"
6569 lt_cv_dlopen_self=yes
6572 cygwin* | mingw* | pw32*)
6573 lt_cv_dlopen="LoadLibrary"
6578 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6579 echo "configure:6580: checking for shl_load" >&5
6580 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char shl_load(); below. */
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6597 /* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 eval "ac_cv_func_shl_load=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 eval "ac_cv_func_shl_load=no"
6620 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 lt_cv_dlopen="shl_load"
6624 echo "$ac_t""no" 1>&6
6625 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6626 echo "configure:6627: checking for shl_load in -ldld" >&5
6627 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6631 ac_save_LIBS="$LIBS"
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 eval "ac_cv_lib_$ac_lib_var=yes"
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6652 eval "ac_cv_lib_$ac_lib_var=no"
6655 LIBS="$ac_save_LIBS"
6658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6662 echo "$ac_t""no" 1>&6
6663 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6664 echo "configure:6665: checking for dlopen" >&5
6665 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char dlopen(); below. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 eval "ac_cv_func_dlopen=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 eval "ac_cv_func_dlopen=no"
6705 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 lt_cv_dlopen="dlopen"
6709 echo "$ac_t""no" 1>&6
6710 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6711 echo "configure:6712: checking for dlopen in -ldl" >&5
6712 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 ac_save_LIBS="$LIBS"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 eval "ac_cv_lib_$ac_lib_var=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 eval "ac_cv_lib_$ac_lib_var=no"
6740 LIBS="$ac_save_LIBS"
6743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6747 echo "$ac_t""no" 1>&6
6748 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6749 echo "configure:6750: checking for dlopen in -lsvld" >&5
6750 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 ac_save_LIBS="$LIBS"
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_lib_$ac_lib_var=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_lib_$ac_lib_var=no"
6778 LIBS="$ac_save_LIBS"
6781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6785 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6787 echo "configure:6788: checking for dld_link in -ldld" >&5
6788 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6823 echo "$ac_t""no" 1>&6
6844 if test "x$lt_cv_dlopen" != xno; then
6850 case $lt_cv_dlopen in
6852 save_CPPFLAGS="$CPPFLAGS"
6853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6855 save_LDFLAGS="$LDFLAGS"
6856 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6859 LIBS="$lt_cv_dlopen_libs $LIBS"
6861 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6862 echo "configure:6863: checking whether a program can dlopen itself" >&5
6863 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 if test "$cross_compiling" = yes; then :
6867 lt_cv_dlopen_self=cross
6869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6870 lt_status=$lt_dlunknown
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6882 # define LT_DLGLOBAL RTLD_GLOBAL
6885 # define LT_DLGLOBAL DL_GLOBAL
6887 # define LT_DLGLOBAL 0
6891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6892 find out it does not work in some platform. */
6893 #ifndef LT_DLLAZY_OR_NOW
6895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6898 # define LT_DLLAZY_OR_NOW DL_LAZY
6901 # define LT_DLLAZY_OR_NOW RTLD_NOW
6904 # define LT_DLLAZY_OR_NOW DL_NOW
6906 # define LT_DLLAZY_OR_NOW 0
6914 extern "C" void exit (int);
6917 void fnord() { int i=42;}
6920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6921 int status = $lt_dlunknown;
6925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6926 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6927 /* dlclose (self); */
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6934 (./conftest; exit; ) 2>/dev/null
6937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6939 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6942 # compilation failed
6943 lt_cv_dlopen_self=no
6951 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6953 if test "x$lt_cv_dlopen_self" = xyes; then
6954 LDFLAGS="$LDFLAGS $link_static_flag"
6955 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6956 echo "configure:6957: checking whether a statically linked program can dlopen itself" >&5
6957 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 if test "$cross_compiling" = yes; then :
6961 lt_cv_dlopen_self_static=cross
6963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6964 lt_status=$lt_dlunknown
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6976 # define LT_DLGLOBAL RTLD_GLOBAL
6979 # define LT_DLGLOBAL DL_GLOBAL
6981 # define LT_DLGLOBAL 0
6985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6986 find out it does not work in some platform. */
6987 #ifndef LT_DLLAZY_OR_NOW
6989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6992 # define LT_DLLAZY_OR_NOW DL_LAZY
6995 # define LT_DLLAZY_OR_NOW RTLD_NOW
6998 # define LT_DLLAZY_OR_NOW DL_NOW
7000 # define LT_DLLAZY_OR_NOW 0
7008 extern "C" void exit (int);
7011 void fnord() { int i=42;}
7014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7015 int status = $lt_dlunknown;
7019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7021 /* dlclose (self); */
7027 if { (eval echo configure:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7028 (./conftest; exit; ) 2>/dev/null
7031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7033 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7036 # compilation failed
7037 lt_cv_dlopen_self_static=no
7045 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7048 CPPFLAGS="$save_CPPFLAGS"
7049 LDFLAGS="$save_LDFLAGS"
7054 case $lt_cv_dlopen_self in
7055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7056 *) enable_dlopen_self=unknown ;;
7059 case $lt_cv_dlopen_self_static in
7060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7061 *) enable_dlopen_self_static=unknown ;;
7066 if test "$enable_shared" = yes && test "$GCC" = yes; then
7067 case $archive_cmds in
7069 # FIXME: we may have to deal with multi-command sequences.
7072 # Test whether the compiler implicitly links with -lc since on some
7073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7074 # to ld, don't add -lc before -lgcc.
7075 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7076 echo "configure:7077: checking whether -lc should be explicitly linked in" >&5
7077 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7081 echo 'static int dummy;' > conftest.$ac_ext
7083 if { (eval echo configure:7084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7086 libobjs=conftest.$ac_objext
7088 wl=$lt_cv_prog_cc_wl
7094 save_allow_undefined_flag=$allow_undefined_flag
7095 allow_undefined_flag=
7096 if { (eval echo configure:7097: \"$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; }
7098 lt_cv_archive_cmds_need_lc=no
7100 lt_cv_archive_cmds_need_lc=yes
7102 allow_undefined_flag=$save_allow_undefined_flag
7104 cat conftest.err 1>&5
7108 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7112 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7114 # The second clause should only fire when bootstrapping the
7115 # libtool distribution, otherwise you forgot to ship ltmain.sh
7116 # with your package, and you will get complaints that there are
7117 # no rules to generate ltmain.sh.
7118 if test -f "$ltmain"; then
7121 # If there is no Makefile yet, we rely on a make rule to execute
7122 # `config.status --recheck' to rerun these tests and create the
7123 # libtool script then.
7124 test -f Makefile && make "$ltmain"
7127 if test -f "$ltmain"; then
7128 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7131 echo creating $ofile
7133 # Now quote all the things that may contain metacharacters while being
7134 # careful not to overquote the AC_SUBSTed values. We take copies of the
7135 # variables and quote the copies for generation of the libtool script.
7136 for var in echo old_CC old_CFLAGS \
7137 AR AR_FLAGS CC LD LN_S NM SHELL \
7138 reload_flag reload_cmds wl \
7139 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7140 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7141 library_names_spec soname_spec \
7142 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7143 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7144 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7145 old_striplib striplib file_magic_cmd export_symbols_cmds \
7146 deplibs_check_method allow_undefined_flag no_undefined_flag \
7147 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7148 global_symbol_to_c_name_address \
7149 hardcode_libdir_flag_spec hardcode_libdir_separator \
7150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7151 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7154 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7155 old_postinstall_cmds | old_postuninstall_cmds | \
7156 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7157 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7158 postinstall_cmds | postuninstall_cmds | \
7159 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7160 # Double-quote double-evaled strings.
7161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7169 cat <<__EOF__ > "${ofile}T"
7172 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7173 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7174 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7176 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7179 # This program is free software; you can redistribute it and/or modify
7180 # it under the terms of the GNU General Public License as published by
7181 # the Free Software Foundation; either version 2 of the License, or
7182 # (at your option) any later version.
7184 # This program is distributed in the hope that it will be useful, but
7185 # WITHOUT ANY WARRANTY; without even the implied warranty of
7186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7187 # General Public License for more details.
7189 # You should have received a copy of the GNU General Public License
7190 # along with this program; if not, write to the Free Software
7191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7193 # As a special exception to the GNU General Public License, if you
7194 # distribute this file as part of a program that contains a
7195 # configuration script generated by Autoconf, you may include it under
7196 # the same distribution terms that you use for the rest of that program.
7198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7199 Xsed="sed -e s/^X//"
7201 # The HP-UX ksh and POSIX shell print the target directory to stdout
7203 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7205 # ### BEGIN LIBTOOL CONFIG
7207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7209 # Shell to use when invoking shell scripts.
7212 # Whether or not to build shared libraries.
7213 build_libtool_libs=$enable_shared
7215 # Whether or not to build static libraries.
7216 build_old_libs=$enable_static
7218 # Whether or not to add -lc for building shared libraries.
7219 build_libtool_need_lc=$need_lc
7221 # Whether or not to optimize for fast installation.
7222 fast_install=$enable_fast_install
7225 host_alias=$host_alias
7228 # An echo program that does not interpret backslashes.
7233 AR_FLAGS=$lt_AR_FLAGS
7235 # The default C compiler.
7238 # Is the compiler the GNU C compiler?
7241 # The linker used to build libraries.
7244 # Whether we need hard or soft links.
7247 # A BSD-compatible nm program.
7250 # A symbol stripping program
7253 # Used to examine libraries when file_magic_cmd begins "file"
7254 MAGIC_CMD=$MAGIC_CMD
7256 # Used on cygwin: DLL creation program.
7259 # Used on cygwin: object dumper.
7262 # Used on cygwin: assembler.
7265 # The name of the directory that contains temporary libtool files.
7268 # How to create reloadable object files.
7269 reload_flag=$lt_reload_flag
7270 reload_cmds=$lt_reload_cmds
7272 # How to pass a linker flag through the compiler.
7275 # Object file suffix (normally "o").
7278 # Old archive suffix (normally "a").
7281 # Executable file suffix (normally "").
7284 # Additional compiler flags for building library objects.
7285 pic_flag=$lt_pic_flag
7288 # Does compiler simultaneously support -c and -o options?
7289 compiler_c_o=$lt_compiler_c_o
7291 # Can we write directly to a .lo ?
7292 compiler_o_lo=$lt_compiler_o_lo
7294 # Must we lock files when doing compilation ?
7295 need_locks=$lt_need_locks
7297 # Do we need the lib prefix for modules?
7298 need_lib_prefix=$need_lib_prefix
7300 # Do we need a version for libraries?
7301 need_version=$need_version
7303 # Whether dlopen is supported.
7304 dlopen_support=$enable_dlopen
7306 # Whether dlopen of programs is supported.
7307 dlopen_self=$enable_dlopen_self
7309 # Whether dlopen of statically linked programs is supported.
7310 dlopen_self_static=$enable_dlopen_self_static
7312 # Compiler flag to prevent dynamic linking.
7313 link_static_flag=$lt_link_static_flag
7315 # Compiler flag to turn off builtin functions.
7316 no_builtin_flag=$lt_no_builtin_flag
7318 # Compiler flag to allow reflexive dlopens.
7319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7321 # Compiler flag to generate shared objects directly from archives.
7322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7324 # Compiler flag to generate thread-safe objects.
7325 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7327 # Library versioning type.
7328 version_type=$version_type
7330 # Format of library name prefix.
7331 libname_spec=$lt_libname_spec
7333 # List of archive names. First name is the real one, the rest are links.
7334 # The last name is the one that the linker finds with -lNAME.
7335 library_names_spec=$lt_library_names_spec
7337 # The coded name of the library, if different from the real name.
7338 soname_spec=$lt_soname_spec
7340 # Commands used to build and install an old-style archive.
7342 old_archive_cmds=$lt_old_archive_cmds
7343 old_postinstall_cmds=$lt_old_postinstall_cmds
7344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7346 # Create an old-style archive from a shared archive.
7347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7349 # Create a temporary old-style archive to link instead of a shared archive.
7350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7352 # Commands used to build and install a shared archive.
7353 archive_cmds=$lt_archive_cmds
7354 archive_expsym_cmds=$lt_archive_expsym_cmds
7355 postinstall_cmds=$lt_postinstall_cmds
7356 postuninstall_cmds=$lt_postuninstall_cmds
7358 # Commands to strip libraries.
7359 old_striplib=$lt_old_striplib
7360 striplib=$lt_striplib
7362 # Method to check whether dependent libraries are shared objects.
7363 deplibs_check_method=$lt_deplibs_check_method
7365 # Command to use when deplibs_check_method == file_magic.
7366 file_magic_cmd=$lt_file_magic_cmd
7368 # Flag that allows shared libraries with undefined symbols to be built.
7369 allow_undefined_flag=$lt_allow_undefined_flag
7371 # Flag that forces no undefined symbols.
7372 no_undefined_flag=$lt_no_undefined_flag
7374 # Commands used to finish a libtool library installation in a directory.
7375 finish_cmds=$lt_finish_cmds
7377 # Same as above, but a single script fragment to be evaled but not shown.
7378 finish_eval=$lt_finish_eval
7380 # Take the output of nm and produce a listing of raw symbols and C names.
7381 global_symbol_pipe=$lt_global_symbol_pipe
7383 # Transform the output of nm in a proper C declaration
7384 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7386 # Transform the output of nm in a C name address pair
7387 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7389 # This is the shared library runtime path variable.
7390 runpath_var=$runpath_var
7392 # This is the shared library path variable.
7393 shlibpath_var=$shlibpath_var
7395 # Is shlibpath searched before the hard-coded library search path?
7396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7398 # How to hardcode a shared library path into an executable.
7399 hardcode_action=$hardcode_action
7401 # Whether we should hardcode library paths into libraries.
7402 hardcode_into_libs=$hardcode_into_libs
7404 # Flag to hardcode \$libdir into a binary during linking.
7405 # This must work even if \$libdir does not exist.
7406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7408 # Whether we need a single -rpath flag with a separated argument.
7409 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7411 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7413 hardcode_direct=$hardcode_direct
7415 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7417 hardcode_minus_L=$hardcode_minus_L
7419 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7420 # the resulting binary.
7421 hardcode_shlibpath_var=$hardcode_shlibpath_var
7423 # Variables whose values should be saved in libtool wrapper scripts and
7424 # restored at relink time.
7425 variables_saved_for_relink="$variables_saved_for_relink"
7427 # Whether libtool must link a program against all its dependency libraries.
7428 link_all_deplibs=$link_all_deplibs
7430 # Compile-time system search path for libraries
7431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7433 # Run-time system search path for libraries
7434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7436 # Fix the shell variable \$srcfile for the compiler.
7437 fix_srcfile_path="$fix_srcfile_path"
7439 # Set to yes if exported symbols are required.
7440 always_export_symbols=$always_export_symbols
7442 # The commands to list exported symbols.
7443 export_symbols_cmds=$lt_export_symbols_cmds
7445 # The commands to extract the exported symbol list from a shared archive.
7446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7448 # Symbols that should not be listed in the preloaded symbols.
7449 exclude_expsyms=$lt_exclude_expsyms
7451 # Symbols that must always be exported.
7452 include_expsyms=$lt_include_expsyms
7454 # ### END LIBTOOL CONFIG
7460 cat <<\EOF >> "${ofile}T"
7462 # AIX sometimes has problems with the GCC collect2 program. For some
7463 # reason, if we set the COLLECT_NAMES environment variable, the problems
7464 # vanish in a puff of smoke.
7465 if test "X${COLLECT_NAMES+set}" != Xset; then
7467 export COLLECT_NAMES
7474 cygwin* | mingw* | pw32* | os2*)
7475 cat <<'EOF' >> "${ofile}T"
7476 # This is a source program that is used to create dlls on Windows
7477 # Don't remove nor modify the starting and closing comments
7478 # /* ltdll.c starts here */
7479 # #define WIN32_LEAN_AND_MEAN
7480 # #include <windows.h>
7481 # #undef WIN32_LEAN_AND_MEAN
7482 # #include <stdio.h>
7484 # #ifndef __CYGWIN__
7485 # # ifdef __CYGWIN32__
7486 # # define __CYGWIN__ __CYGWIN32__
7490 # #ifdef __cplusplus
7493 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7494 # #ifdef __cplusplus
7499 # #include <cygwin/cygwin_dll.h>
7500 # DECLARE_CYGWIN_DLL( DllMain );
7502 # HINSTANCE __hDllInstance_base;
7505 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7507 # __hDllInstance_base = hInst;
7510 # /* ltdll.c ends here */
7511 # This is a source program that is used to create import libraries
7512 # on Windows for dlls which lack them. Don't remove nor modify the
7513 # starting and closing comments
7514 # /* impgen.c starts here */
7515 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7517 # This file is part of GNU libtool.
7519 # This program is free software; you can redistribute it and/or modify
7520 # it under the terms of the GNU General Public License as published by
7521 # the Free Software Foundation; either version 2 of the License, or
7522 # (at your option) any later version.
7524 # This program is distributed in the hope that it will be useful,
7525 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7527 # GNU General Public License for more details.
7529 # You should have received a copy of the GNU General Public License
7530 # along with this program; if not, write to the Free Software
7531 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7534 # #include <stdio.h> /* for printf() */
7535 # #include <unistd.h> /* for open(), lseek(), read() */
7536 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7537 # #include <string.h> /* for strdup() */
7539 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7541 # #define O_BINARY 0
7544 # static unsigned int
7545 # pe_get16 (fd, offset)
7549 # unsigned char b[2];
7550 # lseek (fd, offset, SEEK_SET);
7552 # return b[0] + (b[1]<<8);
7555 # static unsigned int
7556 # pe_get32 (fd, offset)
7560 # unsigned char b[4];
7561 # lseek (fd, offset, SEEK_SET);
7563 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7566 # static unsigned int
7570 # unsigned char *b = ptr;
7571 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7580 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7581 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7582 # unsigned long name_rvas, nexp;
7583 # unsigned char *expdata, *erva;
7584 # char *filename, *dll_name;
7586 # filename = argv[1];
7588 # dll = open(filename, O_RDONLY|O_BINARY);
7592 # dll_name = filename;
7594 # for (i=0; filename[i]; i++)
7595 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7596 # dll_name = filename + i +1;
7598 # pe_header_offset = pe_get32 (dll, 0x3c);
7599 # opthdr_ofs = pe_header_offset + 4 + 20;
7600 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7602 # if (num_entries < 1) /* no exports */
7605 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7606 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7607 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7608 # secptr = (pe_header_offset + 4 + 20 +
7609 # pe_get16 (dll, pe_header_offset + 4 + 16));
7612 # for (i = 0; i < nsections; i++)
7615 # unsigned long secptr1 = secptr + 40 * i;
7616 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7617 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7618 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7619 # lseek(dll, secptr1, SEEK_SET);
7620 # read(dll, sname, 8);
7621 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7623 # expptr = fptr + (export_rva - vaddr);
7624 # if (export_rva + export_size > vaddr + vsize)
7625 # export_size = vsize - (export_rva - vaddr);
7630 # expdata = (unsigned char*)malloc(export_size);
7631 # lseek (dll, expptr, SEEK_SET);
7632 # read (dll, expdata, export_size);
7633 # erva = expdata - export_rva;
7635 # nexp = pe_as32 (expdata+24);
7636 # name_rvas = pe_as32 (expdata+32);
7638 # printf ("EXPORTS\n");
7639 # for (i = 0; i<nexp; i++)
7641 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7642 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7647 # /* impgen.c ends here */
7653 # We use sed instead of cat because bash on DJGPP gets confused if
7654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7655 # text mode, it properly converts lines to CR/LF. This bash problem
7656 # is reportedly fixed, but why not run on old versions too?
7657 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7659 mv -f "${ofile}T" "$ofile" || \
7660 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7668 # This can be used to rebuild libtool when needed
7669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7671 # Always use our own libtool.
7672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7674 # Prevent multiple expansion
7678 for ac_prog in mawk gawk nawk awk
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_word" >&5
7684 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 if test -n "$AWK"; then
7688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7692 for ac_dir in $ac_dummy; do
7693 test -z "$ac_dir" && ac_dir=.
7694 if test -f $ac_dir/$ac_word; then
7695 ac_cv_prog_AWK="$ac_prog"
7702 AWK="$ac_cv_prog_AWK"
7703 if test -n "$AWK"; then
7704 echo "$ac_t""$AWK" 1>&6
7706 echo "$ac_t""no" 1>&6
7709 test -n "$AWK" && break
7712 # test for ln hardlink support
7713 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7714 echo "configure:7715: checking whether ln works" >&5
7715 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7718 rm -f conftest.src conftest.dst
7719 echo "conftest" > conftest.src
7720 if ln conftest.src conftest.dst 2>/dev/null
7722 ol_cv_prog_LN_H="ln"
7724 ol_cv_prog_LN_H="cp"
7726 rm -f conftest.src conftest.dst
7729 LN_H="$ol_cv_prog_LN_H"
7730 if test "$ol_cv_prog_LN_H" = "ln"; then
7731 echo "$ac_t""yes" 1>&6
7733 echo "$ac_t""no" 1>&6
7736 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7737 echo "configure:7738: checking whether ln -s works" >&5
7738 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7742 if ln -s X conftestdata 2>/dev/null
7745 ac_cv_prog_LN_S="ln -s"
7750 LN_S="$ac_cv_prog_LN_S"
7751 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7752 echo "$ac_t""yes" 1>&6
7754 echo "$ac_t""no" 1>&6
7758 # Extract the first word of "sendmail", so it can be a program name with args.
7759 set dummy sendmail; ac_word=$2
7760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7761 echo "configure:7762: checking for $ac_word" >&5
7762 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7767 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7770 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7774 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7775 for ac_dir in $ac_dummy; do
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f $ac_dir/$ac_word; then
7778 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7783 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7787 SENDMAIL="$ac_cv_path_SENDMAIL"
7788 if test -n "$SENDMAIL"; then
7789 echo "$ac_t""$SENDMAIL" 1>&6
7791 echo "$ac_t""no" 1>&6
7794 # Extract the first word of "vi", so it can be a program name with args.
7795 set dummy vi; ac_word=$2
7796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7797 echo "configure:7798: checking for $ac_word" >&5
7798 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7803 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7806 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7810 ac_dummy="$PATH:/usr/ucb"
7811 for ac_dir in $ac_dummy; do
7812 test -z "$ac_dir" && ac_dir=.
7813 if test -f $ac_dir/$ac_word; then
7814 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7819 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7823 EDITOR="$ac_cv_path_EDITOR"
7824 if test -n "$EDITOR"; then
7825 echo "$ac_t""$EDITOR" 1>&6
7827 echo "$ac_t""no" 1>&6
7832 if test $ol_enable_perl != no ; then
7833 # Extract the first word of "perl", so it can be a program name with args.
7834 set dummy perl; ac_word=$2
7835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7836 echo "configure:7837: checking for $ac_word" >&5
7837 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7842 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7845 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7850 for ac_dir in $ac_dummy; do
7851 test -z "$ac_dir" && ac_dir=.
7852 if test -f $ac_dir/$ac_word; then
7853 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7858 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7862 PERLBIN="$ac_cv_path_PERLBIN"
7863 if test -n "$PERLBIN"; then
7864 echo "$ac_t""$PERLBIN" 1>&6
7866 echo "$ac_t""no" 1>&6
7870 if test "no$PERLBIN" = "no" ; then
7871 if test $ol_enable_perl = yes ; then
7872 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7876 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7877 if test x"$ol_with_perl_module" = "xstatic" ; then
7878 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7880 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7886 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7887 echo "configure:7888: checking how to run the C preprocessor" >&5
7888 # On Suns, sometimes $CPP names a directory.
7889 if test -n "$CPP" && test -d "$CPP"; then
7892 if test -z "$CPP"; then
7893 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 # This must be in double quotes, not single quotes, because CPP may get
7897 # substituted into the Makefile and "${CC-cc}" will confuse make.
7899 # On the NeXT, cc -E runs the code through the compiler's parser,
7900 # not just through cpp.
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7917 CPP="${CC-cc} -E -traditional-cpp"
7918 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7925 { (eval echo configure:7926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7927 if test -z "$ac_err"; then
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7934 CPP="${CC-cc} -nologo -E"
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7942 { (eval echo configure:7943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7944 if test -z "$ac_err"; then
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7958 ac_cv_prog_CPP="$CPP"
7960 CPP="$ac_cv_prog_CPP"
7962 ac_cv_prog_CPP="$CPP"
7964 echo "$ac_t""$CPP" 1>&6
7967 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7968 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7970 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7971 echo "configure: warning: programs compiled here do run here..." 1>&2
7972 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7974 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7975 echo "configure: warning: programs compiled here do not run here..." 1>&2
7976 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7980 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7981 echo "configure:7982: checking for Cygwin environment" >&5
7982 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7992 #define __CYGWIN__ __CYGWIN32__
7997 if { (eval echo configure:7998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8009 echo "$ac_t""$ac_cv_cygwin" 1>&6
8011 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8012 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8013 echo "configure:8014: checking for mingw32 environment" >&5
8014 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8025 if { (eval echo configure:8026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8037 echo "$ac_t""$ac_cv_mingw32" 1>&6
8039 test "$ac_cv_mingw32" = yes && MINGW32=yes
8043 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8044 echo "configure:8045: checking for executable suffix" >&5
8045 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8048 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8052 echo 'int main () { return 0; }' > conftest.$ac_ext
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8055 for file in conftest.*; do
8057 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8058 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8062 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8065 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8070 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8071 echo "$ac_t""${ac_cv_exeext}" 1>&6
8074 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8075 echo "configure:8076: checking for object suffix" >&5
8076 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8080 echo 'int i = 1;' > conftest.$ac_ext
8081 if { (eval echo configure:8082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8082 for ac_file in conftest.*; do
8085 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8089 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8094 echo "$ac_t""$ac_cv_objext" 1>&6
8095 OBJEXT=$ac_cv_objext
8096 ac_objext=$ac_cv_objext
8099 cat >> confdefs.h <<EOF
8100 #define EXEEXT "${EXEEXT}"
8104 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8105 echo "configure:8106: checking for be_app in -lbe" >&5
8106 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 ac_save_LIBS="$LIBS"
8111 LIBS="-lbe -lroot -lnet $LIBS"
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 eval "ac_cv_lib_$ac_lib_var=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_lib_$ac_lib_var=no"
8134 LIBS="$ac_save_LIBS"
8137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8139 LIBS="$LIBS -lbe -lroot -lnet"
8141 echo "$ac_t""no" 1>&6
8149 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8150 echo "configure:8151: checking for ${CC-cc} option to accept ANSI C" >&5
8151 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 am_cv_prog_cc_stdc=no
8156 # Don't try gcc -ansi; that turns off useful extensions and
8157 # breaks some systems' header files.
8158 # AIX -qlanglvl=ansi
8159 # Ultrix and OSF/1 -std1
8160 # HP-UX 10.20 and later -Ae
8161 # HP-UX older versions -Aa -D_HPUX_SOURCE
8162 # SVR4 -Xc -D__EXTENSIONS__
8163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8165 CC="$ac_save_CC $ac_arg"
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8171 #include <sys/types.h>
8172 #include <sys/stat.h>
8173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8174 struct buf { int x; };
8175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8176 static char *e (p, i)
8182 static char *f (char * (*g) (char **, int), char **p, ...)
8187 s = g (p, va_arg (v,int));
8191 int test (int i, double x);
8192 struct s1 {int (*f) (int a);};
8193 struct s2 {int (*f) (double a);};
8194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8204 if { (eval echo configure:8205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8206 am_cv_prog_cc_stdc="$ac_arg"; break
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8217 if test -z "$am_cv_prog_cc_stdc"; then
8218 echo "$ac_t""none needed" 1>&6
8220 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8222 case "x$am_cv_prog_cc_stdc" in
8224 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8227 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8228 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8231 # test for make depend flag
8234 if test -z "${MKDEP}"; then
8236 if test -z "${MKDEP_FLAGS}"; then
8237 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8238 echo "configure:8239: checking for ${OL_MKDEP} depend flag" >&5
8239 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8244 for flag in "-M" "-xM"; do
8245 cat > conftest.c <<EOF
8248 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8249 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8251 if test ! -f conftest."${ac_object}" ; then
8253 OL_MKDEP_FLAGS="$flag"
8262 echo "$ac_t""$ol_cv_mkdep" 1>&6
8265 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8270 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8275 if test "${ol_cv_mkdep}" = no ; then
8276 # this will soon become an error
8277 echo "configure: warning: do not know how to generate dependencies" 1>&2
8280 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8281 echo "configure:8282: checking for afopen in -ls" >&5
8282 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8286 ac_save_LIBS="$LIBS"
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8310 LIBS="$ac_save_LIBS"
8313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8314 echo "$ac_t""yes" 1>&6
8317 cat >> confdefs.h <<\EOF
8318 #define HAVE_AIX_SECURITY 1
8323 echo "$ac_t""no" 1>&6
8329 ac_cv_func_getopt=no
8330 cat >> confdefs.h <<\EOF
8331 #define BOTH_STRINGS_H 1
8338 if test $ol_enable_modules != no ; then
8339 for ac_hdr in ltdl.h
8341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8343 echo "configure:8344: checking for $ac_hdr" >&5
8344 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 cat > conftest.$ac_ext <<EOF
8348 #line 8349 "configure"
8349 #include "confdefs.h"
8352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8353 { (eval echo configure:8354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8355 if test -z "$ac_err"; then
8357 eval "ac_cv_header_$ac_safe=yes"
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8363 eval "ac_cv_header_$ac_safe=no"
8367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8368 echo "$ac_t""yes" 1>&6
8369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8370 cat >> confdefs.h <<EOF
8371 #define $ac_tr_hdr 1
8375 echo "$ac_t""no" 1>&6
8380 if test $ac_cv_header_ltdl_h = no ; then
8381 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8384 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8385 echo "configure:8386: checking for lt_dlinit in -lltdl" >&5
8386 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8387 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8390 ac_save_LIBS="$LIBS"
8392 cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 /* Override any gcc2 internal prototype to avoid an error. */
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8404 if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8406 eval "ac_cv_lib_$ac_lib_var=yes"
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 eval "ac_cv_lib_$ac_lib_var=no"
8414 LIBS="$ac_save_LIBS"
8417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8418 echo "$ac_t""yes" 1>&6
8421 cat >> confdefs.h <<\EOF
8422 #define HAVE_LIBLTDL 1
8427 echo "$ac_t""no" 1>&6
8431 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8432 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8436 ol_with_bdb_module=static
8437 ol_with_dnssrv_module=static
8438 ol_with_ldap_module=static
8439 ol_with_ldbm_module=static
8440 ol_with_meta_module=static
8441 ol_with_monitor_module=static
8442 ol_with_null_module=static
8443 ol_with_passwd_module=static
8444 ol_with_perl_module=static
8445 ol_with_shell_module=static
8446 ol_with_tcl_module=static
8447 ol_with_sql_module=static
8451 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8452 echo "configure:8453: checking for EBCDIC" >&5
8453 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8457 cat > conftest.$ac_ext <<EOF
8458 #line 8459 "configure"
8459 #include "confdefs.h"
8462 #include <__ASCII__/generate_error.h>
8466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8467 { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8469 if test -z "$ac_err"; then
8471 ol_cv_cpp_ebcdic=yes
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8482 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8483 if test $ol_cv_cpp_ebcdic = yes ; then
8484 cat >> confdefs.h <<\EOF
8485 #define HAVE_EBCDIC 1
8490 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8491 echo "configure:8492: checking for ANSI C header files" >&5
8492 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8504 { (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8506 if test -z "$ac_err"; then
8508 ol_cv_header_stdc=yes
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8514 ol_cv_header_stdc=no
8518 if test $ol_cv_header_stdc = yes; then
8519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8520 cat > conftest.$ac_ext <<EOF
8521 #line 8522 "configure"
8522 #include "confdefs.h"
8525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8526 egrep "memchr" >/dev/null 2>&1; then
8530 ol_cv_header_stdc=no
8536 if test $ol_cv_header_stdc = yes; then
8537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8544 egrep "free" >/dev/null 2>&1; then
8548 ol_cv_header_stdc=no
8554 if test $ol_cv_header_stdc = yes; then
8555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8556 if test "$cross_compiling" = yes; then
8559 cat > conftest.$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8567 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8568 || ('j' <= (c) && (c) <= 'r') \
8569 || ('s' <= (c) && (c) <= 'z'))
8570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8573 int main () { int i; for (i = 0; i < 256; i++)
8574 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8585 ol_cv_header_stdc=no
8593 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8594 if test $ol_cv_header_stdc = yes; then
8595 cat >> confdefs.h <<\EOF
8596 #define STDC_HEADERS 1
8600 ac_cv_header_stdc=disable
8603 if test $ol_cv_header_stdc != yes; then
8604 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8608 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8611 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8612 echo "configure:8613: checking for $ac_hdr that defines DIR" >&5
8613 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 #include <sys/types.h>
8625 if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8627 eval "ac_cv_header_dirent_$ac_safe=yes"
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 eval "ac_cv_header_dirent_$ac_safe=no"
8636 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8639 cat >> confdefs.h <<EOF
8640 #define $ac_tr_hdr 1
8642 ac_header_dirent=$ac_hdr; break
8644 echo "$ac_t""no" 1>&6
8647 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8648 if test $ac_header_dirent = dirent.h; then
8649 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8650 echo "configure:8651: checking for opendir in -ldir" >&5
8651 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8655 ac_save_LIBS="$LIBS"
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8671 eval "ac_cv_lib_$ac_lib_var=yes"
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8676 eval "ac_cv_lib_$ac_lib_var=no"
8679 LIBS="$ac_save_LIBS"
8682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8686 echo "$ac_t""no" 1>&6
8690 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8691 echo "configure:8692: checking for opendir in -lx" >&5
8692 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8693 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8696 ac_save_LIBS="$LIBS"
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712 eval "ac_cv_lib_$ac_lib_var=yes"
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8717 eval "ac_cv_lib_$ac_lib_var=no"
8720 LIBS="$ac_save_LIBS"
8723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8724 echo "$ac_t""yes" 1>&6
8727 echo "$ac_t""no" 1>&6
8732 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8733 echo "configure:8734: checking for sys/wait.h that is POSIX.1 compatible" >&5
8734 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <sys/types.h>
8741 #include <sys/wait.h>
8743 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8746 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8751 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8754 if { (eval echo configure:8755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8756 ac_cv_header_sys_wait_h=yes
8758 echo "configure: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8761 ac_cv_header_sys_wait_h=no
8766 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8767 if test $ac_cv_header_sys_wait_h = yes; then
8768 cat >> confdefs.h <<\EOF
8769 #define HAVE_SYS_WAIT_H 1
8774 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8775 echo "configure:8776: checking POSIX termios" >&5
8776 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 #include <sys/types.h>
8784 #include <termios.h>
8786 /* SunOS 4.0.3 has termios.h but not the library calls. */
8790 if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8792 am_cv_sys_posix_termios=yes
8794 echo "configure: failed program was:" >&5
8795 cat conftest.$ac_ext >&5
8797 am_cv_sys_posix_termios=no
8802 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8805 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8806 echo "configure:8807: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8807 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8810 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8812 gwinsz_in_termios_h=no
8813 if test $am_cv_sys_posix_termios = yes; then
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 #include <sys/types.h>
8818 # include <termios.h>
8824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8825 egrep "yes" >/dev/null 2>&1; then
8827 gwinsz_in_termios_h=yes
8833 if test $gwinsz_in_termios_h = no; then
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 #include <sys/types.h>
8838 # include <sys/ioctl.h>
8844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8845 egrep "yes" >/dev/null 2>&1; then
8847 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8855 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8856 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8857 cat >> confdefs.h <<\EOF
8858 #define GWINSZ_IN_SYS_IOCTL 1
8863 if test $am_cv_sys_posix_termios = yes ; then
8864 cat >> confdefs.h <<\EOF
8865 #define HAVE_POSIX_TERMIOS 1
8917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8919 echo "configure:8920: checking for $ac_hdr" >&5
8920 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8929 { (eval echo configure:8930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8931 if test -z "$ac_err"; then
8933 eval "ac_cv_header_$ac_safe=yes"
8936 echo "configure: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8939 eval "ac_cv_header_$ac_safe=no"
8943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8944 echo "$ac_t""yes" 1>&6
8945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8946 cat >> confdefs.h <<EOF
8947 #define $ac_tr_hdr 1
8951 echo "$ac_t""no" 1>&6
8958 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8959 echo "configure:8960: checking for dlopen" >&5
8960 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* System header to define __stub macros and hopefully few prototypes,
8967 which can conflict with char dlopen(); below. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8977 /* The GNU C library defines this for functions which it implements
8978 to always fail with ENOSYS. Some functions are actually named
8979 something starting with __ and the normal name is an alias. */
8980 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8988 if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8990 eval "ac_cv_func_dlopen=yes"
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8995 eval "ac_cv_func_dlopen=no"
9000 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9001 echo "$ac_t""yes" 1>&6
9004 echo "$ac_t""no" 1>&6
9005 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9006 echo "configure:9007: checking for dlopen in -ldl" >&5
9007 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9008 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9009 echo $ac_n "(cached) $ac_c" 1>&6
9011 ac_save_LIBS="$LIBS"
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 /* Override any gcc2 internal prototype to avoid an error. */
9017 /* We use char because int might match the return type of a gcc2
9018 builtin and then its argument prototype would still apply. */
9025 if { (eval echo configure:9026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9027 eval "ac_cv_lib_$ac_lib_var=yes"
9029 echo "configure: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9032 eval "ac_cv_lib_$ac_lib_var=no"
9035 LIBS="$ac_save_LIBS"
9038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9039 echo "$ac_t""yes" 1>&6
9040 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9042 cat >> confdefs.h <<EOF
9043 #define $ac_tr_lib 1
9049 echo "$ac_t""no" 1>&6
9055 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9056 echo "configure:9057: checking for sigset in -lV3" >&5
9057 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9061 ac_save_LIBS="$LIBS"
9063 cat > conftest.$ac_ext <<EOF
9064 #line 9065 "configure"
9065 #include "confdefs.h"
9066 /* Override any gcc2 internal prototype to avoid an error. */
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9077 eval "ac_cv_lib_$ac_lib_var=yes"
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 eval "ac_cv_lib_$ac_lib_var=no"
9085 LIBS="$ac_save_LIBS"
9088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9089 echo "$ac_t""yes" 1>&6
9090 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9092 cat >> confdefs.h <<EOF
9093 #define $ac_tr_lib 1
9099 echo "$ac_t""no" 1>&6
9103 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9104 echo "configure:9105: checking for winsock" >&5
9106 for curlib in ws2_32 wsock32; do
9107 LIBS="$LIBS -l$curlib"
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9114 char closesocket@4();
9115 char gethostname@8();
9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9130 echo "configure: failed program was:" >&5
9131 cat conftest.$ac_ext >&5
9137 if test $have_winsock = yes; then
9138 cat >> confdefs.h <<\EOF
9139 #define HAVE_WINSOCK 1
9142 ac_cv_func_socket=yes
9143 ac_cv_func_select=yes
9144 ac_cv_func_closesocket=yes
9145 ac_cv_func_gethostname=yes
9146 if test $curlib = ws2_32; then
9147 have_winsock=winsock2
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_WINSOCK2 1
9157 echo "$ac_t""$have_winsock" 1>&6
9160 echo $ac_n "checking for socket""... $ac_c" 1>&6
9161 echo "configure:9162: checking for socket" >&5
9162 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 /* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char socket(); below. */
9171 /* Override any gcc2 internal prototype to avoid an error. */
9172 /* We use char because int might match the return type of a gcc2
9173 builtin and then its argument prototype would still apply. */
9179 /* The GNU C library defines this for functions which it implements
9180 to always fail with ENOSYS. Some functions are actually named
9181 something starting with __ and the normal name is an alias. */
9182 #if defined (__stub_socket) || defined (__stub___socket)
9190 if { (eval echo configure:9191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9192 eval "ac_cv_func_socket=yes"
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9197 eval "ac_cv_func_socket=no"
9202 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9203 echo "$ac_t""yes" 1>&6
9206 echo "$ac_t""no" 1>&6
9208 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9209 echo "configure:9210: checking for main in -lsocket" >&5
9210 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9211 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9214 ac_save_LIBS="$LIBS"
9215 LIBS="-lsocket $LIBS"
9216 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9226 eval "ac_cv_lib_$ac_lib_var=yes"
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 eval "ac_cv_lib_$ac_lib_var=no"
9234 LIBS="$ac_save_LIBS"
9237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9238 echo "$ac_t""yes" 1>&6
9239 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9240 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9241 cat >> confdefs.h <<EOF
9242 #define $ac_tr_lib 1
9245 LIBS="-lsocket $LIBS"
9248 echo "$ac_t""no" 1>&6
9251 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9252 echo "configure:9253: checking for main in -lnet" >&5
9253 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9254 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9257 ac_save_LIBS="$LIBS"
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9269 eval "ac_cv_lib_$ac_lib_var=yes"
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 eval "ac_cv_lib_$ac_lib_var=no"
9277 LIBS="$ac_save_LIBS"
9280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9281 echo "$ac_t""yes" 1>&6
9282 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9284 cat >> confdefs.h <<EOF
9285 #define $ac_tr_lib 1
9291 echo "$ac_t""no" 1>&6
9294 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9295 echo "configure:9296: checking for main in -lnsl_s" >&5
9296 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9297 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9300 ac_save_LIBS="$LIBS"
9301 LIBS="-lnsl_s $LIBS"
9302 cat > conftest.$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9310 if { (eval echo configure:9311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9312 eval "ac_cv_lib_$ac_lib_var=yes"
9314 echo "configure: failed program was:" >&5
9315 cat conftest.$ac_ext >&5
9317 eval "ac_cv_lib_$ac_lib_var=no"
9320 LIBS="$ac_save_LIBS"
9323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9324 echo "$ac_t""yes" 1>&6
9325 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9327 cat >> confdefs.h <<EOF
9328 #define $ac_tr_lib 1
9331 LIBS="-lnsl_s $LIBS"
9334 echo "$ac_t""no" 1>&6
9337 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9338 echo "configure:9339: checking for main in -lnsl" >&5
9339 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9343 ac_save_LIBS="$LIBS"
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure"
9347 #include "confdefs.h"
9353 if { (eval echo configure:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9355 eval "ac_cv_lib_$ac_lib_var=yes"
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9360 eval "ac_cv_lib_$ac_lib_var=no"
9363 LIBS="$ac_save_LIBS"
9366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9367 echo "$ac_t""yes" 1>&6
9368 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9370 cat >> confdefs.h <<EOF
9371 #define $ac_tr_lib 1
9377 echo "$ac_t""no" 1>&6
9380 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9381 echo "configure:9382: checking for socket in -linet" >&5
9382 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9383 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9386 ac_save_LIBS="$LIBS"
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 /* Override any gcc2 internal prototype to avoid an error. */
9392 /* We use char because int might match the return type of a gcc2
9393 builtin and then its argument prototype would still apply. */
9400 if { (eval echo configure:9401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9402 eval "ac_cv_lib_$ac_lib_var=yes"
9404 echo "configure: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9407 eval "ac_cv_lib_$ac_lib_var=no"
9410 LIBS="$ac_save_LIBS"
9413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9414 echo "$ac_t""yes" 1>&6
9415 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9416 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9417 cat >> confdefs.h <<EOF
9418 #define $ac_tr_lib 1
9424 echo "$ac_t""no" 1>&6
9427 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9428 echo "configure:9429: checking for main in -lgen" >&5
9429 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9430 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9433 ac_save_LIBS="$LIBS"
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9443 if { (eval echo configure:9444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9445 eval "ac_cv_lib_$ac_lib_var=yes"
9447 echo "configure: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9450 eval "ac_cv_lib_$ac_lib_var=no"
9453 LIBS="$ac_save_LIBS"
9456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9457 echo "$ac_t""yes" 1>&6
9458 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9460 cat >> confdefs.h <<EOF
9461 #define $ac_tr_lib 1
9467 echo "$ac_t""no" 1>&6
9474 echo $ac_n "checking for select""... $ac_c" 1>&6
9475 echo "configure:9476: checking for select" >&5
9476 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char select(); below. */
9485 /* Override any gcc2 internal prototype to avoid an error. */
9486 /* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9493 /* The GNU C library defines this for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496 #if defined (__stub_select) || defined (__stub___select)
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9506 eval "ac_cv_func_select=yes"
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 eval "ac_cv_func_select=no"
9516 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9520 echo "$ac_t""no" 1>&6
9521 { echo "configure: error: select() required." 1>&2; exit 1; }
9525 if test "${ac_cv_header_winsock_h}" != yes; then
9526 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9527 echo "configure:9528: checking types of arguments for select()" >&5
9528 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9531 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9532 echo $ac_n "(cached) $ac_c" 1>&6
9534 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9537 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9538 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9539 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #ifdef HAVE_SYS_TYPES_H
9544 #include <sys/types.h>
9546 #ifdef HAVE_SYS_TIME_H
9547 #include <sys/time.h>
9549 #ifdef HAVE_SYS_SELECT_H
9550 #include <sys/select.h>
9552 #ifdef HAVE_SYS_SOCKET_H
9553 #include <sys/socket.h>
9555 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);
9560 if { (eval echo configure:9561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9562 ac_not_found=no ; break 3
9564 echo "configure: failed program was:" >&5
9565 cat conftest.$ac_ext >&5
9579 if test "$ac_not_found" = yes; then
9580 ac_cv_func_select_arg1=int
9581 ac_cv_func_select_arg234='int *'
9582 ac_cv_func_select_arg5='struct timeval *'
9584 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9585 cat >> confdefs.h <<EOF
9586 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9589 cat >> confdefs.h <<EOF
9590 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9593 cat >> confdefs.h <<EOF
9594 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9601 for ac_hdr in regex.h
9603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9605 echo "configure:9606: checking for $ac_hdr" >&5
9606 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9607 echo $ac_n "(cached) $ac_c" 1>&6
9609 cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9615 { (eval echo configure:9616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9617 if test -z "$ac_err"; then
9619 eval "ac_cv_header_$ac_safe=yes"
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9625 eval "ac_cv_header_$ac_safe=no"
9629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9630 echo "$ac_t""yes" 1>&6
9631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9632 cat >> confdefs.h <<EOF
9633 #define $ac_tr_hdr 1
9637 echo "$ac_t""no" 1>&6
9641 if test "$ac_cv_header_regex_h" != yes ; then
9642 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9645 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9646 echo "configure:9647: checking for library containing regfree" >&5
9647 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9650 ac_func_search_save_LIBS="$LIBS"
9651 ac_cv_search_regfree="no"
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 /* Override any gcc2 internal prototype to avoid an error. */
9656 /* We use char because int might match the return type of a gcc2
9657 builtin and then its argument prototype would still apply. */
9664 if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9666 ac_cv_search_regfree="none required"
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9672 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 /* Override any gcc2 internal prototype to avoid an error. */
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9686 if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9688 ac_cv_search_regfree="-l$ac_lib"
9691 echo "configure: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9696 LIBS="$ac_func_search_save_LIBS"
9699 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9700 if test "$ac_cv_search_regfree" != "no"; then
9701 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9704 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9708 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9709 echo "configure:9710: checking for compatible POSIX regex" >&5
9710 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9714 if test "$cross_compiling" = yes; then
9715 ol_cv_c_posix_regex=cross
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9721 #include <sys/types.h>
9723 static char *pattern, *string;
9731 if(regcomp(&re, pattern, 0)) {
9735 string = "ALL MATCH";
9737 rc = regexec(&re, string, 0, (void*)0, 0);
9744 if { (eval echo configure:9745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9746 ol_cv_c_posix_regex=yes
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9751 ol_cv_c_posix_regex=no
9758 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9760 if test "$ol_cv_c_posix_regex" = no ; then
9761 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9766 for ac_hdr in sys/uuid.h
9768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9770 echo "configure:9771: checking for $ac_hdr" >&5
9771 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9774 cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9780 { (eval echo configure:9781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9782 if test -z "$ac_err"; then
9784 eval "ac_cv_header_$ac_safe=yes"
9787 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9790 eval "ac_cv_header_$ac_safe=no"
9794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9795 echo "$ac_t""yes" 1>&6
9796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9797 cat >> confdefs.h <<EOF
9798 #define $ac_tr_hdr 1
9802 echo "$ac_t""no" 1>&6
9806 if test $ac_cv_header_sys_uuid_h = yes ; then
9809 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9810 echo "configure:9811: checking for library containing uuid_to_str" >&5
9811 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9814 ac_func_search_save_LIBS="$LIBS"
9815 ac_cv_search_uuid_to_str="no"
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819 /* Override any gcc2 internal prototype to avoid an error. */
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9828 if { (eval echo configure:9829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9830 ac_cv_search_uuid_to_str="none required"
9832 echo "configure: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9836 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9838 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure"
9840 #include "confdefs.h"
9841 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9852 ac_cv_search_uuid_to_str="-l$ac_lib"
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9860 LIBS="$ac_func_search_save_LIBS"
9863 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9864 if test "$ac_cv_search_uuid_to_str" != "no"; then
9865 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9872 if test have_uuid = yes ; then
9873 cat >> confdefs.h <<\EOF
9874 #define HAVE_UUID_TO_STR 1
9878 test "$ac_cv_search_uuid_to_str" = "none required" || \
9879 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9883 if test $have_uuid = no ; then
9884 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9885 echo "configure:9886: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9887 LIBS="$LIBS -lrpcrt4"
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9892 char UuidCreate@4();
9893 char UuidToStringA@8();
9902 if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9912 if test $need_rpcrt = yes; then
9913 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9916 echo "$ac_t""$need_rpcrt" 1>&6
9920 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9921 echo "configure:9922: checking for res_query" >&5
9922 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9928 /* System header to define __stub macros and hopefully few prototypes,
9929 which can conflict with char res_query(); below. */
9931 /* Override any gcc2 internal prototype to avoid an error. */
9932 /* We use char because int might match the return type of a gcc2
9933 builtin and then its argument prototype would still apply. */
9939 /* The GNU C library defines this for functions which it implements
9940 to always fail with ENOSYS. Some functions are actually named
9941 something starting with __ and the normal name is an alias. */
9942 #if defined (__stub_res_query) || defined (__stub___res_query)
9950 if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952 eval "ac_cv_func_res_query=yes"
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9957 eval "ac_cv_func_res_query=no"
9962 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9963 echo "$ac_t""yes" 1>&6
9966 echo "$ac_t""no" 1>&6
9969 if test $ac_cv_func_res_query = no ; then
9970 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9971 echo "configure:9972: checking for __res_query" >&5
9972 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* System header to define __stub macros and hopefully few prototypes,
9979 which can conflict with char __res_query(); below. */
9981 /* Override any gcc2 internal prototype to avoid an error. */
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9989 /* The GNU C library defines this for functions which it implements
9990 to always fail with ENOSYS. Some functions are actually named
9991 something starting with __ and the normal name is an alias. */
9992 #if defined (__stub___res_query) || defined (__stub_____res_query)
10000 if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 eval "ac_cv_func___res_query=yes"
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 eval "ac_cv_func___res_query=no"
10012 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10013 echo "$ac_t""yes" 1>&6
10016 echo "$ac_t""no" 1>&6
10019 ac_cv_func_res_query=$ac_cv_func___res_query
10022 if test $ac_cv_func_res_query = no ; then
10023 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10024 echo "configure:10025: checking for res_query in -lbind" >&5
10025 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10027 echo $ac_n "(cached) $ac_c" 1>&6
10029 ac_save_LIBS="$LIBS"
10030 LIBS="-lbind $LIBS"
10031 cat > conftest.$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10034 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10045 eval "ac_cv_lib_$ac_lib_var=yes"
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 eval "ac_cv_lib_$ac_lib_var=no"
10053 LIBS="$ac_save_LIBS"
10056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10057 echo "$ac_t""yes" 1>&6
10058 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10059 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10060 cat >> confdefs.h <<EOF
10061 #define $ac_tr_lib 1
10064 LIBS="-lbind $LIBS"
10067 echo "$ac_t""no" 1>&6
10070 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10073 if test $ac_cv_func_res_query = no ; then
10074 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10075 echo "configure:10076: checking for __res_query in -lbind" >&5
10076 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10078 echo $ac_n "(cached) $ac_c" 1>&6
10080 ac_save_LIBS="$LIBS"
10081 LIBS="-lbind $LIBS"
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085 /* Override any gcc2 internal prototype to avoid an error. */
10086 /* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088 char __res_query();
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10096 eval "ac_cv_lib_$ac_lib_var=yes"
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10101 eval "ac_cv_lib_$ac_lib_var=no"
10104 LIBS="$ac_save_LIBS"
10107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10108 echo "$ac_t""yes" 1>&6
10109 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10110 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10111 cat >> confdefs.h <<EOF
10112 #define $ac_tr_lib 1
10115 LIBS="-lbind $LIBS"
10118 echo "$ac_t""no" 1>&6
10121 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10124 if test $ac_cv_func_res_query = no ; then
10125 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10126 echo "configure:10127: checking for res_query in -lresolv" >&5
10127 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
10131 ac_save_LIBS="$LIBS"
10132 LIBS="-lresolv $LIBS"
10133 cat > conftest.$ac_ext <<EOF
10134 #line 10135 "configure"
10135 #include "confdefs.h"
10136 /* Override any gcc2 internal prototype to avoid an error. */
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10145 if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10147 eval "ac_cv_lib_$ac_lib_var=yes"
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10152 eval "ac_cv_lib_$ac_lib_var=no"
10155 LIBS="$ac_save_LIBS"
10158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10162 cat >> confdefs.h <<EOF
10163 #define $ac_tr_lib 1
10166 LIBS="-lresolv $LIBS"
10169 echo "$ac_t""no" 1>&6
10172 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10175 if test $ac_cv_func_res_query = no ; then
10176 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10177 echo "configure:10178: checking for __res_query in -lresolv" >&5
10178 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10182 ac_save_LIBS="$LIBS"
10183 LIBS="-lresolv $LIBS"
10184 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure"
10186 #include "confdefs.h"
10187 /* Override any gcc2 internal prototype to avoid an error. */
10188 /* We use char because int might match the return type of a gcc2
10189 builtin and then its argument prototype would still apply. */
10190 char __res_query();
10196 if { (eval echo configure:10197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10198 eval "ac_cv_lib_$ac_lib_var=yes"
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10203 eval "ac_cv_lib_$ac_lib_var=no"
10206 LIBS="$ac_save_LIBS"
10209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10210 echo "$ac_t""yes" 1>&6
10211 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10213 cat >> confdefs.h <<EOF
10214 #define $ac_tr_lib 1
10217 LIBS="-lresolv $LIBS"
10220 echo "$ac_t""no" 1>&6
10223 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10226 if test "$ac_cv_func_res_query" = yes ; then
10227 cat >> confdefs.h <<\EOF
10228 #define HAVE_RES_QUERY 1
10232 if test $ol_enable_dnssrv != no ; then
10237 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10238 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10241 for ac_func in getaddrinfo gai_strerror inet_ntop
10243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10244 echo "configure:10245: checking for $ac_func" >&5
10245 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10251 /* System header to define __stub macros and hopefully few prototypes,
10252 which can conflict with char $ac_func(); below. */
10253 #include <assert.h>
10254 /* Override any gcc2 internal prototype to avoid an error. */
10255 /* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10275 eval "ac_cv_func_$ac_func=yes"
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 eval "ac_cv_func_$ac_func=no"
10285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10286 echo "$ac_t""yes" 1>&6
10287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10288 cat >> confdefs.h <<EOF
10289 #define $ac_tr_func 1
10293 echo "$ac_t""no" 1>&6
10299 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10300 if test $ol_enable_ipv6 = yes ; then
10301 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10303 elif test $ol_enable_ipv6 != no ; then
10304 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10305 echo "configure:10306: checking INET6_ADDRSTRLEN" >&5
10306 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10310 cat > conftest.$ac_ext <<EOF
10311 #line 10312 "configure"
10312 #include "confdefs.h"
10314 # include <netinet/in.h>
10315 # ifdef INET6_ADDRSTRLEN
10316 __has_inet6_addrstrlen__;
10320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10321 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10323 ol_cv_inet6_addrstrlen=yes
10326 ol_cv_inet6_addrstrlen=no
10332 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10335 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10336 echo "configure:10337: checking struct sockaddr_storage" >&5
10337 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10338 echo $ac_n "(cached) $ac_c" 1>&6
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10345 #include <sys/types.h>
10346 #include <sys/socket.h>
10350 struct sockaddr_storage ss;
10354 if { (eval echo configure:10355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10356 ol_cv_struct_sockaddr_storage=yes
10358 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10361 ol_cv_struct_sockaddr_storage=no
10366 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10368 if test $ol_cv_inet6_addrstrlen = yes \
10369 -a $ol_cv_struct_sockaddr_storage = yes ; then
10371 elif test $ol_enable_ipv6 = yes \
10372 -a $ol_cv_inet6_addrstrlen = no ; then
10373 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10374 elif test $ol_enable_ipv6 = yes \
10375 -a $ol_cv_struct_sockaddr_storage = no ; then
10376 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10380 if test $ol_enable_local != no ; then
10381 for ac_hdr in sys/un.h
10383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10385 echo "configure:10386: checking for $ac_hdr" >&5
10386 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10395 { (eval echo configure:10396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10397 if test -z "$ac_err"; then
10399 eval "ac_cv_header_$ac_safe=yes"
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 eval "ac_cv_header_$ac_safe=no"
10409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10410 echo "$ac_t""yes" 1>&6
10411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10412 cat >> confdefs.h <<EOF
10413 #define $ac_tr_hdr 1
10417 echo "$ac_t""no" 1>&6
10422 if test $ol_enable_local = auto ; then
10423 ol_enable_local=$ac_cv_header_sys_un_h
10424 elif test $ac_cv_header_sys_un_h = no ; then
10425 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10434 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10435 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10436 -o $ol_with_kerberos = k425 ; then
10438 for ac_hdr in krb5.h
10440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10442 echo "configure:10443: checking for $ac_hdr" >&5
10443 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10446 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure"
10448 #include "confdefs.h"
10451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10452 { (eval echo configure:10453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10454 if test -z "$ac_err"; then
10456 eval "ac_cv_header_$ac_safe=yes"
10459 echo "configure: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10462 eval "ac_cv_header_$ac_safe=no"
10466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10467 echo "$ac_t""yes" 1>&6
10468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10469 cat >> confdefs.h <<EOF
10470 #define $ac_tr_hdr 1
10474 echo "$ac_t""no" 1>&6
10479 if test $ac_cv_header_krb5_h = yes ; then
10480 for ac_hdr in heim_err.h
10482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10484 echo "configure:10485: checking for $ac_hdr" >&5
10485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10494 { (eval echo configure:10495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10496 if test -z "$ac_err"; then
10498 eval "ac_cv_header_$ac_safe=yes"
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10504 eval "ac_cv_header_$ac_safe=no"
10508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10509 echo "$ac_t""yes" 1>&6
10510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10511 cat >> confdefs.h <<EOF
10512 #define $ac_tr_hdr 1
10516 echo "$ac_t""no" 1>&6
10520 if test $ac_cv_header_heim_err_h = yes ; then
10526 if test $krb5_impl = mit; then
10527 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10528 echo "configure:10529: checking for main in -lk5crypto" >&5
10529 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10533 ac_save_LIBS="$LIBS"
10534 LIBS="-lk5crypto $LIBS"
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10545 eval "ac_cv_lib_$ac_lib_var=yes"
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10550 eval "ac_cv_lib_$ac_lib_var=no"
10553 LIBS="$ac_save_LIBS"
10556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10557 echo "$ac_t""yes" 1>&6
10558 krb5crypto=k5crypto
10560 echo "$ac_t""no" 1>&6
10565 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10566 echo "configure:10567: checking for main in -lkrb5" >&5
10567 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10568 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10569 echo $ac_n "(cached) $ac_c" 1>&6
10571 ac_save_LIBS="$LIBS"
10572 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10573 cat > conftest.$ac_ext <<EOF
10574 #line 10575 "configure"
10575 #include "confdefs.h"
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10583 eval "ac_cv_lib_$ac_lib_var=yes"
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10588 eval "ac_cv_lib_$ac_lib_var=no"
10591 LIBS="$ac_save_LIBS"
10594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10595 echo "$ac_t""yes" 1>&6
10597 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10599 echo "$ac_t""no" 1>&6
10604 elif test $krb5_impl = heimdal; then
10605 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10606 echo "configure:10607: checking for main in -ldes" >&5
10607 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10608 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10609 echo $ac_n "(cached) $ac_c" 1>&6
10611 ac_save_LIBS="$LIBS"
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10621 if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10623 eval "ac_cv_lib_$ac_lib_var=yes"
10625 echo "configure: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10628 eval "ac_cv_lib_$ac_lib_var=no"
10631 LIBS="$ac_save_LIBS"
10634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10635 echo "$ac_t""yes" 1>&6
10638 echo "$ac_t""no" 1>&6
10643 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10644 echo "configure:10645: checking for main in -lkrb5" >&5
10645 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10646 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10647 echo $ac_n "(cached) $ac_c" 1>&6
10649 ac_save_LIBS="$LIBS"
10650 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10659 if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10661 eval "ac_cv_lib_$ac_lib_var=yes"
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10666 eval "ac_cv_lib_$ac_lib_var=no"
10669 LIBS="$ac_save_LIBS"
10672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10673 echo "$ac_t""yes" 1>&6
10675 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10677 echo "$ac_t""no" 1>&6
10682 cat >> confdefs.h <<\EOF
10683 #define HAVE_HEIMDAL_KERBEROS 1
10689 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10692 if test $have_krb5 = yes ; then
10695 cat >> confdefs.h <<\EOF
10696 #define HAVE_KRB5 1
10700 if test $ol_enable_kpasswd != no ; then
10701 ol_link_kpasswd=yes;
10704 if test $ol_with_kerberos = k5only ; then
10705 ol_with_kerberos=found
10708 elif test $ol_with_kerberos != auto ; then
10709 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10715 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10716 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10718 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10722 echo "configure:10723: checking for $ac_hdr" >&5
10723 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10732 { (eval echo configure:10733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10734 if test -z "$ac_err"; then
10736 eval "ac_cv_header_$ac_safe=yes"
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 eval "ac_cv_header_$ac_safe=no"
10746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10747 echo "$ac_t""yes" 1>&6
10748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10749 cat >> confdefs.h <<EOF
10750 #define $ac_tr_hdr 1
10754 echo "$ac_t""no" 1>&6
10759 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10760 if test $krb5_impl = mit; then
10761 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10762 echo "configure:10763: checking for main in -lkrb4" >&5
10763 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10767 ac_save_LIBS="$LIBS"
10768 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10769 cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10777 if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10779 eval "ac_cv_lib_$ac_lib_var=yes"
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10784 eval "ac_cv_lib_$ac_lib_var=no"
10787 LIBS="$ac_save_LIBS"
10790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10791 echo "$ac_t""yes" 1>&6
10793 KRB4_LIBS="-lkrb4 -ldes425"
10795 echo "$ac_t""no" 1>&6
10800 elif test $krb5_impl = heimdal; then
10801 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10802 echo "configure:10803: checking for main in -lkrb4" >&5
10803 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10804 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10807 ac_save_LIBS="$LIBS"
10808 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10809 cat > conftest.$ac_ext <<EOF
10810 #line 10811 "configure"
10811 #include "confdefs.h"
10817 if { (eval echo configure:10818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10819 eval "ac_cv_lib_$ac_lib_var=yes"
10821 echo "configure: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10824 eval "ac_cv_lib_$ac_lib_var=no"
10827 LIBS="$ac_save_LIBS"
10830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10831 echo "$ac_t""yes" 1>&6
10835 echo "$ac_t""no" 1>&6
10842 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10845 if test $have_k425 = yes ; then
10846 ol_with_kerberos=found
10849 cat >> confdefs.h <<\EOF
10850 #define HAVE_KRB425 1
10853 cat >> confdefs.h <<\EOF
10854 #define HAVE_KRB4 1
10858 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10859 echo "configure:10860: checking for des_debug in Kerberos libraries" >&5
10860 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10865 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10870 #include <kerberosIV/krb.h>
10871 #include <kerberosIV/des.h>
10872 extern int des_debug;
10880 if { (eval echo configure:10881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10882 ol_cv_var_des_debug=yes
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10887 ol_cv_var_des_debug=no
10894 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10896 if test $ol_cv_var_des_debug = yes ; then
10897 cat >> confdefs.h <<\EOF
10898 #define HAVE_DES_DEBUG 1
10908 if test $ol_link_krb5 = yes ; then
10909 ol_with_kerberos=found
10912 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10913 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10915 for ac_hdr in krb.h des.h krb-archaeology.h
10917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10919 echo "configure:10920: checking for $ac_hdr" >&5
10920 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10921 echo $ac_n "(cached) $ac_c" 1>&6
10923 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10931 if test -z "$ac_err"; then
10933 eval "ac_cv_header_$ac_safe=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_header_$ac_safe=no"
10943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10946 cat >> confdefs.h <<EOF
10947 #define $ac_tr_hdr 1
10951 echo "$ac_t""no" 1>&6
10956 if test $ac_cv_header_krb_h = yes ; then
10957 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10958 echo "configure:10959: checking for main in -lkrb" >&5
10959 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10963 ac_save_LIBS="$LIBS"
10964 LIBS="-lkrb -ldes $LIBS"
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10975 eval "ac_cv_lib_$ac_lib_var=yes"
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10980 eval "ac_cv_lib_$ac_lib_var=no"
10983 LIBS="$ac_save_LIBS"
10986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10987 echo "$ac_t""yes" 1>&6
10990 echo "$ac_t""no" 1>&6
10995 if test $have_k4 = yes ; then
10996 ol_with_kerberos=found
10999 cat >> confdefs.h <<\EOF
11000 #define HAVE_KRB4 1
11004 KRB4_LIBS="-lkrb -ldes"
11006 if test $ac_cv_header_krb_archaeology_h = yes ; then
11007 cat >> confdefs.h <<\EOF
11008 #define HAVE_KTH_KERBEROS 1
11016 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11017 ol_link_kpasswd=yes
11020 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11023 elif test $ol_enable_kbind = yes ; then
11024 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11027 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11028 cat >> confdefs.h <<\EOF
11029 #define HAVE_KERBEROS 1
11033 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11034 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11038 if test $ol_with_tls != no ; then
11039 for ac_hdr in openssl/ssl.h ssl.h
11041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11043 echo "configure:11044: checking for $ac_hdr" >&5
11044 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11053 { (eval echo configure:11054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11055 if test -z "$ac_err"; then
11057 eval "ac_cv_header_$ac_safe=yes"
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11063 eval "ac_cv_header_$ac_safe=no"
11067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11070 cat >> confdefs.h <<EOF
11071 #define $ac_tr_hdr 1
11075 echo "$ac_t""no" 1>&6
11080 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11081 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11082 echo "configure:11083: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11083 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11085 echo $ac_n "(cached) $ac_c" 1>&6
11087 ac_save_LIBS="$LIBS"
11088 LIBS="-lssl -lcrypto $LIBS"
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11092 /* Override any gcc2 internal prototype to avoid an error. */
11093 /* We use char because int might match the return type of a gcc2
11094 builtin and then its argument prototype would still apply. */
11095 char SSLeay_add_ssl_algorithms();
11098 SSLeay_add_ssl_algorithms()
11101 if { (eval echo configure:11102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11103 eval "ac_cv_lib_$ac_lib_var=yes"
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11108 eval "ac_cv_lib_$ac_lib_var=no"
11111 LIBS="$ac_save_LIBS"
11114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11119 echo "$ac_t""no" 1>&6
11124 if test $have_ssleay = no ; then
11125 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11126 echo "configure:11127: checking for SSL_library_init in -lssl" >&5
11127 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11131 ac_save_LIBS="$LIBS"
11132 LIBS="-lssl -lcrypto $LIBS"
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11139 char SSL_library_init();
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11147 eval "ac_cv_lib_$ac_lib_var=yes"
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11152 eval "ac_cv_lib_$ac_lib_var=no"
11155 LIBS="$ac_save_LIBS"
11158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11159 echo "$ac_t""yes" 1>&6
11163 echo "$ac_t""no" 1>&6
11169 if test $have_ssleay = no ; then
11170 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11171 echo "configure:11172: checking for ssl3_accept in -lssl" >&5
11172 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11173 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11176 ac_save_LIBS="$LIBS"
11177 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11178 cat > conftest.$ac_ext <<EOF
11179 #line 11180 "configure"
11180 #include "confdefs.h"
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 /* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11184 char ssl3_accept();
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11192 eval "ac_cv_lib_$ac_lib_var=yes"
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11197 eval "ac_cv_lib_$ac_lib_var=no"
11200 LIBS="$ac_save_LIBS"
11203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11208 echo "$ac_t""no" 1>&6
11214 if test $have_ssleay = yes ; then
11218 cat >> confdefs.h <<\EOF
11219 #define HAVE_SSLEAY 1
11223 if test $need_rsaref = yes; then
11224 cat >> confdefs.h <<\EOF
11225 #define HAVE_RSAREF 1
11229 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11231 TLS_LIBS="-lssl -lcrypto"
11237 echo "configure: warning: TLS data protection not supported!" 1>&2
11240 if test $ol_link_tls = yes ; then
11241 cat >> confdefs.h <<\EOF
11246 elif test $ol_with_tls = auto ; then
11247 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11248 echo "configure: warning: TLS data protection not supported!" 1>&2
11250 elif test $ol_with_tls != no ; then
11251 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11254 if test $ol_enable_lmpasswd != no; then
11255 if test $ol_link_tls != yes ; then
11256 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11259 cat >> confdefs.h <<\EOF
11260 #define SLAPD_LMHASH 1
11267 gethostbyname_r gethostbyaddr_r \
11270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11271 echo "configure:11272: checking for $ac_func" >&5
11272 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11278 /* System header to define __stub macros and hopefully few prototypes,
11279 which can conflict with char $ac_func(); below. */
11280 #include <assert.h>
11281 /* Override any gcc2 internal prototype to avoid an error. */
11282 /* We use char because int might match the return type of a gcc2
11283 builtin and then its argument prototype would still apply. */
11289 /* The GNU C library defines this for functions which it implements
11290 to always fail with ENOSYS. Some functions are actually named
11291 something starting with __ and the normal name is an alias. */
11292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11300 if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11302 eval "ac_cv_func_$ac_func=yes"
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11307 eval "ac_cv_func_$ac_func=no"
11312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11313 echo "$ac_t""yes" 1>&6
11314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11315 cat >> confdefs.h <<EOF
11316 #define $ac_tr_func 1
11320 echo "$ac_t""no" 1>&6
11325 if test "$ac_cv_func_ctime_r" = no ; then
11326 ol_cv_func_ctime_r_nargs=0
11328 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11329 echo "configure:11330: checking number of arguments of ctime_r" >&5
11330 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11331 echo $ac_n "(cached) $ac_c" 1>&6
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11338 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11341 if { (eval echo configure:11342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11343 ol_cv_func_ctime_r_nargs3=yes
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11348 ol_cv_func_ctime_r_nargs3=no
11352 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11357 time_t ti; char *buffer; ctime_r(&ti,buffer);
11360 if { (eval echo configure:11361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11362 ol_cv_func_ctime_r_nargs2=yes
11364 echo "configure: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11367 ol_cv_func_ctime_r_nargs2=no
11371 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11372 $ol_cv_func_ctime_r_nargs2 = no ; then
11374 ol_cv_func_ctime_r_nargs=3
11376 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11377 $ol_cv_func_ctime_r_nargs2 = yes ; then
11379 ol_cv_func_ctime_r_nargs=2
11382 ol_cv_func_ctime_r_nargs=0
11387 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11389 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11390 cat >> confdefs.h <<EOF
11391 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11398 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11399 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11400 echo "configure:11401: checking number of arguments of gethostbyname_r" >&5
11401 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11404 cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11407 #include <sys/types.h>
11408 #include <sys/socket.h>
11409 #include <netinet/in.h>
11411 #define BUFSIZE (sizeof(struct hostent)+10)
11413 struct hostent hent; char buffer[BUFSIZE];
11414 int bufsize=BUFSIZE;int h_errno;
11415 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11416 buffer, bufsize, &h_errno);
11419 if { (eval echo configure:11420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11421 ol_cv_func_gethostbyname_r_nargs5=yes
11423 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11426 ol_cv_func_gethostbyname_r_nargs5=no
11430 cat > conftest.$ac_ext <<EOF
11431 #line 11432 "configure"
11432 #include "confdefs.h"
11433 #include <sys/types.h>
11434 #include <sys/socket.h>
11435 #include <netinet/in.h>
11437 #define BUFSIZE (sizeof(struct hostent)+10)
11439 struct hostent hent;struct hostent *rhent;
11440 char buffer[BUFSIZE];
11441 int bufsize=BUFSIZE;int h_errno;
11442 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11446 if { (eval echo configure:11447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11448 ol_cv_func_gethostbyname_r_nargs6=yes
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 ol_cv_func_gethostbyname_r_nargs6=no
11457 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11458 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11460 ol_cv_func_gethostbyname_r_nargs=5
11462 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11463 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11465 ol_cv_func_gethostbyname_r_nargs=6
11468 ol_cv_func_gethostbyname_r_nargs=0
11473 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11474 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11475 cat >> confdefs.h <<EOF
11476 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11482 ol_cv_func_gethostbyname_r_nargs=0
11485 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11486 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11487 echo "configure:11488: checking number of arguments of gethostbyaddr_r" >&5
11488 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11489 echo $ac_n "(cached) $ac_c" 1>&6
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11493 "configure"
11493 #include "confdefs.h"
11494 #include <sys/types.h>
11495 #include <sys/socket.h>
11496 #include <netinet/in.h>
11498 #define BUFSIZE (sizeof(struct hostent)+10)
11500 struct hostent hent; char buffer[BUFSIZE];
11501 struct in_addr add;
11502 size_t alen=sizeof(struct in_addr);
11503 int bufsize=BUFSIZE;int h_errno;
11504 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11505 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11508 if { (eval echo configure:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11510 ol_cv_func_gethostbyaddr_r_nargs7=yes
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11515 ol_cv_func_gethostbyaddr_r_nargs7=no
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 #include <sys/types.h>
11523 #include <sys/socket.h>
11524 #include <netinet/in.h>
11526 #define BUFSIZE (sizeof(struct hostent)+10)
11528 struct hostent hent;
11529 struct hostent *rhent; char buffer[BUFSIZE];
11530 struct in_addr add;
11531 size_t alen=sizeof(struct in_addr);
11532 int bufsize=BUFSIZE;int h_errno;
11533 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11534 alen, AF_INET, &hent, buffer, bufsize,
11538 if { (eval echo configure:11539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11540 ol_cv_func_gethostbyaddr_r_nargs8=yes
11542 echo "configure: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11545 ol_cv_func_gethostbyaddr_r_nargs8=no
11549 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11550 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11552 ol_cv_func_gethostbyaddr_r_nargs=7
11554 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11555 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11557 ol_cv_func_gethostbyaddr_r_nargs=8
11560 ol_cv_func_gethostbyaddr_r_nargs=0
11565 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11566 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11567 cat >> confdefs.h <<EOF
11568 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11574 ol_cv_func_gethostbyaddr_r_nargs=0
11577 if test "$ac_cv_func_ctime_r" = yes \
11578 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11579 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11580 -a "$ac_cv_func_gethostbyname_r" = yes \
11581 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11582 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11583 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11584 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11585 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11588 cat >> confdefs.h <<\EOF
11589 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11596 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11597 -o $ol_with_threads = nt ; then
11600 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11601 echo "configure:11602: checking for _beginthread" >&5
11602 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11603 echo $ac_n "(cached) $ac_c" 1>&6
11605 cat > conftest.$ac_ext <<EOF
11606 #line 11607 "configure"
11607 #include "confdefs.h"
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char _beginthread(); below. */
11610 #include <assert.h>
11611 /* Override any gcc2 internal prototype to avoid an error. */
11612 /* We use char because int might match the return type of a gcc2
11613 builtin and then its argument prototype would still apply. */
11614 char _beginthread();
11619 /* The GNU C library defines this for functions which it implements
11620 to always fail with ENOSYS. Some functions are actually named
11621 something starting with __ and the normal name is an alias. */
11622 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11630 if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11632 eval "ac_cv_func__beginthread=yes"
11634 echo "configure: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11637 eval "ac_cv_func__beginthread=no"
11642 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11643 echo "$ac_t""yes" 1>&6
11646 echo "$ac_t""no" 1>&6
11650 if test $ac_cv_func__beginthread = yes ; then
11651 cat >> confdefs.h <<\EOF
11652 #define HAVE_NT_THREADS 1
11655 ol_cv_nt_threads=yes
11659 if test "$ol_cv_nt_threads" = yes ; then
11661 ol_with_threads=found
11662 ol_with_yielding_select=yes
11664 cat >> confdefs.h <<\EOF
11665 #define HAVE_NT_SERVICE_MANAGER 1
11668 cat >> confdefs.h <<\EOF
11669 #define HAVE_NT_EVENT_LOG 1
11674 if test $ol_with_threads = nt ; then
11675 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11679 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11680 -o $ol_with_threads = posix ; then
11682 for ac_hdr in pthread.h
11684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11686 echo "configure:11687: checking for $ac_hdr" >&5
11687 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11690 cat > conftest.$ac_ext <<EOF
11691 #line 11692 "configure"
11692 #include "confdefs.h"
11695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11696 { (eval echo configure:11697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11698 if test -z "$ac_err"; then
11700 eval "ac_cv_header_$ac_safe=yes"
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11706 eval "ac_cv_header_$ac_safe=no"
11710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11711 echo "$ac_t""yes" 1>&6
11712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11713 cat >> confdefs.h <<EOF
11714 #define $ac_tr_hdr 1
11718 echo "$ac_t""no" 1>&6
11723 if test $ac_cv_header_pthread_h = yes ; then
11724 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11725 echo "configure:11726: checking POSIX thread version" >&5
11726 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11727 echo $ac_n "(cached) $ac_c" 1>&6
11730 cat > conftest.$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11733 #include <pthread.h>
11735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11736 egrep "sched_yield" >/dev/null 2>&1; then
11738 ol_cv_pthread_version=10
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11747 # include <pthread.h>
11748 # ifdef PTHREAD_CANCEL_ENABLE
11753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754 egrep "draft7" >/dev/null 2>&1; then
11756 ol_cv_pthread_version=7
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11763 "configure"
11763 #include "confdefs.h"
11765 # include <pthread.h>
11766 #ifdef PTHREAD_INTR_ENABLE
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 egrep "draft6" >/dev/null 2>&1; then
11774 ol_cv_pthread_version=6
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11783 # include <pthread.h>
11784 #ifdef PTHREAD_MUTEX_INITIALIZER
11789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11790 egrep "draft5" >/dev/null 2>&1; then
11792 ol_cv_pthread_version=5
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 #include <pthread.h>
11802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11803 egrep "pthread_attr_create" >/dev/null 2>&1; then
11805 ol_cv_pthread_version=4
11808 ol_cv_pthread_version=0
11827 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11830 if test $ol_cv_pthread_version != 0 ; then
11831 cat >> confdefs.h <<EOF
11832 #define HAVE_PTHREADS $ol_cv_pthread_version
11836 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11839 # consider threads found
11840 ol_with_threads=found
11843 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11844 echo "configure:11845: checking for LinuxThreads pthread.h" >&5
11845 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11846 echo $ac_n "(cached) $ac_c" 1>&6
11848 cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11851 #include <pthread.h>
11853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11854 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11856 ol_cv_header_linux_threads=yes
11859 ol_cv_header_linux_threads=no
11866 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11867 if test $ol_cv_header_linux_threads = yes; then
11868 cat >> confdefs.h <<\EOF
11869 #define HAVE_LINUX_THREADS 1
11875 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11876 echo "configure:11877: checking for GNU Pth pthread.h" >&5
11877 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11878 echo $ac_n "(cached) $ac_c" 1>&6
11880 cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883 #include <pthread.h>
11884 #ifdef _POSIX_THREAD_IS_GNU_PTH
11889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11890 egrep "__gnu_pth__" >/dev/null 2>&1; then
11892 ol_cv_header_gnu_pth_pthread_h=yes
11895 ol_cv_header_gnu_pth_pthread_h=no
11902 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11905 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11906 for ac_hdr in sched.h
11908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11910 echo "configure:11911: checking for $ac_hdr" >&5
11911 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11912 echo $ac_n "(cached) $ac_c" 1>&6
11914 cat > conftest.$ac_ext <<EOF
11915 #line 11916 "configure"
11916 #include "confdefs.h"
11919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11920 { (eval echo configure:11921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11922 if test -z "$ac_err"; then
11924 eval "ac_cv_header_$ac_safe=yes"
11927 echo "configure: failed program was:" >&5
11928 cat conftest.$ac_ext >&5
11930 eval "ac_cv_header_$ac_safe=no"
11934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11935 echo "$ac_t""yes" 1>&6
11936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11937 cat >> confdefs.h <<EOF
11938 #define $ac_tr_hdr 1
11942 echo "$ac_t""no" 1>&6
11949 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11950 echo "configure:11951: checking for pthread_create in default libraries" >&5
11951 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
11955 if test "$cross_compiling" = yes; then
11956 cat > conftest.$ac_ext <<EOF
11957 #line 11958 "configure"
11958 #include "confdefs.h"
11959 /* pthread test headers */
11960 #include <pthread.h>
11961 #if HAVE_PTHREADS < 7
11965 #define NULL (void*)0
11968 static void *task(p)
11971 return (void *) (p == NULL);
11976 /* pthread test function */
11977 #ifndef PTHREAD_CREATE_DETACHED
11978 #define PTHREAD_CREATE_DETACHED 1
11982 int detach = PTHREAD_CREATE_DETACHED;
11984 #if HAVE_PTHREADS > 4
11985 /* Final pthreads */
11986 pthread_attr_t attr;
11988 status = pthread_attr_init(&attr);
11989 if( status ) return status;
11991 #if HAVE_PTHREADS < 7
11992 status = pthread_attr_setdetachstate(&attr, &detach);
11993 if( status < 0 ) status = errno;
11995 status = pthread_attr_setdetachstate(&attr, detach);
11997 if( status ) return status;
11998 status = pthread_create( &t, &attr, task, NULL );
11999 #if HAVE_PTHREADS < 7
12000 if( status < 0 ) status = errno;
12002 if( status ) return status;
12004 /* Draft 4 pthreads */
12005 status = pthread_create( &t, pthread_attr_default, task, NULL );
12006 if( status ) return errno;
12008 /* give thread a chance to complete */
12009 /* it should remain joinable and hence detachable */
12012 status = pthread_detach( &t );
12013 if( status ) return errno;
12016 #ifdef HAVE_LINUX_THREADS
12017 pthread_kill_other_threads_np();
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12026 ol_cv_pthread_create=yes
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12031 ol_cv_pthread_create=no
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* pthread test headers */
12039 #include <pthread.h>
12040 #if HAVE_PTHREADS < 7
12044 #define NULL (void*)0
12047 static void *task(p)
12050 return (void *) (p == NULL);
12054 int main(argc, argv)
12059 /* pthread test function */
12060 #ifndef PTHREAD_CREATE_DETACHED
12061 #define PTHREAD_CREATE_DETACHED 1
12065 int detach = PTHREAD_CREATE_DETACHED;
12067 #if HAVE_PTHREADS > 4
12068 /* Final pthreads */
12069 pthread_attr_t attr;
12071 status = pthread_attr_init(&attr);
12072 if( status ) return status;
12074 #if HAVE_PTHREADS < 7
12075 status = pthread_attr_setdetachstate(&attr, &detach);
12076 if( status < 0 ) status = errno;
12078 status = pthread_attr_setdetachstate(&attr, detach);
12080 if( status ) return status;
12081 status = pthread_create( &t, &attr, task, NULL );
12082 #if HAVE_PTHREADS < 7
12083 if( status < 0 ) status = errno;
12085 if( status ) return status;
12087 /* Draft 4 pthreads */
12088 status = pthread_create( &t, pthread_attr_default, task, NULL );
12089 if( status ) return errno;
12091 /* give thread a chance to complete */
12092 /* it should remain joinable and hence detachable */
12095 status = pthread_detach( &t );
12096 if( status ) return errno;
12099 #ifdef HAVE_LINUX_THREADS
12100 pthread_kill_other_threads_np();
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12110 ol_cv_pthread_create=yes
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12115 ol_cv_pthread_create=no
12122 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12124 if test $ol_cv_pthread_create != no ; then
12125 ol_link_threads=posix
12126 ol_link_pthreads=""
12129 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12130 if test "$ol_link_threads" = no ; then
12132 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12133 echo "configure:12134: checking for pthread link with -kthread" >&5
12134 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12140 LIBS="-kthread $LIBS"
12142 if test "$cross_compiling" = yes; then
12143 cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 /* pthread test headers */
12147 #include <pthread.h>
12148 #if HAVE_PTHREADS < 7
12152 #define NULL (void*)0
12155 static void *task(p)
12158 return (void *) (p == NULL);
12163 /* pthread test function */
12164 #ifndef PTHREAD_CREATE_DETACHED
12165 #define PTHREAD_CREATE_DETACHED 1
12169 int detach = PTHREAD_CREATE_DETACHED;
12171 #if HAVE_PTHREADS > 4
12172 /* Final pthreads */
12173 pthread_attr_t attr;
12175 status = pthread_attr_init(&attr);
12176 if( status ) return status;
12178 #if HAVE_PTHREADS < 7
12179 status = pthread_attr_setdetachstate(&attr, &detach);
12180 if( status < 0 ) status = errno;
12182 status = pthread_attr_setdetachstate(&attr, detach);
12184 if( status ) return status;
12185 status = pthread_create( &t, &attr, task, NULL );
12186 #if HAVE_PTHREADS < 7
12187 if( status < 0 ) status = errno;
12189 if( status ) return status;
12191 /* Draft 4 pthreads */
12192 status = pthread_create( &t, pthread_attr_default, task, NULL );
12193 if( status ) return errno;
12195 /* give thread a chance to complete */
12196 /* it should remain joinable and hence detachable */
12199 status = pthread_detach( &t );
12200 if( status ) return errno;
12203 #ifdef HAVE_LINUX_THREADS
12204 pthread_kill_other_threads_np();
12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12213 ol_cv_pthread_kthread=yes
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12218 ol_cv_pthread_kthread=no
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225 /* pthread test headers */
12226 #include <pthread.h>
12227 #if HAVE_PTHREADS < 7
12231 #define NULL (void*)0
12234 static void *task(p)
12237 return (void *) (p == NULL);
12241 int main(argc, argv)
12246 /* pthread test function */
12247 #ifndef PTHREAD_CREATE_DETACHED
12248 #define PTHREAD_CREATE_DETACHED 1
12252 int detach = PTHREAD_CREATE_DETACHED;
12254 #if HAVE_PTHREADS > 4
12255 /* Final pthreads */
12256 pthread_attr_t attr;
12258 status = pthread_attr_init(&attr);
12259 if( status ) return status;
12261 #if HAVE_PTHREADS < 7
12262 status = pthread_attr_setdetachstate(&attr, &detach);
12263 if( status < 0 ) status = errno;
12265 status = pthread_attr_setdetachstate(&attr, detach);
12267 if( status ) return status;
12268 status = pthread_create( &t, &attr, task, NULL );
12269 #if HAVE_PTHREADS < 7
12270 if( status < 0 ) status = errno;
12272 if( status ) return status;
12274 /* Draft 4 pthreads */
12275 status = pthread_create( &t, pthread_attr_default, task, NULL );
12276 if( status ) return errno;
12278 /* give thread a chance to complete */
12279 /* it should remain joinable and hence detachable */
12282 status = pthread_detach( &t );
12283 if( status ) return errno;
12286 #ifdef HAVE_LINUX_THREADS
12287 pthread_kill_other_threads_np();
12295 if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12297 ol_cv_pthread_kthread=yes
12299 echo "configure: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12302 ol_cv_pthread_kthread=no
12313 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12315 if test $ol_cv_pthread_kthread = yes ; then
12316 ol_link_pthreads="-kthread"
12317 ol_link_threads=posix
12321 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12322 if test "$ol_link_threads" = no ; then
12324 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12325 echo "configure:12326: checking for pthread link with -pthread" >&5
12326 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12327 echo $ac_n "(cached) $ac_c" 1>&6
12332 LIBS="-pthread $LIBS"
12334 if test "$cross_compiling" = yes; then
12335 cat > conftest.$ac_ext <<EOF
12336 #line 12337 "configure"
12337 #include "confdefs.h"
12338 /* pthread test headers */
12339 #include <pthread.h>
12340 #if HAVE_PTHREADS < 7
12344 #define NULL (void*)0
12347 static void *task(p)
12350 return (void *) (p == NULL);
12355 /* pthread test function */
12356 #ifndef PTHREAD_CREATE_DETACHED
12357 #define PTHREAD_CREATE_DETACHED 1
12361 int detach = PTHREAD_CREATE_DETACHED;
12363 #if HAVE_PTHREADS > 4
12364 /* Final pthreads */
12365 pthread_attr_t attr;
12367 status = pthread_attr_init(&attr);
12368 if( status ) return status;
12370 #if HAVE_PTHREADS < 7
12371 status = pthread_attr_setdetachstate(&attr, &detach);
12372 if( status < 0 ) status = errno;
12374 status = pthread_attr_setdetachstate(&attr, detach);
12376 if( status ) return status;
12377 status = pthread_create( &t, &attr, task, NULL );
12378 #if HAVE_PTHREADS < 7
12379 if( status < 0 ) status = errno;
12381 if( status ) return status;
12383 /* Draft 4 pthreads */
12384 status = pthread_create( &t, pthread_attr_default, task, NULL );
12385 if( status ) return errno;
12387 /* give thread a chance to complete */
12388 /* it should remain joinable and hence detachable */
12391 status = pthread_detach( &t );
12392 if( status ) return errno;
12395 #ifdef HAVE_LINUX_THREADS
12396 pthread_kill_other_threads_np();
12403 if { (eval echo configure:12404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12405 ol_cv_pthread_pthread=yes
12407 echo "configure: failed program was:" >&5
12408 cat conftest.$ac_ext >&5
12410 ol_cv_pthread_pthread=no
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* pthread test headers */
12418 #include <pthread.h>
12419 #if HAVE_PTHREADS < 7
12423 #define NULL (void*)0
12426 static void *task(p)
12429 return (void *) (p == NULL);
12433 int main(argc, argv)
12438 /* pthread test function */
12439 #ifndef PTHREAD_CREATE_DETACHED
12440 #define PTHREAD_CREATE_DETACHED 1
12444 int detach = PTHREAD_CREATE_DETACHED;
12446 #if HAVE_PTHREADS > 4
12447 /* Final pthreads */
12448 pthread_attr_t attr;
12450 status = pthread_attr_init(&attr);
12451 if( status ) return status;
12453 #if HAVE_PTHREADS < 7
12454 status = pthread_attr_setdetachstate(&attr, &detach);
12455 if( status < 0 ) status = errno;
12457 status = pthread_attr_setdetachstate(&attr, detach);
12459 if( status ) return status;
12460 status = pthread_create( &t, &attr, task, NULL );
12461 #if HAVE_PTHREADS < 7
12462 if( status < 0 ) status = errno;
12464 if( status ) return status;
12466 /* Draft 4 pthreads */
12467 status = pthread_create( &t, pthread_attr_default, task, NULL );
12468 if( status ) return errno;
12470 /* give thread a chance to complete */
12471 /* it should remain joinable and hence detachable */
12474 status = pthread_detach( &t );
12475 if( status ) return errno;
12478 #ifdef HAVE_LINUX_THREADS
12479 pthread_kill_other_threads_np();
12487 if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12489 ol_cv_pthread_pthread=yes
12491 echo "configure: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12494 ol_cv_pthread_pthread=no
12505 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12507 if test $ol_cv_pthread_pthread = yes ; then
12508 ol_link_pthreads="-pthread"
12509 ol_link_threads=posix
12513 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12514 if test "$ol_link_threads" = no ; then
12516 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12517 echo "configure:12518: checking for pthread link with -pthreads" >&5
12518 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12519 echo $ac_n "(cached) $ac_c" 1>&6
12524 LIBS="-pthreads $LIBS"
12526 if test "$cross_compiling" = yes; then
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 /* pthread test headers */
12531 #include <pthread.h>
12532 #if HAVE_PTHREADS < 7
12536 #define NULL (void*)0
12539 static void *task(p)
12542 return (void *) (p == NULL);
12547 /* pthread test function */
12548 #ifndef PTHREAD_CREATE_DETACHED
12549 #define PTHREAD_CREATE_DETACHED 1
12553 int detach = PTHREAD_CREATE_DETACHED;
12555 #if HAVE_PTHREADS > 4
12556 /* Final pthreads */
12557 pthread_attr_t attr;
12559 status = pthread_attr_init(&attr);
12560 if( status ) return status;
12562 #if HAVE_PTHREADS < 7
12563 status = pthread_attr_setdetachstate(&attr, &detach);
12564 if( status < 0 ) status = errno;
12566 status = pthread_attr_setdetachstate(&attr, detach);
12568 if( status ) return status;
12569 status = pthread_create( &t, &attr, task, NULL );
12570 #if HAVE_PTHREADS < 7
12571 if( status < 0 ) status = errno;
12573 if( status ) return status;
12575 /* Draft 4 pthreads */
12576 status = pthread_create( &t, pthread_attr_default, task, NULL );
12577 if( status ) return errno;
12579 /* give thread a chance to complete */
12580 /* it should remain joinable and hence detachable */
12583 status = pthread_detach( &t );
12584 if( status ) return errno;
12587 #ifdef HAVE_LINUX_THREADS
12588 pthread_kill_other_threads_np();
12595 if { (eval echo configure:12596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12597 ol_cv_pthread_pthreads=yes
12599 echo "configure: failed program was:" >&5
12600 cat conftest.$ac_ext >&5
12602 ol_cv_pthread_pthreads=no
12606 cat > conftest.$ac_ext <<EOF
12607 #line 12608 "configure"
12608 #include "confdefs.h"
12609 /* pthread test headers */
12610 #include <pthread.h>
12611 #if HAVE_PTHREADS < 7
12615 #define NULL (void*)0
12618 static void *task(p)
12621 return (void *) (p == NULL);
12625 int main(argc, argv)
12630 /* pthread test function */
12631 #ifndef PTHREAD_CREATE_DETACHED
12632 #define PTHREAD_CREATE_DETACHED 1
12636 int detach = PTHREAD_CREATE_DETACHED;
12638 #if HAVE_PTHREADS > 4
12639 /* Final pthreads */
12640 pthread_attr_t attr;
12642 status = pthread_attr_init(&attr);
12643 if( status ) return status;
12645 #if HAVE_PTHREADS < 7
12646 status = pthread_attr_setdetachstate(&attr, &detach);
12647 if( status < 0 ) status = errno;
12649 status = pthread_attr_setdetachstate(&attr, detach);
12651 if( status ) return status;
12652 status = pthread_create( &t, &attr, task, NULL );
12653 #if HAVE_PTHREADS < 7
12654 if( status < 0 ) status = errno;
12656 if( status ) return status;
12658 /* Draft 4 pthreads */
12659 status = pthread_create( &t, pthread_attr_default, task, NULL );
12660 if( status ) return errno;
12662 /* give thread a chance to complete */
12663 /* it should remain joinable and hence detachable */
12666 status = pthread_detach( &t );
12667 if( status ) return errno;
12670 #ifdef HAVE_LINUX_THREADS
12671 pthread_kill_other_threads_np();
12679 if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12681 ol_cv_pthread_pthreads=yes
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12686 ol_cv_pthread_pthreads=no
12697 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12699 if test $ol_cv_pthread_pthreads = yes ; then
12700 ol_link_pthreads="-pthreads"
12701 ol_link_threads=posix
12705 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12706 if test "$ol_link_threads" = no ; then
12708 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12709 echo "configure:12710: checking for pthread link with -mthreads" >&5
12710 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12711 echo $ac_n "(cached) $ac_c" 1>&6
12716 LIBS="-mthreads $LIBS"
12718 if test "$cross_compiling" = yes; then
12719 cat > conftest.$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12722 /* pthread test headers */
12723 #include <pthread.h>
12724 #if HAVE_PTHREADS < 7
12728 #define NULL (void*)0
12731 static void *task(p)
12734 return (void *) (p == NULL);
12739 /* pthread test function */
12740 #ifndef PTHREAD_CREATE_DETACHED
12741 #define PTHREAD_CREATE_DETACHED 1
12745 int detach = PTHREAD_CREATE_DETACHED;
12747 #if HAVE_PTHREADS > 4
12748 /* Final pthreads */
12749 pthread_attr_t attr;
12751 status = pthread_attr_init(&attr);
12752 if( status ) return status;
12754 #if HAVE_PTHREADS < 7
12755 status = pthread_attr_setdetachstate(&attr, &detach);
12756 if( status < 0 ) status = errno;
12758 status = pthread_attr_setdetachstate(&attr, detach);
12760 if( status ) return status;
12761 status = pthread_create( &t, &attr, task, NULL );
12762 #if HAVE_PTHREADS < 7
12763 if( status < 0 ) status = errno;
12765 if( status ) return status;
12767 /* Draft 4 pthreads */
12768 status = pthread_create( &t, pthread_attr_default, task, NULL );
12769 if( status ) return errno;
12771 /* give thread a chance to complete */
12772 /* it should remain joinable and hence detachable */
12775 status = pthread_detach( &t );
12776 if( status ) return errno;
12779 #ifdef HAVE_LINUX_THREADS
12780 pthread_kill_other_threads_np();
12787 if { (eval echo configure:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12789 ol_cv_pthread_mthreads=yes
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12794 ol_cv_pthread_mthreads=no
12798 cat > conftest.$ac_ext <<EOF
12799 #line 12800 "configure"
12800 #include "confdefs.h"
12801 /* pthread test headers */
12802 #include <pthread.h>
12803 #if HAVE_PTHREADS < 7
12807 #define NULL (void*)0
12810 static void *task(p)
12813 return (void *) (p == NULL);
12817 int main(argc, argv)
12822 /* pthread test function */
12823 #ifndef PTHREAD_CREATE_DETACHED
12824 #define PTHREAD_CREATE_DETACHED 1
12828 int detach = PTHREAD_CREATE_DETACHED;
12830 #if HAVE_PTHREADS > 4
12831 /* Final pthreads */
12832 pthread_attr_t attr;
12834 status = pthread_attr_init(&attr);
12835 if( status ) return status;
12837 #if HAVE_PTHREADS < 7
12838 status = pthread_attr_setdetachstate(&attr, &detach);
12839 if( status < 0 ) status = errno;
12841 status = pthread_attr_setdetachstate(&attr, detach);
12843 if( status ) return status;
12844 status = pthread_create( &t, &attr, task, NULL );
12845 #if HAVE_PTHREADS < 7
12846 if( status < 0 ) status = errno;
12848 if( status ) return status;
12850 /* Draft 4 pthreads */
12851 status = pthread_create( &t, pthread_attr_default, task, NULL );
12852 if( status ) return errno;
12854 /* give thread a chance to complete */
12855 /* it should remain joinable and hence detachable */
12858 status = pthread_detach( &t );
12859 if( status ) return errno;
12862 #ifdef HAVE_LINUX_THREADS
12863 pthread_kill_other_threads_np();
12871 if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12873 ol_cv_pthread_mthreads=yes
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12878 ol_cv_pthread_mthreads=no
12889 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12891 if test $ol_cv_pthread_mthreads = yes ; then
12892 ol_link_pthreads="-mthreads"
12893 ol_link_threads=posix
12897 # Pthread try link: -thread (ol_cv_pthread_thread)
12898 if test "$ol_link_threads" = no ; then
12900 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12901 echo "configure:12902: checking for pthread link with -thread" >&5
12902 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
12908 LIBS="-thread $LIBS"
12910 if test "$cross_compiling" = yes; then
12911 cat > conftest.$ac_ext <<EOF
12912 #line 12913 "configure"
12913 #include "confdefs.h"
12914 /* pthread test headers */
12915 #include <pthread.h>
12916 #if HAVE_PTHREADS < 7
12920 #define NULL (void*)0
12923 static void *task(p)
12926 return (void *) (p == NULL);
12931 /* pthread test function */
12932 #ifndef PTHREAD_CREATE_DETACHED
12933 #define PTHREAD_CREATE_DETACHED 1
12937 int detach = PTHREAD_CREATE_DETACHED;
12939 #if HAVE_PTHREADS > 4
12940 /* Final pthreads */
12941 pthread_attr_t attr;
12943 status = pthread_attr_init(&attr);
12944 if( status ) return status;
12946 #if HAVE_PTHREADS < 7
12947 status = pthread_attr_setdetachstate(&attr, &detach);
12948 if( status < 0 ) status = errno;
12950 status = pthread_attr_setdetachstate(&attr, detach);
12952 if( status ) return status;
12953 status = pthread_create( &t, &attr, task, NULL );
12954 #if HAVE_PTHREADS < 7
12955 if( status < 0 ) status = errno;
12957 if( status ) return status;
12959 /* Draft 4 pthreads */
12960 status = pthread_create( &t, pthread_attr_default, task, NULL );
12961 if( status ) return errno;
12963 /* give thread a chance to complete */
12964 /* it should remain joinable and hence detachable */
12967 status = pthread_detach( &t );
12968 if( status ) return errno;
12971 #ifdef HAVE_LINUX_THREADS
12972 pthread_kill_other_threads_np();
12979 if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12981 ol_cv_pthread_thread=yes
12983 echo "configure: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12986 ol_cv_pthread_thread=no
12990 cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure"
12992 #include "confdefs.h"
12993 /* pthread test headers */
12994 #include <pthread.h>
12995 #if HAVE_PTHREADS < 7
12999 #define NULL (void*)0
13002 static void *task(p)
13005 return (void *) (p == NULL);
13009 int main(argc, argv)
13014 /* pthread test function */
13015 #ifndef PTHREAD_CREATE_DETACHED
13016 #define PTHREAD_CREATE_DETACHED 1
13020 int detach = PTHREAD_CREATE_DETACHED;
13022 #if HAVE_PTHREADS > 4
13023 /* Final pthreads */
13024 pthread_attr_t attr;
13026 status = pthread_attr_init(&attr);
13027 if( status ) return status;
13029 #if HAVE_PTHREADS < 7
13030 status = pthread_attr_setdetachstate(&attr, &detach);
13031 if( status < 0 ) status = errno;
13033 status = pthread_attr_setdetachstate(&attr, detach);
13035 if( status ) return status;
13036 status = pthread_create( &t, &attr, task, NULL );
13037 #if HAVE_PTHREADS < 7
13038 if( status < 0 ) status = errno;
13040 if( status ) return status;
13042 /* Draft 4 pthreads */
13043 status = pthread_create( &t, pthread_attr_default, task, NULL );
13044 if( status ) return errno;
13046 /* give thread a chance to complete */
13047 /* it should remain joinable and hence detachable */
13050 status = pthread_detach( &t );
13051 if( status ) return errno;
13054 #ifdef HAVE_LINUX_THREADS
13055 pthread_kill_other_threads_np();
13063 if { (eval echo configure:13064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13065 ol_cv_pthread_thread=yes
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13070 ol_cv_pthread_thread=no
13081 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13083 if test $ol_cv_pthread_thread = yes ; then
13084 ol_link_pthreads="-thread"
13085 ol_link_threads=posix
13090 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13091 if test "$ol_link_threads" = no ; then
13092 # try -lpthread -lmach -lexc -lc_r
13093 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13094 echo "configure:13095: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13095 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13096 echo $ac_n "(cached) $ac_c" 1>&6
13101 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13103 if test "$cross_compiling" = yes; then
13104 cat > conftest.$ac_ext <<EOF
13105 #line 13106 "configure"
13106 #include "confdefs.h"
13107 /* pthread test headers */
13108 #include <pthread.h>
13109 #if HAVE_PTHREADS < 7
13113 #define NULL (void*)0
13116 static void *task(p)
13119 return (void *) (p == NULL);
13124 /* pthread test function */
13125 #ifndef PTHREAD_CREATE_DETACHED
13126 #define PTHREAD_CREATE_DETACHED 1
13130 int detach = PTHREAD_CREATE_DETACHED;
13132 #if HAVE_PTHREADS > 4
13133 /* Final pthreads */
13134 pthread_attr_t attr;
13136 status = pthread_attr_init(&attr);
13137 if( status ) return status;
13139 #if HAVE_PTHREADS < 7
13140 status = pthread_attr_setdetachstate(&attr, &detach);
13141 if( status < 0 ) status = errno;
13143 status = pthread_attr_setdetachstate(&attr, detach);
13145 if( status ) return status;
13146 status = pthread_create( &t, &attr, task, NULL );
13147 #if HAVE_PTHREADS < 7
13148 if( status < 0 ) status = errno;
13150 if( status ) return status;
13152 /* Draft 4 pthreads */
13153 status = pthread_create( &t, pthread_attr_default, task, NULL );
13154 if( status ) return errno;
13156 /* give thread a chance to complete */
13157 /* it should remain joinable and hence detachable */
13160 status = pthread_detach( &t );
13161 if( status ) return errno;
13164 #ifdef HAVE_LINUX_THREADS
13165 pthread_kill_other_threads_np();
13172 if { (eval echo configure:13173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13174 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13176 echo "configure: failed program was:" >&5
13177 cat conftest.$ac_ext >&5
13179 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 /* pthread test headers */
13187 #include <pthread.h>
13188 #if HAVE_PTHREADS < 7
13192 #define NULL (void*)0
13195 static void *task(p)
13198 return (void *) (p == NULL);
13202 int main(argc, argv)
13207 /* pthread test function */
13208 #ifndef PTHREAD_CREATE_DETACHED
13209 #define PTHREAD_CREATE_DETACHED 1
13213 int detach = PTHREAD_CREATE_DETACHED;
13215 #if HAVE_PTHREADS > 4
13216 /* Final pthreads */
13217 pthread_attr_t attr;
13219 status = pthread_attr_init(&attr);
13220 if( status ) return status;
13222 #if HAVE_PTHREADS < 7
13223 status = pthread_attr_setdetachstate(&attr, &detach);
13224 if( status < 0 ) status = errno;
13226 status = pthread_attr_setdetachstate(&attr, detach);
13228 if( status ) return status;
13229 status = pthread_create( &t, &attr, task, NULL );
13230 #if HAVE_PTHREADS < 7
13231 if( status < 0 ) status = errno;
13233 if( status ) return status;
13235 /* Draft 4 pthreads */
13236 status = pthread_create( &t, pthread_attr_default, task, NULL );
13237 if( status ) return errno;
13239 /* give thread a chance to complete */
13240 /* it should remain joinable and hence detachable */
13243 status = pthread_detach( &t );
13244 if( status ) return errno;
13247 #ifdef HAVE_LINUX_THREADS
13248 pthread_kill_other_threads_np();
13256 if { (eval echo configure:13257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13258 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13260 echo "configure: failed program was:" >&5
13261 cat conftest.$ac_ext >&5
13263 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13274 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13276 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13277 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13278 ol_link_threads=posix
13282 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13283 if test "$ol_link_threads" = no ; then
13284 # try -lpthread -lmach -lexc
13285 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13286 echo "configure:13287: checking for pthread link with -lpthread -lmach -lexc" >&5
13287 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13288 echo $ac_n "(cached) $ac_c" 1>&6
13293 LIBS="-lpthread -lmach -lexc $LIBS"
13295 if test "$cross_compiling" = yes; then
13296 cat > conftest.$ac_ext <<EOF
13297 #line 13298 "configure"
13298 #include "confdefs.h"
13299 /* pthread test headers */
13300 #include <pthread.h>
13301 #if HAVE_PTHREADS < 7
13305 #define NULL (void*)0
13308 static void *task(p)
13311 return (void *) (p == NULL);
13316 /* pthread test function */
13317 #ifndef PTHREAD_CREATE_DETACHED
13318 #define PTHREAD_CREATE_DETACHED 1
13322 int detach = PTHREAD_CREATE_DETACHED;
13324 #if HAVE_PTHREADS > 4
13325 /* Final pthreads */
13326 pthread_attr_t attr;
13328 status = pthread_attr_init(&attr);
13329 if( status ) return status;
13331 #if HAVE_PTHREADS < 7
13332 status = pthread_attr_setdetachstate(&attr, &detach);
13333 if( status < 0 ) status = errno;
13335 status = pthread_attr_setdetachstate(&attr, detach);
13337 if( status ) return status;
13338 status = pthread_create( &t, &attr, task, NULL );
13339 #if HAVE_PTHREADS < 7
13340 if( status < 0 ) status = errno;
13342 if( status ) return status;
13344 /* Draft 4 pthreads */
13345 status = pthread_create( &t, pthread_attr_default, task, NULL );
13346 if( status ) return errno;
13348 /* give thread a chance to complete */
13349 /* it should remain joinable and hence detachable */
13352 status = pthread_detach( &t );
13353 if( status ) return errno;
13356 #ifdef HAVE_LINUX_THREADS
13357 pthread_kill_other_threads_np();
13364 if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13366 ol_cv_pthread_lpthread_lmach_lexc=yes
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13371 ol_cv_pthread_lpthread_lmach_lexc=no
13375 cat > conftest.$ac_ext <<EOF
13376 #line 13377 "configure"
13377 #include "confdefs.h"
13378 /* pthread test headers */
13379 #include <pthread.h>
13380 #if HAVE_PTHREADS < 7
13384 #define NULL (void*)0
13387 static void *task(p)
13390 return (void *) (p == NULL);
13394 int main(argc, argv)
13399 /* pthread test function */
13400 #ifndef PTHREAD_CREATE_DETACHED
13401 #define PTHREAD_CREATE_DETACHED 1
13405 int detach = PTHREAD_CREATE_DETACHED;
13407 #if HAVE_PTHREADS > 4
13408 /* Final pthreads */
13409 pthread_attr_t attr;
13411 status = pthread_attr_init(&attr);
13412 if( status ) return status;
13414 #if HAVE_PTHREADS < 7
13415 status = pthread_attr_setdetachstate(&attr, &detach);
13416 if( status < 0 ) status = errno;
13418 status = pthread_attr_setdetachstate(&attr, detach);
13420 if( status ) return status;
13421 status = pthread_create( &t, &attr, task, NULL );
13422 #if HAVE_PTHREADS < 7
13423 if( status < 0 ) status = errno;
13425 if( status ) return status;
13427 /* Draft 4 pthreads */
13428 status = pthread_create( &t, pthread_attr_default, task, NULL );
13429 if( status ) return errno;
13431 /* give thread a chance to complete */
13432 /* it should remain joinable and hence detachable */
13435 status = pthread_detach( &t );
13436 if( status ) return errno;
13439 #ifdef HAVE_LINUX_THREADS
13440 pthread_kill_other_threads_np();
13448 if { (eval echo configure:13449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13450 ol_cv_pthread_lpthread_lmach_lexc=yes
13452 echo "configure: failed program was:" >&5
13453 cat conftest.$ac_ext >&5
13455 ol_cv_pthread_lpthread_lmach_lexc=no
13466 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13468 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13469 ol_link_pthreads="-lpthread -lmach -lexc"
13470 ol_link_threads=posix
13475 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13476 if test "$ol_link_threads" = no ; then
13477 # try -lpthread -Wl,-woff,85
13478 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13479 echo "configure:13480: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13480 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13481 echo $ac_n "(cached) $ac_c" 1>&6
13486 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13488 if test "$cross_compiling" = yes; then
13489 cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13492 /* pthread test headers */
13493 #include <pthread.h>
13494 #if HAVE_PTHREADS < 7
13498 #define NULL (void*)0
13501 static void *task(p)
13504 return (void *) (p == NULL);
13509 /* pthread test function */
13510 #ifndef PTHREAD_CREATE_DETACHED
13511 #define PTHREAD_CREATE_DETACHED 1
13515 int detach = PTHREAD_CREATE_DETACHED;
13517 #if HAVE_PTHREADS > 4
13518 /* Final pthreads */
13519 pthread_attr_t attr;
13521 status = pthread_attr_init(&attr);
13522 if( status ) return status;
13524 #if HAVE_PTHREADS < 7
13525 status = pthread_attr_setdetachstate(&attr, &detach);
13526 if( status < 0 ) status = errno;
13528 status = pthread_attr_setdetachstate(&attr, detach);
13530 if( status ) return status;
13531 status = pthread_create( &t, &attr, task, NULL );
13532 #if HAVE_PTHREADS < 7
13533 if( status < 0 ) status = errno;
13535 if( status ) return status;
13537 /* Draft 4 pthreads */
13538 status = pthread_create( &t, pthread_attr_default, task, NULL );
13539 if( status ) return errno;
13541 /* give thread a chance to complete */
13542 /* it should remain joinable and hence detachable */
13545 status = pthread_detach( &t );
13546 if( status ) return errno;
13549 #ifdef HAVE_LINUX_THREADS
13550 pthread_kill_other_threads_np();
13557 if { (eval echo configure:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13559 ol_cv_pthread_lib_lpthread_woff=yes
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13564 ol_cv_pthread_lib_lpthread_woff=no
13568 cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 /* pthread test headers */
13572 #include <pthread.h>
13573 #if HAVE_PTHREADS < 7
13577 #define NULL (void*)0
13580 static void *task(p)
13583 return (void *) (p == NULL);
13587 int main(argc, argv)
13592 /* pthread test function */
13593 #ifndef PTHREAD_CREATE_DETACHED
13594 #define PTHREAD_CREATE_DETACHED 1
13598 int detach = PTHREAD_CREATE_DETACHED;
13600 #if HAVE_PTHREADS > 4
13601 /* Final pthreads */
13602 pthread_attr_t attr;
13604 status = pthread_attr_init(&attr);
13605 if( status ) return status;
13607 #if HAVE_PTHREADS < 7
13608 status = pthread_attr_setdetachstate(&attr, &detach);
13609 if( status < 0 ) status = errno;
13611 status = pthread_attr_setdetachstate(&attr, detach);
13613 if( status ) return status;
13614 status = pthread_create( &t, &attr, task, NULL );
13615 #if HAVE_PTHREADS < 7
13616 if( status < 0 ) status = errno;
13618 if( status ) return status;
13620 /* Draft 4 pthreads */
13621 status = pthread_create( &t, pthread_attr_default, task, NULL );
13622 if( status ) return errno;
13624 /* give thread a chance to complete */
13625 /* it should remain joinable and hence detachable */
13628 status = pthread_detach( &t );
13629 if( status ) return errno;
13632 #ifdef HAVE_LINUX_THREADS
13633 pthread_kill_other_threads_np();
13641 if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13643 ol_cv_pthread_lib_lpthread_woff=yes
13645 echo "configure: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13648 ol_cv_pthread_lib_lpthread_woff=no
13659 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13661 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13662 ol_link_pthreads="-lpthread -Wl,-woff,85"
13663 ol_link_threads=posix
13668 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13669 if test "$ol_link_threads" = no ; then
13671 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13672 echo "configure:13673: checking for pthread link with -lpthread" >&5
13673 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13674 echo $ac_n "(cached) $ac_c" 1>&6
13679 LIBS="-lpthread $LIBS"
13681 if test "$cross_compiling" = yes; then
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13685 /* pthread test headers */
13686 #include <pthread.h>
13687 #if HAVE_PTHREADS < 7
13691 #define NULL (void*)0
13694 static void *task(p)
13697 return (void *) (p == NULL);
13702 /* pthread test function */
13703 #ifndef PTHREAD_CREATE_DETACHED
13704 #define PTHREAD_CREATE_DETACHED 1
13708 int detach = PTHREAD_CREATE_DETACHED;
13710 #if HAVE_PTHREADS > 4
13711 /* Final pthreads */
13712 pthread_attr_t attr;
13714 status = pthread_attr_init(&attr);
13715 if( status ) return status;
13717 #if HAVE_PTHREADS < 7
13718 status = pthread_attr_setdetachstate(&attr, &detach);
13719 if( status < 0 ) status = errno;
13721 status = pthread_attr_setdetachstate(&attr, detach);
13723 if( status ) return status;
13724 status = pthread_create( &t, &attr, task, NULL );
13725 #if HAVE_PTHREADS < 7
13726 if( status < 0 ) status = errno;
13728 if( status ) return status;
13730 /* Draft 4 pthreads */
13731 status = pthread_create( &t, pthread_attr_default, task, NULL );
13732 if( status ) return errno;
13734 /* give thread a chance to complete */
13735 /* it should remain joinable and hence detachable */
13738 status = pthread_detach( &t );
13739 if( status ) return errno;
13742 #ifdef HAVE_LINUX_THREADS
13743 pthread_kill_other_threads_np();
13750 if { (eval echo configure:13751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13752 ol_cv_pthread_lpthread=yes
13754 echo "configure: failed program was:" >&5
13755 cat conftest.$ac_ext >&5
13757 ol_cv_pthread_lpthread=no
13761 cat > conftest.$ac_ext <<EOF
13762 #line 13763 "configure"
13763 #include "confdefs.h"
13764 /* pthread test headers */
13765 #include <pthread.h>
13766 #if HAVE_PTHREADS < 7
13770 #define NULL (void*)0
13773 static void *task(p)
13776 return (void *) (p == NULL);
13780 int main(argc, argv)
13785 /* pthread test function */
13786 #ifndef PTHREAD_CREATE_DETACHED
13787 #define PTHREAD_CREATE_DETACHED 1
13791 int detach = PTHREAD_CREATE_DETACHED;
13793 #if HAVE_PTHREADS > 4
13794 /* Final pthreads */
13795 pthread_attr_t attr;
13797 status = pthread_attr_init(&attr);
13798 if( status ) return status;
13800 #if HAVE_PTHREADS < 7
13801 status = pthread_attr_setdetachstate(&attr, &detach);
13802 if( status < 0 ) status = errno;
13804 status = pthread_attr_setdetachstate(&attr, detach);
13806 if( status ) return status;
13807 status = pthread_create( &t, &attr, task, NULL );
13808 #if HAVE_PTHREADS < 7
13809 if( status < 0 ) status = errno;
13811 if( status ) return status;
13813 /* Draft 4 pthreads */
13814 status = pthread_create( &t, pthread_attr_default, task, NULL );
13815 if( status ) return errno;
13817 /* give thread a chance to complete */
13818 /* it should remain joinable and hence detachable */
13821 status = pthread_detach( &t );
13822 if( status ) return errno;
13825 #ifdef HAVE_LINUX_THREADS
13826 pthread_kill_other_threads_np();
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13836 ol_cv_pthread_lpthread=yes
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13841 ol_cv_pthread_lpthread=no
13852 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13854 if test $ol_cv_pthread_lpthread = yes ; then
13855 ol_link_pthreads="-lpthread"
13856 ol_link_threads=posix
13860 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13861 if test "$ol_link_threads" = no ; then
13863 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13864 echo "configure:13865: checking for pthread link with -lc_r" >&5
13865 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13866 echo $ac_n "(cached) $ac_c" 1>&6
13873 if test "$cross_compiling" = yes; then
13874 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure"
13876 #include "confdefs.h"
13877 /* pthread test headers */
13878 #include <pthread.h>
13879 #if HAVE_PTHREADS < 7
13883 #define NULL (void*)0
13886 static void *task(p)
13889 return (void *) (p == NULL);
13894 /* pthread test function */
13895 #ifndef PTHREAD_CREATE_DETACHED
13896 #define PTHREAD_CREATE_DETACHED 1
13900 int detach = PTHREAD_CREATE_DETACHED;
13902 #if HAVE_PTHREADS > 4
13903 /* Final pthreads */
13904 pthread_attr_t attr;
13906 status = pthread_attr_init(&attr);
13907 if( status ) return status;
13909 #if HAVE_PTHREADS < 7
13910 status = pthread_attr_setdetachstate(&attr, &detach);
13911 if( status < 0 ) status = errno;
13913 status = pthread_attr_setdetachstate(&attr, detach);
13915 if( status ) return status;
13916 status = pthread_create( &t, &attr, task, NULL );
13917 #if HAVE_PTHREADS < 7
13918 if( status < 0 ) status = errno;
13920 if( status ) return status;
13922 /* Draft 4 pthreads */
13923 status = pthread_create( &t, pthread_attr_default, task, NULL );
13924 if( status ) return errno;
13926 /* give thread a chance to complete */
13927 /* it should remain joinable and hence detachable */
13930 status = pthread_detach( &t );
13931 if( status ) return errno;
13934 #ifdef HAVE_LINUX_THREADS
13935 pthread_kill_other_threads_np();
13942 if { (eval echo configure:13943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13944 ol_cv_pthread_lc_r=yes
13946 echo "configure: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13949 ol_cv_pthread_lc_r=no
13953 cat > conftest.$ac_ext <<EOF
13954 #line 13955 "configure"
13955 #include "confdefs.h"
13956 /* pthread test headers */
13957 #include <pthread.h>
13958 #if HAVE_PTHREADS < 7
13962 #define NULL (void*)0
13965 static void *task(p)
13968 return (void *) (p == NULL);
13972 int main(argc, argv)
13977 /* pthread test function */
13978 #ifndef PTHREAD_CREATE_DETACHED
13979 #define PTHREAD_CREATE_DETACHED 1
13983 int detach = PTHREAD_CREATE_DETACHED;
13985 #if HAVE_PTHREADS > 4
13986 /* Final pthreads */
13987 pthread_attr_t attr;
13989 status = pthread_attr_init(&attr);
13990 if( status ) return status;
13992 #if HAVE_PTHREADS < 7
13993 status = pthread_attr_setdetachstate(&attr, &detach);
13994 if( status < 0 ) status = errno;
13996 status = pthread_attr_setdetachstate(&attr, detach);
13998 if( status ) return status;
13999 status = pthread_create( &t, &attr, task, NULL );
14000 #if HAVE_PTHREADS < 7
14001 if( status < 0 ) status = errno;
14003 if( status ) return status;
14005 /* Draft 4 pthreads */
14006 status = pthread_create( &t, pthread_attr_default, task, NULL );
14007 if( status ) return errno;
14009 /* give thread a chance to complete */
14010 /* it should remain joinable and hence detachable */
14013 status = pthread_detach( &t );
14014 if( status ) return errno;
14017 #ifdef HAVE_LINUX_THREADS
14018 pthread_kill_other_threads_np();
14026 if { (eval echo configure:14027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14028 ol_cv_pthread_lc_r=yes
14030 echo "configure: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14033 ol_cv_pthread_lc_r=no
14044 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14046 if test $ol_cv_pthread_lc_r = yes ; then
14047 ol_link_pthreads="-lc_r"
14048 ol_link_threads=posix
14053 # Pthread try link: -threads (ol_cv_pthread_threads)
14054 if test "$ol_link_threads" = no ; then
14056 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14057 echo "configure:14058: checking for pthread link with -threads" >&5
14058 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14064 LIBS="-threads $LIBS"
14066 if test "$cross_compiling" = yes; then
14067 cat > conftest.$ac_ext <<EOF
14068 #line 14069 "configure"
14069 #include "confdefs.h"
14070 /* pthread test headers */
14071 #include <pthread.h>
14072 #if HAVE_PTHREADS < 7
14076 #define NULL (void*)0
14079 static void *task(p)
14082 return (void *) (p == NULL);
14087 /* pthread test function */
14088 #ifndef PTHREAD_CREATE_DETACHED
14089 #define PTHREAD_CREATE_DETACHED 1
14093 int detach = PTHREAD_CREATE_DETACHED;
14095 #if HAVE_PTHREADS > 4
14096 /* Final pthreads */
14097 pthread_attr_t attr;
14099 status = pthread_attr_init(&attr);
14100 if( status ) return status;
14102 #if HAVE_PTHREADS < 7
14103 status = pthread_attr_setdetachstate(&attr, &detach);
14104 if( status < 0 ) status = errno;
14106 status = pthread_attr_setdetachstate(&attr, detach);
14108 if( status ) return status;
14109 status = pthread_create( &t, &attr, task, NULL );
14110 #if HAVE_PTHREADS < 7
14111 if( status < 0 ) status = errno;
14113 if( status ) return status;
14115 /* Draft 4 pthreads */
14116 status = pthread_create( &t, pthread_attr_default, task, NULL );
14117 if( status ) return errno;
14119 /* give thread a chance to complete */
14120 /* it should remain joinable and hence detachable */
14123 status = pthread_detach( &t );
14124 if( status ) return errno;
14127 #ifdef HAVE_LINUX_THREADS
14128 pthread_kill_other_threads_np();
14135 if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14137 ol_cv_pthread_threads=yes
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14142 ol_cv_pthread_threads=no
14146 cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 /* pthread test headers */
14150 #include <pthread.h>
14151 #if HAVE_PTHREADS < 7
14155 #define NULL (void*)0
14158 static void *task(p)
14161 return (void *) (p == NULL);
14165 int main(argc, argv)
14170 /* pthread test function */
14171 #ifndef PTHREAD_CREATE_DETACHED
14172 #define PTHREAD_CREATE_DETACHED 1
14176 int detach = PTHREAD_CREATE_DETACHED;
14178 #if HAVE_PTHREADS > 4
14179 /* Final pthreads */
14180 pthread_attr_t attr;
14182 status = pthread_attr_init(&attr);
14183 if( status ) return status;
14185 #if HAVE_PTHREADS < 7
14186 status = pthread_attr_setdetachstate(&attr, &detach);
14187 if( status < 0 ) status = errno;
14189 status = pthread_attr_setdetachstate(&attr, detach);
14191 if( status ) return status;
14192 status = pthread_create( &t, &attr, task, NULL );
14193 #if HAVE_PTHREADS < 7
14194 if( status < 0 ) status = errno;
14196 if( status ) return status;
14198 /* Draft 4 pthreads */
14199 status = pthread_create( &t, pthread_attr_default, task, NULL );
14200 if( status ) return errno;
14202 /* give thread a chance to complete */
14203 /* it should remain joinable and hence detachable */
14206 status = pthread_detach( &t );
14207 if( status ) return errno;
14210 #ifdef HAVE_LINUX_THREADS
14211 pthread_kill_other_threads_np();
14219 if { (eval echo configure:14220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14221 ol_cv_pthread_threads=yes
14223 echo "configure: failed program was:" >&5
14224 cat conftest.$ac_ext >&5
14226 ol_cv_pthread_threads=no
14237 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14239 if test $ol_cv_pthread_threads = yes ; then
14240 ol_link_pthreads="-threads"
14241 ol_link_threads=posix
14246 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14247 if test "$ol_link_threads" = no ; then
14248 # try -lpthreads -lmach -lexc -lc_r
14249 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14250 echo "configure:14251: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14251 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14252 echo $ac_n "(cached) $ac_c" 1>&6
14257 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14259 if test "$cross_compiling" = yes; then
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14263 /* pthread test headers */
14264 #include <pthread.h>
14265 #if HAVE_PTHREADS < 7
14269 #define NULL (void*)0
14272 static void *task(p)
14275 return (void *) (p == NULL);
14280 /* pthread test function */
14281 #ifndef PTHREAD_CREATE_DETACHED
14282 #define PTHREAD_CREATE_DETACHED 1
14286 int detach = PTHREAD_CREATE_DETACHED;
14288 #if HAVE_PTHREADS > 4
14289 /* Final pthreads */
14290 pthread_attr_t attr;
14292 status = pthread_attr_init(&attr);
14293 if( status ) return status;
14295 #if HAVE_PTHREADS < 7
14296 status = pthread_attr_setdetachstate(&attr, &detach);
14297 if( status < 0 ) status = errno;
14299 status = pthread_attr_setdetachstate(&attr, detach);
14301 if( status ) return status;
14302 status = pthread_create( &t, &attr, task, NULL );
14303 #if HAVE_PTHREADS < 7
14304 if( status < 0 ) status = errno;
14306 if( status ) return status;
14308 /* Draft 4 pthreads */
14309 status = pthread_create( &t, pthread_attr_default, task, NULL );
14310 if( status ) return errno;
14312 /* give thread a chance to complete */
14313 /* it should remain joinable and hence detachable */
14316 status = pthread_detach( &t );
14317 if( status ) return errno;
14320 #ifdef HAVE_LINUX_THREADS
14321 pthread_kill_other_threads_np();
14328 if { (eval echo configure:14329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14330 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14332 echo "configure: failed program was:" >&5
14333 cat conftest.$ac_ext >&5
14335 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14339 cat > conftest.$ac_ext <<EOF
14340 #line 14341 "configure"
14341 #include "confdefs.h"
14342 /* pthread test headers */
14343 #include <pthread.h>
14344 #if HAVE_PTHREADS < 7
14348 #define NULL (void*)0
14351 static void *task(p)
14354 return (void *) (p == NULL);
14358 int main(argc, argv)
14363 /* pthread test function */
14364 #ifndef PTHREAD_CREATE_DETACHED
14365 #define PTHREAD_CREATE_DETACHED 1
14369 int detach = PTHREAD_CREATE_DETACHED;
14371 #if HAVE_PTHREADS > 4
14372 /* Final pthreads */
14373 pthread_attr_t attr;
14375 status = pthread_attr_init(&attr);
14376 if( status ) return status;
14378 #if HAVE_PTHREADS < 7
14379 status = pthread_attr_setdetachstate(&attr, &detach);
14380 if( status < 0 ) status = errno;
14382 status = pthread_attr_setdetachstate(&attr, detach);
14384 if( status ) return status;
14385 status = pthread_create( &t, &attr, task, NULL );
14386 #if HAVE_PTHREADS < 7
14387 if( status < 0 ) status = errno;
14389 if( status ) return status;
14391 /* Draft 4 pthreads */
14392 status = pthread_create( &t, pthread_attr_default, task, NULL );
14393 if( status ) return errno;
14395 /* give thread a chance to complete */
14396 /* it should remain joinable and hence detachable */
14399 status = pthread_detach( &t );
14400 if( status ) return errno;
14403 #ifdef HAVE_LINUX_THREADS
14404 pthread_kill_other_threads_np();
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14414 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14419 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14430 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14432 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14433 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14434 ol_link_threads=posix
14438 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14439 if test "$ol_link_threads" = no ; then
14440 # try -lpthreads -lmach -lexc
14441 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14442 echo "configure:14443: checking for pthread link with -lpthreads -lmach -lexc" >&5
14443 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14444 echo $ac_n "(cached) $ac_c" 1>&6
14449 LIBS="-lpthreads -lmach -lexc $LIBS"
14451 if test "$cross_compiling" = yes; then
14452 cat > conftest.$ac_ext <<EOF
14453 #line 14454 "configure"
14454 #include "confdefs.h"
14455 /* pthread test headers */
14456 #include <pthread.h>
14457 #if HAVE_PTHREADS < 7
14461 #define NULL (void*)0
14464 static void *task(p)
14467 return (void *) (p == NULL);
14472 /* pthread test function */
14473 #ifndef PTHREAD_CREATE_DETACHED
14474 #define PTHREAD_CREATE_DETACHED 1
14478 int detach = PTHREAD_CREATE_DETACHED;
14480 #if HAVE_PTHREADS > 4
14481 /* Final pthreads */
14482 pthread_attr_t attr;
14484 status = pthread_attr_init(&attr);
14485 if( status ) return status;
14487 #if HAVE_PTHREADS < 7
14488 status = pthread_attr_setdetachstate(&attr, &detach);
14489 if( status < 0 ) status = errno;
14491 status = pthread_attr_setdetachstate(&attr, detach);
14493 if( status ) return status;
14494 status = pthread_create( &t, &attr, task, NULL );
14495 #if HAVE_PTHREADS < 7
14496 if( status < 0 ) status = errno;
14498 if( status ) return status;
14500 /* Draft 4 pthreads */
14501 status = pthread_create( &t, pthread_attr_default, task, NULL );
14502 if( status ) return errno;
14504 /* give thread a chance to complete */
14505 /* it should remain joinable and hence detachable */
14508 status = pthread_detach( &t );
14509 if( status ) return errno;
14512 #ifdef HAVE_LINUX_THREADS
14513 pthread_kill_other_threads_np();
14520 if { (eval echo configure:14521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14522 ol_cv_pthread_lpthreads_lmach_lexc=yes
14524 echo "configure: failed program was:" >&5
14525 cat conftest.$ac_ext >&5
14527 ol_cv_pthread_lpthreads_lmach_lexc=no
14531 cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 /* pthread test headers */
14535 #include <pthread.h>
14536 #if HAVE_PTHREADS < 7
14540 #define NULL (void*)0
14543 static void *task(p)
14546 return (void *) (p == NULL);
14550 int main(argc, argv)
14555 /* pthread test function */
14556 #ifndef PTHREAD_CREATE_DETACHED
14557 #define PTHREAD_CREATE_DETACHED 1
14561 int detach = PTHREAD_CREATE_DETACHED;
14563 #if HAVE_PTHREADS > 4
14564 /* Final pthreads */
14565 pthread_attr_t attr;
14567 status = pthread_attr_init(&attr);
14568 if( status ) return status;
14570 #if HAVE_PTHREADS < 7
14571 status = pthread_attr_setdetachstate(&attr, &detach);
14572 if( status < 0 ) status = errno;
14574 status = pthread_attr_setdetachstate(&attr, detach);
14576 if( status ) return status;
14577 status = pthread_create( &t, &attr, task, NULL );
14578 #if HAVE_PTHREADS < 7
14579 if( status < 0 ) status = errno;
14581 if( status ) return status;
14583 /* Draft 4 pthreads */
14584 status = pthread_create( &t, pthread_attr_default, task, NULL );
14585 if( status ) return errno;
14587 /* give thread a chance to complete */
14588 /* it should remain joinable and hence detachable */
14591 status = pthread_detach( &t );
14592 if( status ) return errno;
14595 #ifdef HAVE_LINUX_THREADS
14596 pthread_kill_other_threads_np();
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14606 ol_cv_pthread_lpthreads_lmach_lexc=yes
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14611 ol_cv_pthread_lpthreads_lmach_lexc=no
14622 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14624 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14625 ol_link_pthreads="-lpthreads -lmach -lexc"
14626 ol_link_threads=posix
14630 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14631 if test "$ol_link_threads" = no ; then
14632 # try -lpthreads -lexc
14633 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14634 echo "configure:14635: checking for pthread link with -lpthreads -lexc" >&5
14635 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14636 echo $ac_n "(cached) $ac_c" 1>&6
14641 LIBS="-lpthreads -lexc $LIBS"
14643 if test "$cross_compiling" = yes; then
14644 cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647 /* pthread test headers */
14648 #include <pthread.h>
14649 #if HAVE_PTHREADS < 7
14653 #define NULL (void*)0
14656 static void *task(p)
14659 return (void *) (p == NULL);
14664 /* pthread test function */
14665 #ifndef PTHREAD_CREATE_DETACHED
14666 #define PTHREAD_CREATE_DETACHED 1
14670 int detach = PTHREAD_CREATE_DETACHED;
14672 #if HAVE_PTHREADS > 4
14673 /* Final pthreads */
14674 pthread_attr_t attr;
14676 status = pthread_attr_init(&attr);
14677 if( status ) return status;
14679 #if HAVE_PTHREADS < 7
14680 status = pthread_attr_setdetachstate(&attr, &detach);
14681 if( status < 0 ) status = errno;
14683 status = pthread_attr_setdetachstate(&attr, detach);
14685 if( status ) return status;
14686 status = pthread_create( &t, &attr, task, NULL );
14687 #if HAVE_PTHREADS < 7
14688 if( status < 0 ) status = errno;
14690 if( status ) return status;
14692 /* Draft 4 pthreads */
14693 status = pthread_create( &t, pthread_attr_default, task, NULL );
14694 if( status ) return errno;
14696 /* give thread a chance to complete */
14697 /* it should remain joinable and hence detachable */
14700 status = pthread_detach( &t );
14701 if( status ) return errno;
14704 #ifdef HAVE_LINUX_THREADS
14705 pthread_kill_other_threads_np();
14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14714 ol_cv_pthread_lpthreads_lexc=yes
14716 echo "configure: failed program was:" >&5
14717 cat conftest.$ac_ext >&5
14719 ol_cv_pthread_lpthreads_lexc=no
14723 cat > conftest.$ac_ext <<EOF
14724 #line 14725 "configure"
14725 #include "confdefs.h"
14726 /* pthread test headers */
14727 #include <pthread.h>
14728 #if HAVE_PTHREADS < 7
14732 #define NULL (void*)0
14735 static void *task(p)
14738 return (void *) (p == NULL);
14742 int main(argc, argv)
14747 /* pthread test function */
14748 #ifndef PTHREAD_CREATE_DETACHED
14749 #define PTHREAD_CREATE_DETACHED 1
14753 int detach = PTHREAD_CREATE_DETACHED;
14755 #if HAVE_PTHREADS > 4
14756 /* Final pthreads */
14757 pthread_attr_t attr;
14759 status = pthread_attr_init(&attr);
14760 if( status ) return status;
14762 #if HAVE_PTHREADS < 7
14763 status = pthread_attr_setdetachstate(&attr, &detach);
14764 if( status < 0 ) status = errno;
14766 status = pthread_attr_setdetachstate(&attr, detach);
14768 if( status ) return status;
14769 status = pthread_create( &t, &attr, task, NULL );
14770 #if HAVE_PTHREADS < 7
14771 if( status < 0 ) status = errno;
14773 if( status ) return status;
14775 /* Draft 4 pthreads */
14776 status = pthread_create( &t, pthread_attr_default, task, NULL );
14777 if( status ) return errno;
14779 /* give thread a chance to complete */
14780 /* it should remain joinable and hence detachable */
14783 status = pthread_detach( &t );
14784 if( status ) return errno;
14787 #ifdef HAVE_LINUX_THREADS
14788 pthread_kill_other_threads_np();
14796 if { (eval echo configure:14797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14798 ol_cv_pthread_lpthreads_lexc=yes
14800 echo "configure: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14803 ol_cv_pthread_lpthreads_lexc=no
14814 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14816 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14817 ol_link_pthreads="-lpthreads -lexc"
14818 ol_link_threads=posix
14823 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14824 if test "$ol_link_threads" = no ; then
14826 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14827 echo "configure:14828: checking for pthread link with -lpthreads" >&5
14828 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14829 echo $ac_n "(cached) $ac_c" 1>&6
14834 LIBS="-lpthreads $LIBS"
14836 if test "$cross_compiling" = yes; then
14837 cat > conftest.$ac_ext <<EOF
14838 #line 14839 "configure"
14839 #include "confdefs.h"
14840 /* pthread test headers */
14841 #include <pthread.h>
14842 #if HAVE_PTHREADS < 7
14846 #define NULL (void*)0
14849 static void *task(p)
14852 return (void *) (p == NULL);
14857 /* pthread test function */
14858 #ifndef PTHREAD_CREATE_DETACHED
14859 #define PTHREAD_CREATE_DETACHED 1
14863 int detach = PTHREAD_CREATE_DETACHED;
14865 #if HAVE_PTHREADS > 4
14866 /* Final pthreads */
14867 pthread_attr_t attr;
14869 status = pthread_attr_init(&attr);
14870 if( status ) return status;
14872 #if HAVE_PTHREADS < 7
14873 status = pthread_attr_setdetachstate(&attr, &detach);
14874 if( status < 0 ) status = errno;
14876 status = pthread_attr_setdetachstate(&attr, detach);
14878 if( status ) return status;
14879 status = pthread_create( &t, &attr, task, NULL );
14880 #if HAVE_PTHREADS < 7
14881 if( status < 0 ) status = errno;
14883 if( status ) return status;
14885 /* Draft 4 pthreads */
14886 status = pthread_create( &t, pthread_attr_default, task, NULL );
14887 if( status ) return errno;
14889 /* give thread a chance to complete */
14890 /* it should remain joinable and hence detachable */
14893 status = pthread_detach( &t );
14894 if( status ) return errno;
14897 #ifdef HAVE_LINUX_THREADS
14898 pthread_kill_other_threads_np();
14905 if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14907 ol_cv_pthread_lib_lpthreads=yes
14909 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14912 ol_cv_pthread_lib_lpthreads=no
14916 cat > conftest.$ac_ext <<EOF
14917 #line 14918 "configure"
14918 #include "confdefs.h"
14919 /* pthread test headers */
14920 #include <pthread.h>
14921 #if HAVE_PTHREADS < 7
14925 #define NULL (void*)0
14928 static void *task(p)
14931 return (void *) (p == NULL);
14935 int main(argc, argv)
14940 /* pthread test function */
14941 #ifndef PTHREAD_CREATE_DETACHED
14942 #define PTHREAD_CREATE_DETACHED 1
14946 int detach = PTHREAD_CREATE_DETACHED;
14948 #if HAVE_PTHREADS > 4
14949 /* Final pthreads */
14950 pthread_attr_t attr;
14952 status = pthread_attr_init(&attr);
14953 if( status ) return status;
14955 #if HAVE_PTHREADS < 7
14956 status = pthread_attr_setdetachstate(&attr, &detach);
14957 if( status < 0 ) status = errno;
14959 status = pthread_attr_setdetachstate(&attr, detach);
14961 if( status ) return status;
14962 status = pthread_create( &t, &attr, task, NULL );
14963 #if HAVE_PTHREADS < 7
14964 if( status < 0 ) status = errno;
14966 if( status ) return status;
14968 /* Draft 4 pthreads */
14969 status = pthread_create( &t, pthread_attr_default, task, NULL );
14970 if( status ) return errno;
14972 /* give thread a chance to complete */
14973 /* it should remain joinable and hence detachable */
14976 status = pthread_detach( &t );
14977 if( status ) return errno;
14980 #ifdef HAVE_LINUX_THREADS
14981 pthread_kill_other_threads_np();
14989 if { (eval echo configure:14990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14991 ol_cv_pthread_lib_lpthreads=yes
14993 echo "configure: failed program was:" >&5
14994 cat conftest.$ac_ext >&5
14996 ol_cv_pthread_lib_lpthreads=no
15007 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15009 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15010 ol_link_pthreads="-lpthreads"
15011 ol_link_threads=posix
15016 if test $ol_link_threads != no ; then
15017 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15019 save_CPPFLAGS="$CPPFLAGS"
15021 LIBS="$LTHREAD_LIBS $LIBS"
15023 for ac_func in sched_yield pthread_yield
15025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15026 echo "configure:15027: checking for $ac_func" >&5
15027 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15030 cat > conftest.$ac_ext <<EOF
15031 #line 15032 "configure"
15032 #include "confdefs.h"
15033 /* System header to define __stub macros and hopefully few prototypes,
15034 which can conflict with char $ac_func(); below. */
15035 #include <assert.h>
15036 /* Override any gcc2 internal prototype to avoid an error. */
15037 /* We use char because int might match the return type of a gcc2
15038 builtin and then its argument prototype would still apply. */
15044 /* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15055 if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 eval "ac_cv_func_$ac_func=yes"
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15062 eval "ac_cv_func_$ac_func=no"
15067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
15069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15070 cat >> confdefs.h <<EOF
15071 #define $ac_tr_func 1
15075 echo "$ac_t""no" 1>&6
15080 if test $ac_cv_func_sched_yield = no -a \
15081 $ac_cv_func_pthread_yield = no ; then
15082 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15083 echo "configure:15084: checking for sched_yield in -lrt" >&5
15084 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15086 echo $ac_n "(cached) $ac_c" 1>&6
15088 ac_save_LIBS="$LIBS"
15090 cat > conftest.$ac_ext <<EOF
15091 #line 15092 "configure"
15092 #include "confdefs.h"
15093 /* Override any gcc2 internal prototype to avoid an error. */
15094 /* We use char because int might match the return type of a gcc2
15095 builtin and then its argument prototype would still apply. */
15096 char sched_yield();
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15104 eval "ac_cv_lib_$ac_lib_var=yes"
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15109 eval "ac_cv_lib_$ac_lib_var=no"
15112 LIBS="$ac_save_LIBS"
15115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15116 echo "$ac_t""yes" 1>&6
15117 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15118 cat >> confdefs.h <<\EOF
15119 #define HAVE_SCHED_YIELD 1
15122 ac_cv_func_sched_yield=yes
15124 echo "$ac_t""no" 1>&6
15125 ac_cv_func_sched_yield=no
15129 if test $ac_cv_func_sched_yield = no -a \
15130 $ac_cv_func_pthread_yield = no ; then
15131 for ac_func in thr_yield
15133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15134 echo "configure:15135: checking for $ac_func" >&5
15135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15136 echo $ac_n "(cached) $ac_c" 1>&6
15138 cat > conftest.$ac_ext <<EOF
15139 #line 15140 "configure"
15140 #include "confdefs.h"
15141 /* System header to define __stub macros and hopefully few prototypes,
15142 which can conflict with char $ac_func(); below. */
15143 #include <assert.h>
15144 /* Override any gcc2 internal prototype to avoid an error. */
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15152 /* The GNU C library defines this for functions which it implements
15153 to always fail with ENOSYS. Some functions are actually named
15154 something starting with __ and the normal name is an alias. */
15155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15163 if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15165 eval "ac_cv_func_$ac_func=yes"
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15170 eval "ac_cv_func_$ac_func=no"
15175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15176 echo "$ac_t""yes" 1>&6
15177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15178 cat >> confdefs.h <<EOF
15179 #define $ac_tr_func 1
15183 echo "$ac_t""no" 1>&6
15188 if test $ac_cv_func_sched_yield = no -a \
15189 $ac_cv_func_pthread_yield = no -a \
15190 "$ac_cv_func_thr_yield" = no ; then
15191 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15194 for ac_func in pthread_kill pthread_rwlock_destroy
15196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15197 echo "configure:15198: checking for $ac_func" >&5
15198 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15199 echo $ac_n "(cached) $ac_c" 1>&6
15201 cat > conftest.$ac_ext <<EOF
15202 #line 15203 "configure"
15203 #include "confdefs.h"
15204 /* System header to define __stub macros and hopefully few prototypes,
15205 which can conflict with char $ac_func(); below. */
15206 #include <assert.h>
15207 /* Override any gcc2 internal prototype to avoid an error. */
15208 /* We use char because int might match the return type of a gcc2
15209 builtin and then its argument prototype would still apply. */
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15226 if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15228 eval "ac_cv_func_$ac_func=yes"
15230 echo "configure: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15233 eval "ac_cv_func_$ac_func=no"
15238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15239 echo "$ac_t""yes" 1>&6
15240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15241 cat >> confdefs.h <<EOF
15242 #define $ac_tr_func 1
15246 echo "$ac_t""no" 1>&6
15251 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15252 echo "configure:15253: checking for pthread_detach with <pthread.h>" >&5
15253 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15257 cat > conftest.$ac_ext <<EOF
15258 #line 15259 "configure"
15259 #include "confdefs.h"
15261 #include <pthread.h>
15263 #define NULL (void*)0
15267 pthread_detach(NULL);
15270 if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15272 ol_cv_func_pthread_detach=yes
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15277 ol_cv_func_pthread_detach=no
15283 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15285 if test $ol_cv_func_pthread_detach = no ; then
15286 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15289 cat >> confdefs.h <<\EOF
15290 #define HAVE_PTHREAD_DETACH 1
15295 pthread_setconcurrency \
15296 pthread_getconcurrency \
15297 thr_setconcurrency \
15298 thr_getconcurrency \
15301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15302 echo "configure:15303: checking for $ac_func" >&5
15303 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15304 echo $ac_n "(cached) $ac_c" 1>&6
15306 cat > conftest.$ac_ext <<EOF
15307 #line 15308 "configure"
15308 #include "confdefs.h"
15309 /* System header to define __stub macros and hopefully few prototypes,
15310 which can conflict with char $ac_func(); below. */
15311 #include <assert.h>
15312 /* Override any gcc2 internal prototype to avoid an error. */
15313 /* We use char because int might match the return type of a gcc2
15314 builtin and then its argument prototype would still apply. */
15320 /* The GNU C library defines this for functions which it implements
15321 to always fail with ENOSYS. Some functions are actually named
15322 something starting with __ and the normal name is an alias. */
15323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15331 if { (eval echo configure:15332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15333 eval "ac_cv_func_$ac_func=yes"
15335 echo "configure: failed program was:" >&5
15336 cat conftest.$ac_ext >&5
15338 eval "ac_cv_func_$ac_func=no"
15343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15344 echo "$ac_t""yes" 1>&6
15345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15346 cat >> confdefs.h <<EOF
15347 #define $ac_tr_func 1
15351 echo "$ac_t""no" 1>&6
15357 for ac_func in pthread_kill_other_threads_np
15359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15360 echo "configure:15361: checking for $ac_func" >&5
15361 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15362 echo $ac_n "(cached) $ac_c" 1>&6
15364 cat > conftest.$ac_ext <<EOF
15365 #line 15366 "configure"
15366 #include "confdefs.h"
15367 /* System header to define __stub macros and hopefully few prototypes,
15368 which can conflict with char $ac_func(); below. */
15369 #include <assert.h>
15370 /* Override any gcc2 internal prototype to avoid an error. */
15371 /* We use char because int might match the return type of a gcc2
15372 builtin and then its argument prototype would still apply. */
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15389 if { (eval echo configure:15390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15391 eval "ac_cv_func_$ac_func=yes"
15393 echo "configure: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15396 eval "ac_cv_func_$ac_func=no"
15401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15402 echo "$ac_t""yes" 1>&6
15403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15404 cat >> confdefs.h <<EOF
15405 #define $ac_tr_func 1
15409 echo "$ac_t""no" 1>&6
15413 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15414 echo "configure:15415: checking for LinuxThreads implementation" >&5
15415 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15416 echo $ac_n "(cached) $ac_c" 1>&6
15418 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15421 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15426 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15427 echo "configure:15428: checking for LinuxThreads consistency" >&5
15428 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15429 echo $ac_n "(cached) $ac_c" 1>&6
15432 if test $ol_cv_header_linux_threads = yes -a \
15433 $ol_cv_sys_linux_threads = yes; then
15434 ol_cv_linux_threads=yes
15435 elif test $ol_cv_header_linux_threads = no -a \
15436 $ol_cv_sys_linux_threads = no; then
15437 ol_cv_linux_threads=no
15439 ol_cv_linux_threads=error
15444 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15447 if test $ol_cv_linux_threads = error; then
15448 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15451 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15452 echo "configure:15453: checking if pthread_create() works" >&5
15453 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15457 if test "$cross_compiling" = yes; then
15458 ol_cv_pthread_create_works=yes
15460 cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15463 /* pthread test headers */
15464 #include <pthread.h>
15465 #if HAVE_PTHREADS < 7
15469 #define NULL (void*)0
15472 static void *task(p)
15475 return (void *) (p == NULL);
15479 int main(argc, argv)
15484 /* pthread test function */
15485 #ifndef PTHREAD_CREATE_DETACHED
15486 #define PTHREAD_CREATE_DETACHED 1
15490 int detach = PTHREAD_CREATE_DETACHED;
15492 #if HAVE_PTHREADS > 4
15493 /* Final pthreads */
15494 pthread_attr_t attr;
15496 status = pthread_attr_init(&attr);
15497 if( status ) return status;
15499 #if HAVE_PTHREADS < 7
15500 status = pthread_attr_setdetachstate(&attr, &detach);
15501 if( status < 0 ) status = errno;
15503 status = pthread_attr_setdetachstate(&attr, detach);
15505 if( status ) return status;
15506 status = pthread_create( &t, &attr, task, NULL );
15507 #if HAVE_PTHREADS < 7
15508 if( status < 0 ) status = errno;
15510 if( status ) return status;
15512 /* Draft 4 pthreads */
15513 status = pthread_create( &t, pthread_attr_default, task, NULL );
15514 if( status ) return errno;
15516 /* give thread a chance to complete */
15517 /* it should remain joinable and hence detachable */
15520 status = pthread_detach( &t );
15521 if( status ) return errno;
15524 #ifdef HAVE_LINUX_THREADS
15525 pthread_kill_other_threads_np();
15533 if { (eval echo configure:15534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15535 ol_cv_pthread_create_works=yes
15537 echo "configure: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15540 ol_cv_pthread_create_works=no
15547 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15549 if test $ol_cv_pthread_create_works = no ; then
15550 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15553 if test $ol_with_yielding_select = auto ; then
15554 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15555 echo "configure:15556: checking if select yields when using pthreads" >&5
15556 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15560 if test "$cross_compiling" = yes; then
15561 ol_cv_pthread_select_yields=cross
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15567 #include <sys/types.h>
15568 #include <sys/time.h>
15569 #include <unistd.h>
15570 #include <pthread.h>
15572 #define NULL (void*) 0
15575 static int fildes[2];
15577 static void *task(p)
15589 FD_SET(fildes[0], &rfds);
15591 /* we're not interested in any fds */
15592 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15599 exit(0); /* if we exit here, the select blocked the whole process */
15602 int main(argc, argv)
15608 /* create a pipe to select */
15609 if(pipe(&fildes[0])) {
15614 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15615 (void) pthread_setconcurrency(2);
15617 #ifdef HAVE_THR_SETCONCURRENCY
15618 /* Set Solaris LWP concurrency to 2 */
15619 thr_setconcurrency(2);
15623 #if HAVE_PTHREADS < 6
15624 pthread_create(&t, pthread_attr_default, task, NULL);
15626 pthread_create(&t, NULL, task, NULL);
15629 #if HAVE_SCHED_YIELD
15630 sched_yield(); /* make sure task runs first */
15632 #ifdef HAVE_PTHREAD_YIELD
15633 pthread_yield(); /* make sure task runs first */
15640 if { (eval echo configure:15641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15642 ol_cv_pthread_select_yields=no
15644 echo "configure: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15647 ol_cv_pthread_select_yields=yes
15654 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15656 if test $ol_cv_pthread_select_yields = cross ; then
15657 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15660 if test $ol_cv_pthread_select_yields = yes ; then
15661 ol_with_yielding_select=yes
15665 CPPFLAGS="$save_CPPFLAGS"
15668 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15672 if test $ol_with_threads = posix ; then
15673 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15677 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15678 -o $ol_with_threads = mach ; then
15680 for ac_hdr in mach/cthreads.h cthreads.h
15682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15684 echo "configure:15685: checking for $ac_hdr" >&5
15685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15686 echo $ac_n "(cached) $ac_c" 1>&6
15688 cat > conftest.$ac_ext <<EOF
15689 #line 15690 "configure"
15690 #include "confdefs.h"
15693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15694 { (eval echo configure:15695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15696 if test -z "$ac_err"; then
15698 eval "ac_cv_header_$ac_safe=yes"
15701 echo "configure: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 eval "ac_cv_header_$ac_safe=no"
15708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15709 echo "$ac_t""yes" 1>&6
15710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15711 cat >> confdefs.h <<EOF
15712 #define $ac_tr_hdr 1
15716 echo "$ac_t""no" 1>&6
15720 if test $ac_cv_header_mach_cthreads_h = yes ; then
15721 ol_with_threads=found
15723 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15724 echo "configure:15725: checking for cthread_fork" >&5
15725 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15726 echo $ac_n "(cached) $ac_c" 1>&6
15728 cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure"
15730 #include "confdefs.h"
15731 /* System header to define __stub macros and hopefully few prototypes,
15732 which can conflict with char cthread_fork(); below. */
15733 #include <assert.h>
15734 /* Override any gcc2 internal prototype to avoid an error. */
15735 /* We use char because int might match the return type of a gcc2
15736 builtin and then its argument prototype would still apply. */
15737 char cthread_fork();
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15753 if { (eval echo configure:15754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15755 eval "ac_cv_func_cthread_fork=yes"
15757 echo "configure: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15760 eval "ac_cv_func_cthread_fork=no"
15765 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15766 echo "$ac_t""yes" 1>&6
15767 ol_link_threads=yes
15769 echo "$ac_t""no" 1>&6
15773 if test $ol_link_threads = no ; then
15774 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15775 echo "configure:15776: checking for cthread_fork with -all_load" >&5
15776 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15777 echo $ac_n "(cached) $ac_c" 1>&6
15781 LIBS="-all_load $LIBS"
15782 cat > conftest.$ac_ext <<EOF
15783 #line 15784 "configure"
15784 #include "confdefs.h"
15785 #include <mach/cthreads.h>
15788 cthread_fork((void *)0, (void *)0);
15792 if { (eval echo configure:15793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15794 ol_cv_cthread_all_load=yes
15796 echo "configure: failed program was:" >&5
15797 cat conftest.$ac_ext >&5
15799 ol_cv_cthread_all_load=no
15806 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15808 if test $ol_cv_cthread_all_load = yes ; then
15809 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15810 ol_link_threads=mach
15811 ol_with_threads=found
15815 elif test $ac_cv_header_cthreads_h = yes ; then
15817 ol_with_threads=found
15820 LIBS="$LIBS -lthreads"
15821 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15822 echo "configure:15823: checking for cthread_fork" >&5
15823 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15826 cat > conftest.$ac_ext <<EOF
15827 #line 15828 "configure"
15828 #include "confdefs.h"
15829 /* System header to define __stub macros and hopefully few prototypes,
15830 which can conflict with char cthread_fork(); below. */
15831 #include <assert.h>
15832 /* Override any gcc2 internal prototype to avoid an error. */
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15835 char cthread_fork();
15840 /* The GNU C library defines this for functions which it implements
15841 to always fail with ENOSYS. Some functions are actually named
15842 something starting with __ and the normal name is an alias. */
15843 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15851 if { (eval echo configure:15852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15853 eval "ac_cv_func_cthread_fork=yes"
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15858 eval "ac_cv_func_cthread_fork=no"
15863 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15864 echo "$ac_t""yes" 1>&6
15865 ol_link_threads=yes
15867 echo "$ac_t""no" 1>&6
15872 if test $ol_link_threads = yes ; then
15873 LTHREAD_LIBS="-lthreads"
15874 ol_link_threads=mach
15875 ol_with_threads=found
15877 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15880 elif test $ol_with_threads = mach ; then
15881 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15884 if test $ol_link_threads = mach ; then
15885 cat >> confdefs.h <<\EOF
15886 #define HAVE_MACH_CTHREADS 1
15889 elif test $ol_with_threads = found ; then
15890 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15894 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15895 -o $ol_with_threads = pth ; then
15897 for ac_hdr in pth.h
15899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15901 echo "configure:15902: checking for $ac_hdr" >&5
15902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15903 echo $ac_n "(cached) $ac_c" 1>&6
15905 cat > conftest.$ac_ext <<EOF
15906 #line 15907 "configure"
15907 #include "confdefs.h"
15910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15911 { (eval echo configure:15912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15913 if test -z "$ac_err"; then
15915 eval "ac_cv_header_$ac_safe=yes"
15918 echo "configure: failed program was:" >&5
15919 cat conftest.$ac_ext >&5
15921 eval "ac_cv_header_$ac_safe=no"
15925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15926 echo "$ac_t""yes" 1>&6
15927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15928 cat >> confdefs.h <<EOF
15929 #define $ac_tr_hdr 1
15933 echo "$ac_t""no" 1>&6
15938 if test $ac_cv_header_pth_h = yes ; then
15939 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15940 echo "configure:15941: checking for pth_version in -lpth" >&5
15941 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15943 echo $ac_n "(cached) $ac_c" 1>&6
15945 ac_save_LIBS="$LIBS"
15947 cat > conftest.$ac_ext <<EOF
15948 #line 15949 "configure"
15949 #include "confdefs.h"
15950 /* Override any gcc2 internal prototype to avoid an error. */
15951 /* We use char because int might match the return type of a gcc2
15952 builtin and then its argument prototype would still apply. */
15953 char pth_version();
15959 if { (eval echo configure:15960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15961 eval "ac_cv_lib_$ac_lib_var=yes"
15963 echo "configure: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15966 eval "ac_cv_lib_$ac_lib_var=no"
15969 LIBS="$ac_save_LIBS"
15972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15973 echo "$ac_t""yes" 1>&6
15976 echo "$ac_t""no" 1>&6
15981 if test $have_pth = yes ; then
15982 cat >> confdefs.h <<\EOF
15983 #define HAVE_GNU_PTH 1
15986 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15987 ol_link_threads=pth
15988 ol_with_threads=found
15990 if test $ol_with_yielding_select = auto ; then
15991 ol_with_yielding_select=yes
15997 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15998 -o $ol_with_threads = lwp ; then
16000 for ac_hdr in thread.h synch.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_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16041 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16042 echo "configure:16043: checking for thr_create in -lthread" >&5
16043 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16044 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16045 echo $ac_n "(cached) $ac_c" 1>&6
16047 ac_save_LIBS="$LIBS"
16048 LIBS="-lthread $LIBS"
16049 cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052 /* Override any gcc2 internal prototype to avoid an error. */
16053 /* We use char because int might match the return type of a gcc2
16054 builtin and then its argument prototype would still apply. */
16061 if { (eval echo configure:16062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16063 eval "ac_cv_lib_$ac_lib_var=yes"
16065 echo "configure: failed program was:" >&5
16066 cat conftest.$ac_ext >&5
16068 eval "ac_cv_lib_$ac_lib_var=no"
16071 LIBS="$ac_save_LIBS"
16074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16075 echo "$ac_t""yes" 1>&6
16078 echo "$ac_t""no" 1>&6
16083 if test $have_thr = yes ; then
16084 cat >> confdefs.h <<\EOF
16088 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16089 ol_link_threads=thr
16091 if test $ol_with_yielding_select = auto ; then
16092 ol_with_yielding_select=yes
16096 thr_setconcurrency \
16097 thr_getconcurrency \
16100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16101 echo "configure:16102: checking for $ac_func" >&5
16102 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16103 echo $ac_n "(cached) $ac_c" 1>&6
16105 cat > conftest.$ac_ext <<EOF
16106 #line 16107 "configure"
16107 #include "confdefs.h"
16108 /* System header to define __stub macros and hopefully few prototypes,
16109 which can conflict with char $ac_func(); below. */
16110 #include <assert.h>
16111 /* Override any gcc2 internal prototype to avoid an error. */
16112 /* We use char because int might match the return type of a gcc2
16113 builtin and then its argument prototype would still apply. */
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16130 if { (eval echo configure:16131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16132 eval "ac_cv_func_$ac_func=yes"
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16137 eval "ac_cv_func_$ac_func=no"
16142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16143 echo "$ac_t""yes" 1>&6
16144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16145 cat >> confdefs.h <<EOF
16146 #define $ac_tr_func 1
16150 echo "$ac_t""no" 1>&6
16157 for ac_hdr in lwp/lwp.h
16159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16161 echo "configure:16162: checking for $ac_hdr" >&5
16162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
16165 cat > conftest.$ac_ext <<EOF
16166 #line 16167 "configure"
16167 #include "confdefs.h"
16170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16171 { (eval echo configure:16172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16173 if test -z "$ac_err"; then
16175 eval "ac_cv_header_$ac_safe=yes"
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16181 eval "ac_cv_header_$ac_safe=no"
16185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16186 echo "$ac_t""yes" 1>&6
16187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16188 cat >> confdefs.h <<EOF
16189 #define $ac_tr_hdr 1
16193 echo "$ac_t""no" 1>&6
16197 if test $ac_cv_header_lwp_lwp_h = yes ; then
16198 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16199 echo "configure:16200: checking for lwp_create in -llwp" >&5
16200 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
16204 ac_save_LIBS="$LIBS"
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16209 /* Override any gcc2 internal prototype to avoid an error. */
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16218 if { (eval echo configure:16219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16220 eval "ac_cv_lib_$ac_lib_var=yes"
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16225 eval "ac_cv_lib_$ac_lib_var=no"
16228 LIBS="$ac_save_LIBS"
16231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16232 echo "$ac_t""yes" 1>&6
16235 echo "$ac_t""no" 1>&6
16240 if test $have_lwp = yes ; then
16241 cat >> confdefs.h <<\EOF
16245 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16246 ol_link_threads=lwp
16248 if test $ol_with_yielding_select = auto ; then
16249 ol_with_yielding_select=no
16255 if test $ol_with_yielding_select = yes ; then
16256 cat >> confdefs.h <<\EOF
16257 #define HAVE_YIELDING_SELECT 1
16262 if test $ol_with_threads = manual ; then
16263 ol_link_threads=yes
16265 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16267 for ac_hdr in pthread.h sched.h
16269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16271 echo "configure:16272: checking for $ac_hdr" >&5
16272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16273 echo $ac_n "(cached) $ac_c" 1>&6
16275 cat > conftest.$ac_ext <<EOF
16276 #line 16277 "configure"
16277 #include "confdefs.h"
16280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16281 { (eval echo configure:16282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16283 if test -z "$ac_err"; then
16285 eval "ac_cv_header_$ac_safe=yes"
16288 echo "configure: failed program was:" >&5
16289 cat conftest.$ac_ext >&5
16291 eval "ac_cv_header_$ac_safe=no"
16295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16296 echo "$ac_t""yes" 1>&6
16297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16298 cat >> confdefs.h <<EOF
16299 #define $ac_tr_hdr 1
16303 echo "$ac_t""no" 1>&6
16307 for ac_func in sched_yield pthread_yield
16309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16310 echo "configure:16311: checking for $ac_func" >&5
16311 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16312 echo $ac_n "(cached) $ac_c" 1>&6
16314 cat > conftest.$ac_ext <<EOF
16315 #line 16316 "configure"
16316 #include "confdefs.h"
16317 /* System header to define __stub macros and hopefully few prototypes,
16318 which can conflict with char $ac_func(); below. */
16319 #include <assert.h>
16320 /* Override any gcc2 internal prototype to avoid an error. */
16321 /* We use char because int might match the return type of a gcc2
16322 builtin and then its argument prototype would still apply. */
16328 /* The GNU C library defines this for functions which it implements
16329 to always fail with ENOSYS. Some functions are actually named
16330 something starting with __ and the normal name is an alias. */
16331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16339 if { (eval echo configure:16340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16341 eval "ac_cv_func_$ac_func=yes"
16343 echo "configure: failed program was:" >&5
16344 cat conftest.$ac_ext >&5
16346 eval "ac_cv_func_$ac_func=no"
16351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16352 echo "$ac_t""yes" 1>&6
16353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16354 cat >> confdefs.h <<EOF
16355 #define $ac_tr_func 1
16359 echo "$ac_t""no" 1>&6
16364 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16365 echo "configure:16366: checking for LinuxThreads pthread.h" >&5
16366 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16367 echo $ac_n "(cached) $ac_c" 1>&6
16369 cat > conftest.$ac_ext <<EOF
16370 #line 16371 "configure"
16371 #include "confdefs.h"
16372 #include <pthread.h>
16374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16375 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16377 ol_cv_header_linux_threads=yes
16380 ol_cv_header_linux_threads=no
16387 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16388 if test $ol_cv_header_linux_threads = yes; then
16389 cat >> confdefs.h <<\EOF
16390 #define HAVE_LINUX_THREADS 1
16396 for ac_hdr in mach/cthreads.h
16398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16400 echo "configure:16401: checking for $ac_hdr" >&5
16401 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16402 echo $ac_n "(cached) $ac_c" 1>&6
16404 cat > conftest.$ac_ext <<EOF
16405 #line 16406 "configure"
16406 #include "confdefs.h"
16409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16410 { (eval echo configure:16411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16412 if test -z "$ac_err"; then
16414 eval "ac_cv_header_$ac_safe=yes"
16417 echo "configure: failed program was:" >&5
16418 cat conftest.$ac_ext >&5
16420 eval "ac_cv_header_$ac_safe=no"
16424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16425 echo "$ac_t""yes" 1>&6
16426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16427 cat >> confdefs.h <<EOF
16428 #define $ac_tr_hdr 1
16432 echo "$ac_t""no" 1>&6
16436 for ac_hdr in lwp/lwp.h
16438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16440 echo "configure:16441: checking for $ac_hdr" >&5
16441 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16442 echo $ac_n "(cached) $ac_c" 1>&6
16444 cat > conftest.$ac_ext <<EOF
16445 #line 16446 "configure"
16446 #include "confdefs.h"
16449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16450 { (eval echo configure:16451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16452 if test -z "$ac_err"; then
16454 eval "ac_cv_header_$ac_safe=yes"
16457 echo "configure: failed program was:" >&5
16458 cat conftest.$ac_ext >&5
16460 eval "ac_cv_header_$ac_safe=no"
16464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16465 echo "$ac_t""yes" 1>&6
16466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16467 cat >> confdefs.h <<EOF
16468 #define $ac_tr_hdr 1
16472 echo "$ac_t""no" 1>&6
16476 for ac_hdr in thread.h synch.h
16478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16480 echo "configure:16481: checking for $ac_hdr" >&5
16481 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16482 echo $ac_n "(cached) $ac_c" 1>&6
16484 cat > conftest.$ac_ext <<EOF
16485 #line 16486 "configure"
16486 #include "confdefs.h"
16489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16490 { (eval echo configure:16491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16492 if test -z "$ac_err"; then
16494 eval "ac_cv_header_$ac_safe=yes"
16497 echo "configure: failed program was:" >&5
16498 cat conftest.$ac_ext >&5
16500 eval "ac_cv_header_$ac_safe=no"
16504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16507 cat >> confdefs.h <<EOF
16508 #define $ac_tr_hdr 1
16512 echo "$ac_t""no" 1>&6
16518 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16519 cat >> confdefs.h <<\EOF
16520 #define REENTRANT 1
16523 cat >> confdefs.h <<\EOF
16524 #define _REENTRANT 1
16527 cat >> confdefs.h <<\EOF
16528 #define THREAD_SAFE 1
16531 cat >> confdefs.h <<\EOF
16532 #define _THREAD_SAFE 1
16535 cat >> confdefs.h <<\EOF
16536 #define THREADSAFE 1
16539 cat >> confdefs.h <<\EOF
16540 #define _THREADSAFE 1
16543 cat >> confdefs.h <<\EOF
16544 #define _SGI_MP_SOURCE 1
16548 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16549 echo "configure:16550: checking for thread specific errno" >&5
16550 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16551 echo $ac_n "(cached) $ac_c" 1>&6
16554 cat > conftest.$ac_ext <<EOF
16555 #line 16556 "configure"
16556 #include "confdefs.h"
16562 if { (eval echo configure:16563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16564 ol_cv_errno_thread_specific=yes
16566 echo "configure: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16569 ol_cv_errno_thread_specific=no
16575 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16577 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16578 echo "configure:16579: checking for thread specific h_errno" >&5
16579 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16580 echo $ac_n "(cached) $ac_c" 1>&6
16583 cat > conftest.$ac_ext <<EOF
16584 #line 16585 "configure"
16585 #include "confdefs.h"
16591 if { (eval echo configure:16592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16593 ol_cv_h_errno_thread_specific=yes
16595 echo "configure: failed program was:" >&5
16596 cat conftest.$ac_ext >&5
16598 ol_cv_h_errno_thread_specific=no
16604 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16606 if test $ol_cv_errno_thread_specific != yes \
16607 -o $ol_cv_h_errno_thread_specific != yes ; then
16608 LIBS="$LTHREAD_LIBS $LIBS"
16614 if test $ol_link_threads = no ; then
16615 if test $ol_with_threads = yes ; then
16616 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16619 if test $ol_with_threads = auto ; then
16620 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16624 cat >> confdefs.h <<\EOF
16625 #define NO_THREADS 1
16631 if test $ol_link_threads != no ; then
16632 cat >> confdefs.h <<\EOF
16633 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16640 if test $ol_with_ldbm_api = auto \
16641 -o $ol_with_ldbm_api = berkeley \
16642 -o $ol_with_ldbm_api = bcompat ; then
16644 if test $ol_with_ldbm_api = bcompat; then \
16645 for ac_hdr in db_185.h db.h
16647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16649 echo "configure:16650: checking for $ac_hdr" >&5
16650 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16651 echo $ac_n "(cached) $ac_c" 1>&6
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16659 { (eval echo configure:16660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16661 if test -z "$ac_err"; then
16663 eval "ac_cv_header_$ac_safe=yes"
16666 echo "configure: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16669 eval "ac_cv_header_$ac_safe=no"
16673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16674 echo "$ac_t""yes" 1>&6
16675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16676 cat >> confdefs.h <<EOF
16677 #define $ac_tr_hdr 1
16681 echo "$ac_t""no" 1>&6
16685 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16686 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16687 echo "configure:16688: checking if Berkeley DB header compatibility" >&5
16688 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16689 echo $ac_n "(cached) $ac_c" 1>&6
16692 cat > conftest.$ac_ext <<EOF
16693 #line 16694 "configure"
16694 #include "confdefs.h"
16697 # include <db_185.h>
16702 /* this check could be improved */
16703 #ifndef DB_VERSION_MAJOR
16704 # define DB_VERSION_MAJOR 1
16707 #if DB_VERSION_MAJOR == 1
16712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16713 egrep "__db_version_1" >/dev/null 2>&1; then
16715 ol_cv_header_db1=yes
16718 ol_cv_header_db1=no
16724 echo "$ac_t""$ol_cv_header_db1" 1>&6
16726 if test $ol_cv_header_db1 = yes ; then
16728 if test $ol_cv_lib_db = no ; then
16729 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16730 echo "configure:16731: checking for Berkeley DB link (default)" >&5
16731 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16732 echo $ac_n "(cached) $ac_c" 1>&6
16737 LIBS="$ol_DB_LIB $LIBS"
16739 cat > conftest.$ac_ext <<EOF
16740 #line 16741 "configure"
16741 #include "confdefs.h"
16743 #ifdef HAVE_DB_185_H
16744 # include <db_185.h>
16749 #ifndef DB_VERSION_MAJOR
16750 # define DB_VERSION_MAJOR 1
16754 #define NULL ((void*)0)
16759 #if DB_VERSION_MAJOR > 1
16762 int major, minor, patch;
16764 version = db_version( &major, &minor, &patch );
16766 if( major != DB_VERSION_MAJOR ||
16767 minor < DB_VERSION_MINOR )
16769 printf("Berkeley DB version mismatch\n"
16770 "\texpected: %s\n\tgot: %s\n",
16771 DB_VERSION_STRING, version);
16777 #if DB_VERSION_MAJOR > 2
16778 db_env_create( NULL, 0 );
16779 #elif DB_VERSION_MAJOR > 1
16780 db_appexit( NULL );
16782 (void) dbopen( NULL, 0, 0, 0, NULL);
16787 if { (eval echo configure:16788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16791 echo "configure: failed program was:" >&5
16792 cat conftest.$ac_ext >&5
16802 echo "$ac_t""$ol_cv_db_none" 1>&6
16804 if test $ol_cv_db_none = yes ; then
16809 if test $ol_cv_lib_db = no ; then
16810 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16811 echo "configure:16812: checking for Berkeley DB link (-ldb4)" >&5
16812 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16813 echo $ac_n "(cached) $ac_c" 1>&6
16818 LIBS="$ol_DB_LIB $LIBS"
16820 cat > conftest.$ac_ext <<EOF
16821 #line 16822 "configure"
16822 #include "confdefs.h"
16824 #ifdef HAVE_DB_185_H
16825 # include <db_185.h>
16830 #ifndef DB_VERSION_MAJOR
16831 # define DB_VERSION_MAJOR 1
16835 #define NULL ((void*)0)
16840 #if DB_VERSION_MAJOR > 1
16843 int major, minor, patch;
16845 version = db_version( &major, &minor, &patch );
16847 if( major != DB_VERSION_MAJOR ||
16848 minor < DB_VERSION_MINOR )
16850 printf("Berkeley DB version mismatch\n"
16851 "\texpected: %s\n\tgot: %s\n",
16852 DB_VERSION_STRING, version);
16858 #if DB_VERSION_MAJOR > 2
16859 db_env_create( NULL, 0 );
16860 #elif DB_VERSION_MAJOR > 1
16861 db_appexit( NULL );
16863 (void) dbopen( NULL, 0, 0, 0, NULL);
16868 if { (eval echo configure:16869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16872 echo "configure: failed program was:" >&5
16873 cat conftest.$ac_ext >&5
16883 echo "$ac_t""$ol_cv_db_db4" 1>&6
16885 if test $ol_cv_db_db4 = yes ; then
16890 if test $ol_cv_lib_db = no ; then
16891 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16892 echo "configure:16893: checking for Berkeley DB link (-ldb-4)" >&5
16893 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16894 echo $ac_n "(cached) $ac_c" 1>&6
16899 LIBS="$ol_DB_LIB $LIBS"
16901 cat > conftest.$ac_ext <<EOF
16902 #line 16903 "configure"
16903 #include "confdefs.h"
16905 #ifdef HAVE_DB_185_H
16906 # include <db_185.h>
16911 #ifndef DB_VERSION_MAJOR
16912 # define DB_VERSION_MAJOR 1
16916 #define NULL ((void*)0)
16921 #if DB_VERSION_MAJOR > 1
16924 int major, minor, patch;
16926 version = db_version( &major, &minor, &patch );
16928 if( major != DB_VERSION_MAJOR ||
16929 minor < DB_VERSION_MINOR )
16931 printf("Berkeley DB version mismatch\n"
16932 "\texpected: %s\n\tgot: %s\n",
16933 DB_VERSION_STRING, version);
16939 #if DB_VERSION_MAJOR > 2
16940 db_env_create( NULL, 0 );
16941 #elif DB_VERSION_MAJOR > 1
16942 db_appexit( NULL );
16944 (void) dbopen( NULL, 0, 0, 0, NULL);
16949 if { (eval echo configure:16950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16953 echo "configure: failed program was:" >&5
16954 cat conftest.$ac_ext >&5
16964 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16966 if test $ol_cv_db_db_4 = yes ; then
16967 ol_cv_lib_db=-ldb-4
16971 if test $ol_cv_lib_db = no ; then
16972 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16973 echo "configure:16974: checking for Berkeley DB link (-ldb)" >&5
16974 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16975 echo $ac_n "(cached) $ac_c" 1>&6
16980 LIBS="$ol_DB_LIB $LIBS"
16982 cat > conftest.$ac_ext <<EOF
16983 #line 16984 "configure"
16984 #include "confdefs.h"
16986 #ifdef HAVE_DB_185_H
16987 # include <db_185.h>
16992 #ifndef DB_VERSION_MAJOR
16993 # define DB_VERSION_MAJOR 1
16997 #define NULL ((void*)0)
17002 #if DB_VERSION_MAJOR > 1
17005 int major, minor, patch;
17007 version = db_version( &major, &minor, &patch );
17009 if( major != DB_VERSION_MAJOR ||
17010 minor < DB_VERSION_MINOR )
17012 printf("Berkeley DB version mismatch\n"
17013 "\texpected: %s\n\tgot: %s\n",
17014 DB_VERSION_STRING, version);
17020 #if DB_VERSION_MAJOR > 2
17021 db_env_create( NULL, 0 );
17022 #elif DB_VERSION_MAJOR > 1
17023 db_appexit( NULL );
17025 (void) dbopen( NULL, 0, 0, 0, NULL);
17030 if { (eval echo configure:17031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17034 echo "configure: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17045 echo "$ac_t""$ol_cv_db_db" 1>&6
17047 if test $ol_cv_db_db = yes ; then
17052 if test $ol_cv_lib_db = no ; then
17053 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17054 echo "configure:17055: checking for Berkeley DB link (-ldb3)" >&5
17055 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17056 echo $ac_n "(cached) $ac_c" 1>&6
17061 LIBS="$ol_DB_LIB $LIBS"
17063 cat > conftest.$ac_ext <<EOF
17064 #line 17065 "configure"
17065 #include "confdefs.h"
17067 #ifdef HAVE_DB_185_H
17068 # include <db_185.h>
17073 #ifndef DB_VERSION_MAJOR
17074 # define DB_VERSION_MAJOR 1
17078 #define NULL ((void*)0)
17083 #if DB_VERSION_MAJOR > 1
17086 int major, minor, patch;
17088 version = db_version( &major, &minor, &patch );
17090 if( major != DB_VERSION_MAJOR ||
17091 minor < DB_VERSION_MINOR )
17093 printf("Berkeley DB version mismatch\n"
17094 "\texpected: %s\n\tgot: %s\n",
17095 DB_VERSION_STRING, version);
17101 #if DB_VERSION_MAJOR > 2
17102 db_env_create( NULL, 0 );
17103 #elif DB_VERSION_MAJOR > 1
17104 db_appexit( NULL );
17106 (void) dbopen( NULL, 0, 0, 0, NULL);
17111 if { (eval echo configure:17112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17115 echo "configure: failed program was:" >&5
17116 cat conftest.$ac_ext >&5
17126 echo "$ac_t""$ol_cv_db_db3" 1>&6
17128 if test $ol_cv_db_db3 = yes ; then
17133 if test $ol_cv_lib_db = no ; then
17134 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17135 echo "configure:17136: checking for Berkeley DB link (-ldb-3)" >&5
17136 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17137 echo $ac_n "(cached) $ac_c" 1>&6
17142 LIBS="$ol_DB_LIB $LIBS"
17144 cat > conftest.$ac_ext <<EOF
17145 #line 17146 "configure"
17146 #include "confdefs.h"
17148 #ifdef HAVE_DB_185_H
17149 # include <db_185.h>
17154 #ifndef DB_VERSION_MAJOR
17155 # define DB_VERSION_MAJOR 1
17159 #define NULL ((void*)0)
17164 #if DB_VERSION_MAJOR > 1
17167 int major, minor, patch;
17169 version = db_version( &major, &minor, &patch );
17171 if( major != DB_VERSION_MAJOR ||
17172 minor < DB_VERSION_MINOR )
17174 printf("Berkeley DB version mismatch\n"
17175 "\texpected: %s\n\tgot: %s\n",
17176 DB_VERSION_STRING, version);
17182 #if DB_VERSION_MAJOR > 2
17183 db_env_create( NULL, 0 );
17184 #elif DB_VERSION_MAJOR > 1
17185 db_appexit( NULL );
17187 (void) dbopen( NULL, 0, 0, 0, NULL);
17192 if { (eval echo configure:17193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17196 echo "configure: failed program was:" >&5
17197 cat conftest.$ac_ext >&5
17207 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17209 if test $ol_cv_db_db_3 = yes ; then
17210 ol_cv_lib_db=-ldb-3
17214 if test $ol_cv_lib_db = no ; then
17215 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17216 echo "configure:17217: checking for Berkeley DB link (-ldb2)" >&5
17217 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17218 echo $ac_n "(cached) $ac_c" 1>&6
17223 LIBS="$ol_DB_LIB $LIBS"
17225 cat > conftest.$ac_ext <<EOF
17226 #line 17227 "configure"
17227 #include "confdefs.h"
17229 #ifdef HAVE_DB_185_H
17230 # include <db_185.h>
17235 #ifndef DB_VERSION_MAJOR
17236 # define DB_VERSION_MAJOR 1
17240 #define NULL ((void*)0)
17245 #if DB_VERSION_MAJOR > 1
17248 int major, minor, patch;
17250 version = db_version( &major, &minor, &patch );
17252 if( major != DB_VERSION_MAJOR ||
17253 minor < DB_VERSION_MINOR )
17255 printf("Berkeley DB version mismatch\n"
17256 "\texpected: %s\n\tgot: %s\n",
17257 DB_VERSION_STRING, version);
17263 #if DB_VERSION_MAJOR > 2
17264 db_env_create( NULL, 0 );
17265 #elif DB_VERSION_MAJOR > 1
17266 db_appexit( NULL );
17268 (void) dbopen( NULL, 0, 0, 0, NULL);
17273 if { (eval echo configure:17274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17277 echo "configure: failed program was:" >&5
17278 cat conftest.$ac_ext >&5
17288 echo "$ac_t""$ol_cv_db_db2" 1>&6
17290 if test $ol_cv_db_db2 = yes ; then
17295 if test $ol_cv_lib_db = no ; then
17296 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17297 echo "configure:17298: checking for Berkeley DB link (-ldb-2)" >&5
17298 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17299 echo $ac_n "(cached) $ac_c" 1>&6
17304 LIBS="$ol_DB_LIB $LIBS"
17306 cat > conftest.$ac_ext <<EOF
17307 #line 17308 "configure"
17308 #include "confdefs.h"
17310 #ifdef HAVE_DB_185_H
17311 # include <db_185.h>
17316 #ifndef DB_VERSION_MAJOR
17317 # define DB_VERSION_MAJOR 1
17321 #define NULL ((void*)0)
17326 #if DB_VERSION_MAJOR > 1
17329 int major, minor, patch;
17331 version = db_version( &major, &minor, &patch );
17333 if( major != DB_VERSION_MAJOR ||
17334 minor < DB_VERSION_MINOR )
17336 printf("Berkeley DB version mismatch\n"
17337 "\texpected: %s\n\tgot: %s\n",
17338 DB_VERSION_STRING, version);
17344 #if DB_VERSION_MAJOR > 2
17345 db_env_create( NULL, 0 );
17346 #elif DB_VERSION_MAJOR > 1
17347 db_appexit( NULL );
17349 (void) dbopen( NULL, 0, 0, 0, NULL);
17354 if { (eval echo configure:17355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17358 echo "configure: failed program was:" >&5
17359 cat conftest.$ac_ext >&5
17369 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17371 if test $ol_cv_db_db_2 = yes ; then
17372 ol_cv_lib_db=-ldb-2
17376 if test $ol_cv_lib_db = no ; then
17377 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17378 echo "configure:17379: checking for Berkeley DB link (-ldb1)" >&5
17379 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17380 echo $ac_n "(cached) $ac_c" 1>&6
17385 LIBS="$ol_DB_LIB $LIBS"
17387 cat > conftest.$ac_ext <<EOF
17388 #line 17389 "configure"
17389 #include "confdefs.h"
17391 #ifdef HAVE_DB_185_H
17392 # include <db_185.h>
17397 #ifndef DB_VERSION_MAJOR
17398 # define DB_VERSION_MAJOR 1
17402 #define NULL ((void*)0)
17407 #if DB_VERSION_MAJOR > 1
17410 int major, minor, patch;
17412 version = db_version( &major, &minor, &patch );
17414 if( major != DB_VERSION_MAJOR ||
17415 minor < DB_VERSION_MINOR )
17417 printf("Berkeley DB version mismatch\n"
17418 "\texpected: %s\n\tgot: %s\n",
17419 DB_VERSION_STRING, version);
17425 #if DB_VERSION_MAJOR > 2
17426 db_env_create( NULL, 0 );
17427 #elif DB_VERSION_MAJOR > 1
17428 db_appexit( NULL );
17430 (void) dbopen( NULL, 0, 0, 0, NULL);
17435 if { (eval echo configure:17436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17439 echo "configure: failed program was:" >&5
17440 cat conftest.$ac_ext >&5
17450 echo "$ac_t""$ol_cv_db_db1" 1>&6
17452 if test $ol_cv_db_db1 = yes ; then
17457 if test $ol_cv_lib_db = no ; then
17458 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17459 echo "configure:17460: checking for Berkeley DB link (-ldb-1)" >&5
17460 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17461 echo $ac_n "(cached) $ac_c" 1>&6
17466 LIBS="$ol_DB_LIB $LIBS"
17468 cat > conftest.$ac_ext <<EOF
17469 #line 17470 "configure"
17470 #include "confdefs.h"
17472 #ifdef HAVE_DB_185_H
17473 # include <db_185.h>
17478 #ifndef DB_VERSION_MAJOR
17479 # define DB_VERSION_MAJOR 1
17483 #define NULL ((void*)0)
17488 #if DB_VERSION_MAJOR > 1
17491 int major, minor, patch;
17493 version = db_version( &major, &minor, &patch );
17495 if( major != DB_VERSION_MAJOR ||
17496 minor < DB_VERSION_MINOR )
17498 printf("Berkeley DB version mismatch\n"
17499 "\texpected: %s\n\tgot: %s\n",
17500 DB_VERSION_STRING, version);
17506 #if DB_VERSION_MAJOR > 2
17507 db_env_create( NULL, 0 );
17508 #elif DB_VERSION_MAJOR > 1
17509 db_appexit( NULL );
17511 (void) dbopen( NULL, 0, 0, 0, NULL);
17516 if { (eval echo configure:17517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17520 echo "configure: failed program was:" >&5
17521 cat conftest.$ac_ext >&5
17531 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17533 if test $ol_cv_db_db_1 = yes ; then
17534 ol_cv_lib_db=-ldb-1
17539 if test "$ol_cv_lib_db" != no ; then
17540 ol_cv_berkeley_db=yes
17546 ol_cv_berkeley_db=no
17549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17551 echo "configure:17552: checking for $ac_hdr" >&5
17552 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17553 echo $ac_n "(cached) $ac_c" 1>&6
17555 cat > conftest.$ac_ext <<EOF
17556 #line 17557 "configure"
17557 #include "confdefs.h"
17560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17561 { (eval echo configure:17562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17563 if test -z "$ac_err"; then
17565 eval "ac_cv_header_$ac_safe=yes"
17568 echo "configure: failed program was:" >&5
17569 cat conftest.$ac_ext >&5
17571 eval "ac_cv_header_$ac_safe=no"
17575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17576 echo "$ac_t""yes" 1>&6
17577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17578 cat >> confdefs.h <<EOF
17579 #define $ac_tr_hdr 1
17583 echo "$ac_t""no" 1>&6
17587 if test $ac_cv_header_db_h = yes; then
17589 if test $ol_cv_lib_db = no ; then
17590 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17591 echo "configure:17592: checking for Berkeley DB link (default)" >&5
17592 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17593 echo $ac_n "(cached) $ac_c" 1>&6
17598 LIBS="$ol_DB_LIB $LIBS"
17600 cat > conftest.$ac_ext <<EOF
17601 #line 17602 "configure"
17602 #include "confdefs.h"
17604 #ifdef HAVE_DB_185_H
17605 # include <db_185.h>
17610 #ifndef DB_VERSION_MAJOR
17611 # define DB_VERSION_MAJOR 1
17615 #define NULL ((void*)0)
17620 #if DB_VERSION_MAJOR > 1
17623 int major, minor, patch;
17625 version = db_version( &major, &minor, &patch );
17627 if( major != DB_VERSION_MAJOR ||
17628 minor < DB_VERSION_MINOR )
17630 printf("Berkeley DB version mismatch\n"
17631 "\texpected: %s\n\tgot: %s\n",
17632 DB_VERSION_STRING, version);
17638 #if DB_VERSION_MAJOR > 2
17639 db_env_create( NULL, 0 );
17640 #elif DB_VERSION_MAJOR > 1
17641 db_appexit( NULL );
17643 (void) dbopen( NULL, 0, 0, 0, NULL);
17648 if { (eval echo configure:17649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17652 echo "configure: failed program was:" >&5
17653 cat conftest.$ac_ext >&5
17663 echo "$ac_t""$ol_cv_db_none" 1>&6
17665 if test $ol_cv_db_none = yes ; then
17670 if test $ol_cv_lib_db = no ; then
17671 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17672 echo "configure:17673: checking for Berkeley DB link (-ldb4)" >&5
17673 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17674 echo $ac_n "(cached) $ac_c" 1>&6
17679 LIBS="$ol_DB_LIB $LIBS"
17681 cat > conftest.$ac_ext <<EOF
17682 #line 17683 "configure"
17683 #include "confdefs.h"
17685 #ifdef HAVE_DB_185_H
17686 # include <db_185.h>
17691 #ifndef DB_VERSION_MAJOR
17692 # define DB_VERSION_MAJOR 1
17696 #define NULL ((void*)0)
17701 #if DB_VERSION_MAJOR > 1
17704 int major, minor, patch;
17706 version = db_version( &major, &minor, &patch );
17708 if( major != DB_VERSION_MAJOR ||
17709 minor < DB_VERSION_MINOR )
17711 printf("Berkeley DB version mismatch\n"
17712 "\texpected: %s\n\tgot: %s\n",
17713 DB_VERSION_STRING, version);
17719 #if DB_VERSION_MAJOR > 2
17720 db_env_create( NULL, 0 );
17721 #elif DB_VERSION_MAJOR > 1
17722 db_appexit( NULL );
17724 (void) dbopen( NULL, 0, 0, 0, NULL);
17729 if { (eval echo configure:17730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17733 echo "configure: failed program was:" >&5
17734 cat conftest.$ac_ext >&5
17744 echo "$ac_t""$ol_cv_db_db4" 1>&6
17746 if test $ol_cv_db_db4 = yes ; then
17751 if test $ol_cv_lib_db = no ; then
17752 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17753 echo "configure:17754: checking for Berkeley DB link (-ldb-4)" >&5
17754 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17755 echo $ac_n "(cached) $ac_c" 1>&6
17760 LIBS="$ol_DB_LIB $LIBS"
17762 cat > conftest.$ac_ext <<EOF
17763 #line 17764 "configure"
17764 #include "confdefs.h"
17766 #ifdef HAVE_DB_185_H
17767 # include <db_185.h>
17772 #ifndef DB_VERSION_MAJOR
17773 # define DB_VERSION_MAJOR 1
17777 #define NULL ((void*)0)
17782 #if DB_VERSION_MAJOR > 1
17785 int major, minor, patch;
17787 version = db_version( &major, &minor, &patch );
17789 if( major != DB_VERSION_MAJOR ||
17790 minor < DB_VERSION_MINOR )
17792 printf("Berkeley DB version mismatch\n"
17793 "\texpected: %s\n\tgot: %s\n",
17794 DB_VERSION_STRING, version);
17800 #if DB_VERSION_MAJOR > 2
17801 db_env_create( NULL, 0 );
17802 #elif DB_VERSION_MAJOR > 1
17803 db_appexit( NULL );
17805 (void) dbopen( NULL, 0, 0, 0, NULL);
17810 if { (eval echo configure:17811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17814 echo "configure: failed program was:" >&5
17815 cat conftest.$ac_ext >&5
17825 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17827 if test $ol_cv_db_db_4 = yes ; then
17828 ol_cv_lib_db=-ldb-4
17832 if test $ol_cv_lib_db = no ; then
17833 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17834 echo "configure:17835: checking for Berkeley DB link (-ldb)" >&5
17835 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17836 echo $ac_n "(cached) $ac_c" 1>&6
17841 LIBS="$ol_DB_LIB $LIBS"
17843 cat > conftest.$ac_ext <<EOF
17844 #line 17845 "configure"
17845 #include "confdefs.h"
17847 #ifdef HAVE_DB_185_H
17848 # include <db_185.h>
17853 #ifndef DB_VERSION_MAJOR
17854 # define DB_VERSION_MAJOR 1
17858 #define NULL ((void*)0)
17863 #if DB_VERSION_MAJOR > 1
17866 int major, minor, patch;
17868 version = db_version( &major, &minor, &patch );
17870 if( major != DB_VERSION_MAJOR ||
17871 minor < DB_VERSION_MINOR )
17873 printf("Berkeley DB version mismatch\n"
17874 "\texpected: %s\n\tgot: %s\n",
17875 DB_VERSION_STRING, version);
17881 #if DB_VERSION_MAJOR > 2
17882 db_env_create( NULL, 0 );
17883 #elif DB_VERSION_MAJOR > 1
17884 db_appexit( NULL );
17886 (void) dbopen( NULL, 0, 0, 0, NULL);
17891 if { (eval echo configure:17892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17895 echo "configure: failed program was:" >&5
17896 cat conftest.$ac_ext >&5
17906 echo "$ac_t""$ol_cv_db_db" 1>&6
17908 if test $ol_cv_db_db = yes ; then
17913 if test $ol_cv_lib_db = no ; then
17914 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17915 echo "configure:17916: checking for Berkeley DB link (-ldb3)" >&5
17916 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17917 echo $ac_n "(cached) $ac_c" 1>&6
17922 LIBS="$ol_DB_LIB $LIBS"
17924 cat > conftest.$ac_ext <<EOF
17925 #line 17926 "configure"
17926 #include "confdefs.h"
17928 #ifdef HAVE_DB_185_H
17929 # include <db_185.h>
17934 #ifndef DB_VERSION_MAJOR
17935 # define DB_VERSION_MAJOR 1
17939 #define NULL ((void*)0)
17944 #if DB_VERSION_MAJOR > 1
17947 int major, minor, patch;
17949 version = db_version( &major, &minor, &patch );
17951 if( major != DB_VERSION_MAJOR ||
17952 minor < DB_VERSION_MINOR )
17954 printf("Berkeley DB version mismatch\n"
17955 "\texpected: %s\n\tgot: %s\n",
17956 DB_VERSION_STRING, version);
17962 #if DB_VERSION_MAJOR > 2
17963 db_env_create( NULL, 0 );
17964 #elif DB_VERSION_MAJOR > 1
17965 db_appexit( NULL );
17967 (void) dbopen( NULL, 0, 0, 0, NULL);
17972 if { (eval echo configure:17973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17976 echo "configure: failed program was:" >&5
17977 cat conftest.$ac_ext >&5
17987 echo "$ac_t""$ol_cv_db_db3" 1>&6
17989 if test $ol_cv_db_db3 = yes ; then
17994 if test $ol_cv_lib_db = no ; then
17995 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17996 echo "configure:17997: checking for Berkeley DB link (-ldb-3)" >&5
17997 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17998 echo $ac_n "(cached) $ac_c" 1>&6
18003 LIBS="$ol_DB_LIB $LIBS"
18005 cat > conftest.$ac_ext <<EOF
18006 #line 18007 "configure"
18007 #include "confdefs.h"
18009 #ifdef HAVE_DB_185_H
18010 # include <db_185.h>
18015 #ifndef DB_VERSION_MAJOR
18016 # define DB_VERSION_MAJOR 1
18020 #define NULL ((void*)0)
18025 #if DB_VERSION_MAJOR > 1
18028 int major, minor, patch;
18030 version = db_version( &major, &minor, &patch );
18032 if( major != DB_VERSION_MAJOR ||
18033 minor < DB_VERSION_MINOR )
18035 printf("Berkeley DB version mismatch\n"
18036 "\texpected: %s\n\tgot: %s\n",
18037 DB_VERSION_STRING, version);
18043 #if DB_VERSION_MAJOR > 2
18044 db_env_create( NULL, 0 );
18045 #elif DB_VERSION_MAJOR > 1
18046 db_appexit( NULL );
18048 (void) dbopen( NULL, 0, 0, 0, NULL);
18053 if { (eval echo configure:18054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18057 echo "configure: failed program was:" >&5
18058 cat conftest.$ac_ext >&5
18068 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18070 if test $ol_cv_db_db_3 = yes ; then
18071 ol_cv_lib_db=-ldb-3
18075 if test $ol_cv_lib_db = no ; then
18076 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18077 echo "configure:18078: checking for Berkeley DB link (-ldb2)" >&5
18078 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18079 echo $ac_n "(cached) $ac_c" 1>&6
18084 LIBS="$ol_DB_LIB $LIBS"
18086 cat > conftest.$ac_ext <<EOF
18087 #line 18088 "configure"
18088 #include "confdefs.h"
18090 #ifdef HAVE_DB_185_H
18091 # include <db_185.h>
18096 #ifndef DB_VERSION_MAJOR
18097 # define DB_VERSION_MAJOR 1
18101 #define NULL ((void*)0)
18106 #if DB_VERSION_MAJOR > 1
18109 int major, minor, patch;
18111 version = db_version( &major, &minor, &patch );
18113 if( major != DB_VERSION_MAJOR ||
18114 minor < DB_VERSION_MINOR )
18116 printf("Berkeley DB version mismatch\n"
18117 "\texpected: %s\n\tgot: %s\n",
18118 DB_VERSION_STRING, version);
18124 #if DB_VERSION_MAJOR > 2
18125 db_env_create( NULL, 0 );
18126 #elif DB_VERSION_MAJOR > 1
18127 db_appexit( NULL );
18129 (void) dbopen( NULL, 0, 0, 0, NULL);
18134 if { (eval echo configure:18135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18138 echo "configure: failed program was:" >&5
18139 cat conftest.$ac_ext >&5
18149 echo "$ac_t""$ol_cv_db_db2" 1>&6
18151 if test $ol_cv_db_db2 = yes ; then
18156 if test $ol_cv_lib_db = no ; then
18157 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18158 echo "configure:18159: checking for Berkeley DB link (-ldb-2)" >&5
18159 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18160 echo $ac_n "(cached) $ac_c" 1>&6
18165 LIBS="$ol_DB_LIB $LIBS"
18167 cat > conftest.$ac_ext <<EOF
18168 #line 18169 "configure"
18169 #include "confdefs.h"
18171 #ifdef HAVE_DB_185_H
18172 # include <db_185.h>
18177 #ifndef DB_VERSION_MAJOR
18178 # define DB_VERSION_MAJOR 1
18182 #define NULL ((void*)0)
18187 #if DB_VERSION_MAJOR > 1
18190 int major, minor, patch;
18192 version = db_version( &major, &minor, &patch );
18194 if( major != DB_VERSION_MAJOR ||
18195 minor < DB_VERSION_MINOR )
18197 printf("Berkeley DB version mismatch\n"
18198 "\texpected: %s\n\tgot: %s\n",
18199 DB_VERSION_STRING, version);
18205 #if DB_VERSION_MAJOR > 2
18206 db_env_create( NULL, 0 );
18207 #elif DB_VERSION_MAJOR > 1
18208 db_appexit( NULL );
18210 (void) dbopen( NULL, 0, 0, 0, NULL);
18215 if { (eval echo configure:18216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18219 echo "configure: failed program was:" >&5
18220 cat conftest.$ac_ext >&5
18230 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18232 if test $ol_cv_db_db_2 = yes ; then
18233 ol_cv_lib_db=-ldb-2
18237 if test $ol_cv_lib_db = no ; then
18238 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18239 echo "configure:18240: checking for Berkeley DB link (-ldb1)" >&5
18240 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18241 echo $ac_n "(cached) $ac_c" 1>&6
18246 LIBS="$ol_DB_LIB $LIBS"
18248 cat > conftest.$ac_ext <<EOF
18249 #line 18250 "configure"
18250 #include "confdefs.h"
18252 #ifdef HAVE_DB_185_H
18253 # include <db_185.h>
18258 #ifndef DB_VERSION_MAJOR
18259 # define DB_VERSION_MAJOR 1
18263 #define NULL ((void*)0)
18268 #if DB_VERSION_MAJOR > 1
18271 int major, minor, patch;
18273 version = db_version( &major, &minor, &patch );
18275 if( major != DB_VERSION_MAJOR ||
18276 minor < DB_VERSION_MINOR )
18278 printf("Berkeley DB version mismatch\n"
18279 "\texpected: %s\n\tgot: %s\n",
18280 DB_VERSION_STRING, version);
18286 #if DB_VERSION_MAJOR > 2
18287 db_env_create( NULL, 0 );
18288 #elif DB_VERSION_MAJOR > 1
18289 db_appexit( NULL );
18291 (void) dbopen( NULL, 0, 0, 0, NULL);
18296 if { (eval echo configure:18297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18300 echo "configure: failed program was:" >&5
18301 cat conftest.$ac_ext >&5
18311 echo "$ac_t""$ol_cv_db_db1" 1>&6
18313 if test $ol_cv_db_db1 = yes ; then
18318 if test $ol_cv_lib_db = no ; then
18319 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18320 echo "configure:18321: checking for Berkeley DB link (-ldb-1)" >&5
18321 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18322 echo $ac_n "(cached) $ac_c" 1>&6
18327 LIBS="$ol_DB_LIB $LIBS"
18329 cat > conftest.$ac_ext <<EOF
18330 #line 18331 "configure"
18331 #include "confdefs.h"
18333 #ifdef HAVE_DB_185_H
18334 # include <db_185.h>
18339 #ifndef DB_VERSION_MAJOR
18340 # define DB_VERSION_MAJOR 1
18344 #define NULL ((void*)0)
18349 #if DB_VERSION_MAJOR > 1
18352 int major, minor, patch;
18354 version = db_version( &major, &minor, &patch );
18356 if( major != DB_VERSION_MAJOR ||
18357 minor < DB_VERSION_MINOR )
18359 printf("Berkeley DB version mismatch\n"
18360 "\texpected: %s\n\tgot: %s\n",
18361 DB_VERSION_STRING, version);
18367 #if DB_VERSION_MAJOR > 2
18368 db_env_create( NULL, 0 );
18369 #elif DB_VERSION_MAJOR > 1
18370 db_appexit( NULL );
18372 (void) dbopen( NULL, 0, 0, 0, NULL);
18377 if { (eval echo configure:18378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18381 echo "configure: failed program was:" >&5
18382 cat conftest.$ac_ext >&5
18392 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18394 if test $ol_cv_db_db_1 = yes ; then
18395 ol_cv_lib_db=-ldb-1
18400 if test "$ol_cv_lib_db" != no ; then
18401 ol_cv_berkeley_db=yes
18402 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18403 echo "configure:18404: checking for Berkeley DB thread support" >&5
18404 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18405 echo $ac_n "(cached) $ac_c" 1>&6
18409 if test $ol_cv_lib_db != yes ; then
18410 LIBS="$ol_cv_lib_db"
18413 if test "$cross_compiling" = yes; then
18414 ol_cv_berkeley_db_thread=cross
18416 cat > conftest.$ac_ext <<EOF
18417 #line 18418 "configure"
18418 #include "confdefs.h"
18420 #ifdef HAVE_DB_185_H
18426 #define NULL ((void *)0)
18431 u_int32_t flags = DB_CREATE |
18437 #if DB_VERSION_MAJOR > 2
18438 DB_ENV *env = NULL;
18440 rc = db_env_create( &env, 0 );
18442 flags |= DB_INIT_MPOOL;
18443 #ifdef DB_MPOOL_PRIVATE
18444 flags |= DB_MPOOL_PRIVATE;
18448 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18452 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18453 rc = env->open( env, NULL, flags, 0 );
18455 rc = env->open( env, NULL, NULL, flags, 0 );
18459 rc = env->close( env, 0 );
18463 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18469 memset( &env, '\0', sizeof(env) );
18471 rc = db_appinit( NULL, NULL, &env, flags );
18474 db_appexit( &env );
18477 unlink("__db_mpool.share");
18478 unlink("__db_lock.share");
18484 if { (eval echo configure:18485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18486 ol_cv_berkeley_db_thread=yes
18488 echo "configure: failed program was:" >&5
18489 cat conftest.$ac_ext >&5
18491 ol_cv_berkeley_db_thread=no
18499 if test $ol_cv_berkeley_db_thread != no ; then
18500 cat >> confdefs.h <<\EOF
18501 #define HAVE_BERKELEY_DB_THREAD 1
18508 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18514 if test $ol_cv_berkeley_db != no ; then
18515 cat >> confdefs.h <<\EOF
18516 #define HAVE_BERKELEY_DB 1
18520 ol_link_ldbm=berkeley
18521 ol_with_ldbm_api=berkeley
18523 if test $ol_with_ldbm_type = hash ; then
18524 cat >> confdefs.h <<\EOF
18525 #define LDBM_USE_DBHASH 1
18529 cat >> confdefs.h <<\EOF
18530 #define LDBM_USE_DBBTREE 1
18535 if test $ol_cv_lib_db != yes ; then
18536 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18541 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18542 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18543 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18544 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18545 echo "configure:18546: checking Berkeley DB version for BDB backend" >&5
18546 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18547 echo $ac_n "(cached) $ac_c" 1>&6
18550 cat > conftest.$ac_ext <<EOF
18551 #line 18552 "configure"
18552 #include "confdefs.h"
18556 /* this check could be improved */
18557 #ifndef DB_VERSION_MAJOR
18558 # define DB_VERSION_MAJOR 1
18561 /* require 4.0 or later */
18562 #if DB_VERSION_MAJOR >= 4
18563 __db_version_compat
18567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18568 egrep "__db_version_compat" >/dev/null 2>&1; then
18570 ol_cv_bdb_compat=yes
18573 ol_cv_bdb_compat=no
18579 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18582 if test $ol_cv_bdb_compat = yes ; then
18584 elif test $ol_enable_bdb = yes ; then
18585 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18591 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18592 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18593 ol_with_ldbm_api=none
18596 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18597 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18598 echo "configure:18599: checking for MDBM library" >&5
18599 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18600 echo $ac_n "(cached) $ac_c" 1>&6
18603 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18604 echo "configure:18605: checking for mdbm_set_chain" >&5
18605 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18606 echo $ac_n "(cached) $ac_c" 1>&6
18608 cat > conftest.$ac_ext <<EOF
18609 #line 18610 "configure"
18610 #include "confdefs.h"
18611 /* System header to define __stub macros and hopefully few prototypes,
18612 which can conflict with char mdbm_set_chain(); below. */
18613 #include <assert.h>
18614 /* Override any gcc2 internal prototype to avoid an error. */
18615 /* We use char because int might match the return type of a gcc2
18616 builtin and then its argument prototype would still apply. */
18617 char mdbm_set_chain();
18622 /* The GNU C library defines this for functions which it implements
18623 to always fail with ENOSYS. Some functions are actually named
18624 something starting with __ and the normal name is an alias. */
18625 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18628 f = mdbm_set_chain;
18633 if { (eval echo configure:18634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18635 eval "ac_cv_func_mdbm_set_chain=yes"
18637 echo "configure: failed program was:" >&5
18638 cat conftest.$ac_ext >&5
18640 eval "ac_cv_func_mdbm_set_chain=no"
18645 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18646 echo "$ac_t""yes" 1>&6
18649 echo "$ac_t""no" 1>&6
18651 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18652 echo "configure:18653: checking for mdbm_set_chain in -lmdbm" >&5
18653 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18654 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18655 echo $ac_n "(cached) $ac_c" 1>&6
18657 ac_save_LIBS="$LIBS"
18658 LIBS="-lmdbm $LIBS"
18659 cat > conftest.$ac_ext <<EOF
18660 #line 18661 "configure"
18661 #include "confdefs.h"
18662 /* Override any gcc2 internal prototype to avoid an error. */
18663 /* We use char because int might match the return type of a gcc2
18664 builtin and then its argument prototype would still apply. */
18665 char mdbm_set_chain();
18671 if { (eval echo configure:18672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18673 eval "ac_cv_lib_$ac_lib_var=yes"
18675 echo "configure: failed program was:" >&5
18676 cat conftest.$ac_ext >&5
18678 eval "ac_cv_lib_$ac_lib_var=no"
18681 LIBS="$ac_save_LIBS"
18684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18685 echo "$ac_t""yes" 1>&6
18686 ol_cv_lib_mdbm=-lmdbm
18688 echo "$ac_t""no" 1>&6
18699 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18702 for ac_hdr in mdbm.h
18704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18706 echo "configure:18707: checking for $ac_hdr" >&5
18707 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18708 echo $ac_n "(cached) $ac_c" 1>&6
18710 cat > conftest.$ac_ext <<EOF
18711 #line 18712 "configure"
18712 #include "confdefs.h"
18715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18716 { (eval echo configure:18717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18718 if test -z "$ac_err"; then
18720 eval "ac_cv_header_$ac_safe=yes"
18723 echo "configure: failed program was:" >&5
18724 cat conftest.$ac_ext >&5
18726 eval "ac_cv_header_$ac_safe=no"
18730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18731 echo "$ac_t""yes" 1>&6
18732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18733 cat >> confdefs.h <<EOF
18734 #define $ac_tr_hdr 1
18738 echo "$ac_t""no" 1>&6
18742 echo $ac_n "checking for db""... $ac_c" 1>&6
18743 echo "configure:18744: checking for db" >&5
18744 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18745 echo $ac_n "(cached) $ac_c" 1>&6
18748 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18756 echo "$ac_t""$ol_cv_mdbm" 1>&6
18757 if test $ol_cv_mdbm = yes ; then
18758 cat >> confdefs.h <<\EOF
18759 #define HAVE_MDBM 1
18765 if test $ol_cv_mdbm = yes ; then
18767 ol_with_ldbm_api=mdbm
18768 if test $ol_cv_lib_mdbm != yes ; then
18769 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18774 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18775 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18776 echo "configure:18777: checking for GDBM library" >&5
18777 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18778 echo $ac_n "(cached) $ac_c" 1>&6
18781 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18782 echo "configure:18783: checking for gdbm_open" >&5
18783 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18784 echo $ac_n "(cached) $ac_c" 1>&6
18786 cat > conftest.$ac_ext <<EOF
18787 #line 18788 "configure"
18788 #include "confdefs.h"
18789 /* System header to define __stub macros and hopefully few prototypes,
18790 which can conflict with char gdbm_open(); below. */
18791 #include <assert.h>
18792 /* Override any gcc2 internal prototype to avoid an error. */
18793 /* We use char because int might match the return type of a gcc2
18794 builtin and then its argument prototype would still apply. */
18800 /* The GNU C library defines this for functions which it implements
18801 to always fail with ENOSYS. Some functions are actually named
18802 something starting with __ and the normal name is an alias. */
18803 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18811 if { (eval echo configure:18812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18813 eval "ac_cv_func_gdbm_open=yes"
18815 echo "configure: failed program was:" >&5
18816 cat conftest.$ac_ext >&5
18818 eval "ac_cv_func_gdbm_open=no"
18823 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18824 echo "$ac_t""yes" 1>&6
18827 echo "$ac_t""no" 1>&6
18829 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18830 echo "configure:18831: checking for gdbm_open in -lgdbm" >&5
18831 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18832 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18833 echo $ac_n "(cached) $ac_c" 1>&6
18835 ac_save_LIBS="$LIBS"
18836 LIBS="-lgdbm $LIBS"
18837 cat > conftest.$ac_ext <<EOF
18838 #line 18839 "configure"
18839 #include "confdefs.h"
18840 /* Override any gcc2 internal prototype to avoid an error. */
18841 /* We use char because int might match the return type of a gcc2
18842 builtin and then its argument prototype would still apply. */
18849 if { (eval echo configure:18850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18851 eval "ac_cv_lib_$ac_lib_var=yes"
18853 echo "configure: failed program was:" >&5
18854 cat conftest.$ac_ext >&5
18856 eval "ac_cv_lib_$ac_lib_var=no"
18859 LIBS="$ac_save_LIBS"
18862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18863 echo "$ac_t""yes" 1>&6
18864 ol_cv_lib_gdbm=-lgdbm
18866 echo "$ac_t""no" 1>&6
18877 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18880 for ac_hdr in gdbm.h
18882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18884 echo "configure:18885: checking for $ac_hdr" >&5
18885 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18886 echo $ac_n "(cached) $ac_c" 1>&6
18888 cat > conftest.$ac_ext <<EOF
18889 #line 18890 "configure"
18890 #include "confdefs.h"
18893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18894 { (eval echo configure:18895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18896 if test -z "$ac_err"; then
18898 eval "ac_cv_header_$ac_safe=yes"
18901 echo "configure: failed program was:" >&5
18902 cat conftest.$ac_ext >&5
18904 eval "ac_cv_header_$ac_safe=no"
18908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18909 echo "$ac_t""yes" 1>&6
18910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18911 cat >> confdefs.h <<EOF
18912 #define $ac_tr_hdr 1
18916 echo "$ac_t""no" 1>&6
18920 echo $ac_n "checking for db""... $ac_c" 1>&6
18921 echo "configure:18922: checking for db" >&5
18922 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18923 echo $ac_n "(cached) $ac_c" 1>&6
18926 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18934 echo "$ac_t""$ol_cv_gdbm" 1>&6
18935 if test $ol_cv_gdbm = yes ; then
18936 cat >> confdefs.h <<\EOF
18937 #define HAVE_GDBM 1
18943 if test $ol_cv_gdbm = yes ; then
18945 ol_with_ldbm_api=gdbm
18947 if test $ol_cv_lib_gdbm != yes ; then
18948 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18953 if test $ol_with_ldbm_api = ndbm ; then
18954 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18955 echo "configure:18956: checking for NDBM library" >&5
18956 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18957 echo $ac_n "(cached) $ac_c" 1>&6
18960 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18961 echo "configure:18962: checking for dbm_open" >&5
18962 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18963 echo $ac_n "(cached) $ac_c" 1>&6
18965 cat > conftest.$ac_ext <<EOF
18966 #line 18967 "configure"
18967 #include "confdefs.h"
18968 /* System header to define __stub macros and hopefully few prototypes,
18969 which can conflict with char dbm_open(); below. */
18970 #include <assert.h>
18971 /* Override any gcc2 internal prototype to avoid an error. */
18972 /* We use char because int might match the return type of a gcc2
18973 builtin and then its argument prototype would still apply. */
18979 /* The GNU C library defines this for functions which it implements
18980 to always fail with ENOSYS. Some functions are actually named
18981 something starting with __ and the normal name is an alias. */
18982 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18990 if { (eval echo configure:18991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18992 eval "ac_cv_func_dbm_open=yes"
18994 echo "configure: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
18997 eval "ac_cv_func_dbm_open=no"
19002 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19003 echo "$ac_t""yes" 1>&6
19006 echo "$ac_t""no" 1>&6
19008 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19009 echo "configure:19010: checking for dbm_open in -lndbm" >&5
19010 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19012 echo $ac_n "(cached) $ac_c" 1>&6
19014 ac_save_LIBS="$LIBS"
19015 LIBS="-lndbm $LIBS"
19016 cat > conftest.$ac_ext <<EOF
19017 #line 19018 "configure"
19018 #include "confdefs.h"
19019 /* Override any gcc2 internal prototype to avoid an error. */
19020 /* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19028 if { (eval echo configure:19029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19030 eval "ac_cv_lib_$ac_lib_var=yes"
19032 echo "configure: failed program was:" >&5
19033 cat conftest.$ac_ext >&5
19035 eval "ac_cv_lib_$ac_lib_var=no"
19038 LIBS="$ac_save_LIBS"
19041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19042 echo "$ac_t""yes" 1>&6
19043 ol_cv_lib_ndbm=-lndbm
19045 echo "$ac_t""no" 1>&6
19047 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19048 echo "configure:19049: checking for dbm_open in -ldbm" >&5
19049 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19051 echo $ac_n "(cached) $ac_c" 1>&6
19053 ac_save_LIBS="$LIBS"
19055 cat > conftest.$ac_ext <<EOF
19056 #line 19057 "configure"
19057 #include "confdefs.h"
19058 /* Override any gcc2 internal prototype to avoid an error. */
19059 /* We use char because int might match the return type of a gcc2
19060 builtin and then its argument prototype would still apply. */
19067 if { (eval echo configure:19068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19069 eval "ac_cv_lib_$ac_lib_var=yes"
19071 echo "configure: failed program was:" >&5
19072 cat conftest.$ac_ext >&5
19074 eval "ac_cv_lib_$ac_lib_var=no"
19077 LIBS="$ac_save_LIBS"
19080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19081 echo "$ac_t""yes" 1>&6
19082 ol_cv_lib_ndbm=-ldbm
19084 echo "$ac_t""no" 1>&6
19097 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19100 for ac_hdr in ndbm.h
19102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19104 echo "configure:19105: checking for $ac_hdr" >&5
19105 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19106 echo $ac_n "(cached) $ac_c" 1>&6
19108 cat > conftest.$ac_ext <<EOF
19109 #line 19110 "configure"
19110 #include "confdefs.h"
19113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19114 { (eval echo configure:19115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19116 if test -z "$ac_err"; then
19118 eval "ac_cv_header_$ac_safe=yes"
19121 echo "configure: failed program was:" >&5
19122 cat conftest.$ac_ext >&5
19124 eval "ac_cv_header_$ac_safe=no"
19128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19129 echo "$ac_t""yes" 1>&6
19130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19131 cat >> confdefs.h <<EOF
19132 #define $ac_tr_hdr 1
19136 echo "$ac_t""no" 1>&6
19140 echo $ac_n "checking for db""... $ac_c" 1>&6
19141 echo "configure:19142: checking for db" >&5
19142 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19143 echo $ac_n "(cached) $ac_c" 1>&6
19146 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19154 echo "$ac_t""$ol_cv_ndbm" 1>&6
19155 if test $ol_cv_ndbm = yes ; then
19156 cat >> confdefs.h <<\EOF
19157 #define HAVE_NDBM 1
19163 if test $ol_cv_ndbm = yes ; then
19165 ol_with_ldbm_api=ndbm
19167 if test $ol_cv_lib_ndbm != yes ; then
19168 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19173 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19174 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19175 if test $ol_enable_ldbm = yes ; then
19176 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19179 echo "configure: warning: disabling LDBM" 1>&2
19183 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19184 BUILD_LIBS_DYNAMIC=shared
19185 cat >> confdefs.h <<\EOF
19186 #define LDAP_LIBS_DYNAMIC 1
19190 BUILD_LIBS_DYNAMIC=static
19193 if test $ol_enable_wrappers != no ; then
19194 for ac_hdr in tcpd.h
19196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19198 echo "configure:19199: checking for $ac_hdr" >&5
19199 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19200 echo $ac_n "(cached) $ac_c" 1>&6
19202 cat > conftest.$ac_ext <<EOF
19203 #line 19204 "configure"
19204 #include "confdefs.h"
19207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19208 { (eval echo configure:19209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19210 if test -z "$ac_err"; then
19212 eval "ac_cv_header_$ac_safe=yes"
19215 echo "configure: failed program was:" >&5
19216 cat conftest.$ac_ext >&5
19218 eval "ac_cv_header_$ac_safe=no"
19222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19223 echo "$ac_t""yes" 1>&6
19224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19225 cat >> confdefs.h <<EOF
19226 #define $ac_tr_hdr 1
19229 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19230 echo "configure:19231: checking for TCP wrappers library" >&5
19232 LIBS="$LIBS -lwrap"
19233 cat > conftest.$ac_ext <<EOF
19234 #line 19235 "configure"
19235 #include "confdefs.h"
19238 int allow_severity = 0;
19239 int deny_severity = 0;
19241 struct request_info *req;
19249 if { (eval echo configure:19250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19251 echo "$ac_t""-lwrap" 1>&6
19255 echo "configure: failed program was:" >&5
19256 cat conftest.$ac_ext >&5
19260 cat > conftest.$ac_ext <<EOF
19261 #line 19262 "configure"
19262 #include "confdefs.h"
19265 int allow_severity = 0;
19266 int deny_severity = 0;
19268 struct request_info *req;
19276 if { (eval echo configure:19277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19278 echo "$ac_t""-lwrap -lnsl" 1>&6
19280 LIBS="$save_LIBS -lnsl"
19282 echo "configure: failed program was:" >&5
19283 cat conftest.$ac_ext >&5
19286 echo "$ac_t""no" 1>&6
19294 echo "$ac_t""no" 1>&6
19300 if test $have_wrappers = yes ; then
19301 cat >> confdefs.h <<\EOF
19302 #define HAVE_TCPD 1
19306 elif test $ol_enable_wrappers = yes ; then
19307 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19309 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19314 if test $ol_enable_syslog != no ; then
19315 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19316 echo "configure:19317: checking for openlog" >&5
19317 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19318 echo $ac_n "(cached) $ac_c" 1>&6
19320 cat > conftest.$ac_ext <<EOF
19321 #line 19322 "configure"
19322 #include "confdefs.h"
19323 /* System header to define __stub macros and hopefully few prototypes,
19324 which can conflict with char openlog(); below. */
19325 #include <assert.h>
19326 /* Override any gcc2 internal prototype to avoid an error. */
19327 /* We use char because int might match the return type of a gcc2
19328 builtin and then its argument prototype would still apply. */
19334 /* The GNU C library defines this for functions which it implements
19335 to always fail with ENOSYS. Some functions are actually named
19336 something starting with __ and the normal name is an alias. */
19337 #if defined (__stub_openlog) || defined (__stub___openlog)
19345 if { (eval echo configure:19346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19347 eval "ac_cv_func_openlog=yes"
19349 echo "configure: failed program was:" >&5
19350 cat conftest.$ac_ext >&5
19352 eval "ac_cv_func_openlog=no"
19357 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19358 echo "$ac_t""yes" 1>&6
19361 echo "$ac_t""no" 1>&6
19364 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19365 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19367 ol_enable_syslog=$ac_cv_func_openlog
19372 if test $ol_enable_sql != no ; then
19373 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19374 echo "configure:19375: checking for SQLDriverConnect in -liodbc" >&5
19375 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19377 echo $ac_n "(cached) $ac_c" 1>&6
19379 ac_save_LIBS="$LIBS"
19380 LIBS="-liodbc $LIBS"
19381 cat > conftest.$ac_ext <<EOF
19382 #line 19383 "configure"
19383 #include "confdefs.h"
19384 /* Override any gcc2 internal prototype to avoid an error. */
19385 /* We use char because int might match the return type of a gcc2
19386 builtin and then its argument prototype would still apply. */
19387 char SQLDriverConnect();
19393 if { (eval echo configure:19394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19395 eval "ac_cv_lib_$ac_lib_var=yes"
19397 echo "configure: failed program was:" >&5
19398 cat conftest.$ac_ext >&5
19400 eval "ac_cv_lib_$ac_lib_var=no"
19403 LIBS="$ac_save_LIBS"
19406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19407 echo "$ac_t""yes" 1>&6
19410 echo "$ac_t""no" 1>&6
19414 if test $have_iodbc = yes ; then
19415 ol_link_sql="-liodbc"
19417 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19418 echo "configure:19419: checking for SQLDriverConnect in -lodbc" >&5
19419 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19421 echo $ac_n "(cached) $ac_c" 1>&6
19423 ac_save_LIBS="$LIBS"
19424 LIBS="-lodbc $LIBS"
19425 cat > conftest.$ac_ext <<EOF
19426 #line 19427 "configure"
19427 #include "confdefs.h"
19428 /* Override any gcc2 internal prototype to avoid an error. */
19429 /* We use char because int might match the return type of a gcc2
19430 builtin and then its argument prototype would still apply. */
19431 char SQLDriverConnect();
19437 if { (eval echo configure:19438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19439 eval "ac_cv_lib_$ac_lib_var=yes"
19441 echo "configure: failed program was:" >&5
19442 cat conftest.$ac_ext >&5
19444 eval "ac_cv_lib_$ac_lib_var=no"
19447 LIBS="$ac_save_LIBS"
19450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19451 echo "$ac_t""yes" 1>&6
19454 echo "$ac_t""no" 1>&6
19458 if test $have_odbc = yes ; then
19459 ol_link_sql="-lodbc"
19463 if test $ol_link_sql != no ; then
19464 SLAPD_SQL_LIBS="$ol_link_sql"
19466 elif test $ol_enable_sql != auto ; then
19467 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19471 if test $ol_enable_tcl != no ; then
19472 for ac_hdr in tcl.h
19474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19476 echo "configure:19477: checking for $ac_hdr" >&5
19477 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19478 echo $ac_n "(cached) $ac_c" 1>&6
19480 cat > conftest.$ac_ext <<EOF
19481 #line 19482 "configure"
19482 #include "confdefs.h"
19485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19486 { (eval echo configure:19487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19488 if test -z "$ac_err"; then
19490 eval "ac_cv_header_$ac_safe=yes"
19493 echo "configure: failed program was:" >&5
19494 cat conftest.$ac_ext >&5
19496 eval "ac_cv_header_$ac_safe=no"
19500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19501 echo "$ac_t""yes" 1>&6
19502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19503 cat >> confdefs.h <<EOF
19504 #define $ac_tr_hdr 1
19508 echo "$ac_t""no" 1>&6
19513 if test $ac_cv_header_tcl_h != yes ; then
19516 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19517 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19518 echo "configure:19519: checking for main in -l$lib" >&5
19519 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19521 echo $ac_n "(cached) $ac_c" 1>&6
19523 ac_save_LIBS="$LIBS"
19524 LIBS="-l$lib $LIBS"
19525 cat > conftest.$ac_ext <<EOF
19526 #line 19527 "configure"
19527 #include "confdefs.h"
19533 if { (eval echo configure:19534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19535 eval "ac_cv_lib_$ac_lib_var=yes"
19537 echo "configure: failed program was:" >&5
19538 cat conftest.$ac_ext >&5
19540 eval "ac_cv_lib_$ac_lib_var=no"
19543 LIBS="$ac_save_LIBS"
19546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19547 echo "$ac_t""yes" 1>&6
19549 if test x"$ol_with_tcl_module" = "xstatic" ; then
19550 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19552 MOD_TCL_LIB="-l${lib}"
19555 echo "$ac_t""no" 1>&6
19562 if test $have_tcl != yes ; then
19563 echo "configure: warning: could not find -ltcl" 1>&2
19564 if test $ol_enable_tcl = yes ; then
19565 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19573 for ac_hdr in termcap.h ncurses.h
19575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19577 echo "configure:19578: checking for $ac_hdr" >&5
19578 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19579 echo $ac_n "(cached) $ac_c" 1>&6
19581 cat > conftest.$ac_ext <<EOF
19582 #line 19583 "configure"
19583 #include "confdefs.h"
19586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19587 { (eval echo configure:19588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19589 if test -z "$ac_err"; then
19591 eval "ac_cv_header_$ac_safe=yes"
19594 echo "configure: failed program was:" >&5
19595 cat conftest.$ac_ext >&5
19597 eval "ac_cv_header_$ac_safe=no"
19601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19602 echo "$ac_t""yes" 1>&6
19603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19604 cat >> confdefs.h <<EOF
19605 #define $ac_tr_hdr 1
19609 echo "$ac_t""no" 1>&6
19614 if test $ol_link_termcap = no ; then
19615 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19616 echo "configure:19617: checking for tputs in -ltermcap" >&5
19617 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19618 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19619 echo $ac_n "(cached) $ac_c" 1>&6
19621 ac_save_LIBS="$LIBS"
19622 LIBS="-ltermcap $LIBS"
19623 cat > conftest.$ac_ext <<EOF
19624 #line 19625 "configure"
19625 #include "confdefs.h"
19626 /* Override any gcc2 internal prototype to avoid an error. */
19627 /* We use char because int might match the return type of a gcc2
19628 builtin and then its argument prototype would still apply. */
19635 if { (eval echo configure:19636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19637 eval "ac_cv_lib_$ac_lib_var=yes"
19639 echo "configure: failed program was:" >&5
19640 cat conftest.$ac_ext >&5
19642 eval "ac_cv_lib_$ac_lib_var=no"
19645 LIBS="$ac_save_LIBS"
19648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19649 echo "$ac_t""yes" 1>&6
19652 echo "$ac_t""no" 1>&6
19656 if test $have_termcap = yes ; then
19657 cat >> confdefs.h <<\EOF
19658 #define HAVE_TERMCAP 1
19661 ol_link_termcap=yes
19662 TERMCAP_LIBS=-ltermcap
19666 if test $ol_link_termcap = no ; then
19667 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19668 echo "configure:19669: checking for initscr in -lncurses" >&5
19669 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19670 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19671 echo $ac_n "(cached) $ac_c" 1>&6
19673 ac_save_LIBS="$LIBS"
19674 LIBS="-lncurses $LIBS"
19675 cat > conftest.$ac_ext <<EOF
19676 #line 19677 "configure"
19677 #include "confdefs.h"
19678 /* Override any gcc2 internal prototype to avoid an error. */
19679 /* We use char because int might match the return type of a gcc2
19680 builtin and then its argument prototype would still apply. */
19687 if { (eval echo configure:19688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19689 eval "ac_cv_lib_$ac_lib_var=yes"
19691 echo "configure: failed program was:" >&5
19692 cat conftest.$ac_ext >&5
19694 eval "ac_cv_lib_$ac_lib_var=no"
19697 LIBS="$ac_save_LIBS"
19700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19701 echo "$ac_t""yes" 1>&6
19704 echo "$ac_t""no" 1>&6
19708 if test $have_ncurses = yes ; then
19709 cat >> confdefs.h <<\EOF
19710 #define HAVE_NCURSES 1
19713 ol_link_termcap=yes
19714 TERMCAP_LIBS=-lncurses
19718 if test $ol_link_termcap = no ; then
19719 cat >> confdefs.h <<\EOF
19720 #define NO_TERMCAP 1
19728 if test $ol_with_cyrus_sasl != no ; then
19729 for ac_hdr in sasl/sasl.h sasl.h
19731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19733 echo "configure:19734: checking for $ac_hdr" >&5
19734 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19735 echo $ac_n "(cached) $ac_c" 1>&6
19737 cat > conftest.$ac_ext <<EOF
19738 #line 19739 "configure"
19739 #include "confdefs.h"
19742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19743 { (eval echo configure:19744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19745 if test -z "$ac_err"; then
19747 eval "ac_cv_header_$ac_safe=yes"
19750 echo "configure: failed program was:" >&5
19751 cat conftest.$ac_ext >&5
19753 eval "ac_cv_header_$ac_safe=no"
19757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19758 echo "$ac_t""yes" 1>&6
19759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19760 cat >> confdefs.h <<EOF
19761 #define $ac_tr_hdr 1
19765 echo "$ac_t""no" 1>&6
19770 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19771 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19772 echo "configure:19773: checking for sasl_client_init in -lsasl2" >&5
19773 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19775 echo $ac_n "(cached) $ac_c" 1>&6
19777 ac_save_LIBS="$LIBS"
19778 LIBS="-lsasl2 $LIBS"
19779 cat > conftest.$ac_ext <<EOF
19780 #line 19781 "configure"
19781 #include "confdefs.h"
19782 /* Override any gcc2 internal prototype to avoid an error. */
19783 /* We use char because int might match the return type of a gcc2
19784 builtin and then its argument prototype would still apply. */
19785 char sasl_client_init();
19791 if { (eval echo configure:19792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19793 eval "ac_cv_lib_$ac_lib_var=yes"
19795 echo "configure: failed program was:" >&5
19796 cat conftest.$ac_ext >&5
19798 eval "ac_cv_lib_$ac_lib_var=no"
19801 LIBS="$ac_save_LIBS"
19804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19805 echo "$ac_t""yes" 1>&6
19806 ol_link_sasl="-lsasl2"
19808 echo "$ac_t""no" 1>&6
19809 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19810 echo "configure:19811: checking for sasl_client_init in -lsasl" >&5
19811 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19813 echo $ac_n "(cached) $ac_c" 1>&6
19815 ac_save_LIBS="$LIBS"
19816 LIBS="-lsasl $LIBS"
19817 cat > conftest.$ac_ext <<EOF
19818 #line 19819 "configure"
19819 #include "confdefs.h"
19820 /* Override any gcc2 internal prototype to avoid an error. */
19821 /* We use char because int might match the return type of a gcc2
19822 builtin and then its argument prototype would still apply. */
19823 char sasl_client_init();
19829 if { (eval echo configure:19830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19831 eval "ac_cv_lib_$ac_lib_var=yes"
19833 echo "configure: failed program was:" >&5
19834 cat conftest.$ac_ext >&5
19836 eval "ac_cv_lib_$ac_lib_var=no"
19839 LIBS="$ac_save_LIBS"
19842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19843 echo "$ac_t""yes" 1>&6
19844 ol_link_sasl="-lsasl"
19846 echo "$ac_t""no" 1>&6
19853 if test $ol_link_sasl = no ; then
19854 if test $ol_with_cyrus_sasl != auto ; then
19855 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19857 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19858 echo "configure: warning: SASL authentication not supported!" 1>&2
19859 if test $ol_link_tls = no ; then
19860 echo "configure: warning: Strong authentication not supported!" 1>&2
19864 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19865 echo "configure:19866: checking Cyrus SASL library version" >&5
19866 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19867 echo $ac_n "(cached) $ac_c" 1>&6
19870 cat > conftest.$ac_ext <<EOF
19871 #line 19872 "configure"
19872 #include "confdefs.h"
19874 #ifdef HAVE_SASL_SASL_H
19875 #include <sasl/sasl.h>
19880 /* require 2.1.3 or later */
19881 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19882 char *__sasl_compat = "1.5.x okay";
19883 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19884 __sasl_compat "2.2+ or better okay (we guess)";
19885 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19886 && SASL_VERSION_STEP >=3
19887 __sasl_compat = "2.1.3+ or better okay";
19891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19892 egrep "__sasl_compat" >/dev/null 2>&1; then
19894 ol_cv_sasl_compat=yes
19897 ol_cv_sasl_compat=no
19903 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19905 if test $ol_cv_sasl_compat = no ; then
19907 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19910 cat >> confdefs.h <<\EOF
19911 #define HAVE_CYRUS_SASL 1
19914 SASL_LIBS="$ol_link_sasl"
19915 if test $ol_enable_spasswd != no ; then
19916 ol_link_spasswd=yes
19919 ac_save_LIBS="$LIBS"
19920 LIBS="$LIBS $ol_link_sasl"
19921 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19922 echo "configure:19923: checking for sasl_version" >&5
19923 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19924 echo $ac_n "(cached) $ac_c" 1>&6
19926 cat > conftest.$ac_ext <<EOF
19927 #line 19928 "configure"
19928 #include "confdefs.h"
19929 /* System header to define __stub macros and hopefully few prototypes,
19930 which can conflict with char sasl_version(); below. */
19931 #include <assert.h>
19932 /* Override any gcc2 internal prototype to avoid an error. */
19933 /* We use char because int might match the return type of a gcc2
19934 builtin and then its argument prototype would still apply. */
19935 char sasl_version();
19940 /* The GNU C library defines this for functions which it implements
19941 to always fail with ENOSYS. Some functions are actually named
19942 something starting with __ and the normal name is an alias. */
19943 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19951 if { (eval echo configure:19952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19953 eval "ac_cv_func_sasl_version=yes"
19955 echo "configure: failed program was:" >&5
19956 cat conftest.$ac_ext >&5
19958 eval "ac_cv_func_sasl_version=no"
19963 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
19964 echo "$ac_t""yes" 1>&6
19965 cat >> confdefs.h <<\EOF
19966 #define HAVE_SASL_VERSION 1
19970 echo "$ac_t""no" 1>&6
19973 LIBS="$ac_save_LIBS"
19977 echo "configure: warning: SASL authentication not supported!" 1>&2
19978 if test $ol_link_tls = no ; then
19979 echo "configure: warning: Strong authentication not supported!" 1>&2
19983 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19985 if test -r /dev/urandom ; then
19986 dev="/dev/urandom";
19987 elif test -r /idev/urandom ; then
19988 dev="/idev/urandom";
19989 elif test -r /dev/srandom ; then
19990 dev="/dev/srandom";
19991 elif test -r /dev/random ; then
19993 elif test -r /idev/random ; then
19994 dev="/idev/random";
19997 if test $dev != no ; then
19998 cat >> confdefs.h <<EOF
19999 #define URANDOM_DEVICE "$dev"
20006 if test $ol_with_fetch != no ; then
20008 LIBS="-lfetch -lcom_err $LIBS"
20009 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20010 echo "configure:20011: checking fetch(3) library" >&5
20011 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20012 echo $ac_n "(cached) $ac_c" 1>&6
20015 cat > conftest.$ac_ext <<EOF
20016 #line 20017 "configure"
20017 #include "confdefs.h"
20019 #include <sys/param.h>
20023 struct url *u = fetchParseURL("file:///");
20026 if { (eval echo configure:20027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20028 ol_cv_lib_fetch=yes
20030 echo "configure: failed program was:" >&5
20031 cat conftest.$ac_ext >&5
20038 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20040 if test $ol_cv_lib_fetch != no ; then
20041 ol_link_fetch="-lfetch -lcom_err"
20042 cat >> confdefs.h <<\EOF
20043 #define HAVE_FETCH 1
20049 if test $ol_cv_lib_fetch != no ; then
20050 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20051 ol_link_fetch=freebsd
20053 elif test $ol_with_fetch != auto ; then
20054 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20058 ol_link_readline=no
20059 if test $ol_with_readline != no ; then
20060 for ac_hdr in readline/readline.h readline/history.h
20062 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20064 echo "configure:20065: checking for $ac_hdr" >&5
20065 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20066 echo $ac_n "(cached) $ac_c" 1>&6
20068 cat > conftest.$ac_ext <<EOF
20069 #line 20070 "configure"
20070 #include "confdefs.h"
20073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20074 { (eval echo configure:20075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20076 if test -z "$ac_err"; then
20078 eval "ac_cv_header_$ac_safe=yes"
20081 echo "configure: failed program was:" >&5
20082 cat conftest.$ac_ext >&5
20084 eval "ac_cv_header_$ac_safe=no"
20088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20089 echo "$ac_t""yes" 1>&6
20090 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20091 cat >> confdefs.h <<EOF
20092 #define $ac_tr_hdr 1
20096 echo "$ac_t""no" 1>&6
20101 if test $ac_cv_header_readline_readline_h = yes ; then
20103 LIBS="$TERMCAP_LIBS $LIBS"
20104 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20105 echo "configure:20106: checking for readline in -lreadline" >&5
20106 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20108 echo $ac_n "(cached) $ac_c" 1>&6
20110 ac_save_LIBS="$LIBS"
20111 LIBS="-lreadline $LIBS"
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115 /* Override any gcc2 internal prototype to avoid an error. */
20116 /* We use char because int might match the return type of a gcc2
20117 builtin and then its argument prototype would still apply. */
20124 if { (eval echo configure:20125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20126 eval "ac_cv_lib_$ac_lib_var=yes"
20128 echo "configure: failed program was:" >&5
20129 cat conftest.$ac_ext >&5
20131 eval "ac_cv_lib_$ac_lib_var=no"
20134 LIBS="$ac_save_LIBS"
20137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20138 echo "$ac_t""yes" 1>&6
20141 echo "$ac_t""no" 1>&6
20147 if test $have_readline = yes ; then
20148 ol_with_readline=found
20149 ol_link_readline=yes
20151 READLINE_LIBS="-lreadline"
20156 if test $ol_link_readline = yes ; then
20157 cat >> confdefs.h <<\EOF
20158 #define HAVE_READLINE 1
20164 if test $ol_enable_crypt != no ; then
20165 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20166 echo "configure:20167: checking for crypt" >&5
20167 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20168 echo $ac_n "(cached) $ac_c" 1>&6
20170 cat > conftest.$ac_ext <<EOF
20171 #line 20172 "configure"
20172 #include "confdefs.h"
20173 /* System header to define __stub macros and hopefully few prototypes,
20174 which can conflict with char crypt(); below. */
20175 #include <assert.h>
20176 /* Override any gcc2 internal prototype to avoid an error. */
20177 /* We use char because int might match the return type of a gcc2
20178 builtin and then its argument prototype would still apply. */
20184 /* The GNU C library defines this for functions which it implements
20185 to always fail with ENOSYS. Some functions are actually named
20186 something starting with __ and the normal name is an alias. */
20187 #if defined (__stub_crypt) || defined (__stub___crypt)
20195 if { (eval echo configure:20196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20197 eval "ac_cv_func_crypt=yes"
20199 echo "configure: failed program was:" >&5
20200 cat conftest.$ac_ext >&5
20202 eval "ac_cv_func_crypt=no"
20207 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20208 echo "$ac_t""yes" 1>&6
20211 echo "$ac_t""no" 1>&6
20213 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20214 echo "configure:20215: checking for crypt in -lcrypt" >&5
20215 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20217 echo $ac_n "(cached) $ac_c" 1>&6
20219 ac_save_LIBS="$LIBS"
20220 LIBS="-lcrypt $LIBS"
20221 cat > conftest.$ac_ext <<EOF
20222 #line 20223 "configure"
20223 #include "confdefs.h"
20224 /* Override any gcc2 internal prototype to avoid an error. */
20225 /* We use char because int might match the return type of a gcc2
20226 builtin and then its argument prototype would still apply. */
20233 if { (eval echo configure:20234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20235 eval "ac_cv_lib_$ac_lib_var=yes"
20237 echo "configure: failed program was:" >&5
20238 cat conftest.$ac_ext >&5
20240 eval "ac_cv_lib_$ac_lib_var=no"
20243 LIBS="$ac_save_LIBS"
20246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20247 echo "$ac_t""yes" 1>&6
20248 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20251 echo "$ac_t""no" 1>&6
20258 if test $have_crypt = yes ; then
20259 cat >> confdefs.h <<\EOF
20260 #define HAVE_CRYPT 1
20264 echo "configure: warning: could not find crypt" 1>&2
20265 if test $ol_enable_crypt = yes ; then
20266 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20269 echo "configure: warning: disabling crypt support" 1>&2
20274 if test $ol_enable_proctitle != no ; then
20275 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20276 echo "configure:20277: checking for setproctitle" >&5
20277 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20278 echo $ac_n "(cached) $ac_c" 1>&6
20280 cat > conftest.$ac_ext <<EOF
20281 #line 20282 "configure"
20282 #include "confdefs.h"
20283 /* System header to define __stub macros and hopefully few prototypes,
20284 which can conflict with char setproctitle(); below. */
20285 #include <assert.h>
20286 /* Override any gcc2 internal prototype to avoid an error. */
20287 /* We use char because int might match the return type of a gcc2
20288 builtin and then its argument prototype would still apply. */
20289 char setproctitle();
20294 /* The GNU C library defines this for functions which it implements
20295 to always fail with ENOSYS. Some functions are actually named
20296 something starting with __ and the normal name is an alias. */
20297 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20305 if { (eval echo configure:20306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20307 eval "ac_cv_func_setproctitle=yes"
20309 echo "configure: failed program was:" >&5
20310 cat conftest.$ac_ext >&5
20312 eval "ac_cv_func_setproctitle=no"
20317 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20318 echo "$ac_t""yes" 1>&6
20319 have_setproctitle=yes
20321 echo "$ac_t""no" 1>&6
20323 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20324 echo "configure:20325: checking for setproctitle in -lutil" >&5
20325 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20326 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20327 echo $ac_n "(cached) $ac_c" 1>&6
20329 ac_save_LIBS="$LIBS"
20330 LIBS="-lutil $LIBS"
20331 cat > conftest.$ac_ext <<EOF
20332 #line 20333 "configure"
20333 #include "confdefs.h"
20334 /* Override any gcc2 internal prototype to avoid an error. */
20335 /* We use char because int might match the return type of a gcc2
20336 builtin and then its argument prototype would still apply. */
20337 char setproctitle();
20343 if { (eval echo configure:20344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20345 eval "ac_cv_lib_$ac_lib_var=yes"
20347 echo "configure: failed program was:" >&5
20348 cat conftest.$ac_ext >&5
20350 eval "ac_cv_lib_$ac_lib_var=no"
20353 LIBS="$ac_save_LIBS"
20356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20357 echo "$ac_t""yes" 1>&6
20358 have_setproctitle=yes
20359 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20361 echo "$ac_t""no" 1>&6
20362 have_setproctitle=no
20363 LIBOBJS="$LIBOBJS setproctitle.o"
20364 LIBSRCS="$LIBSRCS setproctitle.c"
20370 if test $have_setproctitle = yes ; then
20371 cat >> confdefs.h <<\EOF
20372 #define HAVE_SETPROCTITLE 1
20378 if test $ol_enable_slp != no ; then
20379 for ac_hdr in slp.h
20381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20383 echo "configure:20384: checking for $ac_hdr" >&5
20384 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20385 echo $ac_n "(cached) $ac_c" 1>&6
20387 cat > conftest.$ac_ext <<EOF
20388 #line 20389 "configure"
20389 #include "confdefs.h"
20392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20393 { (eval echo configure:20394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20395 if test -z "$ac_err"; then
20397 eval "ac_cv_header_$ac_safe=yes"
20400 echo "configure: failed program was:" >&5
20401 cat conftest.$ac_ext >&5
20403 eval "ac_cv_header_$ac_safe=no"
20407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20408 echo "$ac_t""yes" 1>&6
20409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20410 cat >> confdefs.h <<EOF
20411 #define $ac_tr_hdr 1
20415 echo "$ac_t""no" 1>&6
20420 if test $ac_cv_header_slp_h = yes ; then
20421 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20422 echo "configure:20423: checking for SLPOpen in -lslp" >&5
20423 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20424 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20425 echo $ac_n "(cached) $ac_c" 1>&6
20427 ac_save_LIBS="$LIBS"
20429 cat > conftest.$ac_ext <<EOF
20430 #line 20431 "configure"
20431 #include "confdefs.h"
20432 /* Override any gcc2 internal prototype to avoid an error. */
20433 /* We use char because int might match the return type of a gcc2
20434 builtin and then its argument prototype would still apply. */
20441 if { (eval echo configure:20442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20443 eval "ac_cv_lib_$ac_lib_var=yes"
20445 echo "configure: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20448 eval "ac_cv_lib_$ac_lib_var=no"
20451 LIBS="$ac_save_LIBS"
20454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20455 echo "$ac_t""yes" 1>&6
20458 echo "$ac_t""no" 1>&6
20462 if test $have_slp = yes ; then
20463 cat >> confdefs.h <<\EOF
20467 SLAPD_SLP_LIBS=-lslp
20470 elif test $ol_enable_slp = yes ; then
20471 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20475 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20476 echo "configure:20477: checking for ANSI C header files" >&5
20477 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20478 echo $ac_n "(cached) $ac_c" 1>&6
20480 cat > conftest.$ac_ext <<EOF
20481 #line 20482 "configure"
20482 #include "confdefs.h"
20483 #include <stdlib.h>
20484 #include <stdarg.h>
20485 #include <string.h>
20488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20489 { (eval echo configure:20490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20491 if test -z "$ac_err"; then
20493 ac_cv_header_stdc=yes
20496 echo "configure: failed program was:" >&5
20497 cat conftest.$ac_ext >&5
20499 ac_cv_header_stdc=no
20503 if test $ac_cv_header_stdc = yes; then
20504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20505 cat > conftest.$ac_ext <<EOF
20506 #line 20507 "configure"
20507 #include "confdefs.h"
20508 #include <string.h>
20510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20511 egrep "memchr" >/dev/null 2>&1; then
20515 ac_cv_header_stdc=no
20521 if test $ac_cv_header_stdc = yes; then
20522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20523 cat > conftest.$ac_ext <<EOF
20524 #line 20525 "configure"
20525 #include "confdefs.h"
20526 #include <stdlib.h>
20528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20529 egrep "free" >/dev/null 2>&1; then
20533 ac_cv_header_stdc=no
20539 if test $ac_cv_header_stdc = yes; then
20540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20541 if test "$cross_compiling" = yes; then
20544 cat > conftest.$ac_ext <<EOF
20545 #line 20546 "configure"
20546 #include "confdefs.h"
20548 #if ((' ' & 0x0FF) == 0x020)
20549 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20550 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20552 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20553 || ('j' <= (c) && (c) <= 'r') \
20554 || ('s' <= (c) && (c) <= 'z'))
20555 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20558 int main () { int i; for (i = 0; i < 256; i++)
20559 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20563 if { (eval echo configure:20564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20567 echo "configure: failed program was:" >&5
20568 cat conftest.$ac_ext >&5
20570 ac_cv_header_stdc=no
20578 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20579 if test $ac_cv_header_stdc = yes; then
20580 cat >> confdefs.h <<\EOF
20581 #define STDC_HEADERS 1
20586 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20587 echo "configure:20588: checking for mode_t" >&5
20588 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20589 echo $ac_n "(cached) $ac_c" 1>&6
20591 cat > conftest.$ac_ext <<EOF
20592 #line 20593 "configure"
20593 #include "confdefs.h"
20594 #include <sys/types.h>
20596 #include <stdlib.h>
20597 #include <stddef.h>
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20604 eval "ac_cv_type_mode_t=yes"
20607 eval "ac_cv_type_mode_t=no"
20612 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20613 echo "$ac_t""yes" 1>&6
20615 echo "$ac_t""no" 1>&6
20616 cat >> confdefs.h <<EOF
20622 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20623 echo "configure:20624: checking for off_t" >&5
20624 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20625 echo $ac_n "(cached) $ac_c" 1>&6
20627 cat > conftest.$ac_ext <<EOF
20628 #line 20629 "configure"
20629 #include "confdefs.h"
20630 #include <sys/types.h>
20632 #include <stdlib.h>
20633 #include <stddef.h>
20637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20638 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20640 eval "ac_cv_type_off_t=yes"
20643 eval "ac_cv_type_off_t=no"
20648 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20649 echo "$ac_t""yes" 1>&6
20651 echo "$ac_t""no" 1>&6
20652 cat >> confdefs.h <<EOF
20658 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20659 echo "configure:20660: checking for pid_t" >&5
20660 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20661 echo $ac_n "(cached) $ac_c" 1>&6
20663 cat > conftest.$ac_ext <<EOF
20664 #line 20665 "configure"
20665 #include "confdefs.h"
20666 #include <sys/types.h>
20668 #include <stdlib.h>
20669 #include <stddef.h>
20673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20674 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20676 eval "ac_cv_type_pid_t=yes"
20679 eval "ac_cv_type_pid_t=no"
20684 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20685 echo "$ac_t""yes" 1>&6
20687 echo "$ac_t""no" 1>&6
20688 cat >> confdefs.h <<EOF
20694 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20695 echo "configure:20696: checking for ptrdiff_t" >&5
20696 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20697 echo $ac_n "(cached) $ac_c" 1>&6
20699 cat > conftest.$ac_ext <<EOF
20700 #line 20701 "configure"
20701 #include "confdefs.h"
20702 #include <stddef.h>
20707 if { (eval echo configure:20708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20709 am_cv_type_ptrdiff_t=yes
20711 echo "configure: failed program was:" >&5
20712 cat conftest.$ac_ext >&5
20714 am_cv_type_ptrdiff_t=no
20719 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20720 if test $am_cv_type_ptrdiff_t = yes; then
20721 cat >> confdefs.h <<\EOF
20722 #define HAVE_PTRDIFF_T 1
20727 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20728 echo "configure:20729: checking return type of signal handlers" >&5
20729 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20730 echo $ac_n "(cached) $ac_c" 1>&6
20732 cat > conftest.$ac_ext <<EOF
20733 #line 20734 "configure"
20734 #include "confdefs.h"
20735 #include <sys/types.h>
20736 #include <signal.h>
20741 extern "C" void (*signal (int, void (*)(int)))(int);
20743 void (*signal ()) ();
20750 if { (eval echo configure:20751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20752 ac_cv_type_signal=void
20754 echo "configure: failed program was:" >&5
20755 cat conftest.$ac_ext >&5
20757 ac_cv_type_signal=int
20762 echo "$ac_t""$ac_cv_type_signal" 1>&6
20763 cat >> confdefs.h <<EOF
20764 #define RETSIGTYPE $ac_cv_type_signal
20768 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20769 echo "configure:20770: checking for size_t" >&5
20770 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20771 echo $ac_n "(cached) $ac_c" 1>&6
20773 cat > conftest.$ac_ext <<EOF
20774 #line 20775 "configure"
20775 #include "confdefs.h"
20776 #include <sys/types.h>
20778 #include <stdlib.h>
20779 #include <stddef.h>
20783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20784 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20786 eval "ac_cv_type_size_t=yes"
20789 eval "ac_cv_type_size_t=no"
20794 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20795 echo "$ac_t""yes" 1>&6
20797 echo "$ac_t""no" 1>&6
20798 cat >> confdefs.h <<EOF
20799 #define size_t unsigned
20805 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20806 echo "configure:20807: checking for ssize_t" >&5
20807 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20808 echo $ac_n "(cached) $ac_c" 1>&6
20810 cat > conftest.$ac_ext <<EOF
20811 #line 20812 "configure"
20812 #include "confdefs.h"
20813 #include <sys/types.h>
20815 #include <stdlib.h>
20816 #include <stddef.h>
20820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20821 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20823 eval "ac_cv_type_ssize_t=yes"
20826 eval "ac_cv_type_ssize_t=no"
20831 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20832 echo "$ac_t""yes" 1>&6
20834 echo "$ac_t""no" 1>&6
20835 cat >> confdefs.h <<EOF
20836 #define ssize_t signed int
20841 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20842 echo "configure:20843: checking for caddr_t" >&5
20843 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20844 echo $ac_n "(cached) $ac_c" 1>&6
20846 cat > conftest.$ac_ext <<EOF
20847 #line 20848 "configure"
20848 #include "confdefs.h"
20849 #include <sys/types.h>
20851 #include <stdlib.h>
20852 #include <stddef.h>
20856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20857 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20859 eval "ac_cv_type_caddr_t=yes"
20862 eval "ac_cv_type_caddr_t=no"
20867 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20868 echo "$ac_t""yes" 1>&6
20870 echo "$ac_t""no" 1>&6
20871 cat >> confdefs.h <<EOF
20872 #define caddr_t char *
20878 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20879 echo "configure:20880: checking for socklen_t" >&5
20880 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20881 echo $ac_n "(cached) $ac_c" 1>&6
20883 cat > conftest.$ac_ext <<EOF
20884 #line 20885 "configure"
20885 #include "confdefs.h"
20887 #ifdef HAVE_SYS_TYPES_H
20888 #include <sys/types.h>
20890 #ifdef HAVE_SYS_SOCKET_H
20891 #include <sys/socket.h>
20898 if { (eval echo configure:20899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20900 ol_cv_type_socklen_t=yes
20902 echo "configure: failed program was:" >&5
20903 cat conftest.$ac_ext >&5
20905 ol_cv_type_socklen_t=no
20910 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20911 if test $ol_cv_type_socklen_t = no; then
20912 cat >> confdefs.h <<\EOF
20913 #define socklen_t int
20918 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20919 echo "configure:20920: checking for member st_blksize in aggregate type struct stat" >&5
20920 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20921 echo $ac_n "(cached) $ac_c" 1>&6
20923 cat > conftest.$ac_ext <<EOF
20924 #line 20925 "configure"
20925 #include "confdefs.h"
20926 #include <sys/types.h>
20927 #include <sys/stat.h>
20929 struct stat foo; foo.st_blksize;
20932 if { (eval echo configure:20933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20934 ac_cv_c_struct_member_st_blksize=yes
20936 echo "configure: failed program was:" >&5
20937 cat conftest.$ac_ext >&5
20939 ac_cv_c_struct_member_st_blksize=no
20944 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20945 st_blksize="$ac_cv_c_struct_member_st_blksize"
20946 if test $ac_cv_c_struct_member_st_blksize = yes; then
20947 cat >> confdefs.h <<\EOF
20948 #define HAVE_ST_BLKSIZE 1
20953 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20954 echo "configure:20955: checking whether time.h and sys/time.h may both be included" >&5
20955 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20956 echo $ac_n "(cached) $ac_c" 1>&6
20958 cat > conftest.$ac_ext <<EOF
20959 #line 20960 "configure"
20960 #include "confdefs.h"
20961 #include <sys/types.h>
20962 #include <sys/time.h>
20968 if { (eval echo configure:20969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20970 ac_cv_header_time=yes
20972 echo "configure: failed program was:" >&5
20973 cat conftest.$ac_ext >&5
20975 ac_cv_header_time=no
20980 echo "$ac_t""$ac_cv_header_time" 1>&6
20981 if test $ac_cv_header_time = yes; then
20982 cat >> confdefs.h <<\EOF
20983 #define TIME_WITH_SYS_TIME 1
20988 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20989 echo "configure:20990: checking whether struct tm is in sys/time.h or time.h" >&5
20990 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20991 echo $ac_n "(cached) $ac_c" 1>&6
20993 cat > conftest.$ac_ext <<EOF
20994 #line 20995 "configure"
20995 #include "confdefs.h"
20996 #include <sys/types.h>
20999 struct tm *tp; tp->tm_sec;
21002 if { (eval echo configure:21003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21004 ac_cv_struct_tm=time.h
21006 echo "configure: failed program was:" >&5
21007 cat conftest.$ac_ext >&5
21009 ac_cv_struct_tm=sys/time.h
21014 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21015 if test $ac_cv_struct_tm = sys/time.h; then
21016 cat >> confdefs.h <<\EOF
21017 #define TM_IN_SYS_TIME 1
21022 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21023 echo "configure:21024: checking for uid_t in sys/types.h" >&5
21024 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21025 echo $ac_n "(cached) $ac_c" 1>&6
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 #include <sys/types.h>
21032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21033 egrep "uid_t" >/dev/null 2>&1; then
21035 ac_cv_type_uid_t=yes
21038 ac_cv_type_uid_t=no
21044 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21045 if test $ac_cv_type_uid_t = no; then
21046 cat >> confdefs.h <<\EOF
21050 cat >> confdefs.h <<\EOF
21056 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21057 echo "configure:21058: checking for sig_atomic_t" >&5
21058 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21059 echo $ac_n "(cached) $ac_c" 1>&6
21061 cat > conftest.$ac_ext <<EOF
21062 #line 21063 "configure"
21063 #include "confdefs.h"
21064 #include <signal.h>
21066 sig_atomic_t atomic;
21069 if { (eval echo configure:21070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21071 ol_cv_type_sig_atomic_t=yes
21073 echo "configure: failed program was:" >&5
21074 cat conftest.$ac_ext >&5
21076 ol_cv_type_sig_atomic_t=no
21081 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21082 if test $ol_cv_type_sig_atomic_t = no; then
21083 cat >> confdefs.h <<\EOF
21084 #define sig_atomic_t int
21091 # test for pw_gecos in struct passwd
21092 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21093 echo "configure:21094: checking struct passwd for pw_gecos" >&5
21094 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21095 echo $ac_n "(cached) $ac_c" 1>&6
21098 cat > conftest.$ac_ext <<EOF
21099 #line 21100 "configure"
21100 #include "confdefs.h"
21105 pwd.pw_gecos = pwd.pw_name;
21109 if { (eval echo configure:21110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21111 ol_cv_struct_passwd_pw_gecos=yes
21113 echo "configure: failed program was:" >&5
21114 cat conftest.$ac_ext >&5
21116 ol_cv_struct_passwd_pw_gecos=no
21121 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21122 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21123 cat >> confdefs.h <<\EOF
21124 #define HAVE_PW_GECOS 1
21129 # test for pw_passwd in struct passwd
21130 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21131 echo "configure:21132: checking struct passwd for pw_passwd" >&5
21132 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21133 echo $ac_n "(cached) $ac_c" 1>&6
21136 cat > conftest.$ac_ext <<EOF
21137 #line 21138 "configure"
21138 #include "confdefs.h"
21143 pwd.pw_passwd = pwd.pw_name;
21147 if { (eval echo configure:21148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21149 ol_cv_struct_passwd_pw_passwd=yes
21151 echo "configure: failed program was:" >&5
21152 cat conftest.$ac_ext >&5
21154 ol_cv_struct_passwd_pw_passwd=no
21159 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21160 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21161 cat >> confdefs.h <<\EOF
21162 #define HAVE_PW_PASSWD 1
21168 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21169 echo "configure:21170: checking if toupper() requires islower()" >&5
21170 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21171 echo $ac_n "(cached) $ac_c" 1>&6
21174 if test "$cross_compiling" = yes; then
21175 ol_cv_c_upper_lower=safe
21177 cat > conftest.$ac_ext <<EOF
21178 #line 21179 "configure"
21179 #include "confdefs.h"
21184 if ('C' == toupper('C'))
21190 if { (eval echo configure:21191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21192 ol_cv_c_upper_lower=no
21194 echo "configure: failed program was:" >&5
21195 cat conftest.$ac_ext >&5
21197 ol_cv_c_upper_lower=yes
21204 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21205 if test $ol_cv_c_upper_lower != no ; then
21206 cat >> confdefs.h <<\EOF
21207 #define C_UPPER_LOWER 1
21212 echo $ac_n "checking for working const""... $ac_c" 1>&6
21213 echo "configure:21214: checking for working const" >&5
21214 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21215 echo $ac_n "(cached) $ac_c" 1>&6
21217 cat > conftest.$ac_ext <<EOF
21218 #line 21219 "configure"
21219 #include "confdefs.h"
21223 /* Ultrix mips cc rejects this. */
21224 typedef int charset[2]; const charset x;
21225 /* SunOS 4.1.1 cc rejects this. */
21226 char const *const *ccp;
21228 /* NEC SVR4.0.2 mips cc rejects this. */
21229 struct point {int x, y;};
21230 static struct point const zero = {0,0};
21231 /* AIX XL C 1.02.0.0 rejects this.
21232 It does not let you subtract one const X* pointer from another in an arm
21233 of an if-expression whose if-part is not a constant expression */
21234 const char *g = "string";
21235 ccp = &g + (g ? g-g : 0);
21236 /* HPUX 7.0 cc rejects these. */
21239 ccp = (char const *const *) p;
21240 { /* SCO 3.2v4 cc rejects this. */
21242 char const *s = 0 ? (char *) 0 : (char const *) 0;
21246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21247 int x[] = {25, 17};
21248 const int *foo = &x[0];
21251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21252 typedef const int *iptr;
21256 { /* AIX XL C 1.02.0.0 rejects this saying
21257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21258 struct s { int j; const int *ap[3]; };
21259 struct s *b; b->j = 5;
21261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21262 const int foo = 10;
21267 if { (eval echo configure:21268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21271 echo "configure: failed program was:" >&5
21272 cat conftest.$ac_ext >&5
21279 echo "$ac_t""$ac_cv_c_const" 1>&6
21280 if test $ac_cv_c_const = no; then
21281 cat >> confdefs.h <<\EOF
21287 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21288 echo "configure:21289: checking if compiler understands volatile" >&5
21289 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21290 echo $ac_n "(cached) $ac_c" 1>&6
21292 cat > conftest.$ac_ext <<EOF
21293 #line 21294 "configure"
21294 #include "confdefs.h"
21297 volatile int a; int * volatile b = x ? &y : &z;
21298 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21302 if { (eval echo configure:21303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21304 ol_cv_c_volatile=yes
21306 echo "configure: failed program was:" >&5
21307 cat conftest.$ac_ext >&5
21309 ol_cv_c_volatile=no
21314 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21315 if test $ol_cv_c_volatile = yes; then
21318 cat >> confdefs.h <<\EOF
21325 if test $cross_compiling = yes ; then
21326 cat >> confdefs.h <<\EOF
21327 #define CROSS_COMPILING 1
21331 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21332 echo "configure:21333: checking whether byte ordering is bigendian" >&5
21333 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21334 echo $ac_n "(cached) $ac_c" 1>&6
21336 ac_cv_c_bigendian=unknown
21337 # See if sys/param.h defines the BYTE_ORDER macro.
21338 cat > conftest.$ac_ext <<EOF
21339 #line 21340 "configure"
21340 #include "confdefs.h"
21341 #include <sys/types.h>
21342 #include <sys/param.h>
21345 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21346 bogus endian macros
21350 if { (eval echo configure:21351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21352 # It does; now see whether it defined to BIG_ENDIAN or not.
21353 cat > conftest.$ac_ext <<EOF
21354 #line 21355 "configure"
21355 #include "confdefs.h"
21356 #include <sys/types.h>
21357 #include <sys/param.h>
21360 #if BYTE_ORDER != BIG_ENDIAN
21365 if { (eval echo configure:21366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21367 ac_cv_c_bigendian=yes
21369 echo "configure: failed program was:" >&5
21370 cat conftest.$ac_ext >&5
21372 ac_cv_c_bigendian=no
21376 echo "configure: failed program was:" >&5
21377 cat conftest.$ac_ext >&5
21380 if test $ac_cv_c_bigendian = unknown; then
21381 if test "$cross_compiling" = yes; then
21382 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21384 cat > conftest.$ac_ext <<EOF
21385 #line 21386 "configure"
21386 #include "confdefs.h"
21388 /* Are we little or big endian? From Harbison&Steele. */
21392 char c[sizeof (long)];
21395 exit (u.c[sizeof (long) - 1] == 1);
21398 if { (eval echo configure:21399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21400 ac_cv_c_bigendian=no
21402 echo "configure: failed program was:" >&5
21403 cat conftest.$ac_ext >&5
21405 ac_cv_c_bigendian=yes
21413 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21414 if test $ac_cv_c_bigendian = yes; then
21415 cat >> confdefs.h <<\EOF
21416 #define WORDS_BIGENDIAN 1
21423 echo $ac_n "checking size of short""... $ac_c" 1>&6
21424 echo "configure:21425: checking size of short" >&5
21425 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21426 echo $ac_n "(cached) $ac_c" 1>&6
21428 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21429 cat > conftest.$ac_ext <<EOF
21430 #line 21431 "configure"
21431 #include "confdefs.h"
21432 #include "confdefs.h"
21433 #include <sys/types.h>
21437 switch (0) case 0: case (sizeof (short) == $ac_size):;
21440 if { (eval echo configure:21441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21442 ac_cv_sizeof_short=$ac_size
21444 echo "configure: failed program was:" >&5
21445 cat conftest.$ac_ext >&5
21448 if test x$ac_cv_sizeof_short != x ; then break; fi
21453 if test x$ac_cv_sizeof_short = x ; then
21454 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21456 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21457 cat >> confdefs.h <<EOF
21458 #define SIZEOF_SHORT $ac_cv_sizeof_short
21462 echo $ac_n "checking size of int""... $ac_c" 1>&6
21463 echo "configure:21464: checking size of int" >&5
21464 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21465 echo $ac_n "(cached) $ac_c" 1>&6
21467 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21468 cat > conftest.$ac_ext <<EOF
21469 #line 21470 "configure"
21470 #include "confdefs.h"
21471 #include "confdefs.h"
21472 #include <sys/types.h>
21476 switch (0) case 0: case (sizeof (int) == $ac_size):;
21479 if { (eval echo configure:21480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21481 ac_cv_sizeof_int=$ac_size
21483 echo "configure: failed program was:" >&5
21484 cat conftest.$ac_ext >&5
21487 if test x$ac_cv_sizeof_int != x ; then break; fi
21492 if test x$ac_cv_sizeof_int = x ; then
21493 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21495 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21496 cat >> confdefs.h <<EOF
21497 #define SIZEOF_INT $ac_cv_sizeof_int
21501 echo $ac_n "checking size of long""... $ac_c" 1>&6
21502 echo "configure:21503: checking size of long" >&5
21503 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21504 echo $ac_n "(cached) $ac_c" 1>&6
21506 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21507 cat > conftest.$ac_ext <<EOF
21508 #line 21509 "configure"
21509 #include "confdefs.h"
21510 #include "confdefs.h"
21511 #include <sys/types.h>
21515 switch (0) case 0: case (sizeof (long) == $ac_size):;
21518 if { (eval echo configure:21519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21520 ac_cv_sizeof_long=$ac_size
21522 echo "configure: failed program was:" >&5
21523 cat conftest.$ac_ext >&5
21526 if test x$ac_cv_sizeof_long != x ; then break; fi
21531 if test x$ac_cv_sizeof_long = x ; then
21532 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21534 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21535 cat >> confdefs.h <<EOF
21536 #define SIZEOF_LONG $ac_cv_sizeof_long
21541 if test "$ac_cv_sizeof_int" -lt 4 ; then
21542 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21544 cat >> confdefs.h <<\EOF
21545 #define LBER_INT_T long
21549 cat >> confdefs.h <<\EOF
21550 #define LBER_INT_T int
21555 cat >> confdefs.h <<\EOF
21556 #define LBER_LEN_T long
21559 cat >> confdefs.h <<\EOF
21560 #define LBER_SOCKET_T int
21563 cat >> confdefs.h <<\EOF
21564 #define LBER_TAG_T long
21568 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21569 echo "configure:21570: checking for 8-bit clean memcmp" >&5
21570 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21571 echo $ac_n "(cached) $ac_c" 1>&6
21573 if test "$cross_compiling" = yes; then
21574 ac_cv_func_memcmp_clean=no
21576 cat > conftest.$ac_ext <<EOF
21577 #line 21578 "configure"
21578 #include "confdefs.h"
21582 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21583 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21587 if { (eval echo configure:21588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21589 ac_cv_func_memcmp_clean=yes
21591 echo "configure: failed program was:" >&5
21592 cat conftest.$ac_ext >&5
21594 ac_cv_func_memcmp_clean=no
21601 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21602 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21604 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21605 echo "configure:21606: checking for strftime" >&5
21606 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21607 echo $ac_n "(cached) $ac_c" 1>&6
21609 cat > conftest.$ac_ext <<EOF
21610 #line 21611 "configure"
21611 #include "confdefs.h"
21612 /* System header to define __stub macros and hopefully few prototypes,
21613 which can conflict with char strftime(); below. */
21614 #include <assert.h>
21615 /* Override any gcc2 internal prototype to avoid an error. */
21616 /* We use char because int might match the return type of a gcc2
21617 builtin and then its argument prototype would still apply. */
21623 /* The GNU C library defines this for functions which it implements
21624 to always fail with ENOSYS. Some functions are actually named
21625 something starting with __ and the normal name is an alias. */
21626 #if defined (__stub_strftime) || defined (__stub___strftime)
21634 if { (eval echo configure:21635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21636 eval "ac_cv_func_strftime=yes"
21638 echo "configure: failed program was:" >&5
21639 cat conftest.$ac_ext >&5
21641 eval "ac_cv_func_strftime=no"
21646 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21647 echo "$ac_t""yes" 1>&6
21648 cat >> confdefs.h <<\EOF
21649 #define HAVE_STRFTIME 1
21653 echo "$ac_t""no" 1>&6
21654 # strftime is in -lintl on SCO UNIX.
21655 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21656 echo "configure:21657: checking for strftime in -lintl" >&5
21657 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21659 echo $ac_n "(cached) $ac_c" 1>&6
21661 ac_save_LIBS="$LIBS"
21662 LIBS="-lintl $LIBS"
21663 cat > conftest.$ac_ext <<EOF
21664 #line 21665 "configure"
21665 #include "confdefs.h"
21666 /* Override any gcc2 internal prototype to avoid an error. */
21667 /* We use char because int might match the return type of a gcc2
21668 builtin and then its argument prototype would still apply. */
21675 if { (eval echo configure:21676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21677 eval "ac_cv_lib_$ac_lib_var=yes"
21679 echo "configure: failed program was:" >&5
21680 cat conftest.$ac_ext >&5
21682 eval "ac_cv_lib_$ac_lib_var=no"
21685 LIBS="$ac_save_LIBS"
21688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21689 echo "$ac_t""yes" 1>&6
21690 cat >> confdefs.h <<\EOF
21691 #define HAVE_STRFTIME 1
21694 LIBS="-lintl $LIBS"
21696 echo "$ac_t""no" 1>&6
21702 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21703 echo "configure:21704: checking for inet_aton()" >&5
21704 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21705 echo $ac_n "(cached) $ac_c" 1>&6
21707 cat > conftest.$ac_ext <<EOF
21708 #line 21709 "configure"
21709 #include "confdefs.h"
21711 #ifdef HAVE_SYS_TYPES_H
21712 # include <sys/types.h>
21714 #ifdef HAVE_SYS_SOCKET_H
21715 # include <sys/socket.h>
21716 # ifdef HAVE_SYS_SELECT_H
21717 # include <sys/select.h>
21719 # include <netinet/in.h>
21720 # ifdef HAVE_ARPA_INET_H
21721 # include <arpa/inet.h>
21727 int rc = inet_aton( "255.255.255.255", &in );
21730 if { (eval echo configure:21731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21732 ol_cv_func_inet_aton=yes
21734 echo "configure: failed program was:" >&5
21735 cat conftest.$ac_ext >&5
21737 ol_cv_func_inet_aton=no
21742 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21743 if test $ol_cv_func_inet_aton != no; then
21744 cat >> confdefs.h <<\EOF
21745 #define HAVE_INET_ATON 1
21751 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21752 echo "configure:21753: checking for _spawnlp" >&5
21753 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21754 echo $ac_n "(cached) $ac_c" 1>&6
21756 cat > conftest.$ac_ext <<EOF
21757 #line 21758 "configure"
21758 #include "confdefs.h"
21759 /* System header to define __stub macros and hopefully few prototypes,
21760 which can conflict with char _spawnlp(); below. */
21761 #include <assert.h>
21762 /* Override any gcc2 internal prototype to avoid an error. */
21763 /* We use char because int might match the return type of a gcc2
21764 builtin and then its argument prototype would still apply. */
21770 /* The GNU C library defines this for functions which it implements
21771 to always fail with ENOSYS. Some functions are actually named
21772 something starting with __ and the normal name is an alias. */
21773 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21781 if { (eval echo configure:21782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21783 eval "ac_cv_func__spawnlp=yes"
21785 echo "configure: failed program was:" >&5
21786 cat conftest.$ac_ext >&5
21788 eval "ac_cv_func__spawnlp=no"
21793 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21794 echo "$ac_t""yes" 1>&6
21795 cat >> confdefs.h <<\EOF
21796 #define HAVE_SPAWNLP 1
21800 echo "$ac_t""no" 1>&6
21804 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21805 echo "configure:21806: checking for _snprintf" >&5
21806 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21807 echo $ac_n "(cached) $ac_c" 1>&6
21809 cat > conftest.$ac_ext <<EOF
21810 #line 21811 "configure"
21811 #include "confdefs.h"
21812 /* System header to define __stub macros and hopefully few prototypes,
21813 which can conflict with char _snprintf(); below. */
21814 #include <assert.h>
21815 /* Override any gcc2 internal prototype to avoid an error. */
21816 /* We use char because int might match the return type of a gcc2
21817 builtin and then its argument prototype would still apply. */
21823 /* The GNU C library defines this for functions which it implements
21824 to always fail with ENOSYS. Some functions are actually named
21825 something starting with __ and the normal name is an alias. */
21826 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21834 if { (eval echo configure:21835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21836 eval "ac_cv_func__snprintf=yes"
21838 echo "configure: failed program was:" >&5
21839 cat conftest.$ac_ext >&5
21841 eval "ac_cv_func__snprintf=no"
21846 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21847 echo "$ac_t""yes" 1>&6
21848 ac_cv_func_snprintf=yes
21849 cat >> confdefs.h <<\EOF
21850 #define snprintf _snprintf
21855 echo "$ac_t""no" 1>&6
21859 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21860 echo "configure:21861: checking for _vsnprintf" >&5
21861 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21862 echo $ac_n "(cached) $ac_c" 1>&6
21864 cat > conftest.$ac_ext <<EOF
21865 #line 21866 "configure"
21866 #include "confdefs.h"
21867 /* System header to define __stub macros and hopefully few prototypes,
21868 which can conflict with char _vsnprintf(); below. */
21869 #include <assert.h>
21870 /* Override any gcc2 internal prototype to avoid an error. */
21871 /* We use char because int might match the return type of a gcc2
21872 builtin and then its argument prototype would still apply. */
21878 /* The GNU C library defines this for functions which it implements
21879 to always fail with ENOSYS. Some functions are actually named
21880 something starting with __ and the normal name is an alias. */
21881 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21889 if { (eval echo configure:21890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21891 eval "ac_cv_func__vsnprintf=yes"
21893 echo "configure: failed program was:" >&5
21894 cat conftest.$ac_ext >&5
21896 eval "ac_cv_func__vsnprintf=no"
21901 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21902 echo "$ac_t""yes" 1>&6
21903 ac_cv_func_vsnprintf=yes
21904 cat >> confdefs.h <<\EOF
21905 #define vsnprintf _vsnprintf
21910 echo "$ac_t""no" 1>&6
21914 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21915 echo "configure:21916: checking for vprintf" >&5
21916 if eval "test \"\${ac_cv_func_vprintf+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 vprintf(); 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_vprintf) || defined (__stub___vprintf)
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_vprintf=yes"
21948 echo "configure: failed program was:" >&5
21949 cat conftest.$ac_ext >&5
21951 eval "ac_cv_func_vprintf=no"
21956 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21957 echo "$ac_t""yes" 1>&6
21958 cat >> confdefs.h <<\EOF
21959 #define HAVE_VPRINTF 1
21963 echo "$ac_t""no" 1>&6
21966 if test "$ac_cv_func_vprintf" != yes; then
21967 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21968 echo "configure:21969: checking for _doprnt" >&5
21969 if eval "test \"\${ac_cv_func__doprnt+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 _doprnt(); 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__doprnt) || defined (__stub____doprnt)
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__doprnt=yes"
22001 echo "configure: failed program was:" >&5
22002 cat conftest.$ac_ext >&5
22004 eval "ac_cv_func__doprnt=no"
22009 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22010 echo "$ac_t""yes" 1>&6
22011 cat >> confdefs.h <<\EOF
22012 #define HAVE_DOPRNT 1
22016 echo "$ac_t""no" 1>&6
22022 if test $ac_cv_func_vprintf = yes ; then
22023 for ac_func in snprintf vsnprintf
22025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22026 echo "configure:22027: checking for $ac_func" >&5
22027 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22028 echo $ac_n "(cached) $ac_c" 1>&6
22030 cat > conftest.$ac_ext <<EOF
22031 #line 22032 "configure"
22032 #include "confdefs.h"
22033 /* System header to define __stub macros and hopefully few prototypes,
22034 which can conflict with char $ac_func(); below. */
22035 #include <assert.h>
22036 /* Override any gcc2 internal prototype to avoid an error. */
22037 /* We use char because int might match the return type of a gcc2
22038 builtin and then its argument prototype would still apply. */
22044 /* The GNU C library defines this for functions which it implements
22045 to always fail with ENOSYS. Some functions are actually named
22046 something starting with __ and the normal name is an alias. */
22047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22055 if { (eval echo configure:22056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22057 eval "ac_cv_func_$ac_func=yes"
22059 echo "configure: failed program was:" >&5
22060 cat conftest.$ac_ext >&5
22062 eval "ac_cv_func_$ac_func=no"
22067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22068 echo "$ac_t""yes" 1>&6
22069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22070 cat >> confdefs.h <<EOF
22071 #define $ac_tr_func 1
22075 echo "$ac_t""no" 1>&6
22137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22138 echo "configure:22139: checking for $ac_func" >&5
22139 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22140 echo $ac_n "(cached) $ac_c" 1>&6
22142 cat > conftest.$ac_ext <<EOF
22143 #line 22144 "configure"
22144 #include "confdefs.h"
22145 /* System header to define __stub macros and hopefully few prototypes,
22146 which can conflict with char $ac_func(); below. */
22147 #include <assert.h>
22148 /* Override any gcc2 internal prototype to avoid an error. */
22149 /* We use char because int might match the return type of a gcc2
22150 builtin and then its argument prototype would still apply. */
22156 /* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22167 if { (eval echo configure:22168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22169 eval "ac_cv_func_$ac_func=yes"
22171 echo "configure: failed program was:" >&5
22172 cat conftest.$ac_ext >&5
22174 eval "ac_cv_func_$ac_func=no"
22179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22180 echo "$ac_t""yes" 1>&6
22181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22182 cat >> confdefs.h <<EOF
22183 #define $ac_tr_func 1
22187 echo "$ac_t""no" 1>&6
22192 for ac_func in getopt
22194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22195 echo "configure:22196: checking for $ac_func" >&5
22196 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22197 echo $ac_n "(cached) $ac_c" 1>&6
22199 cat > conftest.$ac_ext <<EOF
22200 #line 22201 "configure"
22201 #include "confdefs.h"
22202 /* System header to define __stub macros and hopefully few prototypes,
22203 which can conflict with char $ac_func(); below. */
22204 #include <assert.h>
22205 /* Override any gcc2 internal prototype to avoid an error. */
22206 /* We use char because int might match the return type of a gcc2
22207 builtin and then its argument prototype would still apply. */
22213 /* The GNU C library defines this for functions which it implements
22214 to always fail with ENOSYS. Some functions are actually named
22215 something starting with __ and the normal name is an alias. */
22216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22224 if { (eval echo configure:22225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22226 eval "ac_cv_func_$ac_func=yes"
22228 echo "configure: failed program was:" >&5
22229 cat conftest.$ac_ext >&5
22231 eval "ac_cv_func_$ac_func=no"
22236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22237 echo "$ac_t""yes" 1>&6
22238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22239 cat >> confdefs.h <<EOF
22240 #define $ac_tr_func 1
22244 echo "$ac_t""no" 1>&6
22245 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22251 if test "$ac_cv_func_getopt" != yes; then
22252 LIBSRCS="$LIBSRCS getopt.c"
22254 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22255 LIBSRCS="$LIBSRCS stdio.c"
22256 LIBOBJS="$LIBOBJS stdio.o"
22257 if test "$ac_cv_func_snprintf" != yes; then
22258 cat >> confdefs.h <<\EOF
22259 #define snprintf ber_pvt_snprintf
22263 if test "$ac_cv_func_vsnprintf" != yes; then
22264 cat >> confdefs.h <<\EOF
22265 #define vsnprintf ber_pvt_vsnprintf
22271 # Check Configuration
22272 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22273 echo "configure:22274: checking declaration of sys_errlist" >&5
22274 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22275 echo $ac_n "(cached) $ac_c" 1>&6
22278 cat > conftest.$ac_ext <<EOF
22279 #line 22280 "configure"
22280 #include "confdefs.h"
22283 #include <sys/types.h>
22286 #include <stdlib.h>
22289 char *c = (char *) *sys_errlist
22292 if { (eval echo configure:22293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22294 ol_cv_dcl_sys_errlist=yes
22295 ol_cv_have_sys_errlist=yes
22297 echo "configure: failed program was:" >&5
22298 cat conftest.$ac_ext >&5
22300 ol_cv_dcl_sys_errlist=no
22305 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22307 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22308 if test $ol_cv_dcl_sys_errlist = no ; then
22309 cat >> confdefs.h <<\EOF
22310 #define DECL_SYS_ERRLIST 1
22314 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22315 echo "configure:22316: checking existence of sys_errlist" >&5
22316 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22317 echo $ac_n "(cached) $ac_c" 1>&6
22320 cat > conftest.$ac_ext <<EOF
22321 #line 22322 "configure"
22322 #include "confdefs.h"
22325 char *c = (char *) *sys_errlist
22328 if { (eval echo configure:22329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22330 ol_cv_have_sys_errlist=yes
22332 echo "configure: failed program was:" >&5
22333 cat conftest.$ac_ext >&5
22335 ol_cv_have_sys_errlist=no
22340 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22342 if test $ol_cv_have_sys_errlist = yes ; then
22343 cat >> confdefs.h <<\EOF
22344 #define HAVE_SYS_ERRLIST 1
22351 if test "$ol_enable_debug" != no ; then
22352 cat >> confdefs.h <<\EOF
22353 #define LDAP_DEBUG 1
22357 if test "$ol_enable_syslog" = yes ; then
22358 cat >> confdefs.h <<\EOF
22359 #define LDAP_SYSLOG 1
22363 if test "$ol_enable_cache" = no ; then
22364 cat >> confdefs.h <<\EOF
22365 #define LDAP_NOCACHE 1
22369 if test "$ol_link_kbind" != no ; then
22370 cat >> confdefs.h <<\EOF
22371 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22375 if test "$ol_enable_proctitle" != no ; then
22376 cat >> confdefs.h <<\EOF
22377 #define LDAP_PROCTITLE 1
22381 if test "$ol_enable_referrals" != no ; then
22382 cat >> confdefs.h <<\EOF
22383 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22387 if test "$ol_enable_local" != no; then
22388 cat >> confdefs.h <<\EOF
22389 #define LDAP_PF_LOCAL 1
22393 if test "$ol_link_ipv6" != no; then
22394 cat >> confdefs.h <<\EOF
22395 #define LDAP_PF_INET6 1
22399 if test "$ol_enable_cleartext" != no ; then
22400 cat >> confdefs.h <<\EOF
22401 #define SLAPD_CLEARTEXT 1
22405 if test "$ol_enable_crypt" != no ; then
22406 cat >> confdefs.h <<\EOF
22407 #define SLAPD_CRYPT 1
22411 if test "$ol_link_kpasswd" != no ; then
22412 cat >> confdefs.h <<\EOF
22413 #define SLAPD_KPASSWD 1
22417 if test "$ol_link_spasswd" != no ; then
22418 cat >> confdefs.h <<\EOF
22419 #define SLAPD_SPASSWD 1
22423 if test "$ol_enable_multimaster" != no ; then
22424 cat >> confdefs.h <<\EOF
22425 #define SLAPD_MULTIMASTER 1
22429 if test "$ol_enable_phonetic" != no ; then
22430 cat >> confdefs.h <<\EOF
22431 #define SLAPD_PHONETIC 1
22435 if test "$ol_enable_rlookups" != no ; then
22436 cat >> confdefs.h <<\EOF
22437 #define SLAPD_RLOOKUPS 1
22441 if test "$ol_enable_aci" != no ; then
22442 cat >> confdefs.h <<\EOF
22443 #define SLAPD_ACI_ENABLED 1
22448 if test "$ol_link_modules" != no ; then
22449 cat >> confdefs.h <<\EOF
22450 #define SLAPD_MODULES 1
22454 SLAPD_MODULES_LDFLAGS="-dlopen self"
22457 if test "$ol_enable_bdb" != no ; then
22458 cat >> confdefs.h <<\EOF
22459 #define SLAPD_BDB 1
22464 if test "$ol_with_bdb_module" != static ; then
22465 cat >> confdefs.h <<\EOF
22466 #define SLAPD_BDB_DYNAMIC 1
22470 BUILD_BDB_DYNAMIC=shared
22471 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22473 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22477 if test "$ol_link_dnssrv" != no ; then
22478 cat >> confdefs.h <<\EOF
22479 #define SLAPD_DNSSRV 1
22484 if test "$ol_with_dnssrv_module" != static ; then
22485 cat >> confdefs.h <<\EOF
22486 #define SLAPD_DNSSRV_DYNAMIC 1
22490 BUILD_DNSSRV_DYNAMIC=shared
22491 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22493 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22497 if test "$ol_enable_ldap" != no ; then
22498 cat >> confdefs.h <<\EOF
22499 #define SLAPD_LDAP 1
22504 if test "$ol_with_ldap_module" != static ; then
22505 cat >> confdefs.h <<\EOF
22506 #define SLAPD_LDAP_DYNAMIC 1
22510 BUILD_LDAP_DYNAMIC=shared
22511 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22513 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22517 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22518 cat >> confdefs.h <<\EOF
22519 #define SLAPD_LDBM 1
22524 if test "$ol_with_ldbm_module" != static ; then
22525 cat >> confdefs.h <<\EOF
22526 #define SLAPD_LDBM_DYNAMIC 1
22530 BUILD_LDBM_DYNAMIC=shared
22531 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22533 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22537 if test "$ol_enable_meta" != no ; then
22538 if test "$ol_enable_ldap" = no ; then
22539 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22541 if test "$ol_enable_rewrite" = no ; then
22542 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22544 cat >> confdefs.h <<\EOF
22545 #define SLAPD_META 1
22552 if test "$ol_with_meta_module" != static ; then
22553 cat >> confdefs.h <<\EOF
22554 #define SLAPD_META_DYNAMIC 1
22558 BUILD_META_DYNAMIC=shared
22559 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22561 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22565 if test "$ol_enable_monitor" != no ; then
22566 cat >> confdefs.h <<\EOF
22567 #define SLAPD_MONITOR 1
22572 if test "$ol_with_monitor_module" != static ; then
22573 cat >> confdefs.h <<\EOF
22574 #define SLAPD_MONITOR_DYNAMIC 1
22578 BUILD_MONITOR_DYNAMIC=shared
22579 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22581 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22585 if test "$ol_enable_null" != no ; then
22586 cat >> confdefs.h <<\EOF
22587 #define SLAPD_NULL 1
22592 if test "$ol_with_null_module" != static ; then
22593 cat >> confdefs.h <<\EOF
22594 #define SLAPD_NULL_DYNAMIC 1
22598 BUILD_NULL_DYNAMIC=shared
22599 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22601 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22605 if test "$ol_enable_passwd" != no ; then
22606 cat >> confdefs.h <<\EOF
22607 #define SLAPD_PASSWD 1
22612 if test "$ol_with_passwd_module" != static ; then
22613 cat >> confdefs.h <<\EOF
22614 #define SLAPD_PASSWD_DYNAMIC 1
22618 BUILD_PASSWD_DYNAMIC=shared
22619 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22621 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22625 if test "$ol_link_perl" != no ; then
22626 cat >> confdefs.h <<\EOF
22627 #define SLAPD_PERL 1
22632 if test "$ol_with_perl_module" != static ; then
22633 cat >> confdefs.h <<\EOF
22634 #define SLAPD_PERL_DYNAMIC 1
22638 BUILD_PERL_DYNAMIC=shared
22639 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22641 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22645 if test "$ol_enable_shell" != no ; then
22646 cat >> confdefs.h <<\EOF
22647 #define SLAPD_SHELL 1
22652 if test "$ol_with_shell_module" != static ; then
22653 cat >> confdefs.h <<\EOF
22654 #define SLAPD_SHELL_DYNAMIC 1
22658 BUILD_SHELL_DYNAMIC=shared
22659 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22661 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22665 if test "$ol_enable_tcl" != no ; then
22666 cat >> confdefs.h <<\EOF
22667 #define SLAPD_TCL 1
22672 if test "$ol_with_tcl_module" != static; then
22673 cat >> confdefs.h <<\EOF
22674 #define SLAPD_TCL_DYNAMIC 1
22678 BUILD_TCL_DYNAMIC=shared
22679 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22681 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22685 if test "$ol_link_sql" != no ; then
22686 cat >> confdefs.h <<\EOF
22687 #define SLAPD_SQL 1
22692 if test "$ol_with_sql_module" != static; then
22693 cat >> confdefs.h <<\EOF
22694 #define SLAPD_SQL_DYNAMIC 1
22698 BUILD_SQL_DYNAMIC=shared
22699 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22701 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22705 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22706 $BUILD_SLAPD = yes ; then
22710 if test "$ol_enable_rewrite" != no ; then
22711 cat >> confdefs.h <<\EOF
22712 #define ENABLE_REWRITE 1
22720 if test "$ac_cv_mingw32" = yes ; then
22722 SLAPD_MODULES_LDFLAGS=
22727 if test -z "$SLAPD_STATIC_BACKENDS"; then
22728 SLAPD_NO_STATIC='#'
22800 # Check whether --with-xxinstall or --without-xxinstall was given.
22801 if test "${with_xxinstall+set}" = set; then
22802 withval="$with_xxinstall"
22810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22813 # Let make expand exec_prefix.
22814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22816 # Any assignment to VPATH causes Sun make to only execute
22817 # the first set of double-colon rules, so remove it if not needed.
22818 # If there is a colon in the path, we need to keep it.
22819 if test "x$srcdir" = x.; then
22820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22825 DEFS=-DHAVE_CONFIG_H
22827 # Without the "./", some shells look in PATH for config.status.
22828 : ${CONFIG_STATUS=./config.status}
22830 echo creating $CONFIG_STATUS
22831 rm -f $CONFIG_STATUS
22832 cat > $CONFIG_STATUS <<EOF
22834 # Generated automatically by configure.
22835 # Run this file to recreate the current configuration.
22836 # This directory was configured as follows,
22837 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22839 # $0 $ac_configure_args
22841 # Compiler output produced by configure, useful for debugging
22842 # configure, is in ./config.log if it exists.
22844 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22847 case "\$ac_option" in
22848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22852 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22854 -help | --help | --hel | --he | --h)
22855 echo "\$ac_cs_usage"; exit 0 ;;
22856 *) echo "\$ac_cs_usage"; exit 1 ;;
22860 ac_given_srcdir=$srcdir
22861 ac_given_INSTALL="$INSTALL"
22863 trap 'rm -fr `echo "\
22864 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22865 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22866 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22867 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22868 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22869 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22870 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22871 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22872 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22873 include/Makefile:build/top.mk:include/Makefile.in \
22874 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22875 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22876 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22877 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22878 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22879 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22880 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22881 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22882 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22883 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22884 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22885 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22886 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22887 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22888 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22889 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22890 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22891 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22892 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22893 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22894 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22895 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22896 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22897 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22898 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22899 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22900 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22901 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22902 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22903 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22905 cat >> $CONFIG_STATUS <<EOF
22907 # Protect against being on the right side of a sed subst in config.status.
22908 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22909 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22913 s%@CFLAGS@%$CFLAGS%g
22914 s%@CPPFLAGS@%$CPPFLAGS%g
22915 s%@CXXFLAGS@%$CXXFLAGS%g
22916 s%@FFLAGS@%$FFLAGS%g
22918 s%@LDFLAGS@%$LDFLAGS%g
22920 s%@exec_prefix@%$exec_prefix%g
22921 s%@prefix@%$prefix%g
22922 s%@program_transform_name@%$program_transform_name%g
22923 s%@bindir@%$bindir%g
22924 s%@sbindir@%$sbindir%g
22925 s%@libexecdir@%$libexecdir%g
22926 s%@datadir@%$datadir%g
22927 s%@sysconfdir@%$sysconfdir%g
22928 s%@sharedstatedir@%$sharedstatedir%g
22929 s%@localstatedir@%$localstatedir%g
22930 s%@libdir@%$libdir%g
22931 s%@includedir@%$includedir%g
22932 s%@oldincludedir@%$oldincludedir%g
22933 s%@infodir@%$infodir%g
22934 s%@mandir@%$mandir%g
22936 s%@host_alias@%$host_alias%g
22937 s%@host_cpu@%$host_cpu%g
22938 s%@host_vendor@%$host_vendor%g
22939 s%@host_os@%$host_os%g
22940 s%@target@%$target%g
22941 s%@target_alias@%$target_alias%g
22942 s%@target_cpu@%$target_cpu%g
22943 s%@target_vendor@%$target_vendor%g
22944 s%@target_os@%$target_os%g
22946 s%@build_alias@%$build_alias%g
22947 s%@build_cpu@%$build_cpu%g
22948 s%@build_vendor@%$build_vendor%g
22949 s%@build_os@%$build_os%g
22950 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22951 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22952 s%@INSTALL_DATA@%$INSTALL_DATA%g
22953 s%@PACKAGE@%$PACKAGE%g
22954 s%@VERSION@%$VERSION%g
22955 s%@ACLOCAL@%$ACLOCAL%g
22956 s%@AUTOCONF@%$AUTOCONF%g
22957 s%@AUTOMAKE@%$AUTOMAKE%g
22958 s%@AUTOHEADER@%$AUTOHEADER%g
22959 s%@MAKEINFO@%$MAKEINFO%g
22960 s%@install_sh@%$install_sh%g
22963 s%@AMTARFLAGS@%$AMTARFLAGS%g
22964 s%@SET_MAKE@%$SET_MAKE%g
22965 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22966 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
22967 s%@top_builddir@%$top_builddir%g
22968 s%@ldap_subdir@%$ldap_subdir%g
22972 s%@OBJEXT@%$OBJEXT%g
22973 s%@EXEEXT@%$EXEEXT%g
22975 s%@RANLIB@%$RANLIB%g
22977 s%@DLLTOOL@%$DLLTOOL%g
22979 s%@OBJDUMP@%$OBJDUMP%g
22981 s%@LIBTOOL@%$LIBTOOL%g
22983 s%@SENDMAIL@%$SENDMAIL%g
22984 s%@EDITOR@%$EDITOR%g
22985 s%@PERLBIN@%$PERLBIN%g
22986 s%@OL_MKDEP@%$OL_MKDEP%g
22987 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22988 s%@LIBOBJS@%$LIBOBJS%g
22989 s%@LIBSRCS@%$LIBSRCS%g
22991 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22992 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22993 s%@BUILD_BDB@%$BUILD_BDB%g
22994 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22995 s%@BUILD_LDAP@%$BUILD_LDAP%g
22996 s%@BUILD_LDBM@%$BUILD_LDBM%g
22997 s%@BUILD_META@%$BUILD_META%g
22998 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22999 s%@BUILD_NULL@%$BUILD_NULL%g
23000 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23001 s%@BUILD_PERL@%$BUILD_PERL%g
23002 s%@BUILD_SHELL@%$BUILD_SHELL%g
23003 s%@BUILD_SQL@%$BUILD_SQL%g
23004 s%@BUILD_TCL@%$BUILD_TCL%g
23005 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23006 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23007 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23008 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23009 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23010 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23011 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23012 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23013 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23014 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23015 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23016 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23017 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23018 s%@LDAP_LIBS@%$LDAP_LIBS%g
23019 s%@LDIF_LIBS@%$LDIF_LIBS%g
23020 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23021 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23022 s%@LDBM_LIBS@%$LDBM_LIBS%g
23023 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23024 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23025 s%@WRAP_LIBS@%$WRAP_LIBS%g
23026 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23027 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23028 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23029 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23030 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23031 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23032 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23033 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23034 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23035 s%@KRB4_LIBS@%$KRB4_LIBS%g
23036 s%@KRB5_LIBS@%$KRB5_LIBS%g
23037 s%@READLINE_LIBS@%$READLINE_LIBS%g
23038 s%@SASL_LIBS@%$SASL_LIBS%g
23039 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23040 s%@TLS_LIBS@%$TLS_LIBS%g
23041 s%@MODULES_LIBS@%$MODULES_LIBS%g
23042 s%@AUTH_LIBS@%$AUTH_LIBS%g
23043 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23044 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23045 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23046 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23051 cat >> $CONFIG_STATUS <<\EOF
23053 # Split the substitutions into bite-sized pieces for seds with
23054 # small command number limits, like on Digital OSF/1 and HP-UX.
23055 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23056 ac_file=1 # Number of current file.
23057 ac_beg=1 # First line for current file.
23058 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23061 while $ac_more_lines; do
23062 if test $ac_beg -gt 1; then
23063 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23065 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23067 if test ! -s conftest.s$ac_file; then
23068 ac_more_lines=false
23069 rm -f conftest.s$ac_file
23071 if test -z "$ac_sed_cmds"; then
23072 ac_sed_cmds="sed -f conftest.s$ac_file"
23074 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23076 ac_file=`expr $ac_file + 1`
23078 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23081 if test -z "$ac_sed_cmds"; then
23086 cat >> $CONFIG_STATUS <<EOF
23088 CONFIG_FILES=\${CONFIG_FILES-"\
23089 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23090 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23091 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23092 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23093 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23094 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23095 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23096 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23097 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23098 include/Makefile:build/top.mk:include/Makefile.in \
23099 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23100 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23101 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23102 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23103 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23104 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23105 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23106 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23107 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23108 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23109 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23110 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23111 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23112 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23113 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23114 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23115 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23116 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23117 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23118 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23119 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23120 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23121 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23122 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23123 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23124 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23125 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23126 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23127 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23130 cat >> $CONFIG_STATUS <<\EOF
23131 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23134 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23135 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23136 *) ac_file_in="${ac_file}.in" ;;
23139 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23141 # Remove last slash and all that follows it. Not all systems have dirname.
23142 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23143 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23144 # The file is in a subdirectory.
23145 test ! -d "$ac_dir" && mkdir "$ac_dir"
23146 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23147 # A "../" for each directory in $ac_dir_suffix.
23148 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23150 ac_dir_suffix= ac_dots=
23153 case "$ac_given_srcdir" in
23155 if test -z "$ac_dots"; then top_srcdir=.
23156 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23157 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23158 *) # Relative path.
23159 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23160 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23163 case "$ac_given_INSTALL" in
23164 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23165 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23168 echo creating "$ac_file"
23170 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23172 *[Mm]akefile*) ac_comsub="1i\\
23173 # $configure_input" ;;
23177 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23179 s%@configure_input@%$configure_input%g
23180 s%@srcdir@%$srcdir%g
23181 s%@top_srcdir@%$top_srcdir%g
23182 s%@INSTALL@%$INSTALL%g
23183 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23187 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23188 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23190 # ac_d sets the value in "#define NAME VALUE" lines.
23191 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23192 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23195 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23196 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23197 ac_uB='\([ ]\)%\1#\2define\3'
23200 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23201 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23202 ac_eB='$%\1#\2define\3'
23206 if test "${CONFIG_HEADERS+set}" != set; then
23208 cat >> $CONFIG_STATUS <<EOF
23209 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23211 cat >> $CONFIG_STATUS <<\EOF
23213 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23214 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23216 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23217 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23218 *) ac_file_in="${ac_file}.in" ;;
23221 echo creating $ac_file
23223 rm -f conftest.frag conftest.in conftest.out
23224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23225 cat $ac_file_inputs > conftest.in
23229 # Transform confdefs.h into a sed script conftest.vals that substitutes
23230 # the proper values into config.h.in to produce config.h. And first:
23231 # Protect against being on the right side of a sed subst in config.status.
23232 # Protect against being in an unquoted here document in config.status.
23233 rm -f conftest.vals
23234 cat > conftest.hdr <<\EOF
23237 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23241 sed -n -f conftest.hdr confdefs.h > conftest.vals
23244 # This sed command replaces #undef with comments. This is necessary, for
23245 # example, in the case of _POSIX_SOURCE, which is predefined and required
23246 # on some systems where configure will not decide to define it.
23247 cat >> conftest.vals <<\EOF
23248 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23251 # Break up conftest.vals because some shells have a limit on
23252 # the size of here documents, and old seds have small limits too.
23254 rm -f conftest.tail
23257 ac_lines=`grep -c . conftest.vals`
23258 # grep -c gives empty output for an empty file on some AIX systems.
23259 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23260 # Write a limited-size here document to conftest.frag.
23261 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23262 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23264 sed -f conftest.frag conftest.in > conftest.out
23266 mv conftest.out conftest.in
23267 ' >> $CONFIG_STATUS
23268 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23269 rm -f conftest.vals
23270 mv conftest.tail conftest.vals
23272 rm -f conftest.vals
23274 cat >> $CONFIG_STATUS <<\EOF
23275 rm -f conftest.frag conftest.h
23276 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23277 cat conftest.in >> conftest.h
23279 if cmp -s $ac_file conftest.h 2>/dev/null; then
23280 echo "$ac_file is unchanged"
23283 # Remove last slash and all that follows it. Not all systems have dirname.
23284 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23285 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23286 # The file is in a subdirectory.
23287 test ! -d "$ac_dir" && mkdir "$ac_dir"
23290 mv conftest.h $ac_file
23295 cat >> $CONFIG_STATUS <<EOF
23298 cat >> $CONFIG_STATUS <<\EOF
23301 echo Please run \"make depend\" to build dependencies
23305 chmod +x $CONFIG_STATUS
23306 rm -fr confdefs* $ac_clean_files
23307 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1