3 # from OpenLDAP: pkg/ldap/configure.in,v 1.421 2002/06/12 02:55:36 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
136 --enable-sql enable sql backend [no]"
138 --with-sql-module module type static|dynamic [static]"
140 --enable-tcl enable tcl backend [no]"
142 --with-tcl-module module type static|dynamic [static]"
145 SLURPD (Replication Daemon) Options:"
147 --enable-slurpd enable building slurpd [auto]"
150 Library Generation & Linking Options"
152 --enable-static[=PKGS] build static libraries [default=yes]"
154 --enable-shared[=PKGS] build shared libraries [default=yes]"
156 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
158 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
160 # Find the correct PATH separator. Usually this is `:', but
161 # DJGPP uses `;' like DOS.
162 if test "X${PATH_SEPARATOR+set}" != Xset; then
163 UNAME=${UNAME-`uname 2>/dev/null`}
165 *-DOS) lt_cv_sys_path_separator=';' ;;
166 *) lt_cv_sys_path_separator=':' ;;
168 PATH_SEPARATOR=$lt_cv_sys_path_separator
172 # Check that we are running under the correct shell.
173 SHELL=${CONFIG_SHELL-/bin/sh}
177 # Remove one level of quotation (which was required for Make).
178 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
183 if test "X$1" = X--no-reexec; then
184 # Discard the --no-reexec flag, and continue.
186 elif test "X$1" = X--fallback-echo; then
187 # Avoid inline document here, it may be left over
189 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
190 # Yippee, $echo works!
193 # Restart under the correct shell.
194 exec $SHELL "$0" --no-reexec ${1+"$@"}
197 if test "X$1" = X--fallback-echo; then
198 # used as fallback echo
206 # The HP-UX ksh and POSIX shell print the target directory to stdout
208 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
210 if test -z "$ECHO"; then
211 if test "X${echo_test_string+set}" != Xset; then
212 # find a string as large as possible, as long as the shell can cope with it
213 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
214 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
215 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
216 echo_test_string="`eval $cmd`" &&
217 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
224 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
225 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
226 test "X$echo_testing_string" = "X$echo_test_string"; then
229 # The Solaris, AIX, and Digital Unix default echo programs unquote
230 # backslashes. This makes it impossible to quote backslashes using
231 # echo "$something" | sed 's/\\/\\\\/g'
233 # So, first we look for a working echo in the user's PATH.
235 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
236 for dir in $PATH /usr/ucb; do
237 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
238 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
247 if test "X$echo" = Xecho; then
248 # We didn't find a better echo, so look for alternatives.
249 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
250 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
251 test "X$echo_testing_string" = "X$echo_test_string"; then
252 # This shell has a builtin print -r that does the trick.
254 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
255 test "X$CONFIG_SHELL" != X/bin/ksh; then
256 # If we have ksh, try running configure again with it.
257 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
258 export ORIGINAL_CONFIG_SHELL
259 CONFIG_SHELL=/bin/ksh
261 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
265 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
266 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
267 test "X$echo_testing_string" = "X$echo_test_string"; then
270 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
271 test "X$echo_testing_string" = 'X\t' &&
272 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
273 test "X$echo_testing_string" = "X$echo_test_string"; then
274 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
276 SHELL="$CONFIG_SHELL"
278 echo="$CONFIG_SHELL $0 --fallback-echo"
279 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
280 test "X$echo_testing_string" = 'X\t' &&
281 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
282 test "X$echo_testing_string" = "X$echo_test_string"; then
283 echo="$CONFIG_SHELL $0 --fallback-echo"
285 # maybe with a smaller string...
288 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
289 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
296 if test "$prev" != 'sed 50q "$0"'; then
297 echo_test_string=`eval $prev`
298 export echo_test_string
299 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
301 # Oops. We lost completely, so just stick with echo.
310 # Copy echo and quote the copy suitably for passing to libtool from
311 # the Makefile, instead of quoting the original, which is used later.
313 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
314 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
319 --disable-libtool-lock avoid locking (might break parallel builds)"
321 --with-pic try to use only PIC/non-PIC objects [default=use both]"
324 See INSTALL file for further details."
326 # Initialize some variables set by options.
327 # The variables have the same names as the options, with
328 # dashes changed to underlines.
330 cache_file=./config.cache
339 program_transform_name=s,x,x,
347 bindir='${exec_prefix}/bin'
348 sbindir='${exec_prefix}/sbin'
349 libexecdir='${exec_prefix}/libexec'
350 datadir='${prefix}/share'
351 sysconfdir='${prefix}/etc'
352 sharedstatedir='${prefix}/com'
353 localstatedir='${prefix}/var'
354 libdir='${exec_prefix}/lib'
355 includedir='${prefix}/include'
356 oldincludedir='/usr/include'
357 infodir='${prefix}/info'
358 mandir='${prefix}/man'
360 # Initialize some other variables.
363 SHELL=${CONFIG_SHELL-/bin/sh}
364 # Maximum number of lines to put in a shell here document.
371 # If the previous option needs an argument, assign it.
372 if test -n "$ac_prev"; then
373 eval "$ac_prev=\$ac_option"
379 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
383 # Accept the important Cygnus configure options, so we can diagnose typos.
387 -bindir | --bindir | --bindi | --bind | --bin | --bi)
389 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
390 bindir="$ac_optarg" ;;
392 -build | --build | --buil | --bui | --bu)
394 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395 build="$ac_optarg" ;;
397 -cache-file | --cache-file | --cache-fil | --cache-fi \
398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399 ac_prev=cache_file ;;
400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402 cache_file="$ac_optarg" ;;
404 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
406 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
408 datadir="$ac_optarg" ;;
410 -disable-* | --disable-*)
411 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
416 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
417 eval "enable_${ac_feature}=no" ;;
419 -enable-* | --enable-*)
420 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
423 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
425 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
430 eval "enable_${ac_feature}='$ac_optarg'" ;;
432 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
433 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
434 | --exec | --exe | --ex)
435 ac_prev=exec_prefix ;;
436 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
437 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
438 | --exec=* | --exe=* | --ex=*)
439 exec_prefix="$ac_optarg" ;;
441 -gas | --gas | --ga | --g)
442 # Obsolete; use --with-gas.
445 -help | --help | --hel | --he)
446 # Omit some internal or obsolete options to make the list less imposing.
447 # This message is too long to be a string in the A/UX 3.1 sh.
449 Usage: configure [options] [host]
450 Options: [defaults in brackets after descriptions]
452 --cache-file=FILE cache test results in FILE
453 --help print this message
454 --no-create do not create output files
455 --quiet, --silent do not print \`checking...' messages
456 --version print the version of autoconf that created configure
457 Directory and file names:
458 --prefix=PREFIX install architecture-independent files in PREFIX
460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
462 --bindir=DIR user executables in DIR [EPREFIX/bin]
463 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
464 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
465 --datadir=DIR read-only architecture-independent data in DIR
467 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
468 --sharedstatedir=DIR modifiable architecture-independent data in DIR
470 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
471 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
472 --includedir=DIR C header files in DIR [PREFIX/include]
473 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
474 --infodir=DIR info documentation in DIR [PREFIX/info]
475 --mandir=DIR man documentation in DIR [PREFIX/man]
476 --srcdir=DIR find the sources in DIR [configure dir or ..]
477 --program-prefix=PREFIX prepend PREFIX to installed program names
478 --program-suffix=SUFFIX append SUFFIX to installed program names
479 --program-transform-name=PROGRAM
480 run sed PROGRAM on installed program names
484 --build=BUILD configure for building on BUILD [BUILD=HOST]
485 --host=HOST configure for HOST [guessed]
486 --target=TARGET configure for TARGET [TARGET=HOST]
487 Features and packages:
488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
492 --x-includes=DIR X include files are in DIR
493 --x-libraries=DIR X library files are in DIR
495 if test -n "$ac_help"; then
496 echo "--enable and --with options recognized:$ac_help"
500 -host | --host | --hos | --ho)
502 -host=* | --host=* | --hos=* | --ho=*)
505 -includedir | --includedir | --includedi | --included | --include \
506 | --includ | --inclu | --incl | --inc)
507 ac_prev=includedir ;;
508 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
509 | --includ=* | --inclu=* | --incl=* | --inc=*)
510 includedir="$ac_optarg" ;;
512 -infodir | --infodir | --infodi | --infod | --info | --inf)
514 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
515 infodir="$ac_optarg" ;;
517 -libdir | --libdir | --libdi | --libd)
519 -libdir=* | --libdir=* | --libdi=* | --libd=*)
520 libdir="$ac_optarg" ;;
522 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
523 | --libexe | --libex | --libe)
524 ac_prev=libexecdir ;;
525 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
526 | --libexe=* | --libex=* | --libe=*)
527 libexecdir="$ac_optarg" ;;
529 -localstatedir | --localstatedir | --localstatedi | --localstated \
530 | --localstate | --localstat | --localsta | --localst \
531 | --locals | --local | --loca | --loc | --lo)
532 ac_prev=localstatedir ;;
533 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
534 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
535 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
536 localstatedir="$ac_optarg" ;;
538 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
540 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
541 mandir="$ac_optarg" ;;
544 # Obsolete; use --without-fp.
547 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
551 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
552 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
555 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
556 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
557 | --oldin | --oldi | --old | --ol | --o)
558 ac_prev=oldincludedir ;;
559 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
560 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
561 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
562 oldincludedir="$ac_optarg" ;;
564 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
566 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
567 prefix="$ac_optarg" ;;
569 -program-prefix | --program-prefix | --program-prefi | --program-pref \
570 | --program-pre | --program-pr | --program-p)
571 ac_prev=program_prefix ;;
572 -program-prefix=* | --program-prefix=* | --program-prefi=* \
573 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
574 program_prefix="$ac_optarg" ;;
576 -program-suffix | --program-suffix | --program-suffi | --program-suff \
577 | --program-suf | --program-su | --program-s)
578 ac_prev=program_suffix ;;
579 -program-suffix=* | --program-suffix=* | --program-suffi=* \
580 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
581 program_suffix="$ac_optarg" ;;
583 -program-transform-name | --program-transform-name \
584 | --program-transform-nam | --program-transform-na \
585 | --program-transform-n | --program-transform- \
586 | --program-transform | --program-transfor \
587 | --program-transfo | --program-transf \
588 | --program-trans | --program-tran \
589 | --progr-tra | --program-tr | --program-t)
590 ac_prev=program_transform_name ;;
591 -program-transform-name=* | --program-transform-name=* \
592 | --program-transform-nam=* | --program-transform-na=* \
593 | --program-transform-n=* | --program-transform-=* \
594 | --program-transform=* | --program-transfor=* \
595 | --program-transfo=* | --program-transf=* \
596 | --program-trans=* | --program-tran=* \
597 | --progr-tra=* | --program-tr=* | --program-t=*)
598 program_transform_name="$ac_optarg" ;;
600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
601 | -silent | --silent | --silen | --sile | --sil)
604 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
606 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
608 sbindir="$ac_optarg" ;;
610 -sharedstatedir | --sharedstatedir | --sharedstatedi \
611 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
612 | --sharedst | --shareds | --shared | --share | --shar \
614 ac_prev=sharedstatedir ;;
615 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
616 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
617 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
619 sharedstatedir="$ac_optarg" ;;
621 -site | --site | --sit)
623 -site=* | --site=* | --sit=*)
626 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
628 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
629 srcdir="$ac_optarg" ;;
631 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
632 | --syscon | --sysco | --sysc | --sys | --sy)
633 ac_prev=sysconfdir ;;
634 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
635 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
636 sysconfdir="$ac_optarg" ;;
638 -target | --target | --targe | --targ | --tar | --ta | --t)
640 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
641 target="$ac_optarg" ;;
643 -v | -verbose | --verbose | --verbos | --verbo | --verb)
646 -version | --version | --versio | --versi | --vers)
647 echo "configure generated by autoconf version 2.13.1"
651 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
652 # Reject names that are not valid shell variable names.
653 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
654 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
656 ac_package=`echo $ac_package| sed 's/-/_/g'`
661 eval "with_${ac_package}='$ac_optarg'" ;;
663 -without-* | --without-*)
664 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
665 # Reject names that are not valid shell variable names.
666 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
667 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
669 ac_package=`echo $ac_package| sed 's/-/_/g'`
670 eval "with_${ac_package}=no" ;;
673 # Obsolete; use --with-x.
676 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
677 | --x-incl | --x-inc | --x-in | --x-i)
678 ac_prev=x_includes ;;
679 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
680 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
681 x_includes="$ac_optarg" ;;
683 -x-libraries | --x-libraries | --x-librarie | --x-librari \
684 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
685 ac_prev=x_libraries ;;
686 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
687 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
688 x_libraries="$ac_optarg" ;;
690 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
694 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
695 echo "configure: warning: $ac_option: invalid host type" 1>&2
697 if test "x$nonopt" != xNONE; then
698 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
706 if test -n "$ac_prev"; then
707 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
710 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
712 # File descriptor usage:
715 # 2 errors and warnings
716 # 3 some systems may open it to /dev/tty
717 # 4 used on the Kubota Titan
718 # 6 checking for... messages and results
719 # 5 compiler messages saved in config.log
720 if test "$silent" = yes; then
728 This file contains any messages produced by compilers while
729 running configure, to aid debugging if configure makes a mistake.
732 # Strip out --no-create and --no-recursion so they do not pile up.
733 # Also quote any args containing shell metacharacters.
738 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
739 | --no-cr | --no-c) ;;
740 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
741 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
742 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
743 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
744 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
749 # Only set these to C if already set. These must not be set unconditionally
750 # because not all systems understand e.g. LANG=C (notably SCO).
751 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
752 # Non-C LC_CTYPE values break the ctype check.
753 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
754 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
755 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
756 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
759 rm -rf conftest* confdefs.h
760 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
763 # A filename unique to this package, relative to the directory that
764 # configure is in, which we can look for to find out if srcdir is correct.
765 ac_unique_file=build/version.sh
767 # Find the source files, if location was not specified.
768 if test -z "$srcdir"; then
769 ac_srcdir_defaulted=yes
770 # Try the directory containing this script, then its parent.
772 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
773 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
775 if test ! -r $srcdir/$ac_unique_file; then
779 ac_srcdir_defaulted=no
781 if test ! -r $srcdir/$ac_unique_file; then
782 if test "$ac_srcdir_defaulted" = yes; then
783 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
785 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
788 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
790 # Prefer explicitly selected file to automatically selected ones.
791 if test -z "$CONFIG_SITE"; then
792 if test "x$prefix" != xNONE; then
793 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
795 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
798 for ac_site_file in $CONFIG_SITE; do
799 if test -r "$ac_site_file"; then
800 echo "loading site script $ac_site_file"
807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
808 ac_cpp='$CPP $CPPFLAGS'
809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
811 cross_compiling=$ac_cv_prog_cc_cross
815 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
816 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
817 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
824 ac_n= ac_c='\c' ac_t=
828 # set unset (borrowed from autoconf 2.49c)
829 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
835 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
838 for ac_dir in build $srcdir/build; do
839 if test -f $ac_dir/install-sh; then
841 ac_install_sh="$ac_aux_dir/install-sh -c"
843 elif test -f $ac_dir/install.sh; then
845 ac_install_sh="$ac_aux_dir/install.sh -c"
847 elif test -f $ac_dir/shtool; then
849 ac_install_sh="$ac_aux_dir/shtool install -c"
853 if test -z "$ac_aux_dir"; then
854 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
858 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
860 eval `$ac_aux_dir/version.sh`
861 if test -z "$OL_STRING"; then
862 { echo "configure: error: could not determine version" 1>&2; exit 1; }
865 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
866 ac_cv_shtool="$ac_aux_dir/shtool"
868 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
871 SHTOOL="$ac_cv_shtool"
873 TB=`$SHTOOL echo -e %B`
874 TN=`$SHTOOL echo -e %b`
876 echo "Configuring $TB$OL_STRING$TN ..."
879 echo $ac_n "checking host system type""... $ac_c" 1>&6
880 echo "configure:881: checking host system type" >&5
881 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 ac_cv_host_alias=$host
889 case "$ac_cv_host_alias" in
893 if ac_cv_host_alias=`$ac_config_guess`; then :
894 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896 *) ac_cv_host_alias=$nonopt ;;
900 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
901 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
902 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
903 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo $ac_n "(cached) $ac_c" 1>&6
908 echo "$ac_t""$ac_cv_host" 1>&6
911 host_alias=$ac_cv_host_alias
912 host_cpu=$ac_cv_host_cpu
913 host_vendor=$ac_cv_host_vendor
914 host_os=$ac_cv_host_os
920 echo $ac_n "checking target system type""... $ac_c" 1>&6
921 echo "configure:922: checking target system type" >&5
922 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
924 # Make sure we can run config.sub.
925 if $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 ac_cv_target_alias=$target
930 case "$ac_cv_target_alias" in
934 ac_cv_target_alias=$host_alias ;;
936 *) ac_cv_target_alias=$nonopt ;;
940 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
941 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo $ac_n "(cached) $ac_c" 1>&6
948 echo "$ac_t""$ac_cv_target" 1>&6
951 target_alias=$ac_cv_target_alias
952 target_cpu=$ac_cv_target_cpu
953 target_vendor=$ac_cv_target_vendor
954 target_os=$ac_cv_target_os
960 echo $ac_n "checking build system type""... $ac_c" 1>&6
961 echo "configure:962: checking build system type" >&5
962 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
964 # Make sure we can run config.sub.
965 if $ac_config_sub sun4 >/dev/null 2>&1; then :
966 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
969 ac_cv_build_alias=$build
970 case "$ac_cv_build_alias" in
974 ac_cv_build_alias=$host_alias ;;
976 *) ac_cv_build_alias=$nonopt ;;
980 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
981 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo $ac_n "(cached) $ac_c" 1>&6
988 echo "$ac_t""$ac_cv_build" 1>&6
991 build_alias=$ac_cv_build_alias
992 build_cpu=$ac_cv_build_cpu
993 build_vendor=$ac_cv_build_vendor
994 build_os=$ac_cv_build_os
1000 # Do some error checking and defaulting for the host and target type.
1002 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 # 1. You are not allowed to specify --host, --target, and nonopt at the
1007 # 2. Host defaults to nonopt.
1008 # 3. If nonopt is not specified, then host defaults to the current host,
1009 # as determined by config.guess.
1010 # 4. Target and build default to nonopt.
1011 # 5. If nonopt is not specified, then target and build default to host.
1013 # The aliases save the names the user supplied, while $host etc.
1014 # will get canonicalized.
1015 case $host---$target---$nonopt in
1016 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1026 # Find a good install program. We prefer a C program (faster),
1027 # so one script is as good as another. But avoid the broken or
1028 # incompatible versions:
1029 # SysV /etc/install, /usr/sbin/install
1030 # SunOS /usr/etc/install
1031 # IRIX /sbin/install
1033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1036 # ./install, which can be erroneously created by make from ./install.sh.
1037 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1038 echo "configure:1039: checking for a BSD compatible install" >&5
1039 if test -z "$INSTALL"; then
1040 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1044 for ac_dir in $PATH; do
1045 # Account for people who put trailing slashes in PATH elements.
1047 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 # Don't use installbsd from OSF since it installs stuff as root
1052 for ac_prog in ginstall scoinst install; do
1053 if test -f $ac_dir/$ac_prog; then
1054 if test $ac_prog = install &&
1055 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # AIX install. It has an incompatible calling convention.
1058 elif test $ac_prog = install &&
1059 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # program-specific install script used by HP pwplus--don't use.
1063 ac_cv_path_install="$ac_dir/$ac_prog -c"
1074 if test "${ac_cv_path_install+set}" = set; then
1075 INSTALL="$ac_cv_path_install"
1077 # As a last resort, use the slow shell script. We don't cache a
1078 # path for INSTALL within a source directory, because that will
1079 # break other packages using the cache if that directory is
1080 # removed, or if the path is relative.
1081 INSTALL="$ac_install_sh"
1084 echo "$ac_t""$INSTALL" 1>&6
1086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1087 # It thinks the first close brace ends the variable substitution.
1088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1094 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether build environment is sane" >&5
1098 echo timestamp > conftestfile
1099 # Do `set' in a subshell so we don't clobber the current shell's
1100 # arguments. Must try -L first in case configure is actually a
1101 # symlink; some systems play weird games with the mod time of symlinks
1102 # (eg FreeBSD returns the mod time of the symlink's containing
1105 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1106 if test "$*" = "X"; then
1108 set X `ls -t $srcdir/configure conftestfile`
1110 if test "$*" != "X $srcdir/configure conftestfile" \
1111 && test "$*" != "X conftestfile $srcdir/configure"; then
1113 # If neither matched, then we have a broken ls. This can happen
1114 # if, for instance, CONFIG_SHELL is bash and it inherits a
1115 # broken ls alias from the environment. This has actually
1116 # happened. Such a system could not be considered "sane".
1117 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1118 alias in your environment" 1>&2; exit 1; }
1121 test "$2" = conftestfile
1127 { echo "configure: error: newly created file is older than distributed files!
1128 Check your system clock" 1>&2; exit 1; }
1131 echo "$ac_t""yes" 1>&6
1132 if test "$program_transform_name" = s,x,x,; then
1133 program_transform_name=
1135 # Double any \ or $. echo might interpret backslashes.
1136 cat <<\EOF_SED > conftestsed
1137 s,\\,\\\\,g; s,\$,$$,g
1139 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1142 test "$program_prefix" != NONE &&
1143 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1144 # Use a double $ so make ignores it.
1145 test "$program_suffix" != NONE &&
1146 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1148 # sed with no file args requires a program.
1149 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1151 for ac_prog in mawk gawk nawk awk
1153 # Extract the first word of "$ac_prog", so it can be a program name with args.
1154 set dummy $ac_prog; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$AWK"; then
1161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_AWK="$ac_prog"
1175 AWK="$ac_cv_prog_AWK"
1176 if test -n "$AWK"; then
1177 echo "$ac_t""$AWK" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 test -n "$AWK" && break
1185 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5
1187 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1188 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftestmake <<\EOF
1193 @echo 'ac_maketemp="${MAKE}"'
1195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1196 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1197 if test -n "$ac_maketemp"; then
1198 eval ac_cv_prog_make_${ac_make}_set=yes
1200 eval ac_cv_prog_make_${ac_make}_set=no
1204 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1208 echo "$ac_t""no" 1>&6
1209 SET_MAKE="MAKE=${MAKE-make}"
1218 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1219 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224 missing_dir=`cd $ac_aux_dir && pwd`
1225 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1226 echo "configure:1227: checking for working aclocal" >&5
1227 # Run test in a subshell; some versions of sh will print an error if
1228 # an executable is not found, even if stderr is redirected.
1229 # Redirect stdin to placate older versions of autoconf. Sigh.
1230 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1232 echo "$ac_t""found" 1>&6
1234 ACLOCAL="$missing_dir/missing aclocal"
1235 echo "$ac_t""missing" 1>&6
1238 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1239 echo "configure:1240: checking for working autoconf" >&5
1240 # Run test in a subshell; some versions of sh will print an error if
1241 # an executable is not found, even if stderr is redirected.
1242 # Redirect stdin to placate older versions of autoconf. Sigh.
1243 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1245 echo "$ac_t""found" 1>&6
1247 AUTOCONF="$missing_dir/missing autoconf"
1248 echo "$ac_t""missing" 1>&6
1251 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1252 echo "configure:1253: checking for working automake" >&5
1253 # Run test in a subshell; some versions of sh will print an error if
1254 # an executable is not found, even if stderr is redirected.
1255 # Redirect stdin to placate older versions of autoconf. Sigh.
1256 if (automake --version) < /dev/null > /dev/null 2>&1; then
1258 echo "$ac_t""found" 1>&6
1260 AUTOMAKE="$missing_dir/missing automake"
1261 echo "$ac_t""missing" 1>&6
1264 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1265 echo "configure:1266: checking for working autoheader" >&5
1266 # Run test in a subshell; some versions of sh will print an error if
1267 # an executable is not found, even if stderr is redirected.
1268 # Redirect stdin to placate older versions of autoconf. Sigh.
1269 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1270 AUTOHEADER=autoheader
1271 echo "$ac_t""found" 1>&6
1273 AUTOHEADER="$missing_dir/missing autoheader"
1274 echo "$ac_t""missing" 1>&6
1277 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1278 echo "configure:1279: checking for working makeinfo" >&5
1279 # Run test in a subshell; some versions of sh will print an error if
1280 # an executable is not found, even if stderr is redirected.
1281 # Redirect stdin to placate older versions of autoconf. Sigh.
1282 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1284 echo "$ac_t""found" 1>&6
1286 MAKEINFO="$missing_dir/missing makeinfo"
1287 echo "$ac_t""missing" 1>&6
1290 install_sh="$missing_dir/install-sh"
1291 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1293 for ac_prog in gnutar gtar tar
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$AMTAR"; then
1303 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AMTAR="$ac_prog"
1317 AMTAR="$ac_cv_prog_AMTAR"
1318 if test -n "$AMTAR"; then
1319 echo "$ac_t""$AMTAR" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 test -n "$AMTAR" && break
1329 if test -n "$AMTAR"; then
1330 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_PACKAGE "$PACKAGE"
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_VERSION "$VERSION"
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION $OL_API_INC
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1361 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1367 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1368 echo "configure:1369: checking configure arguments" >&5
1373 ldap_subdir="/openldap"
1375 # Check whether --with-subdir or --without-subdir was given.
1376 if test "${with_subdir+set}" = set; then
1377 withval="$with_subdir"
1384 ldap_subdir="$withval"
1387 ldap_subdir="/$withval"
1394 # OpenLDAP --enable-debug
1395 # Check whether --enable-debug or --disable-debug was given.
1396 if test "${enable_debug+set}" = set; then
1397 enableval="$enable_debug"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1408 ol_enable_debug="$ol_arg"
1411 ol_enable_debug="yes"
1413 # end --enable-debug
1414 # OpenLDAP --enable-syslog
1415 # Check whether --enable-syslog or --disable-syslog was given.
1416 if test "${enable_syslog+set}" = set; then
1417 enableval="$enable_syslog"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1428 ol_enable_syslog="$ol_arg"
1431 ol_enable_syslog="auto"
1433 # end --enable-syslog
1434 # OpenLDAP --enable-proctitle
1435 # Check whether --enable-proctitle or --disable-proctitle was given.
1436 if test "${enable_proctitle+set}" = set; then
1437 enableval="$enable_proctitle"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1448 ol_enable_proctitle="$ol_arg"
1451 ol_enable_proctitle="yes"
1453 # end --enable-proctitle
1454 # OpenLDAP --enable-cache
1455 # Check whether --enable-cache or --disable-cache was given.
1456 if test "${enable_cache+set}" = set; then
1457 enableval="$enable_cache"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1468 ol_enable_cache="$ol_arg"
1471 ol_enable_cache="no"
1473 # end --enable-cache
1474 # OpenLDAP --enable-referrals
1475 # Check whether --enable-referrals or --disable-referrals was given.
1476 if test "${enable_referrals+set}" = set; then
1477 enableval="$enable_referrals"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1488 ol_enable_referrals="$ol_arg"
1491 ol_enable_referrals="no"
1493 # end --enable-referrals
1494 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1535 # OpenLDAP --enable-x_compile
1536 # Check whether --enable-x_compile or --disable-x_compile was given.
1537 if test "${enable_x_compile+set}" = set; then
1538 enableval="$enable_x_compile"
1541 for ol_val in yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1549 ol_enable_x_compile="$ol_arg"
1552 ol_enable_x_compile="no"
1554 # end --enable-x_compile
1557 # OpenLDAP --with-cyrus_sasl
1558 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1559 if test "${with_cyrus_sasl+set}" = set; then
1560 withval="$with_cyrus_sasl"
1563 for ol_val in auto yes no ; do
1564 if test "$withval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1571 ol_with_cyrus_sasl="$ol_arg"
1574 ol_with_cyrus_sasl="auto"
1576 # end --with-cyrus_sasl
1578 # OpenLDAP --with-fetch
1579 # Check whether --with-fetch or --without-fetch was given.
1580 if test "${with_fetch+set}" = set; then
1581 withval="$with_fetch"
1584 for ol_val in auto yes no ; do
1585 if test "$withval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1592 ol_with_fetch="$ol_arg"
1595 ol_with_fetch="auto"
1599 # OpenLDAP --with-kerberos
1600 # Check whether --with-kerberos or --without-kerberos was given.
1601 if test "${with_kerberos+set}" = set; then
1602 withval="$with_kerberos"
1605 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1606 if test "$withval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1613 ol_with_kerberos="$ol_arg"
1616 ol_with_kerberos="auto"
1618 # end --with-kerberos
1620 # OpenLDAP --with-readline
1621 # Check whether --with-readline or --without-readline was given.
1622 if test "${with_readline+set}" = set; then
1623 withval="$with_readline"
1626 for ol_val in auto yes no ; do
1627 if test "$withval" = "$ol_val" ; then
1631 if test "$ol_arg" = "invalid" ; then
1632 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1634 ol_with_readline="$ol_arg"
1637 ol_with_readline="auto"
1639 # end --with-readline
1641 # OpenLDAP --with-threads
1642 # Check whether --with-threads or --without-threads was given.
1643 if test "${with_threads+set}" = set; then
1644 withval="$with_threads"
1647 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1655 ol_with_threads="$ol_arg"
1658 ol_with_threads="auto"
1660 # end --with-threads
1662 # OpenLDAP --with-tls
1663 # Check whether --with-tls or --without-tls was given.
1664 if test "${with_tls+set}" = set; then
1668 for ol_val in auto ssleay openssl yes no ; do
1669 if test "$withval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1676 ol_with_tls="$ol_arg"
1683 # OpenLDAP --with-yielding_select
1684 # Check whether --with-yielding_select or --without-yielding_select was given.
1685 if test "${with_yielding_select+set}" = set; then
1686 withval="$with_yielding_select"
1689 for ol_val in auto yes no manual ; do
1690 if test "$withval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1697 ol_with_yielding_select="$ol_arg"
1700 ol_with_yielding_select="auto"
1702 # end --with-yielding_select
1706 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1707 if test "${with_xxslapdoptions+set}" = set; then
1708 withval="$with_xxslapdoptions"
1712 # OpenLDAP --enable-slapd
1713 # Check whether --enable-slapd or --disable-slapd was given.
1714 if test "${enable_slapd+set}" = set; then
1715 enableval="$enable_slapd"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1726 ol_enable_slapd="$ol_arg"
1729 ol_enable_slapd="yes"
1731 # end --enable-slapd
1732 # OpenLDAP --enable-aci
1733 # Check whether --enable-aci or --disable-aci was given.
1734 if test "${enable_aci+set}" = set; then
1735 enableval="$enable_aci"
1738 for ol_val in auto yes no ; do
1739 if test "$enableval" = "$ol_val" ; then
1743 if test "$ol_arg" = "invalid" ; then
1744 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1746 ol_enable_aci="$ol_arg"
1752 # OpenLDAP --enable-cleartext
1753 # Check whether --enable-cleartext or --disable-cleartext was given.
1754 if test "${enable_cleartext+set}" = set; then
1755 enableval="$enable_cleartext"
1758 for ol_val in auto yes no ; do
1759 if test "$enableval" = "$ol_val" ; then
1763 if test "$ol_arg" = "invalid" ; then
1764 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1766 ol_enable_cleartext="$ol_arg"
1769 ol_enable_cleartext="yes"
1771 # end --enable-cleartext
1772 # OpenLDAP --enable-crypt
1773 # Check whether --enable-crypt or --disable-crypt was given.
1774 if test "${enable_crypt+set}" = set; then
1775 enableval="$enable_crypt"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1786 ol_enable_crypt="$ol_arg"
1789 ol_enable_crypt="no"
1791 # end --enable-crypt
1792 # OpenLDAP --enable-dynamic
1793 # Check whether --enable-dynamic or --disable-dynamic was given.
1794 if test "${enable_dynamic+set}" = set; then
1795 enableval="$enable_dynamic"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1806 ol_enable_dynamic="$ol_arg"
1809 ol_enable_dynamic="no"
1811 # end --enable-dynamic
1812 # OpenLDAP --enable-kpasswd
1813 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1814 if test "${enable_kpasswd+set}" = set; then
1815 enableval="$enable_kpasswd"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1826 ol_enable_kpasswd="$ol_arg"
1829 ol_enable_kpasswd="no"
1831 # end --enable-kpasswd
1832 # OpenLDAP --enable-lmpasswd
1833 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1834 if test "${enable_lmpasswd+set}" = set; then
1835 enableval="$enable_lmpasswd"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1846 ol_enable_lmpasswd="$ol_arg"
1849 ol_enable_lmpasswd="no"
1851 # end --enable-lmpasswd
1852 # OpenLDAP --enable-spasswd
1853 # Check whether --enable-spasswd or --disable-spasswd was given.
1854 if test "${enable_spasswd+set}" = set; then
1855 enableval="$enable_spasswd"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1866 ol_enable_spasswd="$ol_arg"
1869 ol_enable_spasswd="no"
1871 # end --enable-spasswd
1872 # OpenLDAP --enable-modules
1873 # Check whether --enable-modules or --disable-modules was given.
1874 if test "${enable_modules+set}" = set; then
1875 enableval="$enable_modules"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1886 ol_enable_modules="$ol_arg"
1889 ol_enable_modules="no"
1891 # end --enable-modules
1892 ol_enable_multimaster=${ol_enable_multimaster-no}
1893 # OpenLDAP --enable-phonetic
1894 # Check whether --enable-phonetic or --disable-phonetic was given.
1895 if test "${enable_phonetic+set}" = set; then
1896 enableval="$enable_phonetic"
1899 for ol_val in auto yes no ; do
1900 if test "$enableval" = "$ol_val" ; then
1904 if test "$ol_arg" = "invalid" ; then
1905 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1907 ol_enable_phonetic="$ol_arg"
1910 ol_enable_phonetic="no"
1912 # end --enable-phonetic
1913 # OpenLDAP --enable-rewrite
1914 # Check whether --enable-rewrite or --disable-rewrite was given.
1915 if test "${enable_rewrite+set}" = set; then
1916 enableval="$enable_rewrite"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1927 ol_enable_rewrite="$ol_arg"
1930 ol_enable_rewrite="no"
1932 # end --enable-rewrite
1933 # OpenLDAP --enable-rlookups
1934 # Check whether --enable-rlookups or --disable-rlookups was given.
1935 if test "${enable_rlookups+set}" = set; then
1936 enableval="$enable_rlookups"
1939 for ol_val in auto yes no ; do
1940 if test "$enableval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1947 ol_enable_rlookups="$ol_arg"
1950 ol_enable_rlookups="no"
1952 # end --enable-rlookups
1953 # OpenLDAP --enable-slp
1954 # Check whether --enable-slp or --disable-slp was given.
1955 if test "${enable_slp+set}" = set; then
1956 enableval="$enable_slp"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1967 ol_enable_slp="$ol_arg"
1973 # OpenLDAP --enable-wrappers
1974 # Check whether --enable-wrappers or --disable-wrappers was given.
1975 if test "${enable_wrappers+set}" = set; then
1976 enableval="$enable_wrappers"
1979 for ol_val in auto yes no ; do
1980 if test "$enableval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1987 ol_enable_wrappers="$ol_arg"
1990 ol_enable_wrappers="no"
1992 # end --enable-wrappers
1994 # OpenLDAP --enable-bdb
1995 # Check whether --enable-bdb or --disable-bdb was given.
1996 if test "${enable_bdb+set}" = set; then
1997 enableval="$enable_bdb"
2000 for ol_val in auto yes no ; do
2001 if test "$enableval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2008 ol_enable_bdb="$ol_arg"
2014 # OpenLDAP --with-bdb_module
2015 # Check whether --with-bdb_module or --without-bdb_module was given.
2016 if test "${with_bdb_module+set}" = set; then
2017 withval="$with_bdb_module"
2020 for ol_val in static dynamic ; do
2021 if test "$withval" = "$ol_val" ; then
2025 if test "$ol_arg" = "invalid" ; then
2026 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2028 ol_with_bdb_module="$ol_arg"
2031 ol_with_bdb_module="static"
2033 # end --with-bdb_module
2035 # OpenLDAP --enable-dnssrv
2036 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2037 if test "${enable_dnssrv+set}" = set; then
2038 enableval="$enable_dnssrv"
2041 for ol_val in auto yes no ; do
2042 if test "$enableval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2049 ol_enable_dnssrv="$ol_arg"
2052 ol_enable_dnssrv="no"
2054 # end --enable-dnssrv
2055 # OpenLDAP --with-dnssrv_module
2056 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2057 if test "${with_dnssrv_module+set}" = set; then
2058 withval="$with_dnssrv_module"
2061 for ol_val in static dynamic ; do
2062 if test "$withval" = "$ol_val" ; then
2066 if test "$ol_arg" = "invalid" ; then
2067 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2069 ol_with_dnssrv_module="$ol_arg"
2072 ol_with_dnssrv_module="static"
2074 # end --with-dnssrv_module
2076 # OpenLDAP --enable-ldap
2077 # Check whether --enable-ldap or --disable-ldap was given.
2078 if test "${enable_ldap+set}" = set; then
2079 enableval="$enable_ldap"
2082 for ol_val in auto yes no ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2090 ol_enable_ldap="$ol_arg"
2096 # OpenLDAP --with-ldap_module
2097 # Check whether --with-ldap_module or --without-ldap_module was given.
2098 if test "${with_ldap_module+set}" = set; then
2099 withval="$with_ldap_module"
2102 for ol_val in static dynamic ; do
2103 if test "$withval" = "$ol_val" ; then
2107 if test "$ol_arg" = "invalid" ; then
2108 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2110 ol_with_ldap_module="$ol_arg"
2113 ol_with_ldap_module="static"
2115 # end --with-ldap_module
2117 # OpenLDAP --enable-ldbm
2118 # Check whether --enable-ldbm or --disable-ldbm was given.
2119 if test "${enable_ldbm+set}" = set; then
2120 enableval="$enable_ldbm"
2123 for ol_val in auto yes no ; do
2124 if test "$enableval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2131 ol_enable_ldbm="$ol_arg"
2137 # OpenLDAP --with-ldbm_api
2138 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2139 if test "${with_ldbm_api+set}" = set; then
2140 withval="$with_ldbm_api"
2143 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2144 if test "$withval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2151 ol_with_ldbm_api="$ol_arg"
2154 ol_with_ldbm_api="auto"
2156 # end --with-ldbm_api
2158 # OpenLDAP --with-ldbm_module
2159 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2160 if test "${with_ldbm_module+set}" = set; then
2161 withval="$with_ldbm_module"
2164 for ol_val in static dynamic ; do
2165 if test "$withval" = "$ol_val" ; then
2169 if test "$ol_arg" = "invalid" ; then
2170 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2172 ol_with_ldbm_module="$ol_arg"
2175 ol_with_ldbm_module="static"
2177 # end --with-ldbm_module
2179 # OpenLDAP --with-ldbm_type
2180 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2181 if test "${with_ldbm_type+set}" = set; then
2182 withval="$with_ldbm_type"
2185 for ol_val in auto btree hash ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2193 ol_with_ldbm_type="$ol_arg"
2196 ol_with_ldbm_type="auto"
2198 # end --with-ldbm_type
2200 # OpenLDAP --enable-meta
2201 # Check whether --enable-meta or --disable-meta was given.
2202 if test "${enable_meta+set}" = set; then
2203 enableval="$enable_meta"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2214 ol_enable_meta="$ol_arg"
2220 # OpenLDAP --with-meta_module
2221 # Check whether --with-meta_module or --without-meta_module was given.
2222 if test "${with_meta_module+set}" = set; then
2223 withval="$with_meta_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2234 ol_with_meta_module="$ol_arg"
2237 ol_with_meta_module="static"
2239 # end --with-meta_module
2241 # OpenLDAP --enable-monitor
2242 # Check whether --enable-monitor or --disable-monitor was given.
2243 if test "${enable_monitor+set}" = set; then
2244 enableval="$enable_monitor"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2255 ol_enable_monitor="$ol_arg"
2258 ol_enable_monitor="no"
2260 # end --enable-monitor
2261 # OpenLDAP --with-monitor_module
2262 # Check whether --with-monitor_module or --without-monitor_module was given.
2263 if test "${with_monitor_module+set}" = set; then
2264 withval="$with_monitor_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2275 ol_with_monitor_module="$ol_arg"
2278 ol_with_monitor_module="static"
2280 # end --with-monitor_module
2282 # OpenLDAP --enable-null
2283 # Check whether --enable-null or --disable-null was given.
2284 if test "${enable_null+set}" = set; then
2285 enableval="$enable_null"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2296 ol_enable_null="$ol_arg"
2302 # OpenLDAP --with-null_module
2303 # Check whether --with-null_module or --without-null_module was given.
2304 if test "${with_null_module+set}" = set; then
2305 withval="$with_null_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2316 ol_with_null_module="$ol_arg"
2319 ol_with_null_module="static"
2321 # end --with-null_module
2323 # OpenLDAP --enable-passwd
2324 # Check whether --enable-passwd or --disable-passwd was given.
2325 if test "${enable_passwd+set}" = set; then
2326 enableval="$enable_passwd"
2329 for ol_val in auto yes no ; do
2330 if test "$enableval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2337 ol_enable_passwd="$ol_arg"
2340 ol_enable_passwd="no"
2342 # end --enable-passwd
2343 # OpenLDAP --with-passwd_module
2344 # Check whether --with-passwd_module or --without-passwd_module was given.
2345 if test "${with_passwd_module+set}" = set; then
2346 withval="$with_passwd_module"
2349 for ol_val in static dynamic ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2357 ol_with_passwd_module="$ol_arg"
2360 ol_with_passwd_module="static"
2362 # end --with-passwd_module
2364 # OpenLDAP --enable-perl
2365 # Check whether --enable-perl or --disable-perl was given.
2366 if test "${enable_perl+set}" = set; then
2367 enableval="$enable_perl"
2370 for ol_val in auto yes no ; do
2371 if test "$enableval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2378 ol_enable_perl="$ol_arg"
2384 # OpenLDAP --with-perl_module
2385 # Check whether --with-perl_module or --without-perl_module was given.
2386 if test "${with_perl_module+set}" = set; then
2387 withval="$with_perl_module"
2390 for ol_val in static dynamic ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2398 ol_with_perl_module="$ol_arg"
2401 ol_with_perl_module="static"
2403 # end --with-perl_module
2405 # OpenLDAP --enable-shell
2406 # Check whether --enable-shell or --disable-shell was given.
2407 if test "${enable_shell+set}" = set; then
2408 enableval="$enable_shell"
2411 for ol_val in auto yes no ; do
2412 if test "$enableval" = "$ol_val" ; then
2416 if test "$ol_arg" = "invalid" ; then
2417 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2419 ol_enable_shell="$ol_arg"
2422 ol_enable_shell="no"
2424 # end --enable-shell
2425 # OpenLDAP --with-shell_module
2426 # Check whether --with-shell_module or --without-shell_module was given.
2427 if test "${with_shell_module+set}" = set; then
2428 withval="$with_shell_module"
2431 for ol_val in static dynamic ; do
2432 if test "$withval" = "$ol_val" ; then
2436 if test "$ol_arg" = "invalid" ; then
2437 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2439 ol_with_shell_module="$ol_arg"
2442 ol_with_shell_module="static"
2444 # end --with-shell_module
2446 # OpenLDAP --enable-sql
2447 # Check whether --enable-sql or --disable-sql was given.
2448 if test "${enable_sql+set}" = set; then
2449 enableval="$enable_sql"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2460 ol_enable_sql="$ol_arg"
2466 # OpenLDAP --with-sql_module
2467 # Check whether --with-sql_module or --without-sql_module was given.
2468 if test "${with_sql_module+set}" = set; then
2469 withval="$with_sql_module"
2472 for ol_val in static dynamic ; do
2473 if test "$withval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2480 ol_with_sql_module="$ol_arg"
2483 ol_with_sql_module="static"
2485 # end --with-sql_module
2487 # OpenLDAP --enable-tcl
2488 # Check whether --enable-tcl or --disable-tcl was given.
2489 if test "${enable_tcl+set}" = set; then
2490 enableval="$enable_tcl"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2501 ol_enable_tcl="$ol_arg"
2507 # OpenLDAP --with-tcl_module
2508 # Check whether --with-tcl_module or --without-tcl_module was given.
2509 if test "${with_tcl_module+set}" = set; then
2510 withval="$with_tcl_module"
2513 for ol_val in static dynamic ; do
2514 if test "$withval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2521 ol_with_tcl_module="$ol_arg"
2524 ol_with_tcl_module="static"
2526 # end --with-tcl_module
2529 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2530 if test "${with_xxslurpdoptions+set}" = set; then
2531 withval="$with_xxslurpdoptions"
2535 # OpenLDAP --enable-slurpd
2536 # Check whether --enable-slurpd or --disable-slurpd was given.
2537 if test "${enable_slurpd+set}" = set; then
2538 enableval="$enable_slurpd"
2541 for ol_val in auto yes no ; do
2542 if test "$enableval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2549 ol_enable_slurpd="$ol_arg"
2552 ol_enable_slurpd="auto"
2554 # end --enable-slurpd
2556 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2557 if test "${with_xxliboptions+set}" = set; then
2558 withval="$with_xxliboptions"
2562 # Check whether --enable-static or --disable-static was given.
2563 if test "${enable_static+set}" = set; then
2564 enableval="$enable_static"
2565 p=${PACKAGE-default}
2567 yes) enable_static=yes ;;
2568 no) enable_static=no ;;
2571 # Look at the argument we got. We use all the common list separators.
2572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2573 for pkg in $enableval; do
2574 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-shared or --disable-shared was given.
2586 if test "${enable_shared+set}" = set; then
2587 enableval="$enable_shared"
2588 p=${PACKAGE-default}
2590 yes) enable_shared=yes ;;
2591 no) enable_shared=no ;;
2594 # Look at the argument we got. We use all the common list separators.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2596 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2611 if test $ol_enable_slapd = no ; then
2612 if test $ol_enable_bdb = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2615 if test $ol_enable_dnssrv = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2618 if test $ol_enable_ldap = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2621 if test $ol_enable_ldbm = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2624 if test $ol_enable_meta = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2627 if test $ol_enable_monitor = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2630 if test $ol_enable_null = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2633 if test $ol_enable_passwd = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2636 if test $ol_enable_perl = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2639 if test $ol_enable_shell = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2642 if test $ol_enable_tcl = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2645 if test $ol_enable_sql = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2648 if test $ol_enable_modules = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2651 if test $ol_enable_multimaster = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2654 if test $ol_enable_wrappers = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2657 if test $ol_enable_phonetic = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2660 if test $ol_enable_rlookups = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2663 if test $ol_enable_aci = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2666 if test $ol_with_ldbm_api != auto ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2669 if test $ol_with_ldbm_type != auto ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2672 if test $ol_with_bdb_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2675 if test $ol_with_dnssrv_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2678 if test $ol_with_ldap_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2681 if test $ol_with_ldbm_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2684 if test $ol_with_meta_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2687 if test $ol_with_monitor_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2690 if test $ol_with_null_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2693 if test $ol_with_passwd_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2696 if test $ol_with_perl_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2699 if test $ol_with_shell_module != static ; then
2700 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2702 if test $ol_with_tcl_module != static ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2705 if test $ol_with_sql_module != static ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2708 if test $ol_enable_slurpd = yes ; then
2709 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2711 if test $ol_enable_rewrite = yes ; then
2712 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2715 # force settings to no
2721 ol_enable_monitor=no
2729 ol_enable_modules=no
2730 ol_enable_multimaster=no
2731 ol_enable_phonetic=no
2732 ol_enable_rlookups=no
2734 ol_enable_wrappers=no
2735 ol_enable_dynamic=no
2738 ol_with_ldbm_type=no
2740 ol_with_bdb_module=static
2741 ol_with_dnssrv_module=static
2742 ol_with_ldap_module=static
2743 ol_with_ldbm_module=static
2744 ol_with_meta_module=static
2745 ol_with_monitor_module=static
2746 ol_with_null_module=static
2747 ol_with_passwd_module=static
2748 ol_with_perl_module=static
2749 ol_with_shell_module=static
2750 ol_with_tcl_module=static
2751 ol_with_sql_module=static
2755 ol_enable_rewrite=no
2757 elif test $ol_enable_ldbm = no ; then
2759 if test $ol_with_ldbm_api != auto ; then
2760 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2763 if test $ol_with_ldbm_type != auto ; then
2764 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2767 if test $ol_with_ldbm_module != static ; then
2768 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2771 if test $ol_enable_modules != yes -a \
2772 $ol_enable_bdb = no -a \
2773 $ol_enable_dnssrv = no -a \
2774 $ol_enable_ldap = no -a \
2775 $ol_enable_meta = no -a \
2776 $ol_enable_monitor = no -a \
2777 $ol_enable_null = no -a \
2778 $ol_enable_passwd = no -a \
2779 $ol_enable_perl = no -a \
2780 $ol_enable_shell = no -a \
2781 $ol_enable_sql = no -a \
2782 $ol_enable_tcl = no ; then
2784 if test $ol_enable_slapd = yes ; then
2785 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2787 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2793 ol_with_ldbm_type=no
2794 ol_with_ldbm_module=static
2796 if test $ol_enable_bdb != no ; then
2797 ol_with_ldbm_api=berkeley
2801 if test $ol_with_ldbm_api = gdbm -a \
2802 $ol_with_ldbm_type = btree ; then
2803 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2805 if test $ol_with_ldbm_api = mdbm -a \
2806 $ol_with_ldbm_type = btree ; then
2807 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2809 if test $ol_with_ldbm_api = ndbm -a \
2810 $ol_with_ldbm_type = btree ; then
2811 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2814 if test $ol_enable_bdb = yes ; then
2815 if test $ol_with_ldbm_api = auto ; then
2816 ol_with_ldbm_api=berkeley
2817 elif test $ol_with_ldbm_api != berkeley ; then
2818 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2821 elif test $ol_enable_bdb = auto ; then
2822 if test $ol_with_ldbm_api != berkeley \
2823 -o $ol_with_ldbm_api != auto ; then
2824 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2830 if test $ol_enable_slurpd = yes ; then
2831 if test $ol_with_threads = no ; then
2832 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2836 if test $ol_enable_lmpasswd = yes ; then
2837 if test $ol_with_tls = no ; then
2838 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2842 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2843 if test $ol_with_kerberos = no ; then
2844 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2845 elif test $ol_with_kerberos = auto ; then
2846 ol_with_kerberos=yes
2849 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2850 if test $ol_with_kerberos = auto ; then
2852 elif test $ol_with_kerberos != no ; then
2853 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2858 if test $ol_enable_spasswd = yes ; then
2859 if test $ol_with_cyrus_sasl = no ; then
2860 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2862 ol_with_cyrus_sasl=yes
2865 echo "$ac_t""done" 1>&6
2895 BUILD_BDB_DYNAMIC=static
2896 BUILD_DNSSRV_DYNAMIC=static
2897 BUILD_LDAP_DYNAMIC=static
2898 BUILD_LDBM_DYNAMIC=static
2899 BUILD_META_DYNAMIC=static
2900 BUILD_MONITOR_DYNAMIC=static
2901 BUILD_NULL_DYNAMIC=static
2902 BUILD_PASSWD_DYNAMIC=static
2903 BUILD_PERL_DYNAMIC=static
2904 BUILD_SHELL_DYNAMIC=static
2905 BUILD_TCL_DYNAMIC=static
2906 BUILD_SQL_DYNAMIC=static
2908 SLAPD_MODULES_LDFLAGS=
2909 SLAPD_MODULES_CPPFLAGS=
2911 SLAPD_STATIC_BACKENDS=
2912 SLAPD_DYNAMIC_BACKENDS=
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2947 echo "configure:2948: checking for a BSD compatible install" >&5
2948 if test -z "$INSTALL"; then
2949 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2953 for ac_dir in $PATH; do
2954 # Account for people who put trailing slashes in PATH elements.
2956 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2961 for ac_prog in ginstall scoinst install; do
2962 if test -f $ac_dir/$ac_prog; then
2963 if test $ac_prog = install &&
2964 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 ac_cv_path_install="$ac_dir/$ac_prog -c"
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL="$ac_cv_path_install"
2986 # As a last resort, use the slow shell script. We don't cache a
2987 # path for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the path is relative.
2990 INSTALL="$ac_install_sh"
2993 echo "$ac_t""$INSTALL" 1>&6
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_MKVERSION 1
3013 *-*-aix*) if test -z "$CC" ; then
3014 case "$ol_with_threads" in
3015 auto | yes | posix) ol_aix_threads=yes ;;
3021 if test $ol_aix_threads = yes ; then
3022 if test -z "${CC}" ; then
3023 for ac_prog in cc_r xlc_r cc
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CC="$ac_prog"
3048 if test -n "$CC"; then
3049 echo "$ac_t""$CC" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CC" && break
3058 if test "$CC" = cc ; then
3059 if test $ol_with_threads != auto ; then
3060 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3062 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3068 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3069 ol_with_threads=posix
3070 ol_cv_pthread_create=yes
3074 if test -z "${CC}"; then
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_CC="$ac_prog"
3100 if test -n "$CC"; then
3101 echo "$ac_t""$CC" 1>&6
3103 echo "$ac_t""no" 1>&6
3106 test -n "$CC" && break
3112 if test -z "${AR}"; then
3113 for ac_prog in ar gar
3115 # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 if test -n "$AR"; then
3123 ac_cv_prog_AR="$AR" # Let the user override the test.
3125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3127 for ac_dir in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_prog_AR="$ac_prog"
3138 if test -n "$AR"; then
3139 echo "$ac_t""$AR" 1>&6
3141 echo "$ac_t""no" 1>&6
3144 test -n "$AR" && break
3146 test -n "$AR" || AR="missing"
3149 if test "${AR}" = "missing" ; then
3150 { echo "configure: error: Unable to locate ar(1). Check PATH or set AR." 1>&2; exit 1; }
3156 # Find the correct PATH separator. Usually this is `:', but
3157 # DJGPP uses `;' like DOS.
3158 if test "X${PATH_SEPARATOR+set}" != Xset; then
3159 UNAME=${UNAME-`uname 2>/dev/null`}
3161 *-DOS) lt_cv_sys_path_separator=';' ;;
3162 *) lt_cv_sys_path_separator=':' ;;
3164 PATH_SEPARATOR=$lt_cv_sys_path_separator
3167 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3168 echo "configure:3169: checking for Cygwin environment" >&5
3169 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3179 #define __CYGWIN__ __CYGWIN32__
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3196 echo "$ac_t""$ac_cv_cygwin" 1>&6
3198 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3199 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3200 echo "configure:3201: checking for mingw32 environment" >&5
3201 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3212 if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3224 echo "$ac_t""$ac_cv_mingw32" 1>&6
3226 test "$ac_cv_mingw32" = yes && MINGW32=yes
3227 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3228 echo "configure:3229: checking for EMX OS/2 environment" >&5
3229 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3240 if { (eval echo configure:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3252 echo "$ac_t""$ac_cv_emxos2" 1>&6
3254 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3255 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3256 echo "configure:3257: checking how to run the C preprocessor" >&5
3257 # On Suns, sometimes $CPP names a directory.
3258 if test -n "$CPP" && test -d "$CPP"; then
3261 if test -z "$CPP"; then
3262 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 # This must be in double quotes, not single quotes, because CPP may get
3266 # substituted into the Makefile and "${CC-cc}" will confuse make.
3268 # On the NeXT, cc -E runs the code through the compiler's parser,
3269 # not just through cpp.
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3277 { (eval echo configure:3278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3279 if test -z "$ac_err"; then
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3286 CPP="${CC-cc} -E -traditional-cpp"
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 CPP="${CC-cc} -nologo -E"
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3311 { (eval echo configure:3312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3313 if test -z "$ac_err"; then
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3327 ac_cv_prog_CPP="$CPP"
3329 CPP="$ac_cv_prog_CPP"
3331 ac_cv_prog_CPP="$CPP"
3333 echo "$ac_t""$CPP" 1>&6
3335 # Check whether --enable-fast-install or --disable-fast-install was given.
3336 if test "${enable_fast_install+set}" = set; then
3337 enableval="$enable_fast_install"
3338 p=${PACKAGE-default}
3340 yes) enable_fast_install=yes ;;
3341 no) enable_fast_install=no ;;
3343 enable_fast_install=no
3344 # Look at the argument we got. We use all the common list separators.
3345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3346 for pkg in $enableval; do
3347 if test "X$pkg" = "X$p"; then
3348 enable_fast_install=yes
3355 enable_fast_install=yes
3358 # Extract the first word of "gcc", so it can be a program name with args.
3359 set dummy gcc; ac_word=$2
3360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3361 echo "configure:3362: checking for $ac_word" >&5
3362 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3370 for ac_dir in $ac_dummy; do
3371 test -z "$ac_dir" && ac_dir=.
3372 if test -f $ac_dir/$ac_word; then
3381 if test -n "$CC"; then
3382 echo "$ac_t""$CC" 1>&6
3384 echo "$ac_t""no" 1>&6
3387 if test -z "$CC"; then
3388 # Extract the first word of "cc", so it can be a program name with args.
3389 set dummy cc; ac_word=$2
3390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_word" >&5
3392 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3401 for ac_dir in $ac_dummy; do
3402 test -z "$ac_dir" && ac_dir=.
3403 if test -f $ac_dir/$ac_word; then
3404 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3405 ac_prog_rejected=yes
3413 if test $ac_prog_rejected = yes; then
3414 # We found a bogon in the path, so make sure we never use it.
3415 set dummy $ac_cv_prog_CC
3417 if test $# -gt 0; then
3418 # We chose a different compiler from the bogus one.
3419 # However, it has the same basename, so the bogon will be chosen
3420 # first if we set CC to just the basename; use the full file name.
3422 set dummy "$ac_dir/$ac_word" "$@"
3430 if test -n "$CC"; then
3431 echo "$ac_t""$CC" 1>&6
3433 echo "$ac_t""no" 1>&6
3436 if test -z "$CC"; then
3437 case "`uname -s`" in
3438 *win32* | *WIN32* | *CYGWIN*)
3439 # Extract the first word of "cl", so it can be a program name with args.
3440 set dummy cl; ac_word=$2
3441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3442 echo "configure:3443: checking for $ac_word" >&5
3443 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3451 for ac_dir in $ac_dummy; do
3452 test -z "$ac_dir" && ac_dir=.
3453 if test -f $ac_dir/$ac_word; then
3462 if test -n "$CC"; then
3463 echo "$ac_t""$CC" 1>&6
3465 echo "$ac_t""no" 1>&6
3470 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3473 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3474 echo "configure:3475: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3481 cross_compiling=$ac_cv_prog_cc_cross
3483 cat > conftest.$ac_ext << EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 ac_cv_prog_cc_works=yes
3492 # If we can't run a trivial program, we are probably using a cross compiler.
3493 if (./conftest; exit) 2>/dev/null; then
3494 ac_cv_prog_cc_cross=no
3496 ac_cv_prog_cc_cross=yes
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 ac_cv_prog_cc_works=no
3505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3509 cross_compiling=$ac_cv_prog_cc_cross
3511 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3512 if test $ac_cv_prog_cc_works = no; then
3513 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3515 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3516 echo "configure:3517: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3517 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3518 cross_compiling=$ac_cv_prog_cc_cross
3520 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3521 echo "configure:3522: checking whether we are using GNU C" >&5
3522 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.c <<EOF
3530 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3537 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3539 if test $ac_cv_prog_gcc = yes; then
3545 ac_test_CFLAGS="${CFLAGS+set}"
3546 ac_save_CFLAGS="$CFLAGS"
3548 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3549 echo "configure:3550: checking whether ${CC-cc} accepts -g" >&5
3550 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 echo 'void f(){}' > conftest.c
3554 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3563 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3564 if test "$ac_test_CFLAGS" = set; then
3565 CFLAGS="$ac_save_CFLAGS"
3566 elif test $ac_cv_prog_cc_g = yes; then
3567 if test "$GCC" = yes; then
3573 if test "$GCC" = yes; then
3580 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3581 if test "${with_gnu_ld+set}" = set; then
3582 withval="$with_gnu_ld"
3583 test "$withval" = no || with_gnu_ld=yes
3589 if test "$GCC" = yes; then
3590 # Check if gcc -print-prog-name=ld gives a path.
3591 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3592 echo "configure:3593: checking for ld used by GCC" >&5
3595 # gcc leaves a trailing carriage return which upsets mingw
3596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3601 # Accept absolute paths.
3602 [\\/]* | [A-Za-z]:[\\/]*)
3603 re_direlt='/[^/][^/]*/\.\./'
3604 # Canonicalize the path of ld
3605 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3606 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3607 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3609 test -z "$LD" && LD="$ac_prog"
3612 # If it fails, then pretend we aren't using GCC.
3616 # If it is relative, then search for the first ld in PATH.
3620 elif test "$with_gnu_ld" = yes; then
3621 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3622 echo "configure:3623: checking for GNU ld" >&5
3624 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3625 echo "configure:3626: checking for non-GNU ld" >&5
3627 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test -z "$LD"; then
3631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3632 for ac_dir in $PATH; do
3633 test -z "$ac_dir" && ac_dir=.
3634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3635 lt_cv_path_LD="$ac_dir/$ac_prog"
3636 # Check to see if the program is GNU ld. I'd rather use --version,
3637 # but apparently some GNU ld's only accept -v.
3638 # Break only if it was the GNU/non-GNU ld that we prefer.
3639 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3640 test "$with_gnu_ld" != no && break
3642 test "$with_gnu_ld" != yes && break
3648 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3653 if test -n "$LD"; then
3654 echo "$ac_t""$LD" 1>&6
3656 echo "$ac_t""no" 1>&6
3658 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3659 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3660 echo "configure:3661: checking if the linker ($LD) is GNU ld" >&5
3661 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3664 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3665 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3666 lt_cv_prog_gnu_ld=yes
3668 lt_cv_prog_gnu_ld=no
3672 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3673 with_gnu_ld=$lt_cv_prog_gnu_ld
3676 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3677 echo "configure:3678: checking for $LD option to reload object files" >&5
3678 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 lt_cv_ld_reload_flag='-r'
3684 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3685 reload_flag=$lt_cv_ld_reload_flag
3686 test -n "$reload_flag" && reload_flag=" $reload_flag"
3688 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3689 echo "configure:3690: checking for BSD-compatible nm" >&5
3690 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 if test -n "$NM"; then
3694 # Let the user override the test.
3697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3698 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3699 test -z "$ac_dir" && ac_dir=.
3700 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3701 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3702 # Check to see if the nm accepts a BSD-compat flag.
3703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3704 # nm: unknown option "B" ignored
3705 # Tru64's nm complains that /dev/null is an invalid object file
3706 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3707 lt_cv_path_NM="$tmp_nm -B"
3709 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3710 lt_cv_path_NM="$tmp_nm -p"
3713 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3714 continue # so that we can try to find one that supports BSD flags
3719 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3724 echo "$ac_t""$NM" 1>&6
3726 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3727 echo "configure:3728: checking whether ln -s works" >&5
3728 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3732 if ln -s X conftestdata 2>/dev/null
3735 ac_cv_prog_LN_S="ln -s"
3740 LN_S="$ac_cv_prog_LN_S"
3741 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3742 echo "$ac_t""yes" 1>&6
3744 echo "$ac_t""no" 1>&6
3747 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3748 echo "configure:3749: checking how to recognise dependant libraries" >&5
3749 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 lt_cv_file_magic_cmd='$MAGIC_CMD'
3753 lt_cv_file_magic_test_file=
3754 lt_cv_deplibs_check_method='unknown'
3755 # Need to set the preceding variable on all platforms that support
3756 # interlibrary dependencies.
3757 # 'none' -- dependencies not supported.
3758 # `unknown' -- same as none, but documents that we really don't know.
3759 # 'pass_all' -- all dependencies passed with no checks.
3760 # 'test_compile' -- check by making test program.
3761 # 'file_magic [[regex]]' -- check by looking for files in library path
3762 # which responds to the $file_magic_cmd with a given egrep regex.
3763 # If you have `file' or equivalent on your system and you're not sure
3764 # whether `pass_all' will *always* work, you probably want this one.
3768 lt_cv_deplibs_check_method=pass_all
3772 lt_cv_deplibs_check_method=pass_all
3776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3777 lt_cv_file_magic_cmd='/usr/bin/file -L'
3778 lt_cv_file_magic_test_file=/shlib/libc.so
3781 cygwin* | mingw* | pw32*)
3782 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3783 lt_cv_file_magic_cmd='$OBJDUMP -f'
3786 darwin* | rhapsody*)
3787 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3788 lt_cv_file_magic_cmd='/usr/bin/file -L'
3790 rhapsody* | darwin1.[012])
3791 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3794 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3800 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3803 # Not sure whether the presence of OpenBSD here was a mistake.
3804 # Let's accept both of them until this is cleared up.
3805 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3806 lt_cv_file_magic_cmd=/usr/bin/file
3807 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3811 lt_cv_deplibs_check_method=pass_all
3816 lt_cv_deplibs_check_method=pass_all
3820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3828 # this will be overridden with pass_all, but let us keep it just in case
3829 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3833 *-32|*"-32 ") libmagic=32-bit;;
3834 *-n32|*"-n32 ") libmagic=N32;;
3835 *-64|*"-64 ") libmagic=64-bit;;
3836 *) libmagic=never-match;;
3838 # this will be overridden with pass_all, but let us keep it just in case
3839 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3842 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3843 lt_cv_deplibs_check_method=pass_all
3846 # This must be Linux ELF.
3849 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3850 lt_cv_deplibs_check_method=pass_all ;;
3852 # glibc up to 2.1.1 does not perform some relocations on ARM
3853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3855 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3859 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3860 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3862 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3868 lt_cv_file_magic_cmd=/usr/bin/file
3869 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3873 lt_cv_file_magic_cmd=/usr/bin/file
3874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3875 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3878 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3882 osf3* | osf4* | osf5*)
3883 # this will be overridden with pass_all, but let us keep it just in case
3884 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3885 lt_cv_file_magic_test_file=/shlib/libc.so
3886 lt_cv_deplibs_check_method=pass_all
3890 lt_cv_deplibs_check_method=pass_all
3894 lt_cv_deplibs_check_method=pass_all
3895 lt_cv_file_magic_test_file=/lib/libc.so
3898 sysv5uw[78]* | sysv4*uw2*)
3899 lt_cv_deplibs_check_method=pass_all
3902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3903 case $host_vendor in
3905 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]'
3906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3909 lt_cv_deplibs_check_method=pass_all
3912 lt_cv_file_magic_cmd='/bin/file'
3913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3916 lt_cv_file_magic_cmd='/bin/file'
3917 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3918 lt_cv_file_magic_test_file=/lib/libc.so
3926 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3927 file_magic_cmd=$lt_cv_file_magic_cmd
3928 deplibs_check_method=$lt_cv_deplibs_check_method
3930 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3931 echo "configure:3932: checking for object suffix" >&5
3932 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3936 echo 'int i = 1;' > conftest.$ac_ext
3937 if { (eval echo configure:3938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3938 for ac_file in conftest.*; do
3941 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3945 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3950 echo "$ac_t""$ac_cv_objext" 1>&6
3951 OBJEXT=$ac_cv_objext
3952 ac_objext=$ac_cv_objext
3957 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3958 echo "configure:3959: checking for executable suffix" >&5
3959 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3966 echo 'int main () { return 0; }' > conftest.$ac_ext
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3969 for file in conftest.*; do
3971 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3972 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3976 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3979 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3984 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3985 echo "$ac_t""${ac_cv_exeext}" 1>&6
3988 if test $host != $build; then
3989 ac_tool_prefix=${host_alias}-
3997 # Check for command to grab the raw symbol name followed by C symbol from nm.
3998 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3999 echo "configure:4000: checking command to parse $NM output" >&5
4000 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4004 # These are sane defaults that work on at least a few old systems.
4005 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4007 # Character class describing NM global symbol codes.
4008 symcode='[BCDEGRST]'
4010 # Regexp to match symbols that can be accessed directly from C.
4011 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4013 # Transform the above into a raw symbol and a C symbol.
4014 symxfrm='\1 \2\3 \3'
4016 # Transform an extracted symbol line into a proper C declaration
4017 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4019 # Transform an extracted symbol line into symbol name and symbol address
4020 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'"
4022 # Define system-specific variables.
4027 cygwin* | mingw* | pw32*)
4028 symcode='[ABCDGISTW]'
4030 hpux*) # Its linker distinguishes data from code symbols
4031 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4032 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'"
4035 symcode='[BCDEGRST]'
4045 # Handle CRLF in mingw tool chain
4049 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4053 # If we're using GNU nm, then use its standard symbol codes.
4054 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4055 symcode='[ABCDGISTW]'
4058 # Try without a prefix undercore, then with it.
4059 for ac_symprfx in "" "_"; do
4061 # Write the raw and C identifiers.
4062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4064 # Check to see that the pipe works correctly.
4067 cat > conftest.$ac_ext <<EOF
4072 void nm_test_func(){}
4076 int main(){nm_test_var='a';nm_test_func();return(0);}
4079 if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 # Now try to grab the symbols.
4082 if { (eval echo configure:4083: \"$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
4083 # Try sorting and uniquifying the output.
4084 if sort "$nlist" | uniq > "$nlist"T; then
4085 mv -f "$nlist"T "$nlist"
4090 # Make sure that we snagged all the symbols we need.
4091 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4092 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4093 cat <<EOF > conftest.$ac_ext
4099 # Now generate the symbol file.
4100 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4102 cat <<EOF >> conftest.$ac_ext
4103 #if defined (__STDC__) && __STDC__
4104 # define lt_ptr void *
4106 # define lt_ptr char *
4110 /* The mapping between symbol names and symbols. */
4115 lt_preloaded_symbols[] =
4118 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4119 cat <<\EOF >> conftest.$ac_ext
4127 # Now try linking the two files.
4128 mv conftest.$ac_objext conftstm.$ac_objext
4130 save_CFLAGS="$CFLAGS"
4131 LIBS="conftstm.$ac_objext"
4132 CFLAGS="$CFLAGS$no_builtin_flag"
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4137 CFLAGS="$save_CFLAGS"
4139 echo "cannot find nm_test_func in $nlist" >&5
4142 echo "cannot find nm_test_var in $nlist" >&5
4145 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4148 echo "$progname: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 rm -f conftest* conftst*
4153 # Do not use the global_symbol_pipe unless it works.
4154 if test "$pipe_works" = yes; then
4157 lt_cv_sys_global_symbol_pipe=
4163 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4164 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4165 global_symbol_to_cdecl=
4166 global_symbol_to_c_name_address=
4168 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4169 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4171 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4173 echo "$ac_t""failed" 1>&6
4175 echo "$ac_t""ok" 1>&6
4178 for ac_hdr in dlfcn.h
4180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4182 echo "configure:4183: checking for $ac_hdr" >&5
4183 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4192 { (eval echo configure:4193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4194 if test -z "$ac_err"; then
4196 eval "ac_cv_header_$ac_safe=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 eval "ac_cv_header_$ac_safe=no"
4206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4209 cat >> confdefs.h <<EOF
4210 #define $ac_tr_hdr 1
4214 echo "$ac_t""no" 1>&6
4222 # Only perform the check for file, if the check method requires it
4223 case $deplibs_check_method in
4225 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4226 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4227 echo "configure:4228: checking for ${ac_tool_prefix}file" >&5
4228 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4239 ac_save_MAGIC_CMD="$MAGIC_CMD"
4240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4241 ac_dummy="/usr/bin:$PATH"
4242 for ac_dir in $ac_dummy; do
4243 test -z "$ac_dir" && ac_dir=.
4244 if test -f $ac_dir/${ac_tool_prefix}file; then
4245 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4246 if test -n "$file_magic_test_file"; then
4247 case $deplibs_check_method in
4249 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4252 egrep "$file_magic_regex" > /dev/null; then
4257 *** Warning: the command libtool uses to detect shared libraries,
4258 *** $file_magic_cmd, produces output that libtool cannot recognize.
4259 *** The result is that libtool may fail to recognize shared libraries
4260 *** as such. This will affect the creation of libtool libraries that
4261 *** depend on shared libraries, but programs linked with such libtool
4262 *** libraries will work regardless of this problem. Nevertheless, you
4263 *** may want to report the problem to your system manager and/or to
4264 *** bug-libtool@gnu.org
4274 MAGIC_CMD="$ac_save_MAGIC_CMD"
4279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4280 if test -n "$MAGIC_CMD"; then
4281 echo "$ac_t""$MAGIC_CMD" 1>&6
4283 echo "$ac_t""no" 1>&6
4286 if test -z "$lt_cv_path_MAGIC_CMD"; then
4287 if test -n "$ac_tool_prefix"; then
4288 echo $ac_n "checking for file""... $ac_c" 1>&6
4289 echo "configure:4290: checking for file" >&5
4290 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4301 ac_save_MAGIC_CMD="$MAGIC_CMD"
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4303 ac_dummy="/usr/bin:$PATH"
4304 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 if test -f $ac_dir/file; then
4307 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4308 if test -n "$file_magic_test_file"; then
4309 case $deplibs_check_method in
4311 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4313 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4314 egrep "$file_magic_regex" > /dev/null; then
4319 *** Warning: the command libtool uses to detect shared libraries,
4320 *** $file_magic_cmd, produces output that libtool cannot recognize.
4321 *** The result is that libtool may fail to recognize shared libraries
4322 *** as such. This will affect the creation of libtool libraries that
4323 *** depend on shared libraries, but programs linked with such libtool
4324 *** libraries will work regardless of this problem. Nevertheless, you
4325 *** may want to report the problem to your system manager and/or to
4326 *** bug-libtool@gnu.org
4336 MAGIC_CMD="$ac_save_MAGIC_CMD"
4341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4342 if test -n "$MAGIC_CMD"; then
4343 echo "$ac_t""$MAGIC_CMD" 1>&6
4345 echo "$ac_t""no" 1>&6
4357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4360 echo "configure:4361: checking for $ac_word" >&5
4361 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4364 if test -n "$RANLIB"; then
4365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4369 for ac_dir in $ac_dummy; do
4370 test -z "$ac_dir" && ac_dir=.
4371 if test -f $ac_dir/$ac_word; then
4372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4379 RANLIB="$ac_cv_prog_RANLIB"
4380 if test -n "$RANLIB"; then
4381 echo "$ac_t""$RANLIB" 1>&6
4383 echo "$ac_t""no" 1>&6
4387 if test -z "$ac_cv_prog_RANLIB"; then
4388 if test -n "$ac_tool_prefix"; then
4389 # Extract the first word of "ranlib", so it can be a program name with args.
4390 set dummy ranlib; ac_word=$2
4391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4392 echo "configure:4393: checking for $ac_word" >&5
4393 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 if test -n "$RANLIB"; then
4397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4401 for ac_dir in $ac_dummy; do
4402 test -z "$ac_dir" && ac_dir=.
4403 if test -f $ac_dir/$ac_word; then
4404 ac_cv_prog_RANLIB="ranlib"
4409 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4412 RANLIB="$ac_cv_prog_RANLIB"
4413 if test -n "$RANLIB"; then
4414 echo "$ac_t""$RANLIB" 1>&6
4416 echo "$ac_t""no" 1>&6
4424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4425 set dummy ${ac_tool_prefix}strip; ac_word=$2
4426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4427 echo "configure:4428: checking for $ac_word" >&5
4428 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 if test -n "$STRIP"; then
4432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4436 for ac_dir in $ac_dummy; do
4437 test -z "$ac_dir" && ac_dir=.
4438 if test -f $ac_dir/$ac_word; then
4439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4446 STRIP="$ac_cv_prog_STRIP"
4447 if test -n "$STRIP"; then
4448 echo "$ac_t""$STRIP" 1>&6
4450 echo "$ac_t""no" 1>&6
4454 if test -z "$ac_cv_prog_STRIP"; then
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "strip", so it can be a program name with args.
4457 set dummy strip; ac_word=$2
4458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_word" >&5
4460 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 if test -n "$STRIP"; then
4464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4468 for ac_dir in $ac_dummy; do
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f $ac_dir/$ac_word; then
4471 ac_cv_prog_STRIP="strip"
4476 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4479 STRIP="$ac_cv_prog_STRIP"
4480 if test -n "$STRIP"; then
4481 echo "$ac_t""$STRIP" 1>&6
4483 echo "$ac_t""no" 1>&6
4493 enable_win32_dll=yes
4495 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4496 if test "${enable_libtool_lock+set}" = set; then
4497 enableval="$enable_libtool_lock"
4501 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4503 # Some flags need to be propagated to the compiler or linker for good
4507 # Find out which ABI we are using.
4508 echo '#line 4509 "configure"' > conftest.$ac_ext
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 case `/usr/bin/file conftest.$ac_objext` in
4526 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4527 SAVE_CFLAGS="$CFLAGS"
4528 CFLAGS="$CFLAGS -belf"
4529 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4530 echo "configure:4531: checking whether the C compiler needs -belf" >&5
4531 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4540 cross_compiling=$ac_cv_prog_cc_cross
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 lt_cv_cc_needs_belf=yes
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 lt_cv_cc_needs_belf=no
4561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4565 cross_compiling=$ac_cv_prog_cc_cross
4569 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4570 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4571 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4572 CFLAGS="$SAVE_CFLAGS"
4576 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4577 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4578 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_word" >&5
4581 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 if test -n "$DLLTOOL"; then
4585 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4589 for ac_dir in $ac_dummy; do
4590 test -z "$ac_dir" && ac_dir=.
4591 if test -f $ac_dir/$ac_word; then
4592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4599 DLLTOOL="$ac_cv_prog_DLLTOOL"
4600 if test -n "$DLLTOOL"; then
4601 echo "$ac_t""$DLLTOOL" 1>&6
4603 echo "$ac_t""no" 1>&6
4607 if test -z "$ac_cv_prog_DLLTOOL"; then
4608 if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "dlltool", so it can be a program name with args.
4610 set dummy dlltool; ac_word=$2
4611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4612 echo "configure:4613: checking for $ac_word" >&5
4613 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 if test -n "$DLLTOOL"; then
4617 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4621 for ac_dir in $ac_dummy; do
4622 test -z "$ac_dir" && ac_dir=.
4623 if test -f $ac_dir/$ac_word; then
4624 ac_cv_prog_DLLTOOL="dlltool"
4629 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4632 DLLTOOL="$ac_cv_prog_DLLTOOL"
4633 if test -n "$DLLTOOL"; then
4634 echo "$ac_t""$DLLTOOL" 1>&6
4636 echo "$ac_t""no" 1>&6
4644 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}as; ac_word=$2
4646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4647 echo "configure:4648: checking for $ac_word" >&5
4648 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 if test -n "$AS"; then
4652 ac_cv_prog_AS="$AS" # Let the user override the test.
4654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4656 for ac_dir in $ac_dummy; do
4657 test -z "$ac_dir" && ac_dir=.
4658 if test -f $ac_dir/$ac_word; then
4659 ac_cv_prog_AS="${ac_tool_prefix}as"
4667 if test -n "$AS"; then
4668 echo "$ac_t""$AS" 1>&6
4670 echo "$ac_t""no" 1>&6
4674 if test -z "$ac_cv_prog_AS"; then
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "as", so it can be a program name with args.
4677 set dummy as; ac_word=$2
4678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_word" >&5
4680 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 if test -n "$AS"; then
4684 ac_cv_prog_AS="$AS" # Let the user override the test.
4686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4688 for ac_dir in $ac_dummy; do
4689 test -z "$ac_dir" && ac_dir=.
4690 if test -f $ac_dir/$ac_word; then
4696 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4700 if test -n "$AS"; then
4701 echo "$ac_t""$AS" 1>&6
4703 echo "$ac_t""no" 1>&6
4711 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_word" >&5
4715 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 if test -n "$OBJDUMP"; then
4719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4723 for ac_dir in $ac_dummy; do
4724 test -z "$ac_dir" && ac_dir=.
4725 if test -f $ac_dir/$ac_word; then
4726 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4733 OBJDUMP="$ac_cv_prog_OBJDUMP"
4734 if test -n "$OBJDUMP"; then
4735 echo "$ac_t""$OBJDUMP" 1>&6
4737 echo "$ac_t""no" 1>&6
4741 if test -z "$ac_cv_prog_OBJDUMP"; then
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "objdump", so it can be a program name with args.
4744 set dummy objdump; ac_word=$2
4745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_word" >&5
4747 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 if test -n "$OBJDUMP"; then
4751 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4755 for ac_dir in $ac_dummy; do
4756 test -z "$ac_dir" && ac_dir=.
4757 if test -f $ac_dir/$ac_word; then
4758 ac_cv_prog_OBJDUMP="objdump"
4763 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4766 OBJDUMP="$ac_cv_prog_OBJDUMP"
4767 if test -n "$OBJDUMP"; then
4768 echo "$ac_t""$OBJDUMP" 1>&6
4770 echo "$ac_t""no" 1>&6
4779 # recent cygwin and mingw systems supply a stub DllMain which the user
4780 # can override, but on older systems we have to supply one
4781 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4782 echo "configure:4783: checking if libtool should supply DllMain function" >&5
4783 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4791 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4797 lt_cv_need_dllmain=no
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 lt_cv_need_dllmain=yes
4807 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4810 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4811 # old mingw systems require "-dll" to link a DLL, while more recent ones
4813 SAVE_CFLAGS="$CFLAGS"
4814 CFLAGS="$CFLAGS -mdll"
4815 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4816 echo "configure:4817: checking how to link DLLs" >&5
4817 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4828 if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4830 lt_cv_cc_dll_switch=-mdll
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4835 lt_cv_cc_dll_switch=-dll
4840 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4841 CFLAGS="$SAVE_CFLAGS" ;;
4842 *-*-cygwin* | *-*-pw32*)
4843 # cygwin systems need to pass --dll to the linker, and not link
4844 # crt.o which will require a WinMain@16 definition.
4845 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4851 # Sed substitution that helps us do robust quoting. It backslashifies
4852 # metacharacters that are still active within double-quoted strings.
4853 Xsed='sed -e s/^X//'
4854 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4856 # Same as above, but do not quote variable references.
4857 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4859 # Sed substitution to delay expansion of an escaped shell variable in a
4860 # double_quote_subst'ed string.
4861 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4867 default_ofile=libtool
4868 can_build_shared=yes
4870 # All known linkers require a `.a' archive for static linking (except M$VC,
4871 # which needs '.lib').
4873 ltmain="$ac_aux_dir/ltmain.sh"
4874 ofile="$default_ofile"
4875 with_gnu_ld="$lt_cv_prog_gnu_ld"
4876 need_locks="$enable_libtool_lock"
4879 old_CFLAGS="$CFLAGS"
4881 # Set sane defaults for various variables
4882 test -z "$AR" && AR=ar
4883 test -z "$AR_FLAGS" && AR_FLAGS=cru
4884 test -z "$AS" && AS=as
4885 test -z "$CC" && CC=cc
4886 test -z "$DLLTOOL" && DLLTOOL=dlltool
4887 test -z "$LD" && LD=ld
4888 test -z "$LN_S" && LN_S="ln -s"
4889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4890 test -z "$NM" && NM=nm
4891 test -z "$OBJDUMP" && OBJDUMP=objdump
4892 test -z "$RANLIB" && RANLIB=:
4893 test -z "$STRIP" && STRIP=:
4894 test -z "$ac_objext" && ac_objext=o
4896 if test x"$host" != x"$build"; then
4897 ac_tool_prefix=${host_alias}-
4902 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4905 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4910 # AIX sometimes has problems with the GCC collect2 program. For some
4911 # reason, if we set the COLLECT_NAMES environment variable, the problems
4912 # vanish in a puff of smoke.
4913 if test "X${COLLECT_NAMES+set}" != Xset; then
4915 export COLLECT_NAMES
4920 # Determine commands to create old-style static archives.
4921 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4922 old_postinstall_cmds='chmod 644 $oldlib'
4923 old_postuninstall_cmds=
4925 if test -n "$RANLIB"; then
4928 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4931 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4934 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4937 # Allow CC to be a program name with arguments.
4941 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4942 echo "configure:4943: checking for objdir" >&5
4943 rm -f .libs 2>/dev/null
4944 mkdir .libs 2>/dev/null
4945 if test -d .libs; then
4948 # MS-DOS does not allow filenames that begin with a dot.
4951 rmdir .libs 2>/dev/null
4952 echo "$ac_t""$objdir" 1>&6
4955 # Check whether --with-pic or --without-pic was given.
4956 if test "${with_pic+set}" = set; then
4963 test -z "$pic_mode" && pic_mode=default
4965 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4966 # in isolation, and that seeing it set (from the cache) indicates that
4967 # the associated values are set (in the cache) correctly too.
4968 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $compiler option to produce PIC" >&5
4970 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4974 lt_cv_prog_cc_shlib=
4976 lt_cv_prog_cc_static=
4977 lt_cv_prog_cc_no_builtin=
4978 lt_cv_prog_cc_can_build_shared=$can_build_shared
4980 if test "$GCC" = yes; then
4981 lt_cv_prog_cc_wl='-Wl,'
4982 lt_cv_prog_cc_static='-static'
4986 # Below there is a dirty hack to force normal static linking with -ldl
4987 # The problem is because libdl dynamically linked with both libc and
4988 # libC (AIX C++ library), which obviously doesn't included in libraries
4989 # list by gcc. This cause undefined symbols with -static flags.
4990 # This hack allows C programs to be linked with "-static -ldl", but
4991 # not sure about C++ programs.
4992 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4995 # FIXME: we need at least 68020 code to build shared libraries, but
4996 # adding the `-m68020' flag to GCC prevents building anything better,
4998 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5000 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5001 # PIC is the default for these OSes.
5003 darwin* | rhapsody*)
5004 # PIC is the default on this platform
5005 # Common symbols not allowed in MH_DYLIB files
5006 lt_cv_prog_cc_pic='-fno-common'
5008 cygwin* | mingw* | pw32* | os2*)
5009 # This hack is so that the source file can tell whether it is being
5010 # built for inclusion in a dll (and should export symbols for example).
5011 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5014 if test -d /usr/nec; then
5015 lt_cv_prog_cc_pic=-Kconform_pic
5019 lt_cv_prog_cc_pic='-fPIC'
5023 # PORTME Check for PIC flags for the system compiler.
5025 aix3* | aix4* | aix5*)
5026 lt_cv_prog_cc_wl='-Wl,'
5027 # All AIX code is PIC.
5028 if test "$host_cpu" = ia64; then
5029 # AIX 5 now supports IA64 processor
5030 lt_cv_prog_cc_static='-Bstatic'
5032 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5036 hpux9* | hpux10* | hpux11*)
5037 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5038 lt_cv_prog_cc_wl='-Wl,'
5039 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5040 lt_cv_prog_cc_pic='+Z'
5044 lt_cv_prog_cc_wl='-Wl,'
5045 lt_cv_prog_cc_static='-non_shared'
5046 # PIC (with -KPIC) is the default.
5049 cygwin* | mingw* | pw32* | os2*)
5050 # This hack is so that the source file can tell whether it is being
5051 # built for inclusion in a dll (and should export symbols for example).
5052 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5056 lt_cv_prog_cc_pic='-KPIC'
5057 lt_cv_prog_cc_static='-Bstatic'
5060 osf3* | osf4* | osf5*)
5061 # All OSF/1 code is PIC.
5062 lt_cv_prog_cc_wl='-Wl,'
5063 lt_cv_prog_cc_static='-non_shared'
5067 lt_cv_prog_cc_pic='-Kpic'
5068 lt_cv_prog_cc_static='-dn'
5069 lt_cv_prog_cc_shlib='-belf'
5073 lt_cv_prog_cc_pic='-KPIC'
5074 lt_cv_prog_cc_static='-Bstatic'
5075 lt_cv_prog_cc_wl='-Wl,'
5079 lt_cv_prog_cc_pic='-PIC'
5080 lt_cv_prog_cc_static='-Bstatic'
5081 lt_cv_prog_cc_wl='-Qoption ld '
5084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5085 lt_cv_prog_cc_pic='-KPIC'
5086 lt_cv_prog_cc_static='-Bstatic'
5087 if test "x$host_vendor" = xsni; then
5088 lt_cv_prog_cc_wl='-LD'
5090 lt_cv_prog_cc_wl='-Wl,'
5095 lt_cv_prog_cc_pic='-pic'
5096 lt_cv_prog_cc_static='-Bstatic'
5100 if test -d /usr/nec ;then
5101 lt_cv_prog_cc_pic='-Kconform_pic'
5102 lt_cv_prog_cc_static='-Bstatic'
5107 lt_cv_prog_cc_can_build_shared=no
5114 if test -z "$lt_cv_prog_cc_pic"; then
5115 echo "$ac_t""none" 1>&6
5117 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5119 # Check to make sure the pic_flag actually works.
5120 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5121 echo "configure:5122: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5122 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 save_CFLAGS="$CFLAGS"
5126 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5135 if { (eval echo configure:5136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138 hpux9* | hpux10* | hpux11*)
5139 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5140 # they create non-PIC objects. So, if there were any warnings, we
5141 # assume that PIC is not supported.
5142 if test -s conftest.err; then
5143 lt_cv_prog_cc_pic_works=no
5145 lt_cv_prog_cc_pic_works=yes
5149 lt_cv_prog_cc_pic_works=yes
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 lt_cv_prog_cc_pic_works=no
5161 CFLAGS="$save_CFLAGS"
5166 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5168 lt_cv_prog_cc_can_build_shared=no
5170 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5173 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5176 # Check for any special shared library compilation flags.
5177 if test -n "$lt_cv_prog_cc_shlib"; then
5178 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5179 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5181 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5182 lt_cv_prog_cc_can_build_shared=no
5186 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5187 echo "configure:5188: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5188 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5191 lt_cv_prog_cc_static_works=no
5192 save_LDFLAGS="$LDFLAGS"
5193 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5204 lt_cv_prog_cc_static_works=yes
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5210 LDFLAGS="$save_LDFLAGS"
5215 # Belt *and* braces to stop my trousers falling down:
5216 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5217 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5219 pic_flag="$lt_cv_prog_cc_pic"
5220 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5221 wl="$lt_cv_prog_cc_wl"
5222 link_static_flag="$lt_cv_prog_cc_static"
5223 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5224 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5227 # Check to see if options -o and -c are simultaneously supported by compiler
5228 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5229 echo "configure:5230: checking if $compiler supports -c -o file.$ac_objext" >&5
5230 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5234 $rm -r conftest 2>/dev/null
5237 echo "int some_variable = 0;" > conftest.$ac_ext
5239 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5240 # that will create temporary files in the current directory regardless of
5241 # the output directory. Thus, making CWD read-only will cause this test
5242 # to fail, enabling locking or at least warning the user not to do parallel
5245 save_CFLAGS="$CFLAGS"
5246 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5249 # The compiler can only warn and ignore the option if not recognized
5250 # So say no if there are warnings
5251 if test -s out/conftest.err; then
5252 lt_cv_compiler_c_o=no
5254 lt_cv_compiler_c_o=yes
5257 # Append any errors to the config.log.
5258 cat out/conftest.err 1>&5
5259 lt_cv_compiler_c_o=no
5261 CFLAGS="$save_CFLAGS"
5267 $rm -r conftest 2>/dev/null
5271 compiler_c_o=$lt_cv_compiler_c_o
5272 echo "$ac_t""$compiler_c_o" 1>&6
5274 if test x"$compiler_c_o" = x"yes"; then
5275 # Check to see if we can write to a .lo
5276 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5277 echo "configure:5278: checking if $compiler supports -c -o file.lo" >&5
5278 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5282 lt_cv_compiler_o_lo=no
5283 save_CFLAGS="$CFLAGS"
5284 CFLAGS="$CFLAGS -c -o conftest.lo"
5285 save_objext="$ac_objext"
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5292 int some_variable = 0;
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 # The compiler can only warn and ignore the option if not recognized
5298 # So say no if there are warnings
5299 if test -s conftest.err; then
5300 lt_cv_compiler_o_lo=no
5302 lt_cv_compiler_o_lo=yes
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5310 ac_objext="$save_objext"
5311 CFLAGS="$save_CFLAGS"
5315 compiler_o_lo=$lt_cv_compiler_o_lo
5316 echo "$ac_t""$compiler_o_lo" 1>&6
5321 # Check to see if we can do hard links to lock some files if needed
5322 hard_links="nottested"
5323 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5324 # do not overwrite the value of need_locks provided by the user
5325 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5326 echo "configure:5327: checking if we can lock with hard links" >&5
5329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5331 ln conftest.a conftest.b 2>&5 || hard_links=no
5332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5333 echo "$ac_t""$hard_links" 1>&6
5334 if test "$hard_links" = no; then
5335 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5342 if test "$GCC" = yes; then
5343 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5344 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5345 echo "configure:5346: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5346 echo "int some_variable = 0;" > conftest.$ac_ext
5347 save_CFLAGS="$CFLAGS"
5348 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5349 compiler_rtti_exceptions=no
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5355 int some_variable = 0;
5358 if { (eval echo configure:5359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5360 # The compiler can only warn and ignore the option if not recognized
5361 # So say no if there are warnings
5362 if test -s conftest.err; then
5363 compiler_rtti_exceptions=no
5365 compiler_rtti_exceptions=yes
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5373 CFLAGS="$save_CFLAGS"
5374 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5376 if test "$compiler_rtti_exceptions" = "yes"; then
5377 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5379 no_builtin_flag=' -fno-builtin'
5383 # See if the linker supports building shared libraries.
5384 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5385 echo "configure:5386: checking whether the linker ($LD) supports shared libraries" >&5
5387 allow_undefined_flag=
5389 need_lib_prefix=unknown
5390 need_version=unknown
5391 # when you set need_version to no, make sure it does not cause -set_version
5392 # flags to be left without arguments
5394 archive_expsym_cmds=
5395 old_archive_from_new_cmds=
5396 old_archive_from_expsyms_cmds=
5397 export_dynamic_flag_spec=
5398 whole_archive_flag_spec=
5399 thread_safe_flag_spec=
5400 hardcode_into_libs=no
5401 hardcode_libdir_flag_spec=
5402 hardcode_libdir_separator=
5405 hardcode_shlibpath_var=unsupported
5407 link_all_deplibs=unknown
5408 always_export_symbols=no
5409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5410 # include_expsyms should be a list of space-separated symbols to be *always*
5411 # included in the symbol list
5413 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5414 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5416 # as well as any symbol that contains `d'.
5417 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5419 # platforms (ab)use it in PIC code, but their linkers get confused if
5420 # the symbol is explicitly referenced. Since portable code cannot
5421 # rely on this symbol name, it's probably fine to never include it in
5422 # preloaded symbol tables.
5423 extract_expsyms_cmds=
5426 cygwin* | mingw* | pw32*)
5427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5428 # When not using gcc, we currently assume that we are using
5429 # Microsoft Visual C++.
5430 if test "$GCC" != yes; then
5440 if test "$with_gnu_ld" = yes; then
5441 # If archive_cmds runs LD, not CC, wlarc should be empty
5444 # See if GNU ld supports shared libraries.
5446 aix3* | aix4* | aix5*)
5447 # On AIX, the GNU linker is very broken
5448 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5452 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5453 *** to be unable to reliably create shared libraries on AIX.
5454 *** Therefore, libtool is disabling shared libraries support. If you
5455 *** really care for shared libraries, you may want to modify your PATH
5456 *** so that a non-GNU linker is found, and then restart.
5462 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)'
5463 hardcode_libdir_flag_spec='-L$libdir'
5464 hardcode_minus_L=yes
5466 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5467 # that the semantics of dynamic libraries on AmigaOS, at least up
5468 # to version 4, is to share data among multiple programs linked
5469 # with the same dynamic library. Since this doesn't match the
5470 # behavior of shared libraries on other platforms, we can use
5476 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5477 allow_undefined_flag=unsupported
5478 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5479 # support --undefined. This deserves some investigation. FIXME
5480 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5486 cygwin* | mingw* | pw32*)
5487 # hardcode_libdir_flag_spec is actually meaningless, as there is
5488 # no search path for DLLs.
5489 hardcode_libdir_flag_spec='-L$libdir'
5490 allow_undefined_flag=unsupported
5491 always_export_symbols=yes
5493 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5494 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5495 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5496 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5497 else $CC -o impgen impgen.c ; fi)~
5498 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5500 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5502 # cygwin and mingw dlls have different entry points and sets of symbols
5504 # FIXME: what about values for MSVC?
5505 dll_entry=__cygwin_dll_entry@12
5506 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5510 dll_entry=_DllMainCRTStartup@12
5511 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5515 # mingw and cygwin differ, and it's simplest to just exclude the union
5516 # of the two symbol sets.
5517 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5519 # recent cygwin and mingw systems supply a stub DllMain which the user
5520 # can override, but on older systems we have to supply one (in ltdll.c)
5521 if test "x$lt_cv_need_dllmain" = "xyes"; then
5522 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5523 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~
5524 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5530 # Extract the symbol export list from an `--export-all' def file,
5531 # then regenerate the def file from the symbol export list, so that
5532 # the compiled dll only exports the symbol export list.
5533 # Be careful not to strip the DATA tag left be newer dlltools.
5534 export_symbols_cmds="$ltdll_cmds"'
5535 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5536 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5538 # If the export-symbols file already is a .def file (1st line
5539 # is EXPORTS), use it as is.
5540 # If DATA tags from a recent dlltool are present, honour them!
5541 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5542 cp $export_symbols $output_objdir/$soname-def;
5544 echo EXPORTS > $output_objdir/$soname-def;
5546 cat $export_symbols | while read symbol; do
5549 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5550 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5552 _lt_hint=`expr 1 + \$_lt_hint`;
5556 $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~
5557 $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~
5558 $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~
5559 $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~
5560 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5565 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5568 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5569 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5574 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5579 *** create shared libraries on Solaris systems. Therefore, libtool
5580 *** is disabling shared libraries support. We urge you to upgrade GNU
5581 *** binutils to release 2.9.1 or newer. Another option is to modify
5582 *** your PATH or compiler configuration so that the native linker is
5583 *** used, and then restart.
5586 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5595 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5598 hardcode_shlibpath_var=no
5602 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5611 if test "$ld_shlibs" = yes; then
5612 runpath_var=LD_RUN_PATH
5613 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5614 export_dynamic_flag_spec='${wl}--export-dynamic'
5616 cygwin* | mingw* | pw32*)
5617 # dlltool doesn't understand --whole-archive et. al.
5618 whole_archive_flag_spec=
5621 # ancient GNU ld didn't support --whole-archive et. al.
5622 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5625 whole_archive_flag_spec=
5631 # PORTME fill in a description of your system's linker (not GNU ld)
5634 allow_undefined_flag=unsupported
5635 always_export_symbols=yes
5636 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'
5637 # Note: this linker hardcodes the directories in LIBPATH if there
5638 # are no directories specified by -L.
5639 hardcode_minus_L=yes
5640 if test "$GCC" = yes && test -z "$link_static_flag"; then
5641 # Neither direct hardcoding nor static linking is supported with a
5643 hardcode_direct=unsupported
5648 if test "$host_cpu" = ia64; then
5649 # On IA64, the linker does run time linking by default, so we don't
5650 # have to do anything special.
5651 aix_use_runtimelinking=no
5652 exp_sym_flag='-Bexport'
5655 aix_use_runtimelinking=no
5657 # Test if we are trying to use run time linking or normal
5658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5659 # need to do runtime linking.
5660 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5661 for ld_flag in $LDFLAGS; do
5662 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5663 aix_use_runtimelinking=yes
5669 exp_sym_flag='-bexport'
5670 no_entry_flag='-bnoentry'
5673 # When large executables or shared objects are built, AIX ld can
5674 # have problems creating the table of contents. If linking a library
5675 # or program results in "error TOC overflow" add -mminimal-toc to
5676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5681 hardcode_libdir_separator=':'
5682 if test "$GCC" = yes; then
5683 case $host_os in aix4.[012]|aix4.[012].*)
5684 collect2name=`${CC} -print-prog-name=collect2`
5685 if test -f "$collect2name" && \
5686 strings "$collect2name" | grep resolve_lib_name >/dev/null
5688 # We have reworked collect2
5691 # We have old collect2
5692 hardcode_direct=unsupported
5693 # It fails to find uninstalled libraries when the uninstalled
5694 # path is not listed in the libpath. Setting hardcode_minus_L
5695 # to unsupported forces relinking
5696 hardcode_minus_L=yes
5697 hardcode_libdir_flag_spec='-L$libdir'
5698 hardcode_libdir_separator=
5702 shared_flag='-shared'
5705 if test "$host_cpu" = ia64; then
5706 shared_flag='${wl}-G'
5708 if test "$aix_use_runtimelinking" = yes; then
5709 shared_flag='${wl}-G'
5711 shared_flag='${wl}-bM:SRE'
5716 # It seems that -bexpall can do strange things, so it is better to
5717 # generate a list of symbols to export.
5718 always_export_symbols=yes
5719 if test "$aix_use_runtimelinking" = yes; then
5720 # Warning - without using the other runtime loading flags (-brtl),
5721 # -berok will link without error, but may produce a broken library.
5722 allow_undefined_flag='-berok'
5723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5724 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"
5726 if test "$host_cpu" = ia64; then
5727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5728 allow_undefined_flag="-z nodefs"
5729 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"
5731 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5732 # Warning - without using the other run time loading flags,
5733 # -berok will link without error, but may produce a broken library.
5734 allow_undefined_flag='${wl}-berok'
5735 # This is a bit strange, but is similar to how AIX traditionally builds
5736 # it's shared libraries.
5737 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'
5743 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)'
5744 hardcode_libdir_flag_spec='-L$libdir'
5745 hardcode_minus_L=yes
5746 # see comment about different semantics on the GNU ld section
5750 cygwin* | mingw* | pw32*)
5751 # When not using gcc, we currently assume that we are using
5752 # Microsoft Visual C++.
5753 # hardcode_libdir_flag_spec is actually meaningless, as there is
5754 # no search path for DLLs.
5755 hardcode_libdir_flag_spec=' '
5756 allow_undefined_flag=unsupported
5757 # Tell ltmain to make .lib files, not .a files.
5759 # FIXME: Setting linknames here is a bad hack.
5760 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5761 # The linker will automatically build a .lib file if we build a DLL.
5762 old_archive_from_new_cmds='true'
5763 # FIXME: Should let the user specify the lib program.
5764 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5765 fix_srcfile_path='`cygpath -w "$srcfile"`'
5768 darwin* | rhapsody*)
5770 rhapsody* | darwin1.[012])
5771 allow_undefined_flag='-undefined suppress'
5774 allow_undefined_flag='-flat_namespace -undefined suppress'
5777 # FIXME: Relying on posixy $() will cause problems for
5778 # cross-compilation, but unfortunately the echo tests do not
5779 # yet detect zsh echo's removal of \ escapes.
5780 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'
5781 # We need to add '_' to the symbols in $export_symbols first
5782 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5784 hardcode_shlibpath_var=no
5785 whole_archive_flag_spec='-all_load $convenience'
5792 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5793 # support. Future versions do this automatically, but an explicit c++rt0.o
5794 # does not break anything, and helps significantly (at the cost of a little
5797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5798 hardcode_libdir_flag_spec='-R$libdir'
5800 hardcode_shlibpath_var=no
5803 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5807 hardcode_minus_L=yes
5808 hardcode_shlibpath_var=no
5811 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5813 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5814 hardcode_libdir_flag_spec='-R$libdir'
5816 hardcode_shlibpath_var=no
5819 hpux9* | hpux10* | hpux11*)
5821 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' ;;
5822 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5825 hardcode_libdir_separator=:
5827 hardcode_minus_L=yes # Not in the search PATH, but as the default
5828 # location of the library.
5829 export_dynamic_flag_spec='${wl}-E'
5833 if test "$GCC" = yes; then
5834 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'
5836 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'
5838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5839 hardcode_libdir_separator=:
5840 link_all_deplibs=yes
5844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5847 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5849 hardcode_libdir_flag_spec='-R$libdir'
5851 hardcode_shlibpath_var=no
5855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5858 hardcode_libdir_separator=:
5859 hardcode_shlibpath_var=no
5864 hardcode_shlibpath_var=no
5865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5868 export_dynamic_flag_spec='${wl}-E'
5871 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5873 hardcode_libdir_flag_spec='-R$libdir'
5876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5884 hardcode_libdir_flag_spec='-L$libdir'
5885 hardcode_minus_L=yes
5886 allow_undefined_flag=unsupported
5887 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'
5888 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5892 if test "$GCC" = yes; then
5893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5894 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'
5896 allow_undefined_flag=' -expect_unresolved \*'
5897 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'
5899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5900 hardcode_libdir_separator=:
5903 osf4* | osf5*) # as osf3* with the addition of -msym flag
5904 if test "$GCC" = yes; then
5905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5906 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'
5907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5909 allow_undefined_flag=' -expect_unresolved \*'
5910 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'
5911 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5912 $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'
5914 #Both c and cxx compiler support -rpath directly
5915 hardcode_libdir_flag_spec='-rpath $libdir'
5917 hardcode_libdir_separator=:
5921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5922 hardcode_shlibpath_var=no
5923 runpath_var=LD_RUN_PATH
5924 hardcode_runpath_var=yes
5925 export_dynamic_flag_spec='${wl}-Bexport'
5929 # gcc --version < 3.0 without binutils cannot create self contained
5930 # shared libraries reliably, requiring libgcc.a to resolve some of
5931 # the object symbols generated in some cases. Libraries that use
5932 # assert need libgcc.a to resolve __eprintf, for example. Linking
5933 # a copy of libgcc.a into every shared library to guarantee resolving
5934 # such symbols causes other problems: According to Tim Van Holder
5935 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5936 # (to the application) exception stack for one thing.
5937 no_undefined_flag=' -z defs'
5938 if test "$GCC" = yes; then
5939 case `$CC --version 2>/dev/null` in
5943 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5944 *** create self contained shared libraries on Solaris systems, without
5945 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5946 *** -no-undefined support, which will at least allow you to build shared
5947 *** libraries. However, you may find that when you link such libraries
5948 *** into an application without using GCC, you have to manually add
5949 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5950 *** upgrade to a newer version of GCC. Another option is to rebuild your
5951 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5958 # $CC -shared without GNU ld will not create a library from C++
5959 # object files and a static libstdc++, better avoid it by now
5960 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5961 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5962 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5963 hardcode_libdir_flag_spec='-R$libdir'
5964 hardcode_shlibpath_var=no
5966 solaris2.[0-5] | solaris2.[0-5].*) ;;
5967 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5968 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5970 link_all_deplibs=yes
5974 if test "x$host_vendor" = xsequent; then
5975 # Use $CC to link under sequent, because it throws in some extra .o
5976 # files that make .init and .fini sections work.
5977 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5979 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5981 hardcode_libdir_flag_spec='-L$libdir'
5983 hardcode_minus_L=yes
5984 hardcode_shlibpath_var=no
5988 if test "x$host_vendor" = xsno; then
5989 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_direct=yes # is this really true???
5992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5995 runpath_var='LD_RUN_PATH'
5996 hardcode_shlibpath_var=no
6000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6001 hardcode_shlibpath_var=no
6002 export_dynamic_flag_spec='-Bexport'
6006 no_undefined_flag=' -z text'
6007 # $CC -shared without GNU ld will not create a library from C++
6008 # object files and a static libstdc++, better avoid it by now
6009 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6010 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6012 hardcode_libdir_flag_spec=
6013 hardcode_shlibpath_var=no
6014 runpath_var='LD_RUN_PATH'
6018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6019 hardcode_libdir_flag_spec='-L$libdir'
6020 hardcode_shlibpath_var=no
6024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6025 hardcode_libdir_flag_spec='-L$libdir'
6026 hardcode_shlibpath_var=no
6030 if test -d /usr/nec; then
6031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6032 hardcode_shlibpath_var=no
6033 runpath_var=LD_RUN_PATH
6034 hardcode_runpath_var=yes
6040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6043 hardcode_shlibpath_var=no
6044 hardcode_runpath_var=yes
6045 runpath_var=LD_RUN_PATH
6048 sysv5uw7* | unixware7*)
6049 no_undefined_flag='${wl}-z ${wl}text'
6050 if test "$GCC" = yes; then
6051 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6053 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6055 runpath_var='LD_RUN_PATH'
6056 hardcode_shlibpath_var=no
6064 echo "$ac_t""$ld_shlibs" 1>&6
6065 test "$ld_shlibs" = no && can_build_shared=no
6067 # Check hardcoding attributes.
6068 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6069 echo "configure:6070: checking how to hardcode library paths into programs" >&5
6071 if test -n "$hardcode_libdir_flag_spec" || \
6072 test -n "$runpath_var"; then
6074 # We can hardcode non-existant directories.
6075 if test "$hardcode_direct" != no &&
6076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6077 # have to relink, otherwise we might link with an installed library
6078 # when we should be linking with a yet-to-be-installed one
6079 ## test "$hardcode_shlibpath_var" != no &&
6080 test "$hardcode_minus_L" != no; then
6081 # Linking always hardcodes the temporary library directory.
6082 hardcode_action=relink
6084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6085 hardcode_action=immediate
6088 # We cannot hardcode anything, or else we can only hardcode existing
6090 hardcode_action=unsupported
6092 echo "$ac_t""$hardcode_action" 1>&6
6096 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6097 echo "configure:6098: checking whether stripping libraries is possible" >&5
6098 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6099 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6100 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6101 echo "$ac_t""yes" 1>&6
6103 echo "$ac_t""no" 1>&6
6106 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6107 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6109 # PORTME Fill in your ld.so characteristics
6110 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6111 echo "configure:6112: checking dynamic linker characteristics" >&5
6113 libname_spec='lib$name'
6120 shlibpath_overrides_runpath=unknown
6122 dynamic_linker="$host_os ld.so"
6123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6129 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6130 shlibpath_var=LIBPATH
6132 # AIX has no versioning support, so we append a major version to the name.
6133 soname_spec='${libname}${release}.so$major'
6138 if test "$host_cpu" = ia64; then
6139 # AIX 5 supports IA64
6140 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6141 shlibpath_var=LD_LIBRARY_PATH
6143 # With GCC up to 2.95.x, collect2 would create an import file
6144 # for dependence libraries. The import file would start with
6145 # the line `#! .'. This would cause the generated library to
6146 # depend on `.', always an invalid library. This was fixed in
6147 # development snapshots of GCC prior to 3.0.
6149 aix4 | aix4.[01] | aix4.[01].*)
6150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6152 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6159 # AIX (on Power*) has no versioning support, so currently we can
6160 # not hardcode correct soname into executable. Probably we can
6161 # add versioning support to collect2, so additional links can
6162 # be useful in future.
6163 if test "$aix_use_runtimelinking" = yes; then
6164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6165 # instead of lib<name>.a to let people know that these are not
6166 # typical AIX shared libraries.
6167 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6169 # We preserve .a as extension for shared libraries through AIX4.2
6170 # and later when we are not doing run time linking.
6171 library_names_spec='${libname}${release}.a $libname.a'
6172 soname_spec='${libname}${release}.so$major'
6174 shlibpath_var=LIBPATH
6179 library_names_spec='$libname.ixlibrary $libname.a'
6180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6181 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'
6185 library_names_spec='${libname}.so'
6186 dynamic_linker="$host_os ld.so"
6187 shlibpath_var=LIBRARY_PATH
6193 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6194 soname_spec='${libname}${release}.so$major'
6195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6196 shlibpath_var=LD_LIBRARY_PATH
6197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6199 export_dynamic_flag_spec=-rdynamic
6200 # the default ld.so.conf also contains /usr/contrib/lib and
6201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6202 # libtool to hard-code these into programs
6205 cygwin* | mingw* | pw32*)
6206 version_type=windows
6209 case $GCC,$host_os in
6211 library_names_spec='$libname.dll.a'
6212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6213 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6214 dldir=$destdir/`dirname \$dlpath`~
6215 test -d \$dldir || mkdir -p \$dldir~
6216 $install_prog .libs/$dlname \$dldir/$dlname'
6217 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6218 dlpath=$dir/\$dldll~
6222 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6229 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6232 dynamic_linker='Win32 ld.exe'
6233 # FIXME: first we should search . and the directory the executable is in
6237 darwin* | rhapsody*)
6238 dynamic_linker="$host_os dyld"
6242 # FIXME: Relying on posixy $() will cause problems for
6243 # cross-compilation, but unfortunately the echo tests do not
6244 # yet detect zsh echo's removal of \ escapes.
6245 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)'
6246 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6247 shlibpath_overrides_runpath=yes
6248 shlibpath_var=DYLD_LIBRARY_PATH
6256 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6257 version_type=freebsd-$objformat
6258 case $version_type in
6260 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6265 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6269 shlibpath_var=LD_LIBRARY_PATH
6272 shlibpath_overrides_runpath=yes
6275 shlibpath_overrides_runpath=no
6276 hardcode_into_libs=yes
6285 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6286 soname_spec='${libname}${release}.so$major'
6287 shlibpath_var=LD_LIBRARY_PATH
6288 hardcode_into_libs=yes
6291 hpux9* | hpux10* | hpux11*)
6292 # Give a soname corresponding to the major version so that dld.sl refuses to
6293 # link against other versions.
6294 dynamic_linker="$host_os dld.sl"
6298 shlibpath_var=SHLIB_PATH
6299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6300 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6301 soname_spec='${libname}${release}.sl$major'
6302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6303 postinstall_cmds='chmod 555 $lib'
6310 soname_spec='${libname}${release}.so$major'
6311 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6317 case $LD in # libtool.m4 will add one of these switches to LD
6318 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6319 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6320 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6321 *) libsuff= shlibsuff= libmagic=never-match;;
6325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6326 shlibpath_overrides_runpath=no
6327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6331 # No shared lib support for Linux oldld, aout, or coff.
6332 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6336 # This must be Linux ELF.
6341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6342 soname_spec='${libname}${release}.so$major'
6343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6344 shlibpath_var=LD_LIBRARY_PATH
6345 shlibpath_overrides_runpath=no
6346 # This implies no fast_install, which is unacceptable.
6347 # Some rework will be needed to allow for fast_install
6348 # before this can be enabled.
6349 hardcode_into_libs=yes
6351 # We used to test for /lib/ld.so.1 and disable shared libraries on
6352 # powerpc, because MkLinux only supported shared libraries with the
6353 # GNU dynamic linker. Since this was broken with cross compilers,
6354 # most powerpc-linux boxes support dynamic linking these days and
6355 # people can always --disable-shared, the test was removed, and we
6356 # assume the GNU/Linux dynamic linker is in use.
6357 dynamic_linker='GNU/Linux ld.so'
6364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6367 dynamic_linker='NetBSD (a.out) ld.so'
6369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6370 soname_spec='${libname}${release}.so$major'
6371 dynamic_linker='NetBSD ld.elf_so'
6373 shlibpath_var=LD_LIBRARY_PATH
6374 shlibpath_overrides_runpath=yes
6375 hardcode_into_libs=yes
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6381 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6391 openbsd2.[89] | openbsd2.[89].*)
6392 shlibpath_overrides_runpath=no
6395 shlibpath_overrides_runpath=yes
6399 shlibpath_overrides_runpath=yes
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6403 shlibpath_var=LD_LIBRARY_PATH
6407 libname_spec='$name'
6409 library_names_spec='$libname.dll $libname.a'
6410 dynamic_linker='OS/2 ld.exe'
6411 shlibpath_var=LIBPATH
6414 osf3* | osf4* | osf5*)
6417 soname_spec='${libname}${release}.so'
6418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6419 shlibpath_var=LD_LIBRARY_PATH
6420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6426 soname_spec='${libname}${release}.so$major'
6427 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6428 shlibpath_var=LD_LIBRARY_PATH
6435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6436 soname_spec='${libname}${release}.so$major'
6437 shlibpath_var=LD_LIBRARY_PATH
6438 shlibpath_overrides_runpath=yes
6439 hardcode_into_libs=yes
6440 # ldd complains unless libraries are executable
6441 postinstall_cmds='chmod +x $lib'
6446 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6448 shlibpath_var=LD_LIBRARY_PATH
6449 shlibpath_overrides_runpath=yes
6450 if test "$with_gnu_ld" = yes; then
6456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6458 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6459 soname_spec='${libname}${release}.so$major'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 case $host_vendor in
6463 shlibpath_overrides_runpath=no
6468 shlibpath_overrides_runpath=no
6469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6476 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6477 soname_spec='${libname}${release}.so$major'
6478 shlibpath_var=LD_LIBRARY_PATH
6485 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6486 soname_spec='${libname}${release}.so$major'
6487 shlibpath_var=LD_LIBRARY_PATH
6491 if test -d /usr/nec ;then
6493 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6494 soname_spec='$libname.so.$major'
6495 shlibpath_var=LD_LIBRARY_PATH
6503 echo "$ac_t""$dynamic_linker" 1>&6
6504 test "$dynamic_linker" = no && can_build_shared=no
6506 # Report the final consequences.
6507 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6508 echo "configure:6509: checking if libtool supports shared libraries" >&5
6509 echo "$ac_t""$can_build_shared" 1>&6
6511 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6512 echo "configure:6513: checking whether to build shared libraries" >&5
6513 test "$can_build_shared" = "no" && enable_shared=no
6515 # On AIX, shared libraries and static libraries use the same namespace, and
6516 # are all built from PIC.
6519 test "$enable_shared" = yes && enable_static=no
6520 if test -n "$RANLIB"; then
6521 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6522 postinstall_cmds='$RANLIB $lib'
6527 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6528 test "$enable_shared" = yes && enable_static=no
6532 echo "$ac_t""$enable_shared" 1>&6
6534 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6535 echo "configure:6536: checking whether to build static libraries" >&5
6536 # Make sure either enable_shared or enable_static is yes.
6537 test "$enable_shared" = yes || enable_static=yes
6538 echo "$ac_t""$enable_static" 1>&6
6540 if test "$hardcode_action" = relink; then
6541 # Fast installation is not supported
6542 enable_fast_install=no
6543 elif test "$shlibpath_overrides_runpath" = yes ||
6544 test "$enable_shared" = no; then
6545 # Fast installation is not necessary
6546 enable_fast_install=needless
6549 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6550 if test "$GCC" = yes; then
6551 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6554 if test "x$enable_dlopen" != xyes; then
6555 enable_dlopen=unknown
6556 enable_dlopen_self=unknown
6557 enable_dlopen_self_static=unknown
6564 lt_cv_dlopen="load_add_on"
6566 lt_cv_dlopen_self=yes
6569 cygwin* | mingw* | pw32*)
6570 lt_cv_dlopen="LoadLibrary"
6575 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6576 echo "configure:6577: checking for shl_load" >&5
6577 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char shl_load(); below. */
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6594 /* The GNU C library defines this for functions which it implements
6595 to always fail with ENOSYS. Some functions are actually named
6596 something starting with __ and the normal name is an alias. */
6597 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6607 eval "ac_cv_func_shl_load=yes"
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6612 eval "ac_cv_func_shl_load=no"
6617 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6618 echo "$ac_t""yes" 1>&6
6619 lt_cv_dlopen="shl_load"
6621 echo "$ac_t""no" 1>&6
6622 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6623 echo "configure:6624: checking for shl_load in -ldld" >&5
6624 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 ac_save_LIBS="$LIBS"
6630 cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure"
6632 #include "confdefs.h"
6633 /* Override any gcc2 internal prototype to avoid an error. */
6634 /* We use char because int might match the return type of a gcc2
6635 builtin and then its argument prototype would still apply. */
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644 eval "ac_cv_lib_$ac_lib_var=yes"
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6649 eval "ac_cv_lib_$ac_lib_var=no"
6652 LIBS="$ac_save_LIBS"
6655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6656 echo "$ac_t""yes" 1>&6
6657 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6659 echo "$ac_t""no" 1>&6
6660 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6661 echo "configure:6662: checking for dlopen" >&5
6662 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 /* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char dlopen(); below. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6679 /* The GNU C library defines this for functions which it implements
6680 to always fail with ENOSYS. Some functions are actually named
6681 something starting with __ and the normal name is an alias. */
6682 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 eval "ac_cv_func_dlopen=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 eval "ac_cv_func_dlopen=no"
6702 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6704 lt_cv_dlopen="dlopen"
6706 echo "$ac_t""no" 1>&6
6707 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6708 echo "configure:6709: checking for dlopen in -ldl" >&5
6709 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6710 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 ac_save_LIBS="$LIBS"
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6718 /* Override any gcc2 internal prototype to avoid an error. */
6719 /* We use char because int might match the return type of a gcc2
6720 builtin and then its argument prototype would still apply. */
6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6729 eval "ac_cv_lib_$ac_lib_var=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 eval "ac_cv_lib_$ac_lib_var=no"
6737 LIBS="$ac_save_LIBS"
6740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6741 echo "$ac_t""yes" 1>&6
6742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6744 echo "$ac_t""no" 1>&6
6745 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6746 echo "configure:6747: checking for dlopen in -lsvld" >&5
6747 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6748 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 ac_save_LIBS="$LIBS"
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767 eval "ac_cv_lib_$ac_lib_var=yes"
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 eval "ac_cv_lib_$ac_lib_var=no"
6775 LIBS="$ac_save_LIBS"
6778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6779 echo "$ac_t""yes" 1>&6
6780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6782 echo "$ac_t""no" 1>&6
6783 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6784 echo "configure:6785: checking for dld_link in -ldld" >&5
6785 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 ac_save_LIBS="$LIBS"
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6805 eval "ac_cv_lib_$ac_lib_var=yes"
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 eval "ac_cv_lib_$ac_lib_var=no"
6813 LIBS="$ac_save_LIBS"
6816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6820 echo "$ac_t""no" 1>&6
6841 if test "x$lt_cv_dlopen" != xno; then
6847 case $lt_cv_dlopen in
6849 save_CPPFLAGS="$CPPFLAGS"
6850 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6852 save_LDFLAGS="$LDFLAGS"
6853 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6856 LIBS="$lt_cv_dlopen_libs $LIBS"
6858 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6859 echo "configure:6860: checking whether a program can dlopen itself" >&5
6860 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 if test "$cross_compiling" = yes; then :
6864 lt_cv_dlopen_self=cross
6866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6867 lt_status=$lt_dlunknown
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6879 # define LT_DLGLOBAL RTLD_GLOBAL
6882 # define LT_DLGLOBAL DL_GLOBAL
6884 # define LT_DLGLOBAL 0
6888 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6889 find out it does not work in some platform. */
6890 #ifndef LT_DLLAZY_OR_NOW
6892 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6895 # define LT_DLLAZY_OR_NOW DL_LAZY
6898 # define LT_DLLAZY_OR_NOW RTLD_NOW
6901 # define LT_DLLAZY_OR_NOW DL_NOW
6903 # define LT_DLLAZY_OR_NOW 0
6911 extern "C" void exit (int);
6914 void fnord() { int i=42;}
6917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6918 int status = $lt_dlunknown;
6922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6923 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6924 /* dlclose (self); */
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6931 (./conftest; exit; ) 2>/dev/null
6934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6936 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6939 # compilation failed
6940 lt_cv_dlopen_self=no
6948 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6950 if test "x$lt_cv_dlopen_self" = xyes; then
6951 LDFLAGS="$LDFLAGS $link_static_flag"
6952 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6953 echo "configure:6954: checking whether a statically linked program can dlopen itself" >&5
6954 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6955 echo $ac_n "(cached) $ac_c" 1>&6
6957 if test "$cross_compiling" = yes; then :
6958 lt_cv_dlopen_self_static=cross
6960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6961 lt_status=$lt_dlunknown
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6973 # define LT_DLGLOBAL RTLD_GLOBAL
6976 # define LT_DLGLOBAL DL_GLOBAL
6978 # define LT_DLGLOBAL 0
6982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6983 find out it does not work in some platform. */
6984 #ifndef LT_DLLAZY_OR_NOW
6986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6989 # define LT_DLLAZY_OR_NOW DL_LAZY
6992 # define LT_DLLAZY_OR_NOW RTLD_NOW
6995 # define LT_DLLAZY_OR_NOW DL_NOW
6997 # define LT_DLLAZY_OR_NOW 0
7005 extern "C" void exit (int);
7008 void fnord() { int i=42;}
7011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7012 int status = $lt_dlunknown;
7016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7017 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7018 /* dlclose (self); */
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7025 (./conftest; exit; ) 2>/dev/null
7028 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7029 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7030 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7033 # compilation failed
7034 lt_cv_dlopen_self_static=no
7042 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7045 CPPFLAGS="$save_CPPFLAGS"
7046 LDFLAGS="$save_LDFLAGS"
7051 case $lt_cv_dlopen_self in
7052 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7053 *) enable_dlopen_self=unknown ;;
7056 case $lt_cv_dlopen_self_static in
7057 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7058 *) enable_dlopen_self_static=unknown ;;
7063 if test "$enable_shared" = yes && test "$GCC" = yes; then
7064 case $archive_cmds in
7066 # FIXME: we may have to deal with multi-command sequences.
7069 # Test whether the compiler implicitly links with -lc since on some
7070 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7071 # to ld, don't add -lc before -lgcc.
7072 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7073 echo "configure:7074: checking whether -lc should be explicitly linked in" >&5
7074 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7078 echo 'static int dummy;' > conftest.$ac_ext
7080 if { (eval echo configure:7081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7083 libobjs=conftest.$ac_objext
7085 wl=$lt_cv_prog_cc_wl
7091 save_allow_undefined_flag=$allow_undefined_flag
7092 allow_undefined_flag=
7093 if { (eval echo configure:7094: \"$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; }
7095 lt_cv_archive_cmds_need_lc=no
7097 lt_cv_archive_cmds_need_lc=yes
7099 allow_undefined_flag=$save_allow_undefined_flag
7101 cat conftest.err 1>&5
7105 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7109 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7111 # The second clause should only fire when bootstrapping the
7112 # libtool distribution, otherwise you forgot to ship ltmain.sh
7113 # with your package, and you will get complaints that there are
7114 # no rules to generate ltmain.sh.
7115 if test -f "$ltmain"; then
7118 # If there is no Makefile yet, we rely on a make rule to execute
7119 # `config.status --recheck' to rerun these tests and create the
7120 # libtool script then.
7121 test -f Makefile && make "$ltmain"
7124 if test -f "$ltmain"; then
7125 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7128 echo creating $ofile
7130 # Now quote all the things that may contain metacharacters while being
7131 # careful not to overquote the AC_SUBSTed values. We take copies of the
7132 # variables and quote the copies for generation of the libtool script.
7133 for var in echo old_CC old_CFLAGS \
7134 AR AR_FLAGS CC LD LN_S NM SHELL \
7135 reload_flag reload_cmds wl \
7136 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7137 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7138 library_names_spec soname_spec \
7139 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7140 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7141 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7142 old_striplib striplib file_magic_cmd export_symbols_cmds \
7143 deplibs_check_method allow_undefined_flag no_undefined_flag \
7144 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7145 global_symbol_to_c_name_address \
7146 hardcode_libdir_flag_spec hardcode_libdir_separator \
7147 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7148 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7151 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7152 old_postinstall_cmds | old_postuninstall_cmds | \
7153 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7154 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7155 postinstall_cmds | postuninstall_cmds | \
7156 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7157 # Double-quote double-evaled strings.
7158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7166 cat <<__EOF__ > "${ofile}T"
7169 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7170 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7171 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7173 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7174 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7176 # This program is free software; you can redistribute it and/or modify
7177 # it under the terms of the GNU General Public License as published by
7178 # the Free Software Foundation; either version 2 of the License, or
7179 # (at your option) any later version.
7181 # This program is distributed in the hope that it will be useful, but
7182 # WITHOUT ANY WARRANTY; without even the implied warranty of
7183 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7184 # General Public License for more details.
7186 # You should have received a copy of the GNU General Public License
7187 # along with this program; if not, write to the Free Software
7188 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7190 # As a special exception to the GNU General Public License, if you
7191 # distribute this file as part of a program that contains a
7192 # configuration script generated by Autoconf, you may include it under
7193 # the same distribution terms that you use for the rest of that program.
7195 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7196 Xsed="sed -e s/^X//"
7198 # The HP-UX ksh and POSIX shell print the target directory to stdout
7200 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7202 # ### BEGIN LIBTOOL CONFIG
7204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7206 # Shell to use when invoking shell scripts.
7209 # Whether or not to build shared libraries.
7210 build_libtool_libs=$enable_shared
7212 # Whether or not to build static libraries.
7213 build_old_libs=$enable_static
7215 # Whether or not to add -lc for building shared libraries.
7216 build_libtool_need_lc=$need_lc
7218 # Whether or not to optimize for fast installation.
7219 fast_install=$enable_fast_install
7222 host_alias=$host_alias
7225 # An echo program that does not interpret backslashes.
7230 AR_FLAGS=$lt_AR_FLAGS
7232 # The default C compiler.
7235 # Is the compiler the GNU C compiler?
7238 # The linker used to build libraries.
7241 # Whether we need hard or soft links.
7244 # A BSD-compatible nm program.
7247 # A symbol stripping program
7250 # Used to examine libraries when file_magic_cmd begins "file"
7251 MAGIC_CMD=$MAGIC_CMD
7253 # Used on cygwin: DLL creation program.
7256 # Used on cygwin: object dumper.
7259 # Used on cygwin: assembler.
7262 # The name of the directory that contains temporary libtool files.
7265 # How to create reloadable object files.
7266 reload_flag=$lt_reload_flag
7267 reload_cmds=$lt_reload_cmds
7269 # How to pass a linker flag through the compiler.
7272 # Object file suffix (normally "o").
7275 # Old archive suffix (normally "a").
7278 # Executable file suffix (normally "").
7281 # Additional compiler flags for building library objects.
7282 pic_flag=$lt_pic_flag
7285 # Does compiler simultaneously support -c and -o options?
7286 compiler_c_o=$lt_compiler_c_o
7288 # Can we write directly to a .lo ?
7289 compiler_o_lo=$lt_compiler_o_lo
7291 # Must we lock files when doing compilation ?
7292 need_locks=$lt_need_locks
7294 # Do we need the lib prefix for modules?
7295 need_lib_prefix=$need_lib_prefix
7297 # Do we need a version for libraries?
7298 need_version=$need_version
7300 # Whether dlopen is supported.
7301 dlopen_support=$enable_dlopen
7303 # Whether dlopen of programs is supported.
7304 dlopen_self=$enable_dlopen_self
7306 # Whether dlopen of statically linked programs is supported.
7307 dlopen_self_static=$enable_dlopen_self_static
7309 # Compiler flag to prevent dynamic linking.
7310 link_static_flag=$lt_link_static_flag
7312 # Compiler flag to turn off builtin functions.
7313 no_builtin_flag=$lt_no_builtin_flag
7315 # Compiler flag to allow reflexive dlopens.
7316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7318 # Compiler flag to generate shared objects directly from archives.
7319 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7321 # Compiler flag to generate thread-safe objects.
7322 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7324 # Library versioning type.
7325 version_type=$version_type
7327 # Format of library name prefix.
7328 libname_spec=$lt_libname_spec
7330 # List of archive names. First name is the real one, the rest are links.
7331 # The last name is the one that the linker finds with -lNAME.
7332 library_names_spec=$lt_library_names_spec
7334 # The coded name of the library, if different from the real name.
7335 soname_spec=$lt_soname_spec
7337 # Commands used to build and install an old-style archive.
7339 old_archive_cmds=$lt_old_archive_cmds
7340 old_postinstall_cmds=$lt_old_postinstall_cmds
7341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7343 # Create an old-style archive from a shared archive.
7344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7346 # Create a temporary old-style archive to link instead of a shared archive.
7347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7349 # Commands used to build and install a shared archive.
7350 archive_cmds=$lt_archive_cmds
7351 archive_expsym_cmds=$lt_archive_expsym_cmds
7352 postinstall_cmds=$lt_postinstall_cmds
7353 postuninstall_cmds=$lt_postuninstall_cmds
7355 # Commands to strip libraries.
7356 old_striplib=$lt_old_striplib
7357 striplib=$lt_striplib
7359 # Method to check whether dependent libraries are shared objects.
7360 deplibs_check_method=$lt_deplibs_check_method
7362 # Command to use when deplibs_check_method == file_magic.
7363 file_magic_cmd=$lt_file_magic_cmd
7365 # Flag that allows shared libraries with undefined symbols to be built.
7366 allow_undefined_flag=$lt_allow_undefined_flag
7368 # Flag that forces no undefined symbols.
7369 no_undefined_flag=$lt_no_undefined_flag
7371 # Commands used to finish a libtool library installation in a directory.
7372 finish_cmds=$lt_finish_cmds
7374 # Same as above, but a single script fragment to be evaled but not shown.
7375 finish_eval=$lt_finish_eval
7377 # Take the output of nm and produce a listing of raw symbols and C names.
7378 global_symbol_pipe=$lt_global_symbol_pipe
7380 # Transform the output of nm in a proper C declaration
7381 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7383 # Transform the output of nm in a C name address pair
7384 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7386 # This is the shared library runtime path variable.
7387 runpath_var=$runpath_var
7389 # This is the shared library path variable.
7390 shlibpath_var=$shlibpath_var
7392 # Is shlibpath searched before the hard-coded library search path?
7393 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7395 # How to hardcode a shared library path into an executable.
7396 hardcode_action=$hardcode_action
7398 # Whether we should hardcode library paths into libraries.
7399 hardcode_into_libs=$hardcode_into_libs
7401 # Flag to hardcode \$libdir into a binary during linking.
7402 # This must work even if \$libdir does not exist.
7403 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7405 # Whether we need a single -rpath flag with a separated argument.
7406 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7408 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7410 hardcode_direct=$hardcode_direct
7412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7414 hardcode_minus_L=$hardcode_minus_L
7416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7417 # the resulting binary.
7418 hardcode_shlibpath_var=$hardcode_shlibpath_var
7420 # Variables whose values should be saved in libtool wrapper scripts and
7421 # restored at relink time.
7422 variables_saved_for_relink="$variables_saved_for_relink"
7424 # Whether libtool must link a program against all its dependency libraries.
7425 link_all_deplibs=$link_all_deplibs
7427 # Compile-time system search path for libraries
7428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7430 # Run-time system search path for libraries
7431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7433 # Fix the shell variable \$srcfile for the compiler.
7434 fix_srcfile_path="$fix_srcfile_path"
7436 # Set to yes if exported symbols are required.
7437 always_export_symbols=$always_export_symbols
7439 # The commands to list exported symbols.
7440 export_symbols_cmds=$lt_export_symbols_cmds
7442 # The commands to extract the exported symbol list from a shared archive.
7443 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7445 # Symbols that should not be listed in the preloaded symbols.
7446 exclude_expsyms=$lt_exclude_expsyms
7448 # Symbols that must always be exported.
7449 include_expsyms=$lt_include_expsyms
7451 # ### END LIBTOOL CONFIG
7457 cat <<\EOF >> "${ofile}T"
7459 # AIX sometimes has problems with the GCC collect2 program. For some
7460 # reason, if we set the COLLECT_NAMES environment variable, the problems
7461 # vanish in a puff of smoke.
7462 if test "X${COLLECT_NAMES+set}" != Xset; then
7464 export COLLECT_NAMES
7471 cygwin* | mingw* | pw32* | os2*)
7472 cat <<'EOF' >> "${ofile}T"
7473 # This is a source program that is used to create dlls on Windows
7474 # Don't remove nor modify the starting and closing comments
7475 # /* ltdll.c starts here */
7476 # #define WIN32_LEAN_AND_MEAN
7477 # #include <windows.h>
7478 # #undef WIN32_LEAN_AND_MEAN
7479 # #include <stdio.h>
7481 # #ifndef __CYGWIN__
7482 # # ifdef __CYGWIN32__
7483 # # define __CYGWIN__ __CYGWIN32__
7487 # #ifdef __cplusplus
7490 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7491 # #ifdef __cplusplus
7496 # #include <cygwin/cygwin_dll.h>
7497 # DECLARE_CYGWIN_DLL( DllMain );
7499 # HINSTANCE __hDllInstance_base;
7502 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7504 # __hDllInstance_base = hInst;
7507 # /* ltdll.c ends here */
7508 # This is a source program that is used to create import libraries
7509 # on Windows for dlls which lack them. Don't remove nor modify the
7510 # starting and closing comments
7511 # /* impgen.c starts here */
7512 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7514 # This file is part of GNU libtool.
7516 # This program is free software; you can redistribute it and/or modify
7517 # it under the terms of the GNU General Public License as published by
7518 # the Free Software Foundation; either version 2 of the License, or
7519 # (at your option) any later version.
7521 # This program is distributed in the hope that it will be useful,
7522 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7523 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7524 # GNU General Public License for more details.
7526 # You should have received a copy of the GNU General Public License
7527 # along with this program; if not, write to the Free Software
7528 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7531 # #include <stdio.h> /* for printf() */
7532 # #include <unistd.h> /* for open(), lseek(), read() */
7533 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7534 # #include <string.h> /* for strdup() */
7536 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7538 # #define O_BINARY 0
7541 # static unsigned int
7542 # pe_get16 (fd, offset)
7546 # unsigned char b[2];
7547 # lseek (fd, offset, SEEK_SET);
7549 # return b[0] + (b[1]<<8);
7552 # static unsigned int
7553 # pe_get32 (fd, offset)
7557 # unsigned char b[4];
7558 # lseek (fd, offset, SEEK_SET);
7560 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7563 # static unsigned int
7567 # unsigned char *b = ptr;
7568 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7577 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7578 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7579 # unsigned long name_rvas, nexp;
7580 # unsigned char *expdata, *erva;
7581 # char *filename, *dll_name;
7583 # filename = argv[1];
7585 # dll = open(filename, O_RDONLY|O_BINARY);
7589 # dll_name = filename;
7591 # for (i=0; filename[i]; i++)
7592 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7593 # dll_name = filename + i +1;
7595 # pe_header_offset = pe_get32 (dll, 0x3c);
7596 # opthdr_ofs = pe_header_offset + 4 + 20;
7597 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7599 # if (num_entries < 1) /* no exports */
7602 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7603 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7604 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7605 # secptr = (pe_header_offset + 4 + 20 +
7606 # pe_get16 (dll, pe_header_offset + 4 + 16));
7609 # for (i = 0; i < nsections; i++)
7612 # unsigned long secptr1 = secptr + 40 * i;
7613 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7614 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7615 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7616 # lseek(dll, secptr1, SEEK_SET);
7617 # read(dll, sname, 8);
7618 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7620 # expptr = fptr + (export_rva - vaddr);
7621 # if (export_rva + export_size > vaddr + vsize)
7622 # export_size = vsize - (export_rva - vaddr);
7627 # expdata = (unsigned char*)malloc(export_size);
7628 # lseek (dll, expptr, SEEK_SET);
7629 # read (dll, expdata, export_size);
7630 # erva = expdata - export_rva;
7632 # nexp = pe_as32 (expdata+24);
7633 # name_rvas = pe_as32 (expdata+32);
7635 # printf ("EXPORTS\n");
7636 # for (i = 0; i<nexp; i++)
7638 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7639 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7644 # /* impgen.c ends here */
7650 # We use sed instead of cat because bash on DJGPP gets confused if
7651 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7652 # text mode, it properly converts lines to CR/LF. This bash problem
7653 # is reportedly fixed, but why not run on old versions too?
7654 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7656 mv -f "${ofile}T" "$ofile" || \
7657 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7665 # This can be used to rebuild libtool when needed
7666 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7668 # Always use our own libtool.
7669 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7671 # Prevent multiple expansion
7675 for ac_prog in mawk gawk nawk awk
7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7680 echo "configure:7681: checking for $ac_word" >&5
7681 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7684 if test -n "$AWK"; then
7685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7689 for ac_dir in $ac_dummy; do
7690 test -z "$ac_dir" && ac_dir=.
7691 if test -f $ac_dir/$ac_word; then
7692 ac_cv_prog_AWK="$ac_prog"
7699 AWK="$ac_cv_prog_AWK"
7700 if test -n "$AWK"; then
7701 echo "$ac_t""$AWK" 1>&6
7703 echo "$ac_t""no" 1>&6
7706 test -n "$AWK" && break
7709 # test for ln hardlink support
7710 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7711 echo "configure:7712: checking whether ln works" >&5
7712 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7715 rm -f conftest.src conftest.dst
7716 echo "conftest" > conftest.src
7717 if ln conftest.src conftest.dst 2>/dev/null
7719 ol_cv_prog_LN_H="ln"
7721 ol_cv_prog_LN_H="cp"
7723 rm -f conftest.src conftest.dst
7726 LN_H="$ol_cv_prog_LN_H"
7727 if test "$ol_cv_prog_LN_H" = "ln"; then
7728 echo "$ac_t""yes" 1>&6
7730 echo "$ac_t""no" 1>&6
7733 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7734 echo "configure:7735: checking whether ln -s works" >&5
7735 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7739 if ln -s X conftestdata 2>/dev/null
7742 ac_cv_prog_LN_S="ln -s"
7747 LN_S="$ac_cv_prog_LN_S"
7748 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7749 echo "$ac_t""yes" 1>&6
7751 echo "$ac_t""no" 1>&6
7755 # Extract the first word of "sendmail", so it can be a program name with args.
7756 set dummy sendmail; ac_word=$2
7757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7758 echo "configure:7759: checking for $ac_word" >&5
7759 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7764 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7767 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7771 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7772 for ac_dir in $ac_dummy; do
7773 test -z "$ac_dir" && ac_dir=.
7774 if test -f $ac_dir/$ac_word; then
7775 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7780 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7784 SENDMAIL="$ac_cv_path_SENDMAIL"
7785 if test -n "$SENDMAIL"; then
7786 echo "$ac_t""$SENDMAIL" 1>&6
7788 echo "$ac_t""no" 1>&6
7791 # Extract the first word of "vi", so it can be a program name with args.
7792 set dummy vi; ac_word=$2
7793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7794 echo "configure:7795: checking for $ac_word" >&5
7795 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7800 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7803 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7807 ac_dummy="$PATH:/usr/ucb"
7808 for ac_dir in $ac_dummy; do
7809 test -z "$ac_dir" && ac_dir=.
7810 if test -f $ac_dir/$ac_word; then
7811 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7816 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7820 EDITOR="$ac_cv_path_EDITOR"
7821 if test -n "$EDITOR"; then
7822 echo "$ac_t""$EDITOR" 1>&6
7824 echo "$ac_t""no" 1>&6
7829 if test $ol_enable_perl != no ; then
7830 # Extract the first word of "perl", so it can be a program name with args.
7831 set dummy perl; ac_word=$2
7832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_word" >&5
7834 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7839 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7842 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7847 for ac_dir in $ac_dummy; do
7848 test -z "$ac_dir" && ac_dir=.
7849 if test -f $ac_dir/$ac_word; then
7850 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7855 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7859 PERLBIN="$ac_cv_path_PERLBIN"
7860 if test -n "$PERLBIN"; then
7861 echo "$ac_t""$PERLBIN" 1>&6
7863 echo "$ac_t""no" 1>&6
7867 if test "no$PERLBIN" = "no" ; then
7868 if test $ol_enable_perl = yes ; then
7869 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7873 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7874 if test x"$ol_with_perl_module" = "xstatic" ; then
7875 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7877 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7883 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7884 echo "configure:7885: checking how to run the C preprocessor" >&5
7885 # On Suns, sometimes $CPP names a directory.
7886 if test -n "$CPP" && test -d "$CPP"; then
7889 if test -z "$CPP"; then
7890 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7893 # This must be in double quotes, not single quotes, because CPP may get
7894 # substituted into the Makefile and "${CC-cc}" will confuse make.
7896 # On the NeXT, cc -E runs the code through the compiler's parser,
7897 # not just through cpp.
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7905 { (eval echo configure:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7907 if test -z "$ac_err"; then
7911 echo "configure: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7914 CPP="${CC-cc} -E -traditional-cpp"
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure"
7917 #include "confdefs.h"
7921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7922 { (eval echo configure:7923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7924 if test -z "$ac_err"; then
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 CPP="${CC-cc} -nologo -E"
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7939 { (eval echo configure:7940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7941 if test -z "$ac_err"; then
7945 echo "configure: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7955 ac_cv_prog_CPP="$CPP"
7957 CPP="$ac_cv_prog_CPP"
7959 ac_cv_prog_CPP="$CPP"
7961 echo "$ac_t""$CPP" 1>&6
7964 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7965 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7967 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7968 echo "configure: warning: programs compiled here do run here..." 1>&2
7969 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7971 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7972 echo "configure: warning: programs compiled here do not run here..." 1>&2
7973 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7977 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7978 echo "configure:7979: checking for Cygwin environment" >&5
7979 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7989 #define __CYGWIN__ __CYGWIN32__
7994 if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8006 echo "$ac_t""$ac_cv_cygwin" 1>&6
8008 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8009 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8010 echo "configure:8011: checking for mingw32 environment" >&5
8011 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8022 if { (eval echo configure:8023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8034 echo "$ac_t""$ac_cv_mingw32" 1>&6
8036 test "$ac_cv_mingw32" = yes && MINGW32=yes
8040 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8041 echo "configure:8042: checking for executable suffix" >&5
8042 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8045 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8049 echo 'int main () { return 0; }' > conftest.$ac_ext
8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8052 for file in conftest.*; do
8054 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8055 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8059 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8062 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8067 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8068 echo "$ac_t""${ac_cv_exeext}" 1>&6
8071 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8072 echo "configure:8073: checking for object suffix" >&5
8073 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8077 echo 'int i = 1;' > conftest.$ac_ext
8078 if { (eval echo configure:8079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8079 for ac_file in conftest.*; do
8082 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8086 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8091 echo "$ac_t""$ac_cv_objext" 1>&6
8092 OBJEXT=$ac_cv_objext
8093 ac_objext=$ac_cv_objext
8096 cat >> confdefs.h <<EOF
8097 #define EXEEXT "${EXEEXT}"
8101 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8102 echo "configure:8103: checking for be_app in -lbe" >&5
8103 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 ac_save_LIBS="$LIBS"
8108 LIBS="-lbe -lroot -lnet $LIBS"
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 /* Override any gcc2 internal prototype to avoid an error. */
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8123 eval "ac_cv_lib_$ac_lib_var=yes"
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 eval "ac_cv_lib_$ac_lib_var=no"
8131 LIBS="$ac_save_LIBS"
8134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8136 LIBS="$LIBS -lbe -lroot -lnet"
8138 echo "$ac_t""no" 1>&6
8146 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8147 echo "configure:8148: checking for ${CC-cc} option to accept ANSI C" >&5
8148 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 am_cv_prog_cc_stdc=no
8153 # Don't try gcc -ansi; that turns off useful extensions and
8154 # breaks some systems' header files.
8155 # AIX -qlanglvl=ansi
8156 # Ultrix and OSF/1 -std1
8157 # HP-UX 10.20 and later -Ae
8158 # HP-UX older versions -Aa -D_HPUX_SOURCE
8159 # SVR4 -Xc -D__EXTENSIONS__
8160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8162 CC="$ac_save_CC $ac_arg"
8163 cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure"
8165 #include "confdefs.h"
8168 #include <sys/types.h>
8169 #include <sys/stat.h>
8170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8171 struct buf { int x; };
8172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8173 static char *e (p, i)
8179 static char *f (char * (*g) (char **, int), char **p, ...)
8184 s = g (p, va_arg (v,int));
8188 int test (int i, double x);
8189 struct s1 {int (*f) (int a);};
8190 struct s2 {int (*f) (double a);};
8191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8201 if { (eval echo configure:8202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8203 am_cv_prog_cc_stdc="$ac_arg"; break
8205 echo "configure: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8214 if test -z "$am_cv_prog_cc_stdc"; then
8215 echo "$ac_t""none needed" 1>&6
8217 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8219 case "x$am_cv_prog_cc_stdc" in
8221 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8224 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8225 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8228 # test for make depend flag
8231 if test -z "${MKDEP}"; then
8233 if test -z "${MKDEP_FLAGS}"; then
8234 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8235 echo "configure:8236: checking for ${OL_MKDEP} depend flag" >&5
8236 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8241 for flag in "-M" "-xM"; do
8242 cat > conftest.c <<EOF
8245 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8246 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8248 if test ! -f conftest."${ac_object}" ; then
8250 OL_MKDEP_FLAGS="$flag"
8259 echo "$ac_t""$ol_cv_mkdep" 1>&6
8262 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8267 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8272 if test "${ol_cv_mkdep}" = no ; then
8273 # this will soon become an error
8274 echo "configure: warning: do not know how to generate dependencies" 1>&2
8277 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8278 echo "configure:8279: checking for afopen in -ls" >&5
8279 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8283 ac_save_LIBS="$LIBS"
8285 cat > conftest.$ac_ext <<EOF
8286 #line 8287 "configure"
8287 #include "confdefs.h"
8288 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8297 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8299 eval "ac_cv_lib_$ac_lib_var=yes"
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8304 eval "ac_cv_lib_$ac_lib_var=no"
8307 LIBS="$ac_save_LIBS"
8310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8311 echo "$ac_t""yes" 1>&6
8314 cat >> confdefs.h <<\EOF
8315 #define HAVE_AIX_SECURITY 1
8320 echo "$ac_t""no" 1>&6
8326 if test $ol_enable_modules != no ; then
8327 for ac_hdr in ltdl.h
8329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_hdr" >&5
8332 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8341 { (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8343 if test -z "$ac_err"; then
8345 eval "ac_cv_header_$ac_safe=yes"
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8351 eval "ac_cv_header_$ac_safe=no"
8355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8356 echo "$ac_t""yes" 1>&6
8357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8358 cat >> confdefs.h <<EOF
8359 #define $ac_tr_hdr 1
8363 echo "$ac_t""no" 1>&6
8368 if test $ac_cv_header_ltdl_h = no ; then
8369 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8372 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8373 echo "configure:8374: checking for lt_dlinit in -lltdl" >&5
8374 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8378 ac_save_LIBS="$LIBS"
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8394 eval "ac_cv_lib_$ac_lib_var=yes"
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8399 eval "ac_cv_lib_$ac_lib_var=no"
8402 LIBS="$ac_save_LIBS"
8405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8409 cat >> confdefs.h <<\EOF
8410 #define HAVE_LIBLTDL 1
8415 echo "$ac_t""no" 1>&6
8419 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8420 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8424 ol_with_bdb_module=static
8425 ol_with_dnssrv_module=static
8426 ol_with_ldap_module=static
8427 ol_with_ldbm_module=static
8428 ol_with_meta_module=static
8429 ol_with_monitor_module=static
8430 ol_with_null_module=static
8431 ol_with_passwd_module=static
8432 ol_with_perl_module=static
8433 ol_with_shell_module=static
8434 ol_with_tcl_module=static
8435 ol_with_sql_module=static
8439 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8440 echo "configure:8441: checking for EBCDIC" >&5
8441 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8445 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure"
8447 #include "confdefs.h"
8450 #include <__ASCII__/generate_error.h>
8454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8455 { (eval echo configure:8456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8457 if test -z "$ac_err"; then
8459 ol_cv_cpp_ebcdic=yes
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8470 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8471 if test $ol_cv_cpp_ebcdic = yes ; then
8472 cat >> confdefs.h <<\EOF
8473 #define HAVE_EBCDIC 1
8478 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8479 echo "configure:8480: checking for ANSI C header files" >&5
8480 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8492 { (eval echo configure:8493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8494 if test -z "$ac_err"; then
8496 ol_cv_header_stdc=yes
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 ol_cv_header_stdc=no
8506 if test $ol_cv_header_stdc = yes; then
8507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8514 egrep "memchr" >/dev/null 2>&1; then
8518 ol_cv_header_stdc=no
8524 if test $ol_cv_header_stdc = yes; then
8525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532 egrep "free" >/dev/null 2>&1; then
8536 ol_cv_header_stdc=no
8542 if test $ol_cv_header_stdc = yes; then
8543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8544 if test "$cross_compiling" = yes; then
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8555 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8556 || ('j' <= (c) && (c) <= 'r') \
8557 || ('s' <= (c) && (c) <= 'z'))
8558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8561 int main () { int i; for (i = 0; i < 256; i++)
8562 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8573 ol_cv_header_stdc=no
8581 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8582 if test $ol_cv_header_stdc = yes; then
8583 cat >> confdefs.h <<\EOF
8584 #define STDC_HEADERS 1
8588 ac_cv_header_stdc=disable
8591 if test $ol_cv_header_stdc != yes; then
8592 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8599 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8600 echo "configure:8601: checking for $ac_hdr that defines DIR" >&5
8601 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8604 cat > conftest.$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8607 #include <sys/types.h>
8613 if { (eval echo configure:8614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8615 eval "ac_cv_header_dirent_$ac_safe=yes"
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 eval "ac_cv_header_dirent_$ac_safe=no"
8624 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8627 cat >> confdefs.h <<EOF
8628 #define $ac_tr_hdr 1
8630 ac_header_dirent=$ac_hdr; break
8632 echo "$ac_t""no" 1>&6
8635 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8636 if test $ac_header_dirent = dirent.h; then
8637 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8638 echo "configure:8639: checking for opendir in -ldir" >&5
8639 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8643 ac_save_LIBS="$LIBS"
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8648 /* Override any gcc2 internal prototype to avoid an error. */
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8659 eval "ac_cv_lib_$ac_lib_var=yes"
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 eval "ac_cv_lib_$ac_lib_var=no"
8667 LIBS="$ac_save_LIBS"
8670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8671 echo "$ac_t""yes" 1>&6
8674 echo "$ac_t""no" 1>&6
8678 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8679 echo "configure:8680: checking for opendir in -lx" >&5
8680 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8681 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8684 ac_save_LIBS="$LIBS"
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8700 eval "ac_cv_lib_$ac_lib_var=yes"
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 eval "ac_cv_lib_$ac_lib_var=no"
8708 LIBS="$ac_save_LIBS"
8711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8712 echo "$ac_t""yes" 1>&6
8715 echo "$ac_t""no" 1>&6
8720 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8721 echo "configure:8722: checking for sys/wait.h that is POSIX.1 compatible" >&5
8722 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 #include <sys/types.h>
8729 #include <sys/wait.h>
8731 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8734 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8739 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8742 if { (eval echo configure:8743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8744 ac_cv_header_sys_wait_h=yes
8746 echo "configure: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8749 ac_cv_header_sys_wait_h=no
8754 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8755 if test $ac_cv_header_sys_wait_h = yes; then
8756 cat >> confdefs.h <<\EOF
8757 #define HAVE_SYS_WAIT_H 1
8762 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8763 echo "configure:8764: checking POSIX termios" >&5
8764 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8765 echo $ac_n "(cached) $ac_c" 1>&6
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 #include <sys/types.h>
8772 #include <termios.h>
8774 /* SunOS 4.0.3 has termios.h but not the library calls. */
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8780 am_cv_sys_posix_termios=yes
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8785 am_cv_sys_posix_termios=no
8790 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8793 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8794 echo "configure:8795: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8795 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8798 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8800 gwinsz_in_termios_h=no
8801 if test $am_cv_sys_posix_termios = yes; then
8802 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 #include <sys/types.h>
8806 # include <termios.h>
8812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8813 egrep "yes" >/dev/null 2>&1; then
8815 gwinsz_in_termios_h=yes
8821 if test $gwinsz_in_termios_h = no; then
8822 cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8825 #include <sys/types.h>
8826 # include <sys/ioctl.h>
8832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8833 egrep "yes" >/dev/null 2>&1; then
8835 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8843 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8844 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8845 cat >> confdefs.h <<\EOF
8846 #define GWINSZ_IN_SYS_IOCTL 1
8851 if test $am_cv_sys_posix_termios = yes ; then
8852 cat >> confdefs.h <<\EOF
8853 #define HAVE_POSIX_TERMIOS 1
8905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8907 echo "configure:8908: checking for $ac_hdr" >&5
8908 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8909 echo $ac_n "(cached) $ac_c" 1>&6
8911 cat > conftest.$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8917 { (eval echo configure:8918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8919 if test -z "$ac_err"; then
8921 eval "ac_cv_header_$ac_safe=yes"
8924 echo "configure: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8927 eval "ac_cv_header_$ac_safe=no"
8931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8932 echo "$ac_t""yes" 1>&6
8933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8934 cat >> confdefs.h <<EOF
8935 #define $ac_tr_hdr 1
8939 echo "$ac_t""no" 1>&6
8946 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8947 echo "configure:8948: checking for dlopen" >&5
8948 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8949 echo $ac_n "(cached) $ac_c" 1>&6
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 /* System header to define __stub macros and hopefully few prototypes,
8955 which can conflict with char dlopen(); below. */
8957 /* Override any gcc2 internal prototype to avoid an error. */
8958 /* We use char because int might match the return type of a gcc2
8959 builtin and then its argument prototype would still apply. */
8965 /* The GNU C library defines this for functions which it implements
8966 to always fail with ENOSYS. Some functions are actually named
8967 something starting with __ and the normal name is an alias. */
8968 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8976 if { (eval echo configure:8977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8978 eval "ac_cv_func_dlopen=yes"
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 eval "ac_cv_func_dlopen=no"
8988 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8989 echo "$ac_t""yes" 1>&6
8992 echo "$ac_t""no" 1>&6
8993 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8994 echo "configure:8995: checking for dlopen in -ldl" >&5
8995 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8996 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
8999 ac_save_LIBS="$LIBS"
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 /* Override any gcc2 internal prototype to avoid an error. */
9005 /* We use char because int might match the return type of a gcc2
9006 builtin and then its argument prototype would still apply. */
9013 if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9015 eval "ac_cv_lib_$ac_lib_var=yes"
9017 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9020 eval "ac_cv_lib_$ac_lib_var=no"
9023 LIBS="$ac_save_LIBS"
9026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9027 echo "$ac_t""yes" 1>&6
9028 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9030 cat >> confdefs.h <<EOF
9031 #define $ac_tr_lib 1
9037 echo "$ac_t""no" 1>&6
9043 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9044 echo "configure:9045: checking for sigset in -lV3" >&5
9045 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9049 ac_save_LIBS="$LIBS"
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9063 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065 eval "ac_cv_lib_$ac_lib_var=yes"
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9070 eval "ac_cv_lib_$ac_lib_var=no"
9073 LIBS="$ac_save_LIBS"
9076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9077 echo "$ac_t""yes" 1>&6
9078 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9080 cat >> confdefs.h <<EOF
9081 #define $ac_tr_lib 1
9087 echo "$ac_t""no" 1>&6
9091 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9092 echo "configure:9093: checking for winsock" >&5
9094 for curlib in ws2_32 wsock32; do
9095 LIBS="$LIBS -l$curlib"
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9102 char closesocket@4();
9103 char gethostname@8();
9114 if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9118 echo "configure: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9125 if test $have_winsock = yes; then
9126 cat >> confdefs.h <<\EOF
9127 #define HAVE_WINSOCK 1
9130 ac_cv_func_socket=yes
9131 ac_cv_func_select=yes
9132 ac_cv_func_closesocket=yes
9133 ac_cv_func_gethostname=yes
9134 if test $curlib = ws2_32; then
9135 have_winsock=winsock2
9136 cat >> confdefs.h <<\EOF
9137 #define HAVE_WINSOCK2 1
9145 echo "$ac_t""$have_winsock" 1>&6
9148 echo $ac_n "checking for socket""... $ac_c" 1>&6
9149 echo "configure:9150: checking for socket" >&5
9150 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9153 cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9156 /* System header to define __stub macros and hopefully few prototypes,
9157 which can conflict with char socket(); below. */
9159 /* Override any gcc2 internal prototype to avoid an error. */
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9167 /* The GNU C library defines this for functions which it implements
9168 to always fail with ENOSYS. Some functions are actually named
9169 something starting with __ and the normal name is an alias. */
9170 #if defined (__stub_socket) || defined (__stub___socket)
9178 if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9180 eval "ac_cv_func_socket=yes"
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9185 eval "ac_cv_func_socket=no"
9190 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9191 echo "$ac_t""yes" 1>&6
9194 echo "$ac_t""no" 1>&6
9196 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9197 echo "configure:9198: checking for main in -lsocket" >&5
9198 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9199 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9202 ac_save_LIBS="$LIBS"
9203 LIBS="-lsocket $LIBS"
9204 cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure"
9206 #include "confdefs.h"
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9214 eval "ac_cv_lib_$ac_lib_var=yes"
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9219 eval "ac_cv_lib_$ac_lib_var=no"
9222 LIBS="$ac_save_LIBS"
9225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9226 echo "$ac_t""yes" 1>&6
9227 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9229 cat >> confdefs.h <<EOF
9230 #define $ac_tr_lib 1
9233 LIBS="-lsocket $LIBS"
9236 echo "$ac_t""no" 1>&6
9239 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9240 echo "configure:9241: checking for main in -lnet" >&5
9241 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9242 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9245 ac_save_LIBS="$LIBS"
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9255 if { (eval echo configure:9256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9257 eval "ac_cv_lib_$ac_lib_var=yes"
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9262 eval "ac_cv_lib_$ac_lib_var=no"
9265 LIBS="$ac_save_LIBS"
9268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9269 echo "$ac_t""yes" 1>&6
9270 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9272 cat >> confdefs.h <<EOF
9273 #define $ac_tr_lib 1
9279 echo "$ac_t""no" 1>&6
9282 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9283 echo "configure:9284: checking for main in -lnsl_s" >&5
9284 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9285 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9288 ac_save_LIBS="$LIBS"
9289 LIBS="-lnsl_s $LIBS"
9290 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9300 eval "ac_cv_lib_$ac_lib_var=yes"
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 eval "ac_cv_lib_$ac_lib_var=no"
9308 LIBS="$ac_save_LIBS"
9311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9312 echo "$ac_t""yes" 1>&6
9313 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9315 cat >> confdefs.h <<EOF
9316 #define $ac_tr_lib 1
9319 LIBS="-lnsl_s $LIBS"
9322 echo "$ac_t""no" 1>&6
9325 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9326 echo "configure:9327: checking for main in -lnsl" >&5
9327 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9331 ac_save_LIBS="$LIBS"
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9343 eval "ac_cv_lib_$ac_lib_var=yes"
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9348 eval "ac_cv_lib_$ac_lib_var=no"
9351 LIBS="$ac_save_LIBS"
9354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9356 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9358 cat >> confdefs.h <<EOF
9359 #define $ac_tr_lib 1
9365 echo "$ac_t""no" 1>&6
9368 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9369 echo "configure:9370: checking for socket in -linet" >&5
9370 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9374 ac_save_LIBS="$LIBS"
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9379 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9388 if { (eval echo configure:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9390 eval "ac_cv_lib_$ac_lib_var=yes"
9392 echo "configure: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9395 eval "ac_cv_lib_$ac_lib_var=no"
9398 LIBS="$ac_save_LIBS"
9401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9402 echo "$ac_t""yes" 1>&6
9403 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9405 cat >> confdefs.h <<EOF
9406 #define $ac_tr_lib 1
9412 echo "$ac_t""no" 1>&6
9415 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9416 echo "configure:9417: checking for main in -lgen" >&5
9417 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9421 ac_save_LIBS="$LIBS"
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9433 eval "ac_cv_lib_$ac_lib_var=yes"
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 eval "ac_cv_lib_$ac_lib_var=no"
9441 LIBS="$ac_save_LIBS"
9444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9445 echo "$ac_t""yes" 1>&6
9446 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9448 cat >> confdefs.h <<EOF
9449 #define $ac_tr_lib 1
9455 echo "$ac_t""no" 1>&6
9462 echo $ac_n "checking for select""... $ac_c" 1>&6
9463 echo "configure:9464: checking for select" >&5
9464 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 /* System header to define __stub macros and hopefully few prototypes,
9471 which can conflict with char select(); below. */
9473 /* Override any gcc2 internal prototype to avoid an error. */
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9481 /* The GNU C library defines this for functions which it implements
9482 to always fail with ENOSYS. Some functions are actually named
9483 something starting with __ and the normal name is an alias. */
9484 #if defined (__stub_select) || defined (__stub___select)
9492 if { (eval echo configure:9493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9494 eval "ac_cv_func_select=yes"
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9499 eval "ac_cv_func_select=no"
9504 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9505 echo "$ac_t""yes" 1>&6
9508 echo "$ac_t""no" 1>&6
9509 { echo "configure: error: select() required." 1>&2; exit 1; }
9513 if test "${ac_cv_header_winsock_h}" != yes; then
9514 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9515 echo "configure:9516: checking types of arguments for select()" >&5
9516 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9517 echo $ac_n "(cached) $ac_c" 1>&6
9519 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9522 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
9525 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9526 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9527 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 #ifdef HAVE_SYS_TYPES_H
9532 #include <sys/types.h>
9534 #ifdef HAVE_SYS_TIME_H
9535 #include <sys/time.h>
9537 #ifdef HAVE_SYS_SELECT_H
9538 #include <sys/select.h>
9540 #ifdef HAVE_SYS_SOCKET_H
9541 #include <sys/socket.h>
9543 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);
9548 if { (eval echo configure:9549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9550 ac_not_found=no ; break 3
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9567 if test "$ac_not_found" = yes; then
9568 ac_cv_func_select_arg1=int
9569 ac_cv_func_select_arg234='int *'
9570 ac_cv_func_select_arg5='struct timeval *'
9572 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9573 cat >> confdefs.h <<EOF
9574 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9577 cat >> confdefs.h <<EOF
9578 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9581 cat >> confdefs.h <<EOF
9582 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9589 for ac_hdr in regex.h
9591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9593 echo "configure:9594: checking for $ac_hdr" >&5
9594 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9603 { (eval echo configure:9604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9605 if test -z "$ac_err"; then
9607 eval "ac_cv_header_$ac_safe=yes"
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9613 eval "ac_cv_header_$ac_safe=no"
9617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9618 echo "$ac_t""yes" 1>&6
9619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9620 cat >> confdefs.h <<EOF
9621 #define $ac_tr_hdr 1
9625 echo "$ac_t""no" 1>&6
9629 if test "$ac_cv_header_regex_h" != yes ; then
9630 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9633 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9634 echo "configure:9635: checking for library containing regfree" >&5
9635 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9638 ac_func_search_save_LIBS="$LIBS"
9639 ac_cv_search_regfree="no"
9640 cat > conftest.$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9643 /* Override any gcc2 internal prototype to avoid an error. */
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9654 ac_cv_search_regfree="none required"
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9660 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9662 cat > conftest.$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 /* Override any gcc2 internal prototype to avoid an error. */
9666 /* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9676 ac_cv_search_regfree="-l$ac_lib"
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9684 LIBS="$ac_func_search_save_LIBS"
9687 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9688 if test "$ac_cv_search_regfree" != "no"; then
9689 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9692 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9696 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9697 echo "configure:9698: checking for compatible POSIX regex" >&5
9698 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9702 if test "$cross_compiling" = yes; then
9703 ol_cv_c_posix_regex=cross
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9709 #include <sys/types.h>
9711 static char *pattern, *string;
9719 if(regcomp(&re, pattern, 0)) {
9723 string = "ALL MATCH";
9725 rc = regexec(&re, string, 0, (void*)0, 0);
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9734 ol_cv_c_posix_regex=yes
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 ol_cv_c_posix_regex=no
9746 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9748 if test "$ol_cv_c_posix_regex" = no ; then
9749 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9754 for ac_hdr in sys/uuid.h
9756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9758 echo "configure:9759: checking for $ac_hdr" >&5
9759 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9760 echo $ac_n "(cached) $ac_c" 1>&6
9762 cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9768 { (eval echo configure:9769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9770 if test -z "$ac_err"; then
9772 eval "ac_cv_header_$ac_safe=yes"
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9778 eval "ac_cv_header_$ac_safe=no"
9782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9783 echo "$ac_t""yes" 1>&6
9784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9785 cat >> confdefs.h <<EOF
9786 #define $ac_tr_hdr 1
9790 echo "$ac_t""no" 1>&6
9794 if test $ac_cv_header_sys_uuid_h = yes ; then
9797 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9798 echo "configure:9799: checking for library containing uuid_to_str" >&5
9799 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9802 ac_func_search_save_LIBS="$LIBS"
9803 ac_cv_search_uuid_to_str="no"
9804 cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9807 /* Override any gcc2 internal prototype to avoid an error. */
9808 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9816 if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 ac_cv_search_uuid_to_str="none required"
9820 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9824 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 ac_cv_search_uuid_to_str="-l$ac_lib"
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9848 LIBS="$ac_func_search_save_LIBS"
9851 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9852 if test "$ac_cv_search_uuid_to_str" != "no"; then
9853 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9860 if test have_uuid = yes ; then
9861 cat >> confdefs.h <<\EOF
9862 #define HAVE_UUID_TO_STR 1
9866 test "$ac_cv_search_uuid_to_str" = "none required" || \
9867 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9871 if test $have_uuid = no ; then
9872 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9873 echo "configure:9874: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9875 LIBS="$LIBS -lrpcrt4"
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9880 char UuidCreate@4();
9881 char UuidToStringA@8();
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9900 if test $need_rpcrt = yes; then
9901 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9904 echo "$ac_t""$need_rpcrt" 1>&6
9908 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9909 echo "configure:9910: checking for res_query" >&5
9910 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char res_query(); below. */
9919 /* Override any gcc2 internal prototype to avoid an error. */
9920 /* We use char because int might match the return type of a gcc2
9921 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_res_query) || defined (__stub___res_query)
9938 if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 eval "ac_cv_func_res_query=yes"
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9945 eval "ac_cv_func_res_query=no"
9950 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9951 echo "$ac_t""yes" 1>&6
9954 echo "$ac_t""no" 1>&6
9957 if test $ac_cv_func_res_query = no ; then
9958 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9959 echo "configure:9960: checking for __res_query" >&5
9960 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9963 cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 /* System header to define __stub macros and hopefully few prototypes,
9967 which can conflict with char __res_query(); below. */
9969 /* Override any gcc2 internal prototype to avoid an error. */
9970 /* We use char because int might match the return type of a gcc2
9971 builtin and then its argument prototype would still apply. */
9977 /* The GNU C library defines this for functions which it implements
9978 to always fail with ENOSYS. Some functions are actually named
9979 something starting with __ and the normal name is an alias. */
9980 #if defined (__stub___res_query) || defined (__stub_____res_query)
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990 eval "ac_cv_func___res_query=yes"
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9995 eval "ac_cv_func___res_query=no"
10000 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10001 echo "$ac_t""yes" 1>&6
10004 echo "$ac_t""no" 1>&6
10007 ac_cv_func_res_query=$ac_cv_func___res_query
10010 if test $ac_cv_func_res_query = no ; then
10011 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10012 echo "configure:10013: checking for res_query in -lbind" >&5
10013 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10014 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10015 echo $ac_n "(cached) $ac_c" 1>&6
10017 ac_save_LIBS="$LIBS"
10018 LIBS="-lbind $LIBS"
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 /* Override any gcc2 internal prototype to avoid an error. */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10031 if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10033 eval "ac_cv_lib_$ac_lib_var=yes"
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 eval "ac_cv_lib_$ac_lib_var=no"
10041 LIBS="$ac_save_LIBS"
10044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10045 echo "$ac_t""yes" 1>&6
10046 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10048 cat >> confdefs.h <<EOF
10049 #define $ac_tr_lib 1
10052 LIBS="-lbind $LIBS"
10055 echo "$ac_t""no" 1>&6
10058 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10061 if test $ac_cv_func_res_query = no ; then
10062 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10063 echo "configure:10064: checking for __res_query in -lbind" >&5
10064 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10068 ac_save_LIBS="$LIBS"
10069 LIBS="-lbind $LIBS"
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 /* Override any gcc2 internal prototype to avoid an error. */
10074 /* We use char because int might match the return type of a gcc2
10075 builtin and then its argument prototype would still apply. */
10076 char __res_query();
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084 eval "ac_cv_lib_$ac_lib_var=yes"
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10089 eval "ac_cv_lib_$ac_lib_var=no"
10092 LIBS="$ac_save_LIBS"
10095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10096 echo "$ac_t""yes" 1>&6
10097 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10099 cat >> confdefs.h <<EOF
10100 #define $ac_tr_lib 1
10103 LIBS="-lbind $LIBS"
10106 echo "$ac_t""no" 1>&6
10109 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10112 if test $ac_cv_func_res_query = no ; then
10113 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10114 echo "configure:10115: checking for res_query in -lresolv" >&5
10115 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10116 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10117 echo $ac_n "(cached) $ac_c" 1>&6
10119 ac_save_LIBS="$LIBS"
10120 LIBS="-lresolv $LIBS"
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 /* Override any gcc2 internal prototype to avoid an error. */
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10133 if { (eval echo configure:10134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10135 eval "ac_cv_lib_$ac_lib_var=yes"
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10140 eval "ac_cv_lib_$ac_lib_var=no"
10143 LIBS="$ac_save_LIBS"
10146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
10148 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10150 cat >> confdefs.h <<EOF
10151 #define $ac_tr_lib 1
10154 LIBS="-lresolv $LIBS"
10157 echo "$ac_t""no" 1>&6
10160 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10163 if test $ac_cv_func_res_query = no ; then
10164 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10165 echo "configure:10166: checking for __res_query in -lresolv" >&5
10166 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10170 ac_save_LIBS="$LIBS"
10171 LIBS="-lresolv $LIBS"
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10175 /* Override any gcc2 internal prototype to avoid an error. */
10176 /* We use char because int might match the return type of a gcc2
10177 builtin and then its argument prototype would still apply. */
10178 char __res_query();
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10186 eval "ac_cv_lib_$ac_lib_var=yes"
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10191 eval "ac_cv_lib_$ac_lib_var=no"
10194 LIBS="$ac_save_LIBS"
10197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10199 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10200 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10201 cat >> confdefs.h <<EOF
10202 #define $ac_tr_lib 1
10205 LIBS="-lresolv $LIBS"
10208 echo "$ac_t""no" 1>&6
10211 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10214 if test "$ac_cv_func_res_query" = yes ; then
10215 cat >> confdefs.h <<\EOF
10216 #define HAVE_RES_QUERY 1
10220 if test $ol_enable_dnssrv != no ; then
10225 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10226 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10229 for ac_func in getaddrinfo gai_strerror inet_ntop
10231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10232 echo "configure:10233: checking for $ac_func" >&5
10233 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 /* System header to define __stub macros and hopefully few prototypes,
10240 which can conflict with char $ac_func(); below. */
10241 #include <assert.h>
10242 /* Override any gcc2 internal prototype to avoid an error. */
10243 /* We use char because int might match the return type of a gcc2
10244 builtin and then its argument prototype would still apply. */
10250 /* The GNU C library defines this for functions which it implements
10251 to always fail with ENOSYS. Some functions are actually named
10252 something starting with __ and the normal name is an alias. */
10253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10261 if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10263 eval "ac_cv_func_$ac_func=yes"
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10268 eval "ac_cv_func_$ac_func=no"
10273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10276 cat >> confdefs.h <<EOF
10277 #define $ac_tr_func 1
10281 echo "$ac_t""no" 1>&6
10287 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10288 if test $ol_enable_ipv6 = yes ; then
10289 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10291 elif test $ol_enable_ipv6 != no ; then
10292 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10293 echo "configure:10294: checking INET6_ADDRSTRLEN" >&5
10294 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10295 echo $ac_n "(cached) $ac_c" 1>&6
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10302 # include <netinet/in.h>
10303 # ifdef INET6_ADDRSTRLEN
10304 __has_inet6_addrstrlen__;
10308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10309 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10311 ol_cv_inet6_addrstrlen=yes
10314 ol_cv_inet6_addrstrlen=no
10320 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10322 if test $ol_cv_inet6_addrstrlen = yes ; then
10324 elif test $ol_enable_ipv6 = yes ; then
10325 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10329 if test $ol_enable_local != no ; then
10330 for ac_hdr in sys/un.h
10332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10334 echo "configure:10335: checking for $ac_hdr" >&5
10335 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10344 { (eval echo configure:10345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10346 if test -z "$ac_err"; then
10348 eval "ac_cv_header_$ac_safe=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_header_$ac_safe=no"
10358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10359 echo "$ac_t""yes" 1>&6
10360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10361 cat >> confdefs.h <<EOF
10362 #define $ac_tr_hdr 1
10366 echo "$ac_t""no" 1>&6
10371 if test $ol_enable_local = auto ; then
10372 ol_enable_local=$ac_cv_header_sys_un_h
10373 elif test $ac_cv_header_sys_un_h = no ; then
10374 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10383 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10384 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10385 -o $ol_with_kerberos = k425 ; then
10387 for ac_hdr in krb5.h
10389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10391 echo "configure:10392: checking for $ac_hdr" >&5
10392 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10393 echo $ac_n "(cached) $ac_c" 1>&6
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10401 { (eval echo configure:10402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10403 if test -z "$ac_err"; then
10405 eval "ac_cv_header_$ac_safe=yes"
10408 echo "configure: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10411 eval "ac_cv_header_$ac_safe=no"
10415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10416 echo "$ac_t""yes" 1>&6
10417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10418 cat >> confdefs.h <<EOF
10419 #define $ac_tr_hdr 1
10423 echo "$ac_t""no" 1>&6
10428 if test $ac_cv_header_krb5_h = yes ; then
10429 for ac_hdr in heim_err.h
10431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10433 echo "configure:10434: checking for $ac_hdr" >&5
10434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10443 { (eval echo configure:10444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10445 if test -z "$ac_err"; then
10447 eval "ac_cv_header_$ac_safe=yes"
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 eval "ac_cv_header_$ac_safe=no"
10457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10458 echo "$ac_t""yes" 1>&6
10459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10460 cat >> confdefs.h <<EOF
10461 #define $ac_tr_hdr 1
10465 echo "$ac_t""no" 1>&6
10469 if test $ac_cv_header_heim_err_h = yes ; then
10475 if test $krb5_impl = mit; then
10476 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10477 echo "configure:10478: checking for main in -lk5crypto" >&5
10478 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10482 ac_save_LIBS="$LIBS"
10483 LIBS="-lk5crypto $LIBS"
10484 cat > conftest.$ac_ext <<EOF
10485 #line 10486 "configure"
10486 #include "confdefs.h"
10492 if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10494 eval "ac_cv_lib_$ac_lib_var=yes"
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10499 eval "ac_cv_lib_$ac_lib_var=no"
10502 LIBS="$ac_save_LIBS"
10505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10506 echo "$ac_t""yes" 1>&6
10507 krb5crypto=k5crypto
10509 echo "$ac_t""no" 1>&6
10514 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10515 echo "configure:10516: checking for main in -lkrb5" >&5
10516 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10520 ac_save_LIBS="$LIBS"
10521 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10532 eval "ac_cv_lib_$ac_lib_var=yes"
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10537 eval "ac_cv_lib_$ac_lib_var=no"
10540 LIBS="$ac_save_LIBS"
10543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10544 echo "$ac_t""yes" 1>&6
10546 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10548 echo "$ac_t""no" 1>&6
10553 elif test $krb5_impl = heimdal; then
10554 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10555 echo "configure:10556: checking for main in -ldes" >&5
10556 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10558 echo $ac_n "(cached) $ac_c" 1>&6
10560 ac_save_LIBS="$LIBS"
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10570 if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10572 eval "ac_cv_lib_$ac_lib_var=yes"
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10577 eval "ac_cv_lib_$ac_lib_var=no"
10580 LIBS="$ac_save_LIBS"
10583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10584 echo "$ac_t""yes" 1>&6
10587 echo "$ac_t""no" 1>&6
10592 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10593 echo "configure:10594: checking for main in -lkrb5" >&5
10594 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10595 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10596 echo $ac_n "(cached) $ac_c" 1>&6
10598 ac_save_LIBS="$LIBS"
10599 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10610 eval "ac_cv_lib_$ac_lib_var=yes"
10612 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 eval "ac_cv_lib_$ac_lib_var=no"
10618 LIBS="$ac_save_LIBS"
10621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10622 echo "$ac_t""yes" 1>&6
10624 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10626 echo "$ac_t""no" 1>&6
10631 cat >> confdefs.h <<\EOF
10632 #define HAVE_HEIMDAL_KERBEROS 1
10638 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10641 if test $have_krb5 = yes ; then
10644 cat >> confdefs.h <<\EOF
10645 #define HAVE_KRB5 1
10649 if test $ol_enable_kpasswd != no ; then
10650 ol_link_kpasswd=yes;
10653 if test $ol_with_kerberos = k5only ; then
10654 ol_with_kerberos=found
10657 elif test $ol_with_kerberos != auto ; then
10658 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10664 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10665 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10667 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10671 echo "configure:10672: checking for $ac_hdr" >&5
10672 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10681 { (eval echo configure:10682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10683 if test -z "$ac_err"; then
10685 eval "ac_cv_header_$ac_safe=yes"
10688 echo "configure: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10691 eval "ac_cv_header_$ac_safe=no"
10695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10696 echo "$ac_t""yes" 1>&6
10697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10698 cat >> confdefs.h <<EOF
10699 #define $ac_tr_hdr 1
10703 echo "$ac_t""no" 1>&6
10708 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10709 if test $krb5_impl = mit; then
10710 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10711 echo "configure:10712: checking for main in -lkrb4" >&5
10712 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 ac_save_LIBS="$LIBS"
10717 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10736 LIBS="$ac_save_LIBS"
10739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10742 KRB4_LIBS="-lkrb4 -ldes425"
10744 echo "$ac_t""no" 1>&6
10749 elif test $krb5_impl = heimdal; then
10750 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10751 echo "configure:10752: checking for main in -lkrb4" >&5
10752 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10753 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10756 ac_save_LIBS="$LIBS"
10757 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10766 if { (eval echo configure:10767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10768 eval "ac_cv_lib_$ac_lib_var=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_lib_$ac_lib_var=no"
10776 LIBS="$ac_save_LIBS"
10779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10780 echo "$ac_t""yes" 1>&6
10784 echo "$ac_t""no" 1>&6
10791 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10794 if test $have_k425 = yes ; then
10795 ol_with_kerberos=found
10798 cat >> confdefs.h <<\EOF
10799 #define HAVE_KRB425 1
10802 cat >> confdefs.h <<\EOF
10803 #define HAVE_KRB4 1
10807 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10808 echo "configure:10809: checking for des_debug in Kerberos libraries" >&5
10809 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10814 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10815 cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10819 #include <kerberosIV/krb.h>
10820 #include <kerberosIV/des.h>
10821 extern int des_debug;
10829 if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10831 ol_cv_var_des_debug=yes
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10836 ol_cv_var_des_debug=no
10843 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10845 if test $ol_cv_var_des_debug = yes ; then
10846 cat >> confdefs.h <<\EOF
10847 #define HAVE_DES_DEBUG 1
10857 if test $ol_link_krb5 = yes ; then
10858 ol_with_kerberos=found
10861 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10862 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10864 for ac_hdr in krb.h des.h krb-archaeology.h
10866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10868 echo "configure:10869: checking for $ac_hdr" >&5
10869 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10878 { (eval echo configure:10879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10880 if test -z "$ac_err"; then
10882 eval "ac_cv_header_$ac_safe=yes"
10885 echo "configure: failed program was:" >&5
10886 cat conftest.$ac_ext >&5
10888 eval "ac_cv_header_$ac_safe=no"
10892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10893 echo "$ac_t""yes" 1>&6
10894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10895 cat >> confdefs.h <<EOF
10896 #define $ac_tr_hdr 1
10900 echo "$ac_t""no" 1>&6
10905 if test $ac_cv_header_krb_h = yes ; then
10906 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10907 echo "configure:10908: checking for main in -lkrb" >&5
10908 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10909 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10912 ac_save_LIBS="$LIBS"
10913 LIBS="-lkrb -ldes $LIBS"
10914 cat > conftest.$ac_ext <<EOF
10915 #line 10916 "configure"
10916 #include "confdefs.h"
10922 if { (eval echo configure:10923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10924 eval "ac_cv_lib_$ac_lib_var=yes"
10926 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10929 eval "ac_cv_lib_$ac_lib_var=no"
10932 LIBS="$ac_save_LIBS"
10935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10936 echo "$ac_t""yes" 1>&6
10939 echo "$ac_t""no" 1>&6
10944 if test $have_k4 = yes ; then
10945 ol_with_kerberos=found
10948 cat >> confdefs.h <<\EOF
10949 #define HAVE_KRB4 1
10953 KRB4_LIBS="-lkrb -ldes"
10955 if test $ac_cv_header_krb_archaeology_h = yes ; then
10956 cat >> confdefs.h <<\EOF
10957 #define HAVE_KTH_KERBEROS 1
10965 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10966 ol_link_kpasswd=yes
10969 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10972 elif test $ol_enable_kbind = yes ; then
10973 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10976 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10977 cat >> confdefs.h <<\EOF
10978 #define HAVE_KERBEROS 1
10982 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10983 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10987 if test $ol_with_tls != no ; then
10988 for ac_hdr in openssl/ssl.h ssl.h
10990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10992 echo "configure:10993: checking for $ac_hdr" >&5
10993 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
11001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11002 { (eval echo configure:11003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11004 if test -z "$ac_err"; then
11006 eval "ac_cv_header_$ac_safe=yes"
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11012 eval "ac_cv_header_$ac_safe=no"
11016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11017 echo "$ac_t""yes" 1>&6
11018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11019 cat >> confdefs.h <<EOF
11020 #define $ac_tr_hdr 1
11024 echo "$ac_t""no" 1>&6
11029 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11030 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11031 echo "configure:11032: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11032 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11036 ac_save_LIBS="$LIBS"
11037 LIBS="-lssl -lcrypto $LIBS"
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11041 /* Override any gcc2 internal prototype to avoid an error. */
11042 /* We use char because int might match the return type of a gcc2
11043 builtin and then its argument prototype would still apply. */
11044 char SSLeay_add_ssl_algorithms();
11047 SSLeay_add_ssl_algorithms()
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11052 eval "ac_cv_lib_$ac_lib_var=yes"
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 eval "ac_cv_lib_$ac_lib_var=no"
11060 LIBS="$ac_save_LIBS"
11063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11064 echo "$ac_t""yes" 1>&6
11068 echo "$ac_t""no" 1>&6
11073 if test $have_ssleay = no ; then
11074 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11075 echo "configure:11076: checking for SSL_library_init in -lssl" >&5
11076 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 ac_save_LIBS="$LIBS"
11081 LIBS="-lssl -lcrypto $LIBS"
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char SSL_library_init();
11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11096 eval "ac_cv_lib_$ac_lib_var=yes"
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 eval "ac_cv_lib_$ac_lib_var=no"
11104 LIBS="$ac_save_LIBS"
11107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11112 echo "$ac_t""no" 1>&6
11118 if test $have_ssleay = no ; then
11119 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11120 echo "configure:11121: checking for ssl3_accept in -lssl" >&5
11121 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11122 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11123 echo $ac_n "(cached) $ac_c" 1>&6
11125 ac_save_LIBS="$LIBS"
11126 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char ssl3_accept();
11139 if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11141 eval "ac_cv_lib_$ac_lib_var=yes"
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11146 eval "ac_cv_lib_$ac_lib_var=no"
11149 LIBS="$ac_save_LIBS"
11152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11157 echo "$ac_t""no" 1>&6
11163 if test $have_ssleay = yes ; then
11167 cat >> confdefs.h <<\EOF
11168 #define HAVE_SSLEAY 1
11172 if test $need_rsaref = yes; then
11173 cat >> confdefs.h <<\EOF
11174 #define HAVE_RSAREF 1
11178 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11180 TLS_LIBS="-lssl -lcrypto"
11186 echo "configure: warning: TLS data protection not supported!" 1>&2
11189 if test $ol_link_tls = yes ; then
11190 cat >> confdefs.h <<\EOF
11195 elif test $ol_with_tls = auto ; then
11196 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11197 echo "configure: warning: TLS data protection not supported!" 1>&2
11199 elif test $ol_with_tls != no ; then
11200 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11203 if test $ol_enable_lmpasswd != no; then
11204 if test $ol_link_tls != yes ; then
11205 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11208 cat >> confdefs.h <<\EOF
11209 #define SLAPD_LMHASH 1
11216 gethostbyname_r gethostbyaddr_r \
11219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11220 echo "configure:11221: checking for $ac_func" >&5
11221 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11224 cat > conftest.$ac_ext <<EOF
11225 #line 11226 "configure"
11226 #include "confdefs.h"
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char $ac_func(); below. */
11229 #include <assert.h>
11230 /* Override any gcc2 internal prototype to avoid an error. */
11231 /* We use char because int might match the return type of a gcc2
11232 builtin and then its argument prototype would still apply. */
11238 /* The GNU C library defines this for functions which it implements
11239 to always fail with ENOSYS. Some functions are actually named
11240 something starting with __ and the normal name is an alias. */
11241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11249 if { (eval echo configure:11250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11251 eval "ac_cv_func_$ac_func=yes"
11253 echo "configure: failed program was:" >&5
11254 cat conftest.$ac_ext >&5
11256 eval "ac_cv_func_$ac_func=no"
11261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11262 echo "$ac_t""yes" 1>&6
11263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11264 cat >> confdefs.h <<EOF
11265 #define $ac_tr_func 1
11269 echo "$ac_t""no" 1>&6
11274 if test "$ac_cv_func_ctime_r" = no ; then
11275 ol_cv_func_ctime_r_nargs=0
11277 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11278 echo "configure:11279: checking number of arguments of ctime_r" >&5
11279 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11282 cat > conftest.$ac_ext <<EOF
11283 #line 11284 "configure"
11284 #include "confdefs.h"
11287 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11290 if { (eval echo configure:11291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11292 ol_cv_func_ctime_r_nargs3=yes
11294 echo "configure: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11297 ol_cv_func_ctime_r_nargs3=no
11301 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11306 time_t ti; char *buffer; ctime_r(&ti,buffer);
11309 if { (eval echo configure:11310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11311 ol_cv_func_ctime_r_nargs2=yes
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11316 ol_cv_func_ctime_r_nargs2=no
11320 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11321 $ol_cv_func_ctime_r_nargs2 = no ; then
11323 ol_cv_func_ctime_r_nargs=3
11325 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11326 $ol_cv_func_ctime_r_nargs2 = yes ; then
11328 ol_cv_func_ctime_r_nargs=2
11331 ol_cv_func_ctime_r_nargs=0
11336 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11338 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11339 cat >> confdefs.h <<EOF
11340 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11347 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11348 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11349 echo "configure:11350: checking number of arguments of gethostbyname_r" >&5
11350 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11353 cat > conftest.$ac_ext <<EOF
11354 #line 11355 "configure"
11355 #include "confdefs.h"
11356 #include <sys/types.h>
11357 #include <sys/socket.h>
11358 #include <netinet/in.h>
11360 #define BUFSIZE (sizeof(struct hostent)+10)
11362 struct hostent hent; char buffer[BUFSIZE];
11363 int bufsize=BUFSIZE;int h_errno;
11364 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11365 buffer, bufsize, &h_errno);
11368 if { (eval echo configure:11369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11370 ol_cv_func_gethostbyname_r_nargs5=yes
11372 echo "configure: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11375 ol_cv_func_gethostbyname_r_nargs5=no
11379 cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11382 #include <sys/types.h>
11383 #include <sys/socket.h>
11384 #include <netinet/in.h>
11386 #define BUFSIZE (sizeof(struct hostent)+10)
11388 struct hostent hent;struct hostent *rhent;
11389 char buffer[BUFSIZE];
11390 int bufsize=BUFSIZE;int h_errno;
11391 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11395 if { (eval echo configure:11396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11397 ol_cv_func_gethostbyname_r_nargs6=yes
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11402 ol_cv_func_gethostbyname_r_nargs6=no
11406 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11407 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11409 ol_cv_func_gethostbyname_r_nargs=5
11411 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11412 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11414 ol_cv_func_gethostbyname_r_nargs=6
11417 ol_cv_func_gethostbyname_r_nargs=0
11422 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11423 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11424 cat >> confdefs.h <<EOF
11425 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11431 ol_cv_func_gethostbyname_r_nargs=0
11434 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11435 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11436 echo "configure:11437: checking number of arguments of gethostbyaddr_r" >&5
11437 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11438 echo $ac_n "(cached) $ac_c" 1>&6
11440 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11443 #include <sys/types.h>
11444 #include <sys/socket.h>
11445 #include <netinet/in.h>
11447 #define BUFSIZE (sizeof(struct hostent)+10)
11449 struct hostent hent; char buffer[BUFSIZE];
11450 struct in_addr add;
11451 size_t alen=sizeof(struct in_addr);
11452 int bufsize=BUFSIZE;int h_errno;
11453 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11454 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11457 if { (eval echo configure:11458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11459 ol_cv_func_gethostbyaddr_r_nargs7=yes
11461 echo "configure: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11464 ol_cv_func_gethostbyaddr_r_nargs7=no
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 #include <sys/types.h>
11472 #include <sys/socket.h>
11473 #include <netinet/in.h>
11475 #define BUFSIZE (sizeof(struct hostent)+10)
11477 struct hostent hent;
11478 struct hostent *rhent; char buffer[BUFSIZE];
11479 struct in_addr add;
11480 size_t alen=sizeof(struct in_addr);
11481 int bufsize=BUFSIZE;int h_errno;
11482 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11483 alen, AF_INET, &hent, buffer, bufsize,
11487 if { (eval echo configure:11488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11489 ol_cv_func_gethostbyaddr_r_nargs8=yes
11491 echo "configure: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11494 ol_cv_func_gethostbyaddr_r_nargs8=no
11498 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11499 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11501 ol_cv_func_gethostbyaddr_r_nargs=7
11503 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11504 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11506 ol_cv_func_gethostbyaddr_r_nargs=8
11509 ol_cv_func_gethostbyaddr_r_nargs=0
11514 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11515 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11516 cat >> confdefs.h <<EOF
11517 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11523 ol_cv_func_gethostbyaddr_r_nargs=0
11526 if test "$ac_cv_func_ctime_r" = yes \
11527 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11528 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11529 -a "$ac_cv_func_gethostbyname_r" = yes \
11530 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11531 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11532 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11533 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11534 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11537 cat >> confdefs.h <<\EOF
11538 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11545 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11546 -o $ol_with_threads = nt ; then
11549 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11550 echo "configure:11551: checking for _beginthread" >&5
11551 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char _beginthread(); below. */
11559 #include <assert.h>
11560 /* Override any gcc2 internal prototype to avoid an error. */
11561 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11563 char _beginthread();
11568 /* The GNU C library defines this for functions which it implements
11569 to always fail with ENOSYS. Some functions are actually named
11570 something starting with __ and the normal name is an alias. */
11571 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11581 eval "ac_cv_func__beginthread=yes"
11583 echo "configure: failed program was:" >&5
11584 cat conftest.$ac_ext >&5
11586 eval "ac_cv_func__beginthread=no"
11591 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11592 echo "$ac_t""yes" 1>&6
11595 echo "$ac_t""no" 1>&6
11599 if test $ac_cv_func__beginthread = yes ; then
11600 cat >> confdefs.h <<\EOF
11601 #define HAVE_NT_THREADS 1
11604 ol_cv_nt_threads=yes
11608 if test "$ol_cv_nt_threads" = yes ; then
11610 ol_with_threads=found
11611 ol_with_yielding_select=yes
11613 cat >> confdefs.h <<\EOF
11614 #define HAVE_NT_SERVICE_MANAGER 1
11617 cat >> confdefs.h <<\EOF
11618 #define HAVE_NT_EVENT_LOG 1
11623 if test $ol_with_threads = nt ; then
11624 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11628 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11629 -o $ol_with_threads = posix ; then
11631 for ac_hdr in pthread.h
11633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11635 echo "configure:11636: checking for $ac_hdr" >&5
11636 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11637 echo $ac_n "(cached) $ac_c" 1>&6
11639 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11645 { (eval echo configure:11646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11647 if test -z "$ac_err"; then
11649 eval "ac_cv_header_$ac_safe=yes"
11652 echo "configure: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11655 eval "ac_cv_header_$ac_safe=no"
11659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11660 echo "$ac_t""yes" 1>&6
11661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11662 cat >> confdefs.h <<EOF
11663 #define $ac_tr_hdr 1
11667 echo "$ac_t""no" 1>&6
11672 if test $ac_cv_header_pthread_h = yes ; then
11673 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11674 echo "configure:11675: checking POSIX thread version" >&5
11675 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11676 echo $ac_n "(cached) $ac_c" 1>&6
11679 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11683 # include <pthread.h>
11684 /* this check could be improved */
11685 # ifdef PTHREAD_ONCE_INIT
11686 pthread_version_final;
11690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691 egrep "pthread_version_final" >/dev/null 2>&1; then
11693 ol_pthread_final=yes
11696 ol_pthread_final=no
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11705 # include <pthread.h>
11706 /* this check could be improved */
11707 # ifdef pthread_once_init
11708 pthread_version_draft4;
11712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11713 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11715 ol_pthread_draft4=yes
11718 ol_pthread_draft4=no
11723 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11724 ol_cv_pthread_version=final
11725 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11726 ol_cv_pthread_version=draft4
11728 ol_cv_pthread_version=unknown
11733 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11736 if test $ol_cv_pthread_version = final ; then
11737 cat >> confdefs.h <<\EOF
11738 #define HAVE_PTHREADS_FINAL 1
11741 elif test $ol_cv_pthread_version = draft4 ; then
11742 cat >> confdefs.h <<\EOF
11743 #define HAVE_PTHREADS_D4 1
11747 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11750 # consider threads found
11751 ol_with_threads=found
11754 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11755 echo "configure:11756: checking for LinuxThreads pthread.h" >&5
11756 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11757 echo $ac_n "(cached) $ac_c" 1>&6
11759 cat > conftest.$ac_ext <<EOF
11760 #line 11761 "configure"
11761 #include "confdefs.h"
11762 #include <pthread.h>
11764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11765 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11767 ol_cv_header_linux_threads=yes
11770 ol_cv_header_linux_threads=no
11777 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11778 if test $ol_cv_header_linux_threads = yes; then
11779 cat >> confdefs.h <<\EOF
11780 #define HAVE_LINUX_THREADS 1
11786 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11787 echo "configure:11788: checking for GNU Pth pthread.h" >&5
11788 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11789 echo $ac_n "(cached) $ac_c" 1>&6
11791 cat > conftest.$ac_ext <<EOF
11792 #line 11793 "configure"
11793 #include "confdefs.h"
11794 #include <pthread.h>
11795 #ifdef _POSIX_THREAD_IS_GNU_PTH
11800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11801 egrep "__gnu_pth__" >/dev/null 2>&1; then
11803 ol_cv_header_gnu_pth_pthread_h=yes
11806 ol_cv_header_gnu_pth_pthread_h=no
11813 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11816 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11817 for ac_hdr in sched.h
11819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11821 echo "configure:11822: checking for $ac_hdr" >&5
11822 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11823 echo $ac_n "(cached) $ac_c" 1>&6
11825 cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11831 { (eval echo configure:11832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11833 if test -z "$ac_err"; then
11835 eval "ac_cv_header_$ac_safe=yes"
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11841 eval "ac_cv_header_$ac_safe=no"
11845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11846 echo "$ac_t""yes" 1>&6
11847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11848 cat >> confdefs.h <<EOF
11849 #define $ac_tr_hdr 1
11853 echo "$ac_t""no" 1>&6
11860 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11861 echo "configure:11862: checking for pthread_create in default libraries" >&5
11862 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11866 if test "$cross_compiling" = yes; then
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11870 /* pthread test headers */
11871 #include <pthread.h>
11873 #define NULL (void*)0
11876 static void *task(p)
11879 return (void *) (p == NULL);
11884 /* pthread test function */
11889 #ifdef HAVE_PTHREADS_FINAL
11890 /* Final pthreads */
11891 pthread_attr_t attr;
11893 status = pthread_attr_init(&attr);
11894 if( status ) return status;
11896 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11898 #if defined( PTHREAD_CREATE_JOINABLE )
11899 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11901 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11904 #ifdef PTHREAD_CREATE_DETACHED
11906 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11909 if( status ) return status;
11912 status = pthread_create( &t, &attr, task, NULL );
11913 if( status ) return status;
11915 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11917 /* give thread a chance to complete */
11918 /* it should remain joinable and hence detachable */
11921 status = pthread_detach( t );
11922 if( status ) return status;
11927 /* Draft 4 pthreads */
11928 status = pthread_create( &t, pthread_attr_default, task, NULL );
11929 if( status ) return status;
11932 /* give thread a chance to complete */
11933 /* it should remain joinable and hence detachable */
11936 status = pthread_detach( &t );
11937 if( status ) return status;
11941 #ifdef HAVE_LINUX_THREADS
11942 pthread_kill_other_threads_np();
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11951 ol_cv_pthread_create=yes
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 ol_cv_pthread_create=no
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 /* pthread test headers */
11964 #include <pthread.h>
11966 #define NULL (void*)0
11969 static void *task(p)
11972 return (void *) (p == NULL);
11976 int main(argc, argv)
11981 /* pthread test function */
11986 #ifdef HAVE_PTHREADS_FINAL
11987 /* Final pthreads */
11988 pthread_attr_t attr;
11990 status = pthread_attr_init(&attr);
11991 if( status ) return status;
11993 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11995 #if defined( PTHREAD_CREATE_JOINABLE )
11996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11998 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12001 #ifdef PTHREAD_CREATE_DETACHED
12003 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12006 if( status ) return status;
12009 status = pthread_create( &t, &attr, task, NULL );
12010 if( status ) return status;
12012 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12014 /* give thread a chance to complete */
12015 /* it should remain joinable and hence detachable */
12018 status = pthread_detach( t );
12019 if( status ) return status;
12024 /* Draft 4 pthreads */
12025 status = pthread_create( &t, pthread_attr_default, task, NULL );
12026 if( status ) return status;
12029 /* give thread a chance to complete */
12030 /* it should remain joinable and hence detachable */
12033 status = pthread_detach( &t );
12034 if( status ) return status;
12038 #ifdef HAVE_LINUX_THREADS
12039 pthread_kill_other_threads_np();
12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12049 ol_cv_pthread_create=yes
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12054 ol_cv_pthread_create=no
12061 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12063 if test $ol_cv_pthread_create != no ; then
12064 ol_link_threads=posix
12065 ol_link_pthreads=""
12068 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12069 if test "$ol_link_threads" = no ; then
12071 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12072 echo "configure:12073: checking for pthread link with -kthread" >&5
12073 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12074 echo $ac_n "(cached) $ac_c" 1>&6
12079 LIBS="-kthread $LIBS"
12081 if test "$cross_compiling" = yes; then
12082 cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure"
12084 #include "confdefs.h"
12085 /* pthread test headers */
12086 #include <pthread.h>
12088 #define NULL (void*)0
12091 static void *task(p)
12094 return (void *) (p == NULL);
12099 /* pthread test function */
12104 #ifdef HAVE_PTHREADS_FINAL
12105 /* Final pthreads */
12106 pthread_attr_t attr;
12108 status = pthread_attr_init(&attr);
12109 if( status ) return status;
12111 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12113 #if defined( PTHREAD_CREATE_JOINABLE )
12114 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12116 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12119 #ifdef PTHREAD_CREATE_DETACHED
12121 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12124 if( status ) return status;
12127 status = pthread_create( &t, &attr, task, NULL );
12128 if( status ) return status;
12130 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12132 /* give thread a chance to complete */
12133 /* it should remain joinable and hence detachable */
12136 status = pthread_detach( t );
12137 if( status ) return status;
12142 /* Draft 4 pthreads */
12143 status = pthread_create( &t, pthread_attr_default, task, NULL );
12144 if( status ) return status;
12147 /* give thread a chance to complete */
12148 /* it should remain joinable and hence detachable */
12151 status = pthread_detach( &t );
12152 if( status ) return status;
12156 #ifdef HAVE_LINUX_THREADS
12157 pthread_kill_other_threads_np();
12164 if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12166 ol_cv_pthread_kthread=yes
12168 echo "configure: failed program was:" >&5
12169 cat conftest.$ac_ext >&5
12171 ol_cv_pthread_kthread=no
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 /* pthread test headers */
12179 #include <pthread.h>
12181 #define NULL (void*)0
12184 static void *task(p)
12187 return (void *) (p == NULL);
12191 int main(argc, argv)
12196 /* pthread test function */
12201 #ifdef HAVE_PTHREADS_FINAL
12202 /* Final pthreads */
12203 pthread_attr_t attr;
12205 status = pthread_attr_init(&attr);
12206 if( status ) return status;
12208 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12210 #if defined( PTHREAD_CREATE_JOINABLE )
12211 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12213 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12216 #ifdef PTHREAD_CREATE_DETACHED
12218 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12221 if( status ) return status;
12224 status = pthread_create( &t, &attr, task, NULL );
12225 if( status ) return status;
12227 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12229 /* give thread a chance to complete */
12230 /* it should remain joinable and hence detachable */
12233 status = pthread_detach( t );
12234 if( status ) return status;
12239 /* Draft 4 pthreads */
12240 status = pthread_create( &t, pthread_attr_default, task, NULL );
12241 if( status ) return status;
12244 /* give thread a chance to complete */
12245 /* it should remain joinable and hence detachable */
12248 status = pthread_detach( &t );
12249 if( status ) return status;
12253 #ifdef HAVE_LINUX_THREADS
12254 pthread_kill_other_threads_np();
12262 if { (eval echo configure:12263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12264 ol_cv_pthread_kthread=yes
12266 echo "configure: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12269 ol_cv_pthread_kthread=no
12280 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12282 if test $ol_cv_pthread_kthread = yes ; then
12283 ol_link_pthreads="-kthread"
12284 ol_link_threads=posix
12288 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12289 if test "$ol_link_threads" = no ; then
12291 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12292 echo "configure:12293: checking for pthread link with -pthread" >&5
12293 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12294 echo $ac_n "(cached) $ac_c" 1>&6
12299 LIBS="-pthread $LIBS"
12301 if test "$cross_compiling" = yes; then
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 /* pthread test headers */
12306 #include <pthread.h>
12308 #define NULL (void*)0
12311 static void *task(p)
12314 return (void *) (p == NULL);
12319 /* pthread test function */
12324 #ifdef HAVE_PTHREADS_FINAL
12325 /* Final pthreads */
12326 pthread_attr_t attr;
12328 status = pthread_attr_init(&attr);
12329 if( status ) return status;
12331 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12333 #if defined( PTHREAD_CREATE_JOINABLE )
12334 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12336 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12339 #ifdef PTHREAD_CREATE_DETACHED
12341 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12344 if( status ) return status;
12347 status = pthread_create( &t, &attr, task, NULL );
12348 if( status ) return status;
12350 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12352 /* give thread a chance to complete */
12353 /* it should remain joinable and hence detachable */
12356 status = pthread_detach( t );
12357 if( status ) return status;
12362 /* Draft 4 pthreads */
12363 status = pthread_create( &t, pthread_attr_default, task, NULL );
12364 if( status ) return status;
12367 /* give thread a chance to complete */
12368 /* it should remain joinable and hence detachable */
12371 status = pthread_detach( &t );
12372 if( status ) return status;
12376 #ifdef HAVE_LINUX_THREADS
12377 pthread_kill_other_threads_np();
12384 if { (eval echo configure:12385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12386 ol_cv_pthread_pthread=yes
12388 echo "configure: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12391 ol_cv_pthread_pthread=no
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 /* pthread test headers */
12399 #include <pthread.h>
12401 #define NULL (void*)0
12404 static void *task(p)
12407 return (void *) (p == NULL);
12411 int main(argc, argv)
12416 /* pthread test function */
12421 #ifdef HAVE_PTHREADS_FINAL
12422 /* Final pthreads */
12423 pthread_attr_t attr;
12425 status = pthread_attr_init(&attr);
12426 if( status ) return status;
12428 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12430 #if defined( PTHREAD_CREATE_JOINABLE )
12431 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12433 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12436 #ifdef PTHREAD_CREATE_DETACHED
12438 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12441 if( status ) return status;
12444 status = pthread_create( &t, &attr, task, NULL );
12445 if( status ) return status;
12447 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12449 /* give thread a chance to complete */
12450 /* it should remain joinable and hence detachable */
12453 status = pthread_detach( t );
12454 if( status ) return status;
12459 /* Draft 4 pthreads */
12460 status = pthread_create( &t, pthread_attr_default, task, NULL );
12461 if( status ) return status;
12464 /* give thread a chance to complete */
12465 /* it should remain joinable and hence detachable */
12468 status = pthread_detach( &t );
12469 if( status ) return status;
12473 #ifdef HAVE_LINUX_THREADS
12474 pthread_kill_other_threads_np();
12482 if { (eval echo configure:12483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12484 ol_cv_pthread_pthread=yes
12486 echo "configure: failed program was:" >&5
12487 cat conftest.$ac_ext >&5
12489 ol_cv_pthread_pthread=no
12500 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12502 if test $ol_cv_pthread_pthread = yes ; then
12503 ol_link_pthreads="-pthread"
12504 ol_link_threads=posix
12508 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12509 if test "$ol_link_threads" = no ; then
12511 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12512 echo "configure:12513: checking for pthread link with -pthreads" >&5
12513 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12514 echo $ac_n "(cached) $ac_c" 1>&6
12519 LIBS="-pthreads $LIBS"
12521 if test "$cross_compiling" = yes; then
12522 cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure"
12524 #include "confdefs.h"
12525 /* pthread test headers */
12526 #include <pthread.h>
12528 #define NULL (void*)0
12531 static void *task(p)
12534 return (void *) (p == NULL);
12539 /* pthread test function */
12544 #ifdef HAVE_PTHREADS_FINAL
12545 /* Final pthreads */
12546 pthread_attr_t attr;
12548 status = pthread_attr_init(&attr);
12549 if( status ) return status;
12551 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12553 #if defined( PTHREAD_CREATE_JOINABLE )
12554 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12556 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12559 #ifdef PTHREAD_CREATE_DETACHED
12561 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12564 if( status ) return status;
12567 status = pthread_create( &t, &attr, task, NULL );
12568 if( status ) return status;
12570 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12572 /* give thread a chance to complete */
12573 /* it should remain joinable and hence detachable */
12576 status = pthread_detach( t );
12577 if( status ) return status;
12582 /* Draft 4 pthreads */
12583 status = pthread_create( &t, pthread_attr_default, task, NULL );
12584 if( status ) return status;
12587 /* give thread a chance to complete */
12588 /* it should remain joinable and hence detachable */
12591 status = pthread_detach( &t );
12592 if( status ) return status;
12596 #ifdef HAVE_LINUX_THREADS
12597 pthread_kill_other_threads_np();
12604 if { (eval echo configure:12605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12606 ol_cv_pthread_pthreads=yes
12608 echo "configure: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12611 ol_cv_pthread_pthreads=no
12615 cat > conftest.$ac_ext <<EOF
12616 #line 12617 "configure"
12617 #include "confdefs.h"
12618 /* pthread test headers */
12619 #include <pthread.h>
12621 #define NULL (void*)0
12624 static void *task(p)
12627 return (void *) (p == NULL);
12631 int main(argc, argv)
12636 /* pthread test function */
12641 #ifdef HAVE_PTHREADS_FINAL
12642 /* Final pthreads */
12643 pthread_attr_t attr;
12645 status = pthread_attr_init(&attr);
12646 if( status ) return status;
12648 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12650 #if defined( PTHREAD_CREATE_JOINABLE )
12651 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12653 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12656 #ifdef PTHREAD_CREATE_DETACHED
12658 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12661 if( status ) return status;
12664 status = pthread_create( &t, &attr, task, NULL );
12665 if( status ) return status;
12667 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12669 /* give thread a chance to complete */
12670 /* it should remain joinable and hence detachable */
12673 status = pthread_detach( t );
12674 if( status ) return status;
12679 /* Draft 4 pthreads */
12680 status = pthread_create( &t, pthread_attr_default, task, NULL );
12681 if( status ) return status;
12684 /* give thread a chance to complete */
12685 /* it should remain joinable and hence detachable */
12688 status = pthread_detach( &t );
12689 if( status ) return status;
12693 #ifdef HAVE_LINUX_THREADS
12694 pthread_kill_other_threads_np();
12702 if { (eval echo configure:12703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12704 ol_cv_pthread_pthreads=yes
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12709 ol_cv_pthread_pthreads=no
12720 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12722 if test $ol_cv_pthread_pthreads = yes ; then
12723 ol_link_pthreads="-pthreads"
12724 ol_link_threads=posix
12728 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12729 if test "$ol_link_threads" = no ; then
12731 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12732 echo "configure:12733: checking for pthread link with -mthreads" >&5
12733 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12739 LIBS="-mthreads $LIBS"
12741 if test "$cross_compiling" = yes; then
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 /* pthread test headers */
12746 #include <pthread.h>
12748 #define NULL (void*)0
12751 static void *task(p)
12754 return (void *) (p == NULL);
12759 /* pthread test function */
12764 #ifdef HAVE_PTHREADS_FINAL
12765 /* Final pthreads */
12766 pthread_attr_t attr;
12768 status = pthread_attr_init(&attr);
12769 if( status ) return status;
12771 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12773 #if defined( PTHREAD_CREATE_JOINABLE )
12774 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12776 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12779 #ifdef PTHREAD_CREATE_DETACHED
12781 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12784 if( status ) return status;
12787 status = pthread_create( &t, &attr, task, NULL );
12788 if( status ) return status;
12790 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12792 /* give thread a chance to complete */
12793 /* it should remain joinable and hence detachable */
12796 status = pthread_detach( t );
12797 if( status ) return status;
12802 /* Draft 4 pthreads */
12803 status = pthread_create( &t, pthread_attr_default, task, NULL );
12804 if( status ) return status;
12807 /* give thread a chance to complete */
12808 /* it should remain joinable and hence detachable */
12811 status = pthread_detach( &t );
12812 if( status ) return status;
12816 #ifdef HAVE_LINUX_THREADS
12817 pthread_kill_other_threads_np();
12824 if { (eval echo configure:12825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12826 ol_cv_pthread_mthreads=yes
12828 echo "configure: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12831 ol_cv_pthread_mthreads=no
12835 cat > conftest.$ac_ext <<EOF
12836 #line 12837 "configure"
12837 #include "confdefs.h"
12838 /* pthread test headers */
12839 #include <pthread.h>
12841 #define NULL (void*)0
12844 static void *task(p)
12847 return (void *) (p == NULL);
12851 int main(argc, argv)
12856 /* pthread test function */
12861 #ifdef HAVE_PTHREADS_FINAL
12862 /* Final pthreads */
12863 pthread_attr_t attr;
12865 status = pthread_attr_init(&attr);
12866 if( status ) return status;
12868 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12870 #if defined( PTHREAD_CREATE_JOINABLE )
12871 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12873 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12876 #ifdef PTHREAD_CREATE_DETACHED
12878 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12881 if( status ) return status;
12884 status = pthread_create( &t, &attr, task, NULL );
12885 if( status ) return status;
12887 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12889 /* give thread a chance to complete */
12890 /* it should remain joinable and hence detachable */
12893 status = pthread_detach( t );
12894 if( status ) return status;
12899 /* Draft 4 pthreads */
12900 status = pthread_create( &t, pthread_attr_default, task, NULL );
12901 if( status ) return status;
12904 /* give thread a chance to complete */
12905 /* it should remain joinable and hence detachable */
12908 status = pthread_detach( &t );
12909 if( status ) return status;
12913 #ifdef HAVE_LINUX_THREADS
12914 pthread_kill_other_threads_np();
12922 if { (eval echo configure:12923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12924 ol_cv_pthread_mthreads=yes
12926 echo "configure: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12929 ol_cv_pthread_mthreads=no
12940 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12942 if test $ol_cv_pthread_mthreads = yes ; then
12943 ol_link_pthreads="-mthreads"
12944 ol_link_threads=posix
12948 # Pthread try link: -thread (ol_cv_pthread_thread)
12949 if test "$ol_link_threads" = no ; then
12951 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12952 echo "configure:12953: checking for pthread link with -thread" >&5
12953 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12954 echo $ac_n "(cached) $ac_c" 1>&6
12959 LIBS="-thread $LIBS"
12961 if test "$cross_compiling" = yes; then
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 /* pthread test headers */
12966 #include <pthread.h>
12968 #define NULL (void*)0
12971 static void *task(p)
12974 return (void *) (p == NULL);
12979 /* pthread test function */
12984 #ifdef HAVE_PTHREADS_FINAL
12985 /* Final pthreads */
12986 pthread_attr_t attr;
12988 status = pthread_attr_init(&attr);
12989 if( status ) return status;
12991 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12993 #if defined( PTHREAD_CREATE_JOINABLE )
12994 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12999 #ifdef PTHREAD_CREATE_DETACHED
13001 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13004 if( status ) return status;
13007 status = pthread_create( &t, &attr, task, NULL );
13008 if( status ) return status;
13010 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13012 /* give thread a chance to complete */
13013 /* it should remain joinable and hence detachable */
13016 status = pthread_detach( t );
13017 if( status ) return status;
13022 /* Draft 4 pthreads */
13023 status = pthread_create( &t, pthread_attr_default, task, NULL );
13024 if( status ) return status;
13027 /* give thread a chance to complete */
13028 /* it should remain joinable and hence detachable */
13031 status = pthread_detach( &t );
13032 if( status ) return status;
13036 #ifdef HAVE_LINUX_THREADS
13037 pthread_kill_other_threads_np();
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13046 ol_cv_pthread_thread=yes
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13051 ol_cv_pthread_thread=no
13055 cat > conftest.$ac_ext <<EOF
13056 #line 13057 "configure"
13057 #include "confdefs.h"
13058 /* pthread test headers */
13059 #include <pthread.h>
13061 #define NULL (void*)0
13064 static void *task(p)
13067 return (void *) (p == NULL);
13071 int main(argc, argv)
13076 /* pthread test function */
13081 #ifdef HAVE_PTHREADS_FINAL
13082 /* Final pthreads */
13083 pthread_attr_t attr;
13085 status = pthread_attr_init(&attr);
13086 if( status ) return status;
13088 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13090 #if defined( PTHREAD_CREATE_JOINABLE )
13091 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13093 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13096 #ifdef PTHREAD_CREATE_DETACHED
13098 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13101 if( status ) return status;
13104 status = pthread_create( &t, &attr, task, NULL );
13105 if( status ) return status;
13107 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13109 /* give thread a chance to complete */
13110 /* it should remain joinable and hence detachable */
13113 status = pthread_detach( t );
13114 if( status ) return status;
13119 /* Draft 4 pthreads */
13120 status = pthread_create( &t, pthread_attr_default, task, NULL );
13121 if( status ) return status;
13124 /* give thread a chance to complete */
13125 /* it should remain joinable and hence detachable */
13128 status = pthread_detach( &t );
13129 if( status ) return status;
13133 #ifdef HAVE_LINUX_THREADS
13134 pthread_kill_other_threads_np();
13142 if { (eval echo configure:13143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13144 ol_cv_pthread_thread=yes
13146 echo "configure: failed program was:" >&5
13147 cat conftest.$ac_ext >&5
13149 ol_cv_pthread_thread=no
13160 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13162 if test $ol_cv_pthread_thread = yes ; then
13163 ol_link_pthreads="-thread"
13164 ol_link_threads=posix
13169 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13170 if test "$ol_link_threads" = no ; then
13171 # try -lpthread -lmach -lexc -lc_r
13172 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13173 echo "configure:13174: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13174 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13175 echo $ac_n "(cached) $ac_c" 1>&6
13180 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13182 if test "$cross_compiling" = yes; then
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 /* pthread test headers */
13187 #include <pthread.h>
13189 #define NULL (void*)0
13192 static void *task(p)
13195 return (void *) (p == NULL);
13200 /* pthread test function */
13205 #ifdef HAVE_PTHREADS_FINAL
13206 /* Final pthreads */
13207 pthread_attr_t attr;
13209 status = pthread_attr_init(&attr);
13210 if( status ) return status;
13212 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13214 #if defined( PTHREAD_CREATE_JOINABLE )
13215 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13217 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13220 #ifdef PTHREAD_CREATE_DETACHED
13222 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13225 if( status ) return status;
13228 status = pthread_create( &t, &attr, task, NULL );
13229 if( status ) return status;
13231 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13233 /* give thread a chance to complete */
13234 /* it should remain joinable and hence detachable */
13237 status = pthread_detach( t );
13238 if( status ) return status;
13243 /* Draft 4 pthreads */
13244 status = pthread_create( &t, pthread_attr_default, task, NULL );
13245 if( status ) return status;
13248 /* give thread a chance to complete */
13249 /* it should remain joinable and hence detachable */
13252 status = pthread_detach( &t );
13253 if( status ) return status;
13257 #ifdef HAVE_LINUX_THREADS
13258 pthread_kill_other_threads_np();
13265 if { (eval echo configure:13266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13267 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13272 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13276 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure"
13278 #include "confdefs.h"
13279 /* pthread test headers */
13280 #include <pthread.h>
13282 #define NULL (void*)0
13285 static void *task(p)
13288 return (void *) (p == NULL);
13292 int main(argc, argv)
13297 /* pthread test function */
13302 #ifdef HAVE_PTHREADS_FINAL
13303 /* Final pthreads */
13304 pthread_attr_t attr;
13306 status = pthread_attr_init(&attr);
13307 if( status ) return status;
13309 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13311 #if defined( PTHREAD_CREATE_JOINABLE )
13312 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13314 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13317 #ifdef PTHREAD_CREATE_DETACHED
13319 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13322 if( status ) return status;
13325 status = pthread_create( &t, &attr, task, NULL );
13326 if( status ) return status;
13328 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13330 /* give thread a chance to complete */
13331 /* it should remain joinable and hence detachable */
13334 status = pthread_detach( t );
13335 if( status ) return status;
13340 /* Draft 4 pthreads */
13341 status = pthread_create( &t, pthread_attr_default, task, NULL );
13342 if( status ) return status;
13345 /* give thread a chance to complete */
13346 /* it should remain joinable and hence detachable */
13349 status = pthread_detach( &t );
13350 if( status ) return status;
13354 #ifdef HAVE_LINUX_THREADS
13355 pthread_kill_other_threads_np();
13363 if { (eval echo configure:13364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13365 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13367 echo "configure: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13370 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13381 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13383 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13384 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13385 ol_link_threads=posix
13389 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13390 if test "$ol_link_threads" = no ; then
13391 # try -lpthread -lmach -lexc
13392 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13393 echo "configure:13394: checking for pthread link with -lpthread -lmach -lexc" >&5
13394 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13395 echo $ac_n "(cached) $ac_c" 1>&6
13400 LIBS="-lpthread -lmach -lexc $LIBS"
13402 if test "$cross_compiling" = yes; then
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 /* pthread test headers */
13407 #include <pthread.h>
13409 #define NULL (void*)0
13412 static void *task(p)
13415 return (void *) (p == NULL);
13420 /* pthread test function */
13425 #ifdef HAVE_PTHREADS_FINAL
13426 /* Final pthreads */
13427 pthread_attr_t attr;
13429 status = pthread_attr_init(&attr);
13430 if( status ) return status;
13432 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13434 #if defined( PTHREAD_CREATE_JOINABLE )
13435 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13440 #ifdef PTHREAD_CREATE_DETACHED
13442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13445 if( status ) return status;
13448 status = pthread_create( &t, &attr, task, NULL );
13449 if( status ) return status;
13451 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13453 /* give thread a chance to complete */
13454 /* it should remain joinable and hence detachable */
13457 status = pthread_detach( t );
13458 if( status ) return status;
13463 /* Draft 4 pthreads */
13464 status = pthread_create( &t, pthread_attr_default, task, NULL );
13465 if( status ) return status;
13468 /* give thread a chance to complete */
13469 /* it should remain joinable and hence detachable */
13472 status = pthread_detach( &t );
13473 if( status ) return status;
13477 #ifdef HAVE_LINUX_THREADS
13478 pthread_kill_other_threads_np();
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13487 ol_cv_pthread_lpthread_lmach_lexc=yes
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13492 ol_cv_pthread_lpthread_lmach_lexc=no
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 /* pthread test headers */
13500 #include <pthread.h>
13502 #define NULL (void*)0
13505 static void *task(p)
13508 return (void *) (p == NULL);
13512 int main(argc, argv)
13517 /* pthread test function */
13522 #ifdef HAVE_PTHREADS_FINAL
13523 /* Final pthreads */
13524 pthread_attr_t attr;
13526 status = pthread_attr_init(&attr);
13527 if( status ) return status;
13529 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13531 #if defined( PTHREAD_CREATE_JOINABLE )
13532 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13534 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13537 #ifdef PTHREAD_CREATE_DETACHED
13539 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13542 if( status ) return status;
13545 status = pthread_create( &t, &attr, task, NULL );
13546 if( status ) return status;
13548 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13550 /* give thread a chance to complete */
13551 /* it should remain joinable and hence detachable */
13554 status = pthread_detach( t );
13555 if( status ) return status;
13560 /* Draft 4 pthreads */
13561 status = pthread_create( &t, pthread_attr_default, task, NULL );
13562 if( status ) return status;
13565 /* give thread a chance to complete */
13566 /* it should remain joinable and hence detachable */
13569 status = pthread_detach( &t );
13570 if( status ) return status;
13574 #ifdef HAVE_LINUX_THREADS
13575 pthread_kill_other_threads_np();
13583 if { (eval echo configure:13584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13585 ol_cv_pthread_lpthread_lmach_lexc=yes
13587 echo "configure: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13590 ol_cv_pthread_lpthread_lmach_lexc=no
13601 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13603 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13604 ol_link_pthreads="-lpthread -lmach -lexc"
13605 ol_link_threads=posix
13610 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13611 if test "$ol_link_threads" = no ; then
13612 # try -lpthread -Wl,-woff,85
13613 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13614 echo "configure:13615: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13615 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13616 echo $ac_n "(cached) $ac_c" 1>&6
13621 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13623 if test "$cross_compiling" = yes; then
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13627 /* pthread test headers */
13628 #include <pthread.h>
13630 #define NULL (void*)0
13633 static void *task(p)
13636 return (void *) (p == NULL);
13641 /* pthread test function */
13646 #ifdef HAVE_PTHREADS_FINAL
13647 /* Final pthreads */
13648 pthread_attr_t attr;
13650 status = pthread_attr_init(&attr);
13651 if( status ) return status;
13653 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13655 #if defined( PTHREAD_CREATE_JOINABLE )
13656 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13658 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13661 #ifdef PTHREAD_CREATE_DETACHED
13663 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13666 if( status ) return status;
13669 status = pthread_create( &t, &attr, task, NULL );
13670 if( status ) return status;
13672 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13674 /* give thread a chance to complete */
13675 /* it should remain joinable and hence detachable */
13678 status = pthread_detach( t );
13679 if( status ) return status;
13684 /* Draft 4 pthreads */
13685 status = pthread_create( &t, pthread_attr_default, task, NULL );
13686 if( status ) return status;
13689 /* give thread a chance to complete */
13690 /* it should remain joinable and hence detachable */
13693 status = pthread_detach( &t );
13694 if( status ) return status;
13698 #ifdef HAVE_LINUX_THREADS
13699 pthread_kill_other_threads_np();
13706 if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 ol_cv_pthread_lib_lpthread_woff=yes
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13713 ol_cv_pthread_lib_lpthread_woff=no
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720 /* pthread test headers */
13721 #include <pthread.h>
13723 #define NULL (void*)0
13726 static void *task(p)
13729 return (void *) (p == NULL);
13733 int main(argc, argv)
13738 /* pthread test function */
13743 #ifdef HAVE_PTHREADS_FINAL
13744 /* Final pthreads */
13745 pthread_attr_t attr;
13747 status = pthread_attr_init(&attr);
13748 if( status ) return status;
13750 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13752 #if defined( PTHREAD_CREATE_JOINABLE )
13753 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13755 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13758 #ifdef PTHREAD_CREATE_DETACHED
13760 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13763 if( status ) return status;
13766 status = pthread_create( &t, &attr, task, NULL );
13767 if( status ) return status;
13769 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13771 /* give thread a chance to complete */
13772 /* it should remain joinable and hence detachable */
13775 status = pthread_detach( t );
13776 if( status ) return status;
13781 /* Draft 4 pthreads */
13782 status = pthread_create( &t, pthread_attr_default, task, NULL );
13783 if( status ) return status;
13786 /* give thread a chance to complete */
13787 /* it should remain joinable and hence detachable */
13790 status = pthread_detach( &t );
13791 if( status ) return status;
13795 #ifdef HAVE_LINUX_THREADS
13796 pthread_kill_other_threads_np();
13804 if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13806 ol_cv_pthread_lib_lpthread_woff=yes
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13811 ol_cv_pthread_lib_lpthread_woff=no
13822 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13824 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13825 ol_link_pthreads="-lpthread -Wl,-woff,85"
13826 ol_link_threads=posix
13831 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13832 if test "$ol_link_threads" = no ; then
13834 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13835 echo "configure:13836: checking for pthread link with -lpthread" >&5
13836 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13837 echo $ac_n "(cached) $ac_c" 1>&6
13842 LIBS="-lpthread $LIBS"
13844 if test "$cross_compiling" = yes; then
13845 cat > conftest.$ac_ext <<EOF
13846 #line 13847 "configure"
13847 #include "confdefs.h"
13848 /* pthread test headers */
13849 #include <pthread.h>
13851 #define NULL (void*)0
13854 static void *task(p)
13857 return (void *) (p == NULL);
13862 /* pthread test function */
13867 #ifdef HAVE_PTHREADS_FINAL
13868 /* Final pthreads */
13869 pthread_attr_t attr;
13871 status = pthread_attr_init(&attr);
13872 if( status ) return status;
13874 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13876 #if defined( PTHREAD_CREATE_JOINABLE )
13877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13879 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13882 #ifdef PTHREAD_CREATE_DETACHED
13884 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13887 if( status ) return status;
13890 status = pthread_create( &t, &attr, task, NULL );
13891 if( status ) return status;
13893 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13895 /* give thread a chance to complete */
13896 /* it should remain joinable and hence detachable */
13899 status = pthread_detach( t );
13900 if( status ) return status;
13905 /* Draft 4 pthreads */
13906 status = pthread_create( &t, pthread_attr_default, task, NULL );
13907 if( status ) return status;
13910 /* give thread a chance to complete */
13911 /* it should remain joinable and hence detachable */
13914 status = pthread_detach( &t );
13915 if( status ) return status;
13919 #ifdef HAVE_LINUX_THREADS
13920 pthread_kill_other_threads_np();
13927 if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13929 ol_cv_pthread_lpthread=yes
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13934 ol_cv_pthread_lpthread=no
13938 cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 /* pthread test headers */
13942 #include <pthread.h>
13944 #define NULL (void*)0
13947 static void *task(p)
13950 return (void *) (p == NULL);
13954 int main(argc, argv)
13959 /* pthread test function */
13964 #ifdef HAVE_PTHREADS_FINAL
13965 /* Final pthreads */
13966 pthread_attr_t attr;
13968 status = pthread_attr_init(&attr);
13969 if( status ) return status;
13971 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13973 #if defined( PTHREAD_CREATE_JOINABLE )
13974 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13976 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13979 #ifdef PTHREAD_CREATE_DETACHED
13981 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13984 if( status ) return status;
13987 status = pthread_create( &t, &attr, task, NULL );
13988 if( status ) return status;
13990 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13992 /* give thread a chance to complete */
13993 /* it should remain joinable and hence detachable */
13996 status = pthread_detach( t );
13997 if( status ) return status;
14002 /* Draft 4 pthreads */
14003 status = pthread_create( &t, pthread_attr_default, task, NULL );
14004 if( status ) return status;
14007 /* give thread a chance to complete */
14008 /* it should remain joinable and hence detachable */
14011 status = pthread_detach( &t );
14012 if( status ) return status;
14016 #ifdef HAVE_LINUX_THREADS
14017 pthread_kill_other_threads_np();
14025 if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14027 ol_cv_pthread_lpthread=yes
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14032 ol_cv_pthread_lpthread=no
14043 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
14045 if test $ol_cv_pthread_lpthread = yes ; then
14046 ol_link_pthreads="-lpthread"
14047 ol_link_threads=posix
14051 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
14052 if test "$ol_link_threads" = no ; then
14054 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
14055 echo "configure:14056: checking for pthread link with -lc_r" >&5
14056 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14064 if test "$cross_compiling" = yes; then
14065 cat > conftest.$ac_ext <<EOF
14066 #line 14067 "configure"
14067 #include "confdefs.h"
14068 /* pthread test headers */
14069 #include <pthread.h>
14071 #define NULL (void*)0
14074 static void *task(p)
14077 return (void *) (p == NULL);
14082 /* pthread test function */
14087 #ifdef HAVE_PTHREADS_FINAL
14088 /* Final pthreads */
14089 pthread_attr_t attr;
14091 status = pthread_attr_init(&attr);
14092 if( status ) return status;
14094 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14096 #if defined( PTHREAD_CREATE_JOINABLE )
14097 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14099 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14102 #ifdef PTHREAD_CREATE_DETACHED
14104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14107 if( status ) return status;
14110 status = pthread_create( &t, &attr, task, NULL );
14111 if( status ) return status;
14113 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14115 /* give thread a chance to complete */
14116 /* it should remain joinable and hence detachable */
14119 status = pthread_detach( t );
14120 if( status ) return status;
14125 /* Draft 4 pthreads */
14126 status = pthread_create( &t, pthread_attr_default, task, NULL );
14127 if( status ) return status;
14130 /* give thread a chance to complete */
14131 /* it should remain joinable and hence detachable */
14134 status = pthread_detach( &t );
14135 if( status ) return status;
14139 #ifdef HAVE_LINUX_THREADS
14140 pthread_kill_other_threads_np();
14147 if { (eval echo configure:14148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149 ol_cv_pthread_lc_r=yes
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14154 ol_cv_pthread_lc_r=no
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 /* pthread test headers */
14162 #include <pthread.h>
14164 #define NULL (void*)0
14167 static void *task(p)
14170 return (void *) (p == NULL);
14174 int main(argc, argv)
14179 /* pthread test function */
14184 #ifdef HAVE_PTHREADS_FINAL
14185 /* Final pthreads */
14186 pthread_attr_t attr;
14188 status = pthread_attr_init(&attr);
14189 if( status ) return status;
14191 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14193 #if defined( PTHREAD_CREATE_JOINABLE )
14194 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14196 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14199 #ifdef PTHREAD_CREATE_DETACHED
14201 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14204 if( status ) return status;
14207 status = pthread_create( &t, &attr, task, NULL );
14208 if( status ) return status;
14210 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14212 /* give thread a chance to complete */
14213 /* it should remain joinable and hence detachable */
14216 status = pthread_detach( t );
14217 if( status ) return status;
14222 /* Draft 4 pthreads */
14223 status = pthread_create( &t, pthread_attr_default, task, NULL );
14224 if( status ) return status;
14227 /* give thread a chance to complete */
14228 /* it should remain joinable and hence detachable */
14231 status = pthread_detach( &t );
14232 if( status ) return status;
14236 #ifdef HAVE_LINUX_THREADS
14237 pthread_kill_other_threads_np();
14245 if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14247 ol_cv_pthread_lc_r=yes
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14252 ol_cv_pthread_lc_r=no
14263 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14265 if test $ol_cv_pthread_lc_r = yes ; then
14266 ol_link_pthreads="-lc_r"
14267 ol_link_threads=posix
14272 # Pthread try link: -threads (ol_cv_pthread_threads)
14273 if test "$ol_link_threads" = no ; then
14275 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14276 echo "configure:14277: checking for pthread link with -threads" >&5
14277 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14278 echo $ac_n "(cached) $ac_c" 1>&6
14283 LIBS="-threads $LIBS"
14285 if test "$cross_compiling" = yes; then
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 /* pthread test headers */
14290 #include <pthread.h>
14292 #define NULL (void*)0
14295 static void *task(p)
14298 return (void *) (p == NULL);
14303 /* pthread test function */
14308 #ifdef HAVE_PTHREADS_FINAL
14309 /* Final pthreads */
14310 pthread_attr_t attr;
14312 status = pthread_attr_init(&attr);
14313 if( status ) return status;
14315 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14317 #if defined( PTHREAD_CREATE_JOINABLE )
14318 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14320 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14323 #ifdef PTHREAD_CREATE_DETACHED
14325 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14328 if( status ) return status;
14331 status = pthread_create( &t, &attr, task, NULL );
14332 if( status ) return status;
14334 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14336 /* give thread a chance to complete */
14337 /* it should remain joinable and hence detachable */
14340 status = pthread_detach( t );
14341 if( status ) return status;
14346 /* Draft 4 pthreads */
14347 status = pthread_create( &t, pthread_attr_default, task, NULL );
14348 if( status ) return status;
14351 /* give thread a chance to complete */
14352 /* it should remain joinable and hence detachable */
14355 status = pthread_detach( &t );
14356 if( status ) return status;
14360 #ifdef HAVE_LINUX_THREADS
14361 pthread_kill_other_threads_np();
14368 if { (eval echo configure:14369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14370 ol_cv_pthread_threads=yes
14372 echo "configure: failed program was:" >&5
14373 cat conftest.$ac_ext >&5
14375 ol_cv_pthread_threads=no
14379 cat > conftest.$ac_ext <<EOF
14380 #line 14381 "configure"
14381 #include "confdefs.h"
14382 /* pthread test headers */
14383 #include <pthread.h>
14385 #define NULL (void*)0
14388 static void *task(p)
14391 return (void *) (p == NULL);
14395 int main(argc, argv)
14400 /* pthread test function */
14405 #ifdef HAVE_PTHREADS_FINAL
14406 /* Final pthreads */
14407 pthread_attr_t attr;
14409 status = pthread_attr_init(&attr);
14410 if( status ) return status;
14412 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14414 #if defined( PTHREAD_CREATE_JOINABLE )
14415 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14417 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14420 #ifdef PTHREAD_CREATE_DETACHED
14422 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14425 if( status ) return status;
14428 status = pthread_create( &t, &attr, task, NULL );
14429 if( status ) return status;
14431 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14433 /* give thread a chance to complete */
14434 /* it should remain joinable and hence detachable */
14437 status = pthread_detach( t );
14438 if( status ) return status;
14443 /* Draft 4 pthreads */
14444 status = pthread_create( &t, pthread_attr_default, task, NULL );
14445 if( status ) return status;
14448 /* give thread a chance to complete */
14449 /* it should remain joinable and hence detachable */
14452 status = pthread_detach( &t );
14453 if( status ) return status;
14457 #ifdef HAVE_LINUX_THREADS
14458 pthread_kill_other_threads_np();
14466 if { (eval echo configure:14467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14468 ol_cv_pthread_threads=yes
14470 echo "configure: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14473 ol_cv_pthread_threads=no
14484 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14486 if test $ol_cv_pthread_threads = yes ; then
14487 ol_link_pthreads="-threads"
14488 ol_link_threads=posix
14493 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14494 if test "$ol_link_threads" = no ; then
14495 # try -lpthreads -lmach -lexc -lc_r
14496 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14497 echo "configure:14498: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14498 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14499 echo $ac_n "(cached) $ac_c" 1>&6
14504 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14506 if test "$cross_compiling" = yes; then
14507 cat > conftest.$ac_ext <<EOF
14508 #line 14509 "configure"
14509 #include "confdefs.h"
14510 /* pthread test headers */
14511 #include <pthread.h>
14513 #define NULL (void*)0
14516 static void *task(p)
14519 return (void *) (p == NULL);
14524 /* pthread test function */
14529 #ifdef HAVE_PTHREADS_FINAL
14530 /* Final pthreads */
14531 pthread_attr_t attr;
14533 status = pthread_attr_init(&attr);
14534 if( status ) return status;
14536 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14538 #if defined( PTHREAD_CREATE_JOINABLE )
14539 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14541 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14544 #ifdef PTHREAD_CREATE_DETACHED
14546 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14549 if( status ) return status;
14552 status = pthread_create( &t, &attr, task, NULL );
14553 if( status ) return status;
14555 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14557 /* give thread a chance to complete */
14558 /* it should remain joinable and hence detachable */
14561 status = pthread_detach( t );
14562 if( status ) return status;
14567 /* Draft 4 pthreads */
14568 status = pthread_create( &t, pthread_attr_default, task, NULL );
14569 if( status ) return status;
14572 /* give thread a chance to complete */
14573 /* it should remain joinable and hence detachable */
14576 status = pthread_detach( &t );
14577 if( status ) return status;
14581 #ifdef HAVE_LINUX_THREADS
14582 pthread_kill_other_threads_np();
14589 if { (eval echo configure:14590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14591 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14593 echo "configure: failed program was:" >&5
14594 cat conftest.$ac_ext >&5
14596 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603 /* pthread test headers */
14604 #include <pthread.h>
14606 #define NULL (void*)0
14609 static void *task(p)
14612 return (void *) (p == NULL);
14616 int main(argc, argv)
14621 /* pthread test function */
14626 #ifdef HAVE_PTHREADS_FINAL
14627 /* Final pthreads */
14628 pthread_attr_t attr;
14630 status = pthread_attr_init(&attr);
14631 if( status ) return status;
14633 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14635 #if defined( PTHREAD_CREATE_JOINABLE )
14636 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14638 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14641 #ifdef PTHREAD_CREATE_DETACHED
14643 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14646 if( status ) return status;
14649 status = pthread_create( &t, &attr, task, NULL );
14650 if( status ) return status;
14652 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14654 /* give thread a chance to complete */
14655 /* it should remain joinable and hence detachable */
14658 status = pthread_detach( t );
14659 if( status ) return status;
14664 /* Draft 4 pthreads */
14665 status = pthread_create( &t, pthread_attr_default, task, NULL );
14666 if( status ) return status;
14669 /* give thread a chance to complete */
14670 /* it should remain joinable and hence detachable */
14673 status = pthread_detach( &t );
14674 if( status ) return status;
14678 #ifdef HAVE_LINUX_THREADS
14679 pthread_kill_other_threads_np();
14687 if { (eval echo configure:14688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14689 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14691 echo "configure: failed program was:" >&5
14692 cat conftest.$ac_ext >&5
14694 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14705 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14707 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14708 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14709 ol_link_threads=posix
14713 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14714 if test "$ol_link_threads" = no ; then
14715 # try -lpthreads -lmach -lexc
14716 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14717 echo "configure:14718: checking for pthread link with -lpthreads -lmach -lexc" >&5
14718 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14719 echo $ac_n "(cached) $ac_c" 1>&6
14724 LIBS="-lpthreads -lmach -lexc $LIBS"
14726 if test "$cross_compiling" = yes; then
14727 cat > conftest.$ac_ext <<EOF
14728 #line 14729 "configure"
14729 #include "confdefs.h"
14730 /* pthread test headers */
14731 #include <pthread.h>
14733 #define NULL (void*)0
14736 static void *task(p)
14739 return (void *) (p == NULL);
14744 /* pthread test function */
14749 #ifdef HAVE_PTHREADS_FINAL
14750 /* Final pthreads */
14751 pthread_attr_t attr;
14753 status = pthread_attr_init(&attr);
14754 if( status ) return status;
14756 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14758 #if defined( PTHREAD_CREATE_JOINABLE )
14759 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14761 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14764 #ifdef PTHREAD_CREATE_DETACHED
14766 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14769 if( status ) return status;
14772 status = pthread_create( &t, &attr, task, NULL );
14773 if( status ) return status;
14775 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14777 /* give thread a chance to complete */
14778 /* it should remain joinable and hence detachable */
14781 status = pthread_detach( t );
14782 if( status ) return status;
14787 /* Draft 4 pthreads */
14788 status = pthread_create( &t, pthread_attr_default, task, NULL );
14789 if( status ) return status;
14792 /* give thread a chance to complete */
14793 /* it should remain joinable and hence detachable */
14796 status = pthread_detach( &t );
14797 if( status ) return status;
14801 #ifdef HAVE_LINUX_THREADS
14802 pthread_kill_other_threads_np();
14809 if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14811 ol_cv_pthread_lpthreads_lmach_lexc=yes
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14816 ol_cv_pthread_lpthreads_lmach_lexc=no
14820 cat > conftest.$ac_ext <<EOF
14821 #line 14822 "configure"
14822 #include "confdefs.h"
14823 /* pthread test headers */
14824 #include <pthread.h>
14826 #define NULL (void*)0
14829 static void *task(p)
14832 return (void *) (p == NULL);
14836 int main(argc, argv)
14841 /* pthread test function */
14846 #ifdef HAVE_PTHREADS_FINAL
14847 /* Final pthreads */
14848 pthread_attr_t attr;
14850 status = pthread_attr_init(&attr);
14851 if( status ) return status;
14853 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14855 #if defined( PTHREAD_CREATE_JOINABLE )
14856 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14858 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14861 #ifdef PTHREAD_CREATE_DETACHED
14863 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14866 if( status ) return status;
14869 status = pthread_create( &t, &attr, task, NULL );
14870 if( status ) return status;
14872 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14874 /* give thread a chance to complete */
14875 /* it should remain joinable and hence detachable */
14878 status = pthread_detach( t );
14879 if( status ) return status;
14884 /* Draft 4 pthreads */
14885 status = pthread_create( &t, pthread_attr_default, task, NULL );
14886 if( status ) return status;
14889 /* give thread a chance to complete */
14890 /* it should remain joinable and hence detachable */
14893 status = pthread_detach( &t );
14894 if( status ) return status;
14898 #ifdef HAVE_LINUX_THREADS
14899 pthread_kill_other_threads_np();
14907 if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14909 ol_cv_pthread_lpthreads_lmach_lexc=yes
14911 echo "configure: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14914 ol_cv_pthread_lpthreads_lmach_lexc=no
14925 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14927 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14928 ol_link_pthreads="-lpthreads -lmach -lexc"
14929 ol_link_threads=posix
14933 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14934 if test "$ol_link_threads" = no ; then
14935 # try -lpthreads -lexc
14936 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14937 echo "configure:14938: checking for pthread link with -lpthreads -lexc" >&5
14938 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14944 LIBS="-lpthreads -lexc $LIBS"
14946 if test "$cross_compiling" = yes; then
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14950 /* pthread test headers */
14951 #include <pthread.h>
14953 #define NULL (void*)0
14956 static void *task(p)
14959 return (void *) (p == NULL);
14964 /* pthread test function */
14969 #ifdef HAVE_PTHREADS_FINAL
14970 /* Final pthreads */
14971 pthread_attr_t attr;
14973 status = pthread_attr_init(&attr);
14974 if( status ) return status;
14976 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14978 #if defined( PTHREAD_CREATE_JOINABLE )
14979 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14981 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14984 #ifdef PTHREAD_CREATE_DETACHED
14986 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14989 if( status ) return status;
14992 status = pthread_create( &t, &attr, task, NULL );
14993 if( status ) return status;
14995 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14997 /* give thread a chance to complete */
14998 /* it should remain joinable and hence detachable */
15001 status = pthread_detach( t );
15002 if( status ) return status;
15007 /* Draft 4 pthreads */
15008 status = pthread_create( &t, pthread_attr_default, task, NULL );
15009 if( status ) return status;
15012 /* give thread a chance to complete */
15013 /* it should remain joinable and hence detachable */
15016 status = pthread_detach( &t );
15017 if( status ) return status;
15021 #ifdef HAVE_LINUX_THREADS
15022 pthread_kill_other_threads_np();
15029 if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15031 ol_cv_pthread_lpthreads_lexc=yes
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15036 ol_cv_pthread_lpthreads_lexc=no
15040 cat > conftest.$ac_ext <<EOF
15041 #line 15042 "configure"
15042 #include "confdefs.h"
15043 /* pthread test headers */
15044 #include <pthread.h>
15046 #define NULL (void*)0
15049 static void *task(p)
15052 return (void *) (p == NULL);
15056 int main(argc, argv)
15061 /* pthread test function */
15066 #ifdef HAVE_PTHREADS_FINAL
15067 /* Final pthreads */
15068 pthread_attr_t attr;
15070 status = pthread_attr_init(&attr);
15071 if( status ) return status;
15073 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15075 #if defined( PTHREAD_CREATE_JOINABLE )
15076 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15078 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15081 #ifdef PTHREAD_CREATE_DETACHED
15083 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15086 if( status ) return status;
15089 status = pthread_create( &t, &attr, task, NULL );
15090 if( status ) return status;
15092 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15094 /* give thread a chance to complete */
15095 /* it should remain joinable and hence detachable */
15098 status = pthread_detach( t );
15099 if( status ) return status;
15104 /* Draft 4 pthreads */
15105 status = pthread_create( &t, pthread_attr_default, task, NULL );
15106 if( status ) return status;
15109 /* give thread a chance to complete */
15110 /* it should remain joinable and hence detachable */
15113 status = pthread_detach( &t );
15114 if( status ) return status;
15118 #ifdef HAVE_LINUX_THREADS
15119 pthread_kill_other_threads_np();
15127 if { (eval echo configure:15128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15129 ol_cv_pthread_lpthreads_lexc=yes
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15134 ol_cv_pthread_lpthreads_lexc=no
15145 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15147 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15148 ol_link_pthreads="-lpthreads -lexc"
15149 ol_link_threads=posix
15154 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15155 if test "$ol_link_threads" = no ; then
15157 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15158 echo "configure:15159: checking for pthread link with -lpthreads" >&5
15159 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15160 echo $ac_n "(cached) $ac_c" 1>&6
15165 LIBS="-lpthreads $LIBS"
15167 if test "$cross_compiling" = yes; then
15168 cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 /* pthread test headers */
15172 #include <pthread.h>
15174 #define NULL (void*)0
15177 static void *task(p)
15180 return (void *) (p == NULL);
15185 /* pthread test function */
15190 #ifdef HAVE_PTHREADS_FINAL
15191 /* Final pthreads */
15192 pthread_attr_t attr;
15194 status = pthread_attr_init(&attr);
15195 if( status ) return status;
15197 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15199 #if defined( PTHREAD_CREATE_JOINABLE )
15200 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15202 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15205 #ifdef PTHREAD_CREATE_DETACHED
15207 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15210 if( status ) return status;
15213 status = pthread_create( &t, &attr, task, NULL );
15214 if( status ) return status;
15216 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15218 /* give thread a chance to complete */
15219 /* it should remain joinable and hence detachable */
15222 status = pthread_detach( t );
15223 if( status ) return status;
15228 /* Draft 4 pthreads */
15229 status = pthread_create( &t, pthread_attr_default, task, NULL );
15230 if( status ) return status;
15233 /* give thread a chance to complete */
15234 /* it should remain joinable and hence detachable */
15237 status = pthread_detach( &t );
15238 if( status ) return status;
15242 #ifdef HAVE_LINUX_THREADS
15243 pthread_kill_other_threads_np();
15250 if { (eval echo configure:15251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15252 ol_cv_pthread_lib_lpthreads=yes
15254 echo "configure: failed program was:" >&5
15255 cat conftest.$ac_ext >&5
15257 ol_cv_pthread_lib_lpthreads=no
15261 cat > conftest.$ac_ext <<EOF
15262 #line 15263 "configure"
15263 #include "confdefs.h"
15264 /* pthread test headers */
15265 #include <pthread.h>
15267 #define NULL (void*)0
15270 static void *task(p)
15273 return (void *) (p == NULL);
15277 int main(argc, argv)
15282 /* pthread test function */
15287 #ifdef HAVE_PTHREADS_FINAL
15288 /* Final pthreads */
15289 pthread_attr_t attr;
15291 status = pthread_attr_init(&attr);
15292 if( status ) return status;
15294 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15296 #if defined( PTHREAD_CREATE_JOINABLE )
15297 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15299 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15302 #ifdef PTHREAD_CREATE_DETACHED
15304 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15307 if( status ) return status;
15310 status = pthread_create( &t, &attr, task, NULL );
15311 if( status ) return status;
15313 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15315 /* give thread a chance to complete */
15316 /* it should remain joinable and hence detachable */
15319 status = pthread_detach( t );
15320 if( status ) return status;
15325 /* Draft 4 pthreads */
15326 status = pthread_create( &t, pthread_attr_default, task, NULL );
15327 if( status ) return status;
15330 /* give thread a chance to complete */
15331 /* it should remain joinable and hence detachable */
15334 status = pthread_detach( &t );
15335 if( status ) return status;
15339 #ifdef HAVE_LINUX_THREADS
15340 pthread_kill_other_threads_np();
15348 if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15350 ol_cv_pthread_lib_lpthreads=yes
15352 echo "configure: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15355 ol_cv_pthread_lib_lpthreads=no
15366 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15368 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15369 ol_link_pthreads="-lpthreads"
15370 ol_link_threads=posix
15375 if test $ol_link_threads != no ; then
15376 cat >> confdefs.h <<\EOF
15377 #define HAVE_PTHREADS 1
15381 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15383 save_CPPFLAGS="$CPPFLAGS"
15385 LIBS="$LTHREAD_LIBS $LIBS"
15387 for ac_func in sched_yield pthread_yield
15389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15390 echo "configure:15391: checking for $ac_func" >&5
15391 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char $ac_func(); below. */
15399 #include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 eval "ac_cv_func_$ac_func=yes"
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15426 eval "ac_cv_func_$ac_func=no"
15431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15432 echo "$ac_t""yes" 1>&6
15433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15434 cat >> confdefs.h <<EOF
15435 #define $ac_tr_func 1
15439 echo "$ac_t""no" 1>&6
15444 if test $ac_cv_func_sched_yield = no -a \
15445 $ac_cv_func_pthread_yield = no ; then
15446 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15447 echo "configure:15448: checking for sched_yield in -lrt" >&5
15448 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15452 ac_save_LIBS="$LIBS"
15454 cat > conftest.$ac_ext <<EOF
15455 #line 15456 "configure"
15456 #include "confdefs.h"
15457 /* Override any gcc2 internal prototype to avoid an error. */
15458 /* We use char because int might match the return type of a gcc2
15459 builtin and then its argument prototype would still apply. */
15460 char sched_yield();
15466 if { (eval echo configure:15467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15468 eval "ac_cv_lib_$ac_lib_var=yes"
15470 echo "configure: failed program was:" >&5
15471 cat conftest.$ac_ext >&5
15473 eval "ac_cv_lib_$ac_lib_var=no"
15476 LIBS="$ac_save_LIBS"
15479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15480 echo "$ac_t""yes" 1>&6
15481 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15482 cat >> confdefs.h <<\EOF
15483 #define HAVE_SCHED_YIELD 1
15486 ac_cv_func_sched_yield=yes
15488 echo "$ac_t""no" 1>&6
15489 ac_cv_func_sched_yield=no
15493 if test $ac_cv_func_sched_yield = no -a \
15494 $ac_cv_func_pthread_yield = no ; then
15495 for ac_func in thr_yield
15497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15498 echo "configure:15499: checking for $ac_func" >&5
15499 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15500 echo $ac_n "(cached) $ac_c" 1>&6
15502 cat > conftest.$ac_ext <<EOF
15503 #line 15504 "configure"
15504 #include "confdefs.h"
15505 /* System header to define __stub macros and hopefully few prototypes,
15506 which can conflict with char $ac_func(); below. */
15507 #include <assert.h>
15508 /* Override any gcc2 internal prototype to avoid an error. */
15509 /* We use char because int might match the return type of a gcc2
15510 builtin and then its argument prototype would still apply. */
15516 /* The GNU C library defines this for functions which it implements
15517 to always fail with ENOSYS. Some functions are actually named
15518 something starting with __ and the normal name is an alias. */
15519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527 if { (eval echo configure:15528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15529 eval "ac_cv_func_$ac_func=yes"
15531 echo "configure: failed program was:" >&5
15532 cat conftest.$ac_ext >&5
15534 eval "ac_cv_func_$ac_func=no"
15539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15540 echo "$ac_t""yes" 1>&6
15541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15542 cat >> confdefs.h <<EOF
15543 #define $ac_tr_func 1
15547 echo "$ac_t""no" 1>&6
15552 if test $ac_cv_func_sched_yield = no -a \
15553 $ac_cv_func_pthread_yield = no -a \
15554 "$ac_cv_func_thr_yield" = no ; then
15555 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15558 for ac_func in pthread_kill pthread_rwlock_destroy
15560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15561 echo "configure:15562: checking for $ac_func" >&5
15562 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15563 echo $ac_n "(cached) $ac_c" 1>&6
15565 cat > conftest.$ac_ext <<EOF
15566 #line 15567 "configure"
15567 #include "confdefs.h"
15568 /* System header to define __stub macros and hopefully few prototypes,
15569 which can conflict with char $ac_func(); below. */
15570 #include <assert.h>
15571 /* Override any gcc2 internal prototype to avoid an error. */
15572 /* We use char because int might match the return type of a gcc2
15573 builtin and then its argument prototype would still apply. */
15579 /* The GNU C library defines this for functions which it implements
15580 to always fail with ENOSYS. Some functions are actually named
15581 something starting with __ and the normal name is an alias. */
15582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15590 if { (eval echo configure:15591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15592 eval "ac_cv_func_$ac_func=yes"
15594 echo "configure: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15597 eval "ac_cv_func_$ac_func=no"
15602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15603 echo "$ac_t""yes" 1>&6
15604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15605 cat >> confdefs.h <<EOF
15606 #define $ac_tr_func 1
15610 echo "$ac_t""no" 1>&6
15615 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15616 echo "configure:15617: checking for pthread_detach with <pthread.h>" >&5
15617 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15618 echo $ac_n "(cached) $ac_c" 1>&6
15621 cat > conftest.$ac_ext <<EOF
15622 #line 15623 "configure"
15623 #include "confdefs.h"
15625 #include <pthread.h>
15627 #define NULL (void*)0
15631 pthread_detach(NULL);
15634 if { (eval echo configure:15635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15636 ol_cv_func_pthread_detach=yes
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15641 ol_cv_func_pthread_detach=no
15647 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15649 if test $ol_cv_func_pthread_detach = no ; then
15650 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15653 cat >> confdefs.h <<\EOF
15654 #define HAVE_PTHREAD_DETACH 1
15659 pthread_setconcurrency \
15660 pthread_getconcurrency \
15661 thr_setconcurrency \
15662 thr_getconcurrency \
15665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15666 echo "configure:15667: checking for $ac_func" >&5
15667 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15668 echo $ac_n "(cached) $ac_c" 1>&6
15670 cat > conftest.$ac_ext <<EOF
15671 #line 15672 "configure"
15672 #include "confdefs.h"
15673 /* System header to define __stub macros and hopefully few prototypes,
15674 which can conflict with char $ac_func(); below. */
15675 #include <assert.h>
15676 /* Override any gcc2 internal prototype to avoid an error. */
15677 /* We use char because int might match the return type of a gcc2
15678 builtin and then its argument prototype would still apply. */
15684 /* The GNU C library defines this for functions which it implements
15685 to always fail with ENOSYS. Some functions are actually named
15686 something starting with __ and the normal name is an alias. */
15687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15695 if { (eval echo configure:15696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15697 eval "ac_cv_func_$ac_func=yes"
15699 echo "configure: failed program was:" >&5
15700 cat conftest.$ac_ext >&5
15702 eval "ac_cv_func_$ac_func=no"
15707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15708 echo "$ac_t""yes" 1>&6
15709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15710 cat >> confdefs.h <<EOF
15711 #define $ac_tr_func 1
15715 echo "$ac_t""no" 1>&6
15721 for ac_func in pthread_kill_other_threads_np
15723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15724 echo "configure:15725: checking for $ac_func" >&5
15725 if eval "test \"\${ac_cv_func_$ac_func+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 $ac_func(); 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. */
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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
15757 echo "configure: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15760 eval "ac_cv_func_$ac_func=no"
15765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15766 echo "$ac_t""yes" 1>&6
15767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15768 cat >> confdefs.h <<EOF
15769 #define $ac_tr_func 1
15773 echo "$ac_t""no" 1>&6
15777 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15778 echo "configure:15779: checking for LinuxThreads implementation" >&5
15779 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15782 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15785 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15790 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15791 echo "configure:15792: checking for LinuxThreads consistency" >&5
15792 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15793 echo $ac_n "(cached) $ac_c" 1>&6
15796 if test $ol_cv_header_linux_threads = yes -a \
15797 $ol_cv_sys_linux_threads = yes; then
15798 ol_cv_linux_threads=yes
15799 elif test $ol_cv_header_linux_threads = no -a \
15800 $ol_cv_sys_linux_threads = no; then
15801 ol_cv_linux_threads=no
15803 ol_cv_linux_threads=error
15808 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15811 if test $ol_cv_linux_threads = error; then
15812 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15815 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15816 echo "configure:15817: checking if pthread_create() works" >&5
15817 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15818 echo $ac_n "(cached) $ac_c" 1>&6
15821 if test "$cross_compiling" = yes; then
15822 ol_cv_pthread_create_works=yes
15824 cat > conftest.$ac_ext <<EOF
15825 #line 15826 "configure"
15826 #include "confdefs.h"
15827 /* pthread test headers */
15828 #include <pthread.h>
15830 #define NULL (void*)0
15833 static void *task(p)
15836 return (void *) (p == NULL);
15840 int main(argc, argv)
15845 /* pthread test function */
15850 #ifdef HAVE_PTHREADS_FINAL
15851 /* Final pthreads */
15852 pthread_attr_t attr;
15854 status = pthread_attr_init(&attr);
15855 if( status ) return status;
15857 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15859 #if defined( PTHREAD_CREATE_JOINABLE )
15860 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15862 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15865 #ifdef PTHREAD_CREATE_DETACHED
15867 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15870 if( status ) return status;
15873 status = pthread_create( &t, &attr, task, NULL );
15874 if( status ) return status;
15876 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15878 /* give thread a chance to complete */
15879 /* it should remain joinable and hence detachable */
15882 status = pthread_detach( t );
15883 if( status ) return status;
15888 /* Draft 4 pthreads */
15889 status = pthread_create( &t, pthread_attr_default, task, NULL );
15890 if( status ) return status;
15893 /* give thread a chance to complete */
15894 /* it should remain joinable and hence detachable */
15897 status = pthread_detach( &t );
15898 if( status ) return status;
15902 #ifdef HAVE_LINUX_THREADS
15903 pthread_kill_other_threads_np();
15911 if { (eval echo configure:15912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15913 ol_cv_pthread_create_works=yes
15915 echo "configure: failed program was:" >&5
15916 cat conftest.$ac_ext >&5
15918 ol_cv_pthread_create_works=no
15925 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15927 if test $ol_cv_pthread_create_works = no ; then
15928 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15931 if test $ol_with_yielding_select = auto ; then
15932 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15933 echo "configure:15934: checking if select yields when using pthreads" >&5
15934 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15935 echo $ac_n "(cached) $ac_c" 1>&6
15938 if test "$cross_compiling" = yes; then
15939 ol_cv_pthread_select_yields=cross
15941 cat > conftest.$ac_ext <<EOF
15942 #line 15943 "configure"
15943 #include "confdefs.h"
15945 #include <sys/types.h>
15946 #include <sys/time.h>
15947 #include <unistd.h>
15948 #include <pthread.h>
15950 #define NULL (void*) 0
15953 static int fildes[2];
15955 static void *task(p)
15967 FD_SET(fildes[0], &rfds);
15969 /* we're not interested in any fds */
15970 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15977 exit(0); /* if we exit here, the select blocked the whole process */
15980 int main(argc, argv)
15986 /* create a pipe to select */
15987 if(pipe(&fildes[0])) {
15992 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15993 (void) pthread_setconcurrency(2);
15995 #ifdef HAVE_THR_SETCONCURRENCY
15996 /* Set Solaris LWP concurrency to 2 */
15997 thr_setconcurrency(2);
16001 #if HAVE_PTHREADS_D4
16002 pthread_create(&t, pthread_attr_default, task, NULL);
16004 pthread_create(&t, NULL, task, NULL);
16007 #if HAVE_SCHED_YIELD
16008 sched_yield(); /* make sure task runs first */
16010 #ifdef HAVE_PTHREAD_YIELD
16011 pthread_yield(); /* make sure task runs first */
16018 if { (eval echo configure:16019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16020 ol_cv_pthread_select_yields=no
16022 echo "configure: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16025 ol_cv_pthread_select_yields=yes
16032 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
16034 if test $ol_cv_pthread_select_yields = cross ; then
16035 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
16038 if test $ol_cv_pthread_select_yields = yes ; then
16039 ol_with_yielding_select=yes
16043 CPPFLAGS="$save_CPPFLAGS"
16046 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
16050 if test $ol_with_threads = posix ; then
16051 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
16055 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16056 -o $ol_with_threads = mach ; then
16058 for ac_hdr in mach/cthreads.h cthreads.h
16060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16062 echo "configure:16063: checking for $ac_hdr" >&5
16063 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16064 echo $ac_n "(cached) $ac_c" 1>&6
16066 cat > conftest.$ac_ext <<EOF
16067 #line 16068 "configure"
16068 #include "confdefs.h"
16071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16072 { (eval echo configure:16073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16074 if test -z "$ac_err"; then
16076 eval "ac_cv_header_$ac_safe=yes"
16079 echo "configure: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16082 eval "ac_cv_header_$ac_safe=no"
16086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16087 echo "$ac_t""yes" 1>&6
16088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16089 cat >> confdefs.h <<EOF
16090 #define $ac_tr_hdr 1
16094 echo "$ac_t""no" 1>&6
16098 if test $ac_cv_header_mach_cthreads_h = yes ; then
16099 ol_with_threads=found
16101 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16102 echo "configure:16103: checking for cthread_fork" >&5
16103 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16104 echo $ac_n "(cached) $ac_c" 1>&6
16106 cat > conftest.$ac_ext <<EOF
16107 #line 16108 "configure"
16108 #include "confdefs.h"
16109 /* System header to define __stub macros and hopefully few prototypes,
16110 which can conflict with char cthread_fork(); below. */
16111 #include <assert.h>
16112 /* Override any gcc2 internal prototype to avoid an error. */
16113 /* We use char because int might match the return type of a gcc2
16114 builtin and then its argument prototype would still apply. */
16115 char cthread_fork();
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16131 if { (eval echo configure:16132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16133 eval "ac_cv_func_cthread_fork=yes"
16135 echo "configure: failed program was:" >&5
16136 cat conftest.$ac_ext >&5
16138 eval "ac_cv_func_cthread_fork=no"
16143 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16144 echo "$ac_t""yes" 1>&6
16145 ol_link_threads=yes
16147 echo "$ac_t""no" 1>&6
16151 if test $ol_link_threads = no ; then
16152 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16153 echo "configure:16154: checking for cthread_fork with -all_load" >&5
16154 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16155 echo $ac_n "(cached) $ac_c" 1>&6
16159 LIBS="-all_load $LIBS"
16160 cat > conftest.$ac_ext <<EOF
16161 #line 16162 "configure"
16162 #include "confdefs.h"
16163 #include <mach/cthreads.h>
16166 cthread_fork((void *)0, (void *)0);
16170 if { (eval echo configure:16171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16172 ol_cv_cthread_all_load=yes
16174 echo "configure: failed program was:" >&5
16175 cat conftest.$ac_ext >&5
16177 ol_cv_cthread_all_load=no
16184 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16186 if test $ol_cv_cthread_all_load = yes ; then
16187 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16188 ol_link_threads=mach
16189 ol_with_threads=found
16193 elif test $ac_cv_header_cthreads_h = yes ; then
16195 ol_with_threads=found
16198 LIBS="$LIBS -lthreads"
16199 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16200 echo "configure:16201: checking for cthread_fork" >&5
16201 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
16204 cat > conftest.$ac_ext <<EOF
16205 #line 16206 "configure"
16206 #include "confdefs.h"
16207 /* System header to define __stub macros and hopefully few prototypes,
16208 which can conflict with char cthread_fork(); below. */
16209 #include <assert.h>
16210 /* Override any gcc2 internal prototype to avoid an error. */
16211 /* We use char because int might match the return type of a gcc2
16212 builtin and then its argument prototype would still apply. */
16213 char cthread_fork();
16218 /* The GNU C library defines this for functions which it implements
16219 to always fail with ENOSYS. Some functions are actually named
16220 something starting with __ and the normal name is an alias. */
16221 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16229 if { (eval echo configure:16230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16231 eval "ac_cv_func_cthread_fork=yes"
16233 echo "configure: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16236 eval "ac_cv_func_cthread_fork=no"
16241 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16242 echo "$ac_t""yes" 1>&6
16243 ol_link_threads=yes
16245 echo "$ac_t""no" 1>&6
16250 if test $ol_link_threads = yes ; then
16251 LTHREAD_LIBS="-lthreads"
16252 ol_link_threads=mach
16253 ol_with_threads=found
16255 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16258 elif test $ol_with_threads = mach ; then
16259 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16262 if test $ol_link_threads = mach ; then
16263 cat >> confdefs.h <<\EOF
16264 #define HAVE_MACH_CTHREADS 1
16267 elif test $ol_with_threads = found ; then
16268 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16272 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16273 -o $ol_with_threads = pth ; then
16275 for ac_hdr in pth.h
16277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16279 echo "configure:16280: checking for $ac_hdr" >&5
16280 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16281 echo $ac_n "(cached) $ac_c" 1>&6
16283 cat > conftest.$ac_ext <<EOF
16284 #line 16285 "configure"
16285 #include "confdefs.h"
16288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16289 { (eval echo configure:16290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16291 if test -z "$ac_err"; then
16293 eval "ac_cv_header_$ac_safe=yes"
16296 echo "configure: failed program was:" >&5
16297 cat conftest.$ac_ext >&5
16299 eval "ac_cv_header_$ac_safe=no"
16303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16304 echo "$ac_t""yes" 1>&6
16305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16306 cat >> confdefs.h <<EOF
16307 #define $ac_tr_hdr 1
16311 echo "$ac_t""no" 1>&6
16316 if test $ac_cv_header_pth_h = yes ; then
16317 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16318 echo "configure:16319: checking for pth_version in -lpth" >&5
16319 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16321 echo $ac_n "(cached) $ac_c" 1>&6
16323 ac_save_LIBS="$LIBS"
16325 cat > conftest.$ac_ext <<EOF
16326 #line 16327 "configure"
16327 #include "confdefs.h"
16328 /* Override any gcc2 internal prototype to avoid an error. */
16329 /* We use char because int might match the return type of a gcc2
16330 builtin and then its argument prototype would still apply. */
16331 char pth_version();
16337 if { (eval echo configure:16338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16339 eval "ac_cv_lib_$ac_lib_var=yes"
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16344 eval "ac_cv_lib_$ac_lib_var=no"
16347 LIBS="$ac_save_LIBS"
16350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16351 echo "$ac_t""yes" 1>&6
16354 echo "$ac_t""no" 1>&6
16359 if test $have_pth = yes ; then
16360 cat >> confdefs.h <<\EOF
16361 #define HAVE_GNU_PTH 1
16364 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16365 ol_link_threads=pth
16366 ol_with_threads=found
16368 if test $ol_with_yielding_select = auto ; then
16369 ol_with_yielding_select=yes
16375 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16376 -o $ol_with_threads = lwp ; then
16378 for ac_hdr in thread.h synch.h
16380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16382 echo "configure:16383: checking for $ac_hdr" >&5
16383 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16392 { (eval echo configure:16393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16394 if test -z "$ac_err"; then
16396 eval "ac_cv_header_$ac_safe=yes"
16399 echo "configure: failed program was:" >&5
16400 cat conftest.$ac_ext >&5
16402 eval "ac_cv_header_$ac_safe=no"
16406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16407 echo "$ac_t""yes" 1>&6
16408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16409 cat >> confdefs.h <<EOF
16410 #define $ac_tr_hdr 1
16414 echo "$ac_t""no" 1>&6
16418 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16419 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16420 echo "configure:16421: checking for thr_create in -lthread" >&5
16421 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16423 echo $ac_n "(cached) $ac_c" 1>&6
16425 ac_save_LIBS="$LIBS"
16426 LIBS="-lthread $LIBS"
16427 cat > conftest.$ac_ext <<EOF
16428 #line 16429 "configure"
16429 #include "confdefs.h"
16430 /* Override any gcc2 internal prototype to avoid an error. */
16431 /* We use char because int might match the return type of a gcc2
16432 builtin and then its argument prototype would still apply. */
16439 if { (eval echo configure:16440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16441 eval "ac_cv_lib_$ac_lib_var=yes"
16443 echo "configure: failed program was:" >&5
16444 cat conftest.$ac_ext >&5
16446 eval "ac_cv_lib_$ac_lib_var=no"
16449 LIBS="$ac_save_LIBS"
16452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16453 echo "$ac_t""yes" 1>&6
16456 echo "$ac_t""no" 1>&6
16461 if test $have_thr = yes ; then
16462 cat >> confdefs.h <<\EOF
16466 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16467 ol_link_threads=thr
16469 if test $ol_with_yielding_select = auto ; then
16470 ol_with_yielding_select=yes
16474 thr_setconcurrency \
16475 thr_getconcurrency \
16478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16479 echo "configure:16480: checking for $ac_func" >&5
16480 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
16483 cat > conftest.$ac_ext <<EOF
16484 #line 16485 "configure"
16485 #include "confdefs.h"
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func(); below. */
16488 #include <assert.h>
16489 /* Override any gcc2 internal prototype to avoid an error. */
16490 /* We use char because int might match the return type of a gcc2
16491 builtin and then its argument prototype would still apply. */
16497 /* The GNU C library defines this for functions which it implements
16498 to always fail with ENOSYS. Some functions are actually named
16499 something starting with __ and the normal name is an alias. */
16500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16508 if { (eval echo configure:16509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16510 eval "ac_cv_func_$ac_func=yes"
16512 echo "configure: failed program was:" >&5
16513 cat conftest.$ac_ext >&5
16515 eval "ac_cv_func_$ac_func=no"
16520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16521 echo "$ac_t""yes" 1>&6
16522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16523 cat >> confdefs.h <<EOF
16524 #define $ac_tr_func 1
16528 echo "$ac_t""no" 1>&6
16535 for ac_hdr in lwp/lwp.h
16537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16539 echo "configure:16540: checking for $ac_hdr" >&5
16540 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16543 cat > conftest.$ac_ext <<EOF
16544 #line 16545 "configure"
16545 #include "confdefs.h"
16548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16549 { (eval echo configure:16550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16551 if test -z "$ac_err"; then
16553 eval "ac_cv_header_$ac_safe=yes"
16556 echo "configure: failed program was:" >&5
16557 cat conftest.$ac_ext >&5
16559 eval "ac_cv_header_$ac_safe=no"
16563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16564 echo "$ac_t""yes" 1>&6
16565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16566 cat >> confdefs.h <<EOF
16567 #define $ac_tr_hdr 1
16571 echo "$ac_t""no" 1>&6
16575 if test $ac_cv_header_lwp_lwp_h = yes ; then
16576 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16577 echo "configure:16578: checking for lwp_create in -llwp" >&5
16578 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16580 echo $ac_n "(cached) $ac_c" 1>&6
16582 ac_save_LIBS="$LIBS"
16584 cat > conftest.$ac_ext <<EOF
16585 #line 16586 "configure"
16586 #include "confdefs.h"
16587 /* Override any gcc2 internal prototype to avoid an error. */
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16596 if { (eval echo configure:16597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16598 eval "ac_cv_lib_$ac_lib_var=yes"
16600 echo "configure: failed program was:" >&5
16601 cat conftest.$ac_ext >&5
16603 eval "ac_cv_lib_$ac_lib_var=no"
16606 LIBS="$ac_save_LIBS"
16609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16610 echo "$ac_t""yes" 1>&6
16613 echo "$ac_t""no" 1>&6
16618 if test $have_lwp = yes ; then
16619 cat >> confdefs.h <<\EOF
16623 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16624 ol_link_threads=lwp
16626 if test $ol_with_yielding_select = auto ; then
16627 ol_with_yielding_select=no
16633 if test $ol_with_yielding_select = yes ; then
16634 cat >> confdefs.h <<\EOF
16635 #define HAVE_YIELDING_SELECT 1
16640 if test $ol_with_threads = manual ; then
16641 ol_link_threads=yes
16643 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16645 for ac_hdr in pthread.h sched.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 for ac_func in sched_yield pthread_yield
16687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16688 echo "configure:16689: checking for $ac_func" >&5
16689 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16690 echo $ac_n "(cached) $ac_c" 1>&6
16692 cat > conftest.$ac_ext <<EOF
16693 #line 16694 "configure"
16694 #include "confdefs.h"
16695 /* System header to define __stub macros and hopefully few prototypes,
16696 which can conflict with char $ac_func(); below. */
16697 #include <assert.h>
16698 /* Override any gcc2 internal prototype to avoid an error. */
16699 /* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16706 /* The GNU C library defines this for functions which it implements
16707 to always fail with ENOSYS. Some functions are actually named
16708 something starting with __ and the normal name is an alias. */
16709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16717 if { (eval echo configure:16718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16719 eval "ac_cv_func_$ac_func=yes"
16721 echo "configure: failed program was:" >&5
16722 cat conftest.$ac_ext >&5
16724 eval "ac_cv_func_$ac_func=no"
16729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16730 echo "$ac_t""yes" 1>&6
16731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16732 cat >> confdefs.h <<EOF
16733 #define $ac_tr_func 1
16737 echo "$ac_t""no" 1>&6
16742 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16743 echo "configure:16744: checking for LinuxThreads pthread.h" >&5
16744 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16745 echo $ac_n "(cached) $ac_c" 1>&6
16747 cat > conftest.$ac_ext <<EOF
16748 #line 16749 "configure"
16749 #include "confdefs.h"
16750 #include <pthread.h>
16752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16753 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16755 ol_cv_header_linux_threads=yes
16758 ol_cv_header_linux_threads=no
16765 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16766 if test $ol_cv_header_linux_threads = yes; then
16767 cat >> confdefs.h <<\EOF
16768 #define HAVE_LINUX_THREADS 1
16774 for ac_hdr in mach/cthreads.h
16776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16778 echo "configure:16779: checking for $ac_hdr" >&5
16779 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16780 echo $ac_n "(cached) $ac_c" 1>&6
16782 cat > conftest.$ac_ext <<EOF
16783 #line 16784 "configure"
16784 #include "confdefs.h"
16787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16788 { (eval echo configure:16789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16790 if test -z "$ac_err"; then
16792 eval "ac_cv_header_$ac_safe=yes"
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16798 eval "ac_cv_header_$ac_safe=no"
16802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16803 echo "$ac_t""yes" 1>&6
16804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16805 cat >> confdefs.h <<EOF
16806 #define $ac_tr_hdr 1
16810 echo "$ac_t""no" 1>&6
16814 for ac_hdr in lwp/lwp.h
16816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16818 echo "configure:16819: checking for $ac_hdr" >&5
16819 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
16822 cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16828 { (eval echo configure:16829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16830 if test -z "$ac_err"; then
16832 eval "ac_cv_header_$ac_safe=yes"
16835 echo "configure: failed program was:" >&5
16836 cat conftest.$ac_ext >&5
16838 eval "ac_cv_header_$ac_safe=no"
16842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16843 echo "$ac_t""yes" 1>&6
16844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16845 cat >> confdefs.h <<EOF
16846 #define $ac_tr_hdr 1
16850 echo "$ac_t""no" 1>&6
16854 for ac_hdr in thread.h synch.h
16856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16858 echo "configure:16859: checking for $ac_hdr" >&5
16859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16860 echo $ac_n "(cached) $ac_c" 1>&6
16862 cat > conftest.$ac_ext <<EOF
16863 #line 16864 "configure"
16864 #include "confdefs.h"
16867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16868 { (eval echo configure:16869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16870 if test -z "$ac_err"; then
16872 eval "ac_cv_header_$ac_safe=yes"
16875 echo "configure: failed program was:" >&5
16876 cat conftest.$ac_ext >&5
16878 eval "ac_cv_header_$ac_safe=no"
16882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16883 echo "$ac_t""yes" 1>&6
16884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16885 cat >> confdefs.h <<EOF
16886 #define $ac_tr_hdr 1
16890 echo "$ac_t""no" 1>&6
16896 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16897 cat >> confdefs.h <<\EOF
16898 #define REENTRANT 1
16901 cat >> confdefs.h <<\EOF
16902 #define _REENTRANT 1
16905 cat >> confdefs.h <<\EOF
16906 #define THREAD_SAFE 1
16909 cat >> confdefs.h <<\EOF
16910 #define _THREAD_SAFE 1
16913 cat >> confdefs.h <<\EOF
16914 #define THREADSAFE 1
16917 cat >> confdefs.h <<\EOF
16918 #define _THREADSAFE 1
16921 cat >> confdefs.h <<\EOF
16922 #define _SGI_MP_SOURCE 1
16926 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16927 echo "configure:16928: checking for thread specific errno" >&5
16928 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16929 echo $ac_n "(cached) $ac_c" 1>&6
16932 cat > conftest.$ac_ext <<EOF
16933 #line 16934 "configure"
16934 #include "confdefs.h"
16940 if { (eval echo configure:16941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16942 ol_cv_errno_thread_specific=yes
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16947 ol_cv_errno_thread_specific=no
16953 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16955 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16956 echo "configure:16957: checking for thread specific h_errno" >&5
16957 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16958 echo $ac_n "(cached) $ac_c" 1>&6
16961 cat > conftest.$ac_ext <<EOF
16962 #line 16963 "configure"
16963 #include "confdefs.h"
16969 if { (eval echo configure:16970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16971 ol_cv_h_errno_thread_specific=yes
16973 echo "configure: failed program was:" >&5
16974 cat conftest.$ac_ext >&5
16976 ol_cv_h_errno_thread_specific=no
16982 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16984 if test $ol_cv_errno_thread_specific != yes \
16985 -o $ol_cv_h_errno_thread_specific != yes ; then
16986 LIBS="$LTHREAD_LIBS $LIBS"
16992 if test $ol_link_threads = no ; then
16993 if test $ol_with_threads = yes ; then
16994 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16997 if test $ol_with_threads = auto ; then
16998 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
17002 cat >> confdefs.h <<\EOF
17003 #define NO_THREADS 1
17009 if test $ol_link_threads != no ; then
17010 cat >> confdefs.h <<\EOF
17011 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
17018 if test $ol_with_ldbm_api = auto \
17019 -o $ol_with_ldbm_api = berkeley \
17020 -o $ol_with_ldbm_api = bcompat ; then
17022 if test $ol_with_ldbm_api = bcompat; then \
17023 for ac_hdr in db_185.h db.h
17025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17027 echo "configure:17028: checking for $ac_hdr" >&5
17028 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17031 cat > conftest.$ac_ext <<EOF
17032 #line 17033 "configure"
17033 #include "confdefs.h"
17036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17037 { (eval echo configure:17038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17039 if test -z "$ac_err"; then
17041 eval "ac_cv_header_$ac_safe=yes"
17044 echo "configure: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17047 eval "ac_cv_header_$ac_safe=no"
17051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17052 echo "$ac_t""yes" 1>&6
17053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17054 cat >> confdefs.h <<EOF
17055 #define $ac_tr_hdr 1
17059 echo "$ac_t""no" 1>&6
17063 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17064 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17065 echo "configure:17066: checking if Berkeley DB header compatibility" >&5
17066 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17067 echo $ac_n "(cached) $ac_c" 1>&6
17070 cat > conftest.$ac_ext <<EOF
17071 #line 17072 "configure"
17072 #include "confdefs.h"
17075 # include <db_185.h>
17080 /* this check could be improved */
17081 #ifndef DB_VERSION_MAJOR
17082 # define DB_VERSION_MAJOR 1
17085 #if DB_VERSION_MAJOR == 1
17090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17091 egrep "__db_version_1" >/dev/null 2>&1; then
17093 ol_cv_header_db1=yes
17096 ol_cv_header_db1=no
17102 echo "$ac_t""$ol_cv_header_db1" 1>&6
17104 if test $ol_cv_header_db1 = yes ; then
17106 if test $ol_cv_lib_db = no ; then
17107 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17108 echo "configure:17109: checking for Berkeley DB link (default)" >&5
17109 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17110 echo $ac_n "(cached) $ac_c" 1>&6
17115 LIBS="$ol_DB_LIB $LIBS"
17117 cat > conftest.$ac_ext <<EOF
17118 #line 17119 "configure"
17119 #include "confdefs.h"
17121 #ifdef HAVE_DB_185_H
17122 # include <db_185.h>
17127 #ifndef DB_VERSION_MAJOR
17128 # define DB_VERSION_MAJOR 1
17132 #define NULL ((void*)0)
17137 #if DB_VERSION_MAJOR > 1
17140 int major, minor, patch;
17142 version = db_version( &major, &minor, &patch );
17144 if( major != DB_VERSION_MAJOR ||
17145 minor < DB_VERSION_MINOR )
17147 printf("Berkeley DB version mismatch\n"
17148 "\texpected: %s\n\tgot: %s\n",
17149 DB_VERSION_STRING, version);
17155 #if DB_VERSION_MAJOR > 2
17156 db_env_create( NULL, 0 );
17157 #elif DB_VERSION_MAJOR > 1
17158 db_appexit( NULL );
17160 (void) dbopen( NULL, 0, 0, 0, NULL);
17165 if { (eval echo configure:17166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17169 echo "configure: failed program was:" >&5
17170 cat conftest.$ac_ext >&5
17180 echo "$ac_t""$ol_cv_db_none" 1>&6
17182 if test $ol_cv_db_none = yes ; then
17187 if test $ol_cv_lib_db = no ; then
17188 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17189 echo "configure:17190: checking for Berkeley DB link (-ldb4)" >&5
17190 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17191 echo $ac_n "(cached) $ac_c" 1>&6
17196 LIBS="$ol_DB_LIB $LIBS"
17198 cat > conftest.$ac_ext <<EOF
17199 #line 17200 "configure"
17200 #include "confdefs.h"
17202 #ifdef HAVE_DB_185_H
17203 # include <db_185.h>
17208 #ifndef DB_VERSION_MAJOR
17209 # define DB_VERSION_MAJOR 1
17213 #define NULL ((void*)0)
17218 #if DB_VERSION_MAJOR > 1
17221 int major, minor, patch;
17223 version = db_version( &major, &minor, &patch );
17225 if( major != DB_VERSION_MAJOR ||
17226 minor < DB_VERSION_MINOR )
17228 printf("Berkeley DB version mismatch\n"
17229 "\texpected: %s\n\tgot: %s\n",
17230 DB_VERSION_STRING, version);
17236 #if DB_VERSION_MAJOR > 2
17237 db_env_create( NULL, 0 );
17238 #elif DB_VERSION_MAJOR > 1
17239 db_appexit( NULL );
17241 (void) dbopen( NULL, 0, 0, 0, NULL);
17246 if { (eval echo configure:17247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17250 echo "configure: failed program was:" >&5
17251 cat conftest.$ac_ext >&5
17261 echo "$ac_t""$ol_cv_db_db4" 1>&6
17263 if test $ol_cv_db_db4 = yes ; then
17268 if test $ol_cv_lib_db = no ; then
17269 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17270 echo "configure:17271: checking for Berkeley DB link (-ldb)" >&5
17271 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17272 echo $ac_n "(cached) $ac_c" 1>&6
17277 LIBS="$ol_DB_LIB $LIBS"
17279 cat > conftest.$ac_ext <<EOF
17280 #line 17281 "configure"
17281 #include "confdefs.h"
17283 #ifdef HAVE_DB_185_H
17284 # include <db_185.h>
17289 #ifndef DB_VERSION_MAJOR
17290 # define DB_VERSION_MAJOR 1
17294 #define NULL ((void*)0)
17299 #if DB_VERSION_MAJOR > 1
17302 int major, minor, patch;
17304 version = db_version( &major, &minor, &patch );
17306 if( major != DB_VERSION_MAJOR ||
17307 minor < DB_VERSION_MINOR )
17309 printf("Berkeley DB version mismatch\n"
17310 "\texpected: %s\n\tgot: %s\n",
17311 DB_VERSION_STRING, version);
17317 #if DB_VERSION_MAJOR > 2
17318 db_env_create( NULL, 0 );
17319 #elif DB_VERSION_MAJOR > 1
17320 db_appexit( NULL );
17322 (void) dbopen( NULL, 0, 0, 0, NULL);
17327 if { (eval echo configure:17328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17331 echo "configure: failed program was:" >&5
17332 cat conftest.$ac_ext >&5
17342 echo "$ac_t""$ol_cv_db_db" 1>&6
17344 if test $ol_cv_db_db = yes ; then
17349 if test $ol_cv_lib_db = no ; then
17350 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17351 echo "configure:17352: checking for Berkeley DB link (-ldb3)" >&5
17352 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17353 echo $ac_n "(cached) $ac_c" 1>&6
17358 LIBS="$ol_DB_LIB $LIBS"
17360 cat > conftest.$ac_ext <<EOF
17361 #line 17362 "configure"
17362 #include "confdefs.h"
17364 #ifdef HAVE_DB_185_H
17365 # include <db_185.h>
17370 #ifndef DB_VERSION_MAJOR
17371 # define DB_VERSION_MAJOR 1
17375 #define NULL ((void*)0)
17380 #if DB_VERSION_MAJOR > 1
17383 int major, minor, patch;
17385 version = db_version( &major, &minor, &patch );
17387 if( major != DB_VERSION_MAJOR ||
17388 minor < DB_VERSION_MINOR )
17390 printf("Berkeley DB version mismatch\n"
17391 "\texpected: %s\n\tgot: %s\n",
17392 DB_VERSION_STRING, version);
17398 #if DB_VERSION_MAJOR > 2
17399 db_env_create( NULL, 0 );
17400 #elif DB_VERSION_MAJOR > 1
17401 db_appexit( NULL );
17403 (void) dbopen( NULL, 0, 0, 0, NULL);
17408 if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17412 echo "configure: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17423 echo "$ac_t""$ol_cv_db_db3" 1>&6
17425 if test $ol_cv_db_db3 = yes ; then
17430 if test $ol_cv_lib_db = no ; then
17431 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17432 echo "configure:17433: checking for Berkeley DB link (-ldb2)" >&5
17433 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17434 echo $ac_n "(cached) $ac_c" 1>&6
17439 LIBS="$ol_DB_LIB $LIBS"
17441 cat > conftest.$ac_ext <<EOF
17442 #line 17443 "configure"
17443 #include "confdefs.h"
17445 #ifdef HAVE_DB_185_H
17446 # include <db_185.h>
17451 #ifndef DB_VERSION_MAJOR
17452 # define DB_VERSION_MAJOR 1
17456 #define NULL ((void*)0)
17461 #if DB_VERSION_MAJOR > 1
17464 int major, minor, patch;
17466 version = db_version( &major, &minor, &patch );
17468 if( major != DB_VERSION_MAJOR ||
17469 minor < DB_VERSION_MINOR )
17471 printf("Berkeley DB version mismatch\n"
17472 "\texpected: %s\n\tgot: %s\n",
17473 DB_VERSION_STRING, version);
17479 #if DB_VERSION_MAJOR > 2
17480 db_env_create( NULL, 0 );
17481 #elif DB_VERSION_MAJOR > 1
17482 db_appexit( NULL );
17484 (void) dbopen( NULL, 0, 0, 0, NULL);
17489 if { (eval echo configure:17490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17493 echo "configure: failed program was:" >&5
17494 cat conftest.$ac_ext >&5
17504 echo "$ac_t""$ol_cv_db_db2" 1>&6
17506 if test $ol_cv_db_db2 = yes ; then
17511 if test $ol_cv_lib_db = no ; then
17512 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17513 echo "configure:17514: checking for Berkeley DB link (-ldb1)" >&5
17514 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17515 echo $ac_n "(cached) $ac_c" 1>&6
17520 LIBS="$ol_DB_LIB $LIBS"
17522 cat > conftest.$ac_ext <<EOF
17523 #line 17524 "configure"
17524 #include "confdefs.h"
17526 #ifdef HAVE_DB_185_H
17527 # include <db_185.h>
17532 #ifndef DB_VERSION_MAJOR
17533 # define DB_VERSION_MAJOR 1
17537 #define NULL ((void*)0)
17542 #if DB_VERSION_MAJOR > 1
17545 int major, minor, patch;
17547 version = db_version( &major, &minor, &patch );
17549 if( major != DB_VERSION_MAJOR ||
17550 minor < DB_VERSION_MINOR )
17552 printf("Berkeley DB version mismatch\n"
17553 "\texpected: %s\n\tgot: %s\n",
17554 DB_VERSION_STRING, version);
17560 #if DB_VERSION_MAJOR > 2
17561 db_env_create( NULL, 0 );
17562 #elif DB_VERSION_MAJOR > 1
17563 db_appexit( NULL );
17565 (void) dbopen( NULL, 0, 0, 0, NULL);
17570 if { (eval echo configure:17571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17574 echo "configure: failed program was:" >&5
17575 cat conftest.$ac_ext >&5
17585 echo "$ac_t""$ol_cv_db_db1" 1>&6
17587 if test $ol_cv_db_db1 = yes ; then
17593 if test "$ol_cv_lib_db" != no ; then
17594 ol_cv_berkeley_db=yes
17600 ol_cv_berkeley_db=no
17603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17605 echo "configure:17606: checking for $ac_hdr" >&5
17606 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17607 echo $ac_n "(cached) $ac_c" 1>&6
17609 cat > conftest.$ac_ext <<EOF
17610 #line 17611 "configure"
17611 #include "confdefs.h"
17614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17615 { (eval echo configure:17616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17617 if test -z "$ac_err"; then
17619 eval "ac_cv_header_$ac_safe=yes"
17622 echo "configure: failed program was:" >&5
17623 cat conftest.$ac_ext >&5
17625 eval "ac_cv_header_$ac_safe=no"
17629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17630 echo "$ac_t""yes" 1>&6
17631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17632 cat >> confdefs.h <<EOF
17633 #define $ac_tr_hdr 1
17637 echo "$ac_t""no" 1>&6
17641 if test $ac_cv_header_db_h = yes; then
17643 if test $ol_cv_lib_db = no ; then
17644 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17645 echo "configure:17646: checking for Berkeley DB link (default)" >&5
17646 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17647 echo $ac_n "(cached) $ac_c" 1>&6
17652 LIBS="$ol_DB_LIB $LIBS"
17654 cat > conftest.$ac_ext <<EOF
17655 #line 17656 "configure"
17656 #include "confdefs.h"
17658 #ifdef HAVE_DB_185_H
17659 # include <db_185.h>
17664 #ifndef DB_VERSION_MAJOR
17665 # define DB_VERSION_MAJOR 1
17669 #define NULL ((void*)0)
17674 #if DB_VERSION_MAJOR > 1
17677 int major, minor, patch;
17679 version = db_version( &major, &minor, &patch );
17681 if( major != DB_VERSION_MAJOR ||
17682 minor < DB_VERSION_MINOR )
17684 printf("Berkeley DB version mismatch\n"
17685 "\texpected: %s\n\tgot: %s\n",
17686 DB_VERSION_STRING, version);
17692 #if DB_VERSION_MAJOR > 2
17693 db_env_create( NULL, 0 );
17694 #elif DB_VERSION_MAJOR > 1
17695 db_appexit( NULL );
17697 (void) dbopen( NULL, 0, 0, 0, NULL);
17702 if { (eval echo configure:17703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17706 echo "configure: failed program was:" >&5
17707 cat conftest.$ac_ext >&5
17717 echo "$ac_t""$ol_cv_db_none" 1>&6
17719 if test $ol_cv_db_none = yes ; then
17724 if test $ol_cv_lib_db = no ; then
17725 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17726 echo "configure:17727: checking for Berkeley DB link (-ldb4)" >&5
17727 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17728 echo $ac_n "(cached) $ac_c" 1>&6
17733 LIBS="$ol_DB_LIB $LIBS"
17735 cat > conftest.$ac_ext <<EOF
17736 #line 17737 "configure"
17737 #include "confdefs.h"
17739 #ifdef HAVE_DB_185_H
17740 # include <db_185.h>
17745 #ifndef DB_VERSION_MAJOR
17746 # define DB_VERSION_MAJOR 1
17750 #define NULL ((void*)0)
17755 #if DB_VERSION_MAJOR > 1
17758 int major, minor, patch;
17760 version = db_version( &major, &minor, &patch );
17762 if( major != DB_VERSION_MAJOR ||
17763 minor < DB_VERSION_MINOR )
17765 printf("Berkeley DB version mismatch\n"
17766 "\texpected: %s\n\tgot: %s\n",
17767 DB_VERSION_STRING, version);
17773 #if DB_VERSION_MAJOR > 2
17774 db_env_create( NULL, 0 );
17775 #elif DB_VERSION_MAJOR > 1
17776 db_appexit( NULL );
17778 (void) dbopen( NULL, 0, 0, 0, NULL);
17783 if { (eval echo configure:17784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17787 echo "configure: failed program was:" >&5
17788 cat conftest.$ac_ext >&5
17798 echo "$ac_t""$ol_cv_db_db4" 1>&6
17800 if test $ol_cv_db_db4 = yes ; then
17805 if test $ol_cv_lib_db = no ; then
17806 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17807 echo "configure:17808: checking for Berkeley DB link (-ldb)" >&5
17808 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17809 echo $ac_n "(cached) $ac_c" 1>&6
17814 LIBS="$ol_DB_LIB $LIBS"
17816 cat > conftest.$ac_ext <<EOF
17817 #line 17818 "configure"
17818 #include "confdefs.h"
17820 #ifdef HAVE_DB_185_H
17821 # include <db_185.h>
17826 #ifndef DB_VERSION_MAJOR
17827 # define DB_VERSION_MAJOR 1
17831 #define NULL ((void*)0)
17836 #if DB_VERSION_MAJOR > 1
17839 int major, minor, patch;
17841 version = db_version( &major, &minor, &patch );
17843 if( major != DB_VERSION_MAJOR ||
17844 minor < DB_VERSION_MINOR )
17846 printf("Berkeley DB version mismatch\n"
17847 "\texpected: %s\n\tgot: %s\n",
17848 DB_VERSION_STRING, version);
17854 #if DB_VERSION_MAJOR > 2
17855 db_env_create( NULL, 0 );
17856 #elif DB_VERSION_MAJOR > 1
17857 db_appexit( NULL );
17859 (void) dbopen( NULL, 0, 0, 0, NULL);
17864 if { (eval echo configure:17865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17868 echo "configure: failed program was:" >&5
17869 cat conftest.$ac_ext >&5
17879 echo "$ac_t""$ol_cv_db_db" 1>&6
17881 if test $ol_cv_db_db = yes ; then
17886 if test $ol_cv_lib_db = no ; then
17887 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17888 echo "configure:17889: checking for Berkeley DB link (-ldb3)" >&5
17889 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17890 echo $ac_n "(cached) $ac_c" 1>&6
17895 LIBS="$ol_DB_LIB $LIBS"
17897 cat > conftest.$ac_ext <<EOF
17898 #line 17899 "configure"
17899 #include "confdefs.h"
17901 #ifdef HAVE_DB_185_H
17902 # include <db_185.h>
17907 #ifndef DB_VERSION_MAJOR
17908 # define DB_VERSION_MAJOR 1
17912 #define NULL ((void*)0)
17917 #if DB_VERSION_MAJOR > 1
17920 int major, minor, patch;
17922 version = db_version( &major, &minor, &patch );
17924 if( major != DB_VERSION_MAJOR ||
17925 minor < DB_VERSION_MINOR )
17927 printf("Berkeley DB version mismatch\n"
17928 "\texpected: %s\n\tgot: %s\n",
17929 DB_VERSION_STRING, version);
17935 #if DB_VERSION_MAJOR > 2
17936 db_env_create( NULL, 0 );
17937 #elif DB_VERSION_MAJOR > 1
17938 db_appexit( NULL );
17940 (void) dbopen( NULL, 0, 0, 0, NULL);
17945 if { (eval echo configure:17946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17949 echo "configure: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17960 echo "$ac_t""$ol_cv_db_db3" 1>&6
17962 if test $ol_cv_db_db3 = yes ; then
17967 if test $ol_cv_lib_db = no ; then
17968 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17969 echo "configure:17970: checking for Berkeley DB link (-ldb2)" >&5
17970 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17971 echo $ac_n "(cached) $ac_c" 1>&6
17976 LIBS="$ol_DB_LIB $LIBS"
17978 cat > conftest.$ac_ext <<EOF
17979 #line 17980 "configure"
17980 #include "confdefs.h"
17982 #ifdef HAVE_DB_185_H
17983 # include <db_185.h>
17988 #ifndef DB_VERSION_MAJOR
17989 # define DB_VERSION_MAJOR 1
17993 #define NULL ((void*)0)
17998 #if DB_VERSION_MAJOR > 1
18001 int major, minor, patch;
18003 version = db_version( &major, &minor, &patch );
18005 if( major != DB_VERSION_MAJOR ||
18006 minor < DB_VERSION_MINOR )
18008 printf("Berkeley DB version mismatch\n"
18009 "\texpected: %s\n\tgot: %s\n",
18010 DB_VERSION_STRING, version);
18016 #if DB_VERSION_MAJOR > 2
18017 db_env_create( NULL, 0 );
18018 #elif DB_VERSION_MAJOR > 1
18019 db_appexit( NULL );
18021 (void) dbopen( NULL, 0, 0, 0, NULL);
18026 if { (eval echo configure:18027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18030 echo "configure: failed program was:" >&5
18031 cat conftest.$ac_ext >&5
18041 echo "$ac_t""$ol_cv_db_db2" 1>&6
18043 if test $ol_cv_db_db2 = yes ; then
18048 if test $ol_cv_lib_db = no ; then
18049 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18050 echo "configure:18051: checking for Berkeley DB link (-ldb1)" >&5
18051 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18052 echo $ac_n "(cached) $ac_c" 1>&6
18057 LIBS="$ol_DB_LIB $LIBS"
18059 cat > conftest.$ac_ext <<EOF
18060 #line 18061 "configure"
18061 #include "confdefs.h"
18063 #ifdef HAVE_DB_185_H
18064 # include <db_185.h>
18069 #ifndef DB_VERSION_MAJOR
18070 # define DB_VERSION_MAJOR 1
18074 #define NULL ((void*)0)
18079 #if DB_VERSION_MAJOR > 1
18082 int major, minor, patch;
18084 version = db_version( &major, &minor, &patch );
18086 if( major != DB_VERSION_MAJOR ||
18087 minor < DB_VERSION_MINOR )
18089 printf("Berkeley DB version mismatch\n"
18090 "\texpected: %s\n\tgot: %s\n",
18091 DB_VERSION_STRING, version);
18097 #if DB_VERSION_MAJOR > 2
18098 db_env_create( NULL, 0 );
18099 #elif DB_VERSION_MAJOR > 1
18100 db_appexit( NULL );
18102 (void) dbopen( NULL, 0, 0, 0, NULL);
18107 if { (eval echo configure:18108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18111 echo "configure: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18122 echo "$ac_t""$ol_cv_db_db1" 1>&6
18124 if test $ol_cv_db_db1 = yes ; then
18130 if test "$ol_cv_lib_db" != no ; then
18131 ol_cv_berkeley_db=yes
18132 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18133 echo "configure:18134: checking for Berkeley DB thread support" >&5
18134 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18135 echo $ac_n "(cached) $ac_c" 1>&6
18139 if test $ol_cv_lib_db != yes ; then
18140 LIBS="$ol_cv_lib_db"
18143 if test "$cross_compiling" = yes; then
18144 ol_cv_berkeley_db_thread=cross
18146 cat > conftest.$ac_ext <<EOF
18147 #line 18148 "configure"
18148 #include "confdefs.h"
18150 #ifdef HAVE_DB_185_H
18156 #define NULL ((void *)0)
18161 u_int32_t flags = DB_CREATE |
18167 #if DB_VERSION_MAJOR > 2
18168 DB_ENV *env = NULL;
18170 rc = db_env_create( &env, 0 );
18172 flags |= DB_INIT_MPOOL;
18173 #ifdef DB_MPOOL_PRIVATE
18174 flags |= DB_MPOOL_PRIVATE;
18178 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18182 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18183 rc = env->open( env, NULL, flags, 0 );
18185 rc = env->open( env, NULL, NULL, flags, 0 );
18189 rc = env->close( env, 0 );
18193 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18199 memset( &env, '\0', sizeof(env) );
18201 rc = db_appinit( NULL, NULL, &env, flags );
18204 db_appexit( &env );
18207 unlink("__db_mpool.share");
18208 unlink("__db_lock.share");
18214 if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18216 ol_cv_berkeley_db_thread=yes
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18221 ol_cv_berkeley_db_thread=no
18229 if test $ol_cv_berkeley_db_thread != no ; then
18230 cat >> confdefs.h <<\EOF
18231 #define HAVE_BERKELEY_DB_THREAD 1
18238 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18244 if test $ol_cv_berkeley_db != no ; then
18245 cat >> confdefs.h <<\EOF
18246 #define HAVE_BERKELEY_DB 1
18250 ol_link_ldbm=berkeley
18251 ol_with_ldbm_api=berkeley
18253 if test $ol_with_ldbm_type = hash ; then
18254 cat >> confdefs.h <<\EOF
18255 #define LDBM_USE_DBHASH 1
18259 cat >> confdefs.h <<\EOF
18260 #define LDBM_USE_DBBTREE 1
18265 if test $ol_cv_lib_db != yes ; then
18266 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18271 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18272 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18273 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18274 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18275 echo "configure:18276: checking Berkeley DB version for BDB backend" >&5
18276 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18277 echo $ac_n "(cached) $ac_c" 1>&6
18280 cat > conftest.$ac_ext <<EOF
18281 #line 18282 "configure"
18282 #include "confdefs.h"
18286 /* this check could be improved */
18287 #ifndef DB_VERSION_MAJOR
18288 # define DB_VERSION_MAJOR 1
18291 /* require 4.0 or later */
18292 #if DB_VERSION_MAJOR >= 4
18293 __db_version_compat
18297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18298 egrep "__db_version_compat" >/dev/null 2>&1; then
18300 ol_cv_bdb_compat=yes
18303 ol_cv_bdb_compat=no
18309 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18312 if test $ol_cv_bdb_compat = yes ; then
18314 elif test $ol_enable_bdb = yes ; then
18315 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18321 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18322 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18323 ol_with_ldbm_api=none
18326 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18327 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18328 echo "configure:18329: checking for MDBM library" >&5
18329 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18330 echo $ac_n "(cached) $ac_c" 1>&6
18333 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18334 echo "configure:18335: checking for mdbm_set_chain" >&5
18335 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18336 echo $ac_n "(cached) $ac_c" 1>&6
18338 cat > conftest.$ac_ext <<EOF
18339 #line 18340 "configure"
18340 #include "confdefs.h"
18341 /* System header to define __stub macros and hopefully few prototypes,
18342 which can conflict with char mdbm_set_chain(); below. */
18343 #include <assert.h>
18344 /* Override any gcc2 internal prototype to avoid an error. */
18345 /* We use char because int might match the return type of a gcc2
18346 builtin and then its argument prototype would still apply. */
18347 char mdbm_set_chain();
18352 /* The GNU C library defines this for functions which it implements
18353 to always fail with ENOSYS. Some functions are actually named
18354 something starting with __ and the normal name is an alias. */
18355 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18358 f = mdbm_set_chain;
18363 if { (eval echo configure:18364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18365 eval "ac_cv_func_mdbm_set_chain=yes"
18367 echo "configure: failed program was:" >&5
18368 cat conftest.$ac_ext >&5
18370 eval "ac_cv_func_mdbm_set_chain=no"
18375 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18376 echo "$ac_t""yes" 1>&6
18379 echo "$ac_t""no" 1>&6
18381 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18382 echo "configure:18383: checking for mdbm_set_chain in -lmdbm" >&5
18383 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18384 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18385 echo $ac_n "(cached) $ac_c" 1>&6
18387 ac_save_LIBS="$LIBS"
18388 LIBS="-lmdbm $LIBS"
18389 cat > conftest.$ac_ext <<EOF
18390 #line 18391 "configure"
18391 #include "confdefs.h"
18392 /* Override any gcc2 internal prototype to avoid an error. */
18393 /* We use char because int might match the return type of a gcc2
18394 builtin and then its argument prototype would still apply. */
18395 char mdbm_set_chain();
18401 if { (eval echo configure:18402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18403 eval "ac_cv_lib_$ac_lib_var=yes"
18405 echo "configure: failed program was:" >&5
18406 cat conftest.$ac_ext >&5
18408 eval "ac_cv_lib_$ac_lib_var=no"
18411 LIBS="$ac_save_LIBS"
18414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18415 echo "$ac_t""yes" 1>&6
18416 ol_cv_lib_mdbm=-lmdbm
18418 echo "$ac_t""no" 1>&6
18429 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18432 for ac_hdr in mdbm.h
18434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18436 echo "configure:18437: checking for $ac_hdr" >&5
18437 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18438 echo $ac_n "(cached) $ac_c" 1>&6
18440 cat > conftest.$ac_ext <<EOF
18441 #line 18442 "configure"
18442 #include "confdefs.h"
18445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18446 { (eval echo configure:18447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18448 if test -z "$ac_err"; then
18450 eval "ac_cv_header_$ac_safe=yes"
18453 echo "configure: failed program was:" >&5
18454 cat conftest.$ac_ext >&5
18456 eval "ac_cv_header_$ac_safe=no"
18460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18461 echo "$ac_t""yes" 1>&6
18462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18463 cat >> confdefs.h <<EOF
18464 #define $ac_tr_hdr 1
18468 echo "$ac_t""no" 1>&6
18472 echo $ac_n "checking for db""... $ac_c" 1>&6
18473 echo "configure:18474: checking for db" >&5
18474 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18475 echo $ac_n "(cached) $ac_c" 1>&6
18478 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18486 echo "$ac_t""$ol_cv_mdbm" 1>&6
18487 if test $ol_cv_mdbm = yes ; then
18488 cat >> confdefs.h <<\EOF
18489 #define HAVE_MDBM 1
18495 if test $ol_cv_mdbm = yes ; then
18497 ol_with_ldbm_api=mdbm
18498 if test $ol_cv_lib_mdbm != yes ; then
18499 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18504 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18505 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18506 echo "configure:18507: checking for GDBM library" >&5
18507 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18508 echo $ac_n "(cached) $ac_c" 1>&6
18511 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18512 echo "configure:18513: checking for gdbm_open" >&5
18513 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18514 echo $ac_n "(cached) $ac_c" 1>&6
18516 cat > conftest.$ac_ext <<EOF
18517 #line 18518 "configure"
18518 #include "confdefs.h"
18519 /* System header to define __stub macros and hopefully few prototypes,
18520 which can conflict with char gdbm_open(); below. */
18521 #include <assert.h>
18522 /* Override any gcc2 internal prototype to avoid an error. */
18523 /* We use char because int might match the return type of a gcc2
18524 builtin and then its argument prototype would still apply. */
18530 /* The GNU C library defines this for functions which it implements
18531 to always fail with ENOSYS. Some functions are actually named
18532 something starting with __ and the normal name is an alias. */
18533 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18541 if { (eval echo configure:18542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18543 eval "ac_cv_func_gdbm_open=yes"
18545 echo "configure: failed program was:" >&5
18546 cat conftest.$ac_ext >&5
18548 eval "ac_cv_func_gdbm_open=no"
18553 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18554 echo "$ac_t""yes" 1>&6
18557 echo "$ac_t""no" 1>&6
18559 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18560 echo "configure:18561: checking for gdbm_open in -lgdbm" >&5
18561 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18562 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18563 echo $ac_n "(cached) $ac_c" 1>&6
18565 ac_save_LIBS="$LIBS"
18566 LIBS="-lgdbm $LIBS"
18567 cat > conftest.$ac_ext <<EOF
18568 #line 18569 "configure"
18569 #include "confdefs.h"
18570 /* Override any gcc2 internal prototype to avoid an error. */
18571 /* We use char because int might match the return type of a gcc2
18572 builtin and then its argument prototype would still apply. */
18579 if { (eval echo configure:18580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18581 eval "ac_cv_lib_$ac_lib_var=yes"
18583 echo "configure: failed program was:" >&5
18584 cat conftest.$ac_ext >&5
18586 eval "ac_cv_lib_$ac_lib_var=no"
18589 LIBS="$ac_save_LIBS"
18592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18593 echo "$ac_t""yes" 1>&6
18594 ol_cv_lib_gdbm=-lgdbm
18596 echo "$ac_t""no" 1>&6
18607 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18610 for ac_hdr in gdbm.h
18612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18614 echo "configure:18615: checking for $ac_hdr" >&5
18615 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18616 echo $ac_n "(cached) $ac_c" 1>&6
18618 cat > conftest.$ac_ext <<EOF
18619 #line 18620 "configure"
18620 #include "confdefs.h"
18623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18624 { (eval echo configure:18625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18626 if test -z "$ac_err"; then
18628 eval "ac_cv_header_$ac_safe=yes"
18631 echo "configure: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18634 eval "ac_cv_header_$ac_safe=no"
18638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18639 echo "$ac_t""yes" 1>&6
18640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18641 cat >> confdefs.h <<EOF
18642 #define $ac_tr_hdr 1
18646 echo "$ac_t""no" 1>&6
18650 echo $ac_n "checking for db""... $ac_c" 1>&6
18651 echo "configure:18652: checking for db" >&5
18652 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18653 echo $ac_n "(cached) $ac_c" 1>&6
18656 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18664 echo "$ac_t""$ol_cv_gdbm" 1>&6
18665 if test $ol_cv_gdbm = yes ; then
18666 cat >> confdefs.h <<\EOF
18667 #define HAVE_GDBM 1
18673 if test $ol_cv_gdbm = yes ; then
18675 ol_with_ldbm_api=gdbm
18677 if test $ol_cv_lib_gdbm != yes ; then
18678 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18683 if test $ol_with_ldbm_api = ndbm ; then
18684 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18685 echo "configure:18686: checking for NDBM library" >&5
18686 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18687 echo $ac_n "(cached) $ac_c" 1>&6
18690 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18691 echo "configure:18692: checking for dbm_open" >&5
18692 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18693 echo $ac_n "(cached) $ac_c" 1>&6
18695 cat > conftest.$ac_ext <<EOF
18696 #line 18697 "configure"
18697 #include "confdefs.h"
18698 /* System header to define __stub macros and hopefully few prototypes,
18699 which can conflict with char dbm_open(); below. */
18700 #include <assert.h>
18701 /* Override any gcc2 internal prototype to avoid an error. */
18702 /* We use char because int might match the return type of a gcc2
18703 builtin and then its argument prototype would still apply. */
18709 /* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18720 if { (eval echo configure:18721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18722 eval "ac_cv_func_dbm_open=yes"
18724 echo "configure: failed program was:" >&5
18725 cat conftest.$ac_ext >&5
18727 eval "ac_cv_func_dbm_open=no"
18732 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18733 echo "$ac_t""yes" 1>&6
18736 echo "$ac_t""no" 1>&6
18738 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18739 echo "configure:18740: checking for dbm_open in -lndbm" >&5
18740 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18741 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18742 echo $ac_n "(cached) $ac_c" 1>&6
18744 ac_save_LIBS="$LIBS"
18745 LIBS="-lndbm $LIBS"
18746 cat > conftest.$ac_ext <<EOF
18747 #line 18748 "configure"
18748 #include "confdefs.h"
18749 /* Override any gcc2 internal prototype to avoid an error. */
18750 /* We use char because int might match the return type of a gcc2
18751 builtin and then its argument prototype would still apply. */
18758 if { (eval echo configure:18759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18760 eval "ac_cv_lib_$ac_lib_var=yes"
18762 echo "configure: failed program was:" >&5
18763 cat conftest.$ac_ext >&5
18765 eval "ac_cv_lib_$ac_lib_var=no"
18768 LIBS="$ac_save_LIBS"
18771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18772 echo "$ac_t""yes" 1>&6
18773 ol_cv_lib_ndbm=-lndbm
18775 echo "$ac_t""no" 1>&6
18777 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18778 echo "configure:18779: checking for dbm_open in -ldbm" >&5
18779 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18780 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18781 echo $ac_n "(cached) $ac_c" 1>&6
18783 ac_save_LIBS="$LIBS"
18785 cat > conftest.$ac_ext <<EOF
18786 #line 18787 "configure"
18787 #include "confdefs.h"
18788 /* Override any gcc2 internal prototype to avoid an error. */
18789 /* We use char because int might match the return type of a gcc2
18790 builtin and then its argument prototype would still apply. */
18797 if { (eval echo configure:18798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18799 eval "ac_cv_lib_$ac_lib_var=yes"
18801 echo "configure: failed program was:" >&5
18802 cat conftest.$ac_ext >&5
18804 eval "ac_cv_lib_$ac_lib_var=no"
18807 LIBS="$ac_save_LIBS"
18810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18811 echo "$ac_t""yes" 1>&6
18812 ol_cv_lib_ndbm=-ldbm
18814 echo "$ac_t""no" 1>&6
18827 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18830 for ac_hdr in ndbm.h
18832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18834 echo "configure:18835: checking for $ac_hdr" >&5
18835 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18836 echo $ac_n "(cached) $ac_c" 1>&6
18838 cat > conftest.$ac_ext <<EOF
18839 #line 18840 "configure"
18840 #include "confdefs.h"
18843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18844 { (eval echo configure:18845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18846 if test -z "$ac_err"; then
18848 eval "ac_cv_header_$ac_safe=yes"
18851 echo "configure: failed program was:" >&5
18852 cat conftest.$ac_ext >&5
18854 eval "ac_cv_header_$ac_safe=no"
18858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18859 echo "$ac_t""yes" 1>&6
18860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18861 cat >> confdefs.h <<EOF
18862 #define $ac_tr_hdr 1
18866 echo "$ac_t""no" 1>&6
18870 echo $ac_n "checking for db""... $ac_c" 1>&6
18871 echo "configure:18872: checking for db" >&5
18872 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18873 echo $ac_n "(cached) $ac_c" 1>&6
18876 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18884 echo "$ac_t""$ol_cv_ndbm" 1>&6
18885 if test $ol_cv_ndbm = yes ; then
18886 cat >> confdefs.h <<\EOF
18887 #define HAVE_NDBM 1
18893 if test $ol_cv_ndbm = yes ; then
18895 ol_with_ldbm_api=ndbm
18897 if test $ol_cv_lib_ndbm != yes ; then
18898 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18903 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18904 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18905 if test $ol_enable_ldbm = yes ; then
18906 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18909 echo "configure: warning: disabling LDBM" 1>&2
18913 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18914 BUILD_LIBS_DYNAMIC=shared
18915 cat >> confdefs.h <<\EOF
18916 #define LDAP_LIBS_DYNAMIC 1
18920 BUILD_LIBS_DYNAMIC=static
18923 if test $ol_enable_wrappers != no ; then
18924 for ac_hdr in tcpd.h
18926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18928 echo "configure:18929: checking for $ac_hdr" >&5
18929 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18930 echo $ac_n "(cached) $ac_c" 1>&6
18932 cat > conftest.$ac_ext <<EOF
18933 #line 18934 "configure"
18934 #include "confdefs.h"
18937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18938 { (eval echo configure:18939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18940 if test -z "$ac_err"; then
18942 eval "ac_cv_header_$ac_safe=yes"
18945 echo "configure: failed program was:" >&5
18946 cat conftest.$ac_ext >&5
18948 eval "ac_cv_header_$ac_safe=no"
18952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18953 echo "$ac_t""yes" 1>&6
18954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18955 cat >> confdefs.h <<EOF
18956 #define $ac_tr_hdr 1
18959 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18960 echo "configure:18961: checking for TCP wrappers library" >&5
18962 LIBS="$LIBS -lwrap"
18963 cat > conftest.$ac_ext <<EOF
18964 #line 18965 "configure"
18965 #include "confdefs.h"
18968 int allow_severity = 0;
18969 int deny_severity = 0;
18971 struct request_info *req;
18979 if { (eval echo configure:18980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18981 echo "$ac_t""-lwrap" 1>&6
18985 echo "configure: failed program was:" >&5
18986 cat conftest.$ac_ext >&5
18990 cat > conftest.$ac_ext <<EOF
18991 #line 18992 "configure"
18992 #include "confdefs.h"
18995 int allow_severity = 0;
18996 int deny_severity = 0;
18998 struct request_info *req;
19006 if { (eval echo configure:19007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19008 echo "$ac_t""-lwrap -lnsl" 1>&6
19010 LIBS="$save_LIBS -lnsl"
19012 echo "configure: failed program was:" >&5
19013 cat conftest.$ac_ext >&5
19016 echo "$ac_t""no" 1>&6
19024 echo "$ac_t""no" 1>&6
19030 if test $have_wrappers = yes ; then
19031 cat >> confdefs.h <<\EOF
19032 #define HAVE_TCPD 1
19036 elif test $ol_enable_wrappers = yes ; then
19037 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19039 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19044 if test $ol_enable_syslog != no ; then
19045 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19046 echo "configure:19047: checking for openlog" >&5
19047 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19048 echo $ac_n "(cached) $ac_c" 1>&6
19050 cat > conftest.$ac_ext <<EOF
19051 #line 19052 "configure"
19052 #include "confdefs.h"
19053 /* System header to define __stub macros and hopefully few prototypes,
19054 which can conflict with char openlog(); below. */
19055 #include <assert.h>
19056 /* Override any gcc2 internal prototype to avoid an error. */
19057 /* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19064 /* The GNU C library defines this for functions which it implements
19065 to always fail with ENOSYS. Some functions are actually named
19066 something starting with __ and the normal name is an alias. */
19067 #if defined (__stub_openlog) || defined (__stub___openlog)
19075 if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19077 eval "ac_cv_func_openlog=yes"
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19082 eval "ac_cv_func_openlog=no"
19087 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19088 echo "$ac_t""yes" 1>&6
19091 echo "$ac_t""no" 1>&6
19094 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19095 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19097 ol_enable_syslog=$ac_cv_func_openlog
19102 if test $ol_enable_sql != no ; then
19103 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19104 echo "configure:19105: checking for SQLDriverConnect in -liodbc" >&5
19105 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19106 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19107 echo $ac_n "(cached) $ac_c" 1>&6
19109 ac_save_LIBS="$LIBS"
19110 LIBS="-liodbc $LIBS"
19111 cat > conftest.$ac_ext <<EOF
19112 #line 19113 "configure"
19113 #include "confdefs.h"
19114 /* Override any gcc2 internal prototype to avoid an error. */
19115 /* We use char because int might match the return type of a gcc2
19116 builtin and then its argument prototype would still apply. */
19117 char SQLDriverConnect();
19123 if { (eval echo configure:19124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19125 eval "ac_cv_lib_$ac_lib_var=yes"
19127 echo "configure: failed program was:" >&5
19128 cat conftest.$ac_ext >&5
19130 eval "ac_cv_lib_$ac_lib_var=no"
19133 LIBS="$ac_save_LIBS"
19136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19137 echo "$ac_t""yes" 1>&6
19140 echo "$ac_t""no" 1>&6
19144 if test $have_iodbc = yes ; then
19145 ol_link_sql="-liodbc"
19147 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19148 echo "configure:19149: checking for SQLDriverConnect in -lodbc" >&5
19149 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19151 echo $ac_n "(cached) $ac_c" 1>&6
19153 ac_save_LIBS="$LIBS"
19154 LIBS="-lodbc $LIBS"
19155 cat > conftest.$ac_ext <<EOF
19156 #line 19157 "configure"
19157 #include "confdefs.h"
19158 /* Override any gcc2 internal prototype to avoid an error. */
19159 /* We use char because int might match the return type of a gcc2
19160 builtin and then its argument prototype would still apply. */
19161 char SQLDriverConnect();
19167 if { (eval echo configure:19168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19169 eval "ac_cv_lib_$ac_lib_var=yes"
19171 echo "configure: failed program was:" >&5
19172 cat conftest.$ac_ext >&5
19174 eval "ac_cv_lib_$ac_lib_var=no"
19177 LIBS="$ac_save_LIBS"
19180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19181 echo "$ac_t""yes" 1>&6
19184 echo "$ac_t""no" 1>&6
19188 if test $have_odbc = yes ; then
19189 ol_link_sql="-lodbc"
19193 if test $ol_link_sql != no ; then
19194 SLAPD_SQL_LIBS="$ol_link_sql"
19196 elif test $ol_enable_sql != auto ; then
19197 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19201 if test $ol_enable_tcl != no ; then
19202 for ac_hdr in tcl.h
19204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19206 echo "configure:19207: checking for $ac_hdr" >&5
19207 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19208 echo $ac_n "(cached) $ac_c" 1>&6
19210 cat > conftest.$ac_ext <<EOF
19211 #line 19212 "configure"
19212 #include "confdefs.h"
19215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19216 { (eval echo configure:19217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19218 if test -z "$ac_err"; then
19220 eval "ac_cv_header_$ac_safe=yes"
19223 echo "configure: failed program was:" >&5
19224 cat conftest.$ac_ext >&5
19226 eval "ac_cv_header_$ac_safe=no"
19230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19231 echo "$ac_t""yes" 1>&6
19232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19233 cat >> confdefs.h <<EOF
19234 #define $ac_tr_hdr 1
19238 echo "$ac_t""no" 1>&6
19243 if test $ac_cv_header_tcl_h != yes ; then
19246 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19247 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19248 echo "configure:19249: checking for main in -l$lib" >&5
19249 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19250 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19251 echo $ac_n "(cached) $ac_c" 1>&6
19253 ac_save_LIBS="$LIBS"
19254 LIBS="-l$lib $LIBS"
19255 cat > conftest.$ac_ext <<EOF
19256 #line 19257 "configure"
19257 #include "confdefs.h"
19263 if { (eval echo configure:19264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19265 eval "ac_cv_lib_$ac_lib_var=yes"
19267 echo "configure: failed program was:" >&5
19268 cat conftest.$ac_ext >&5
19270 eval "ac_cv_lib_$ac_lib_var=no"
19273 LIBS="$ac_save_LIBS"
19276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19277 echo "$ac_t""yes" 1>&6
19279 if test x"$ol_with_tcl_module" = "xstatic" ; then
19280 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19282 MOD_TCL_LIB="-l${lib}"
19285 echo "$ac_t""no" 1>&6
19292 if test $have_tcl != yes ; then
19293 echo "configure: warning: could not find -ltcl" 1>&2
19294 if test $ol_enable_tcl = yes ; then
19295 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19303 for ac_hdr in termcap.h ncurses.h
19305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19307 echo "configure:19308: checking for $ac_hdr" >&5
19308 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19309 echo $ac_n "(cached) $ac_c" 1>&6
19311 cat > conftest.$ac_ext <<EOF
19312 #line 19313 "configure"
19313 #include "confdefs.h"
19316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19317 { (eval echo configure:19318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19319 if test -z "$ac_err"; then
19321 eval "ac_cv_header_$ac_safe=yes"
19324 echo "configure: failed program was:" >&5
19325 cat conftest.$ac_ext >&5
19327 eval "ac_cv_header_$ac_safe=no"
19331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19332 echo "$ac_t""yes" 1>&6
19333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19334 cat >> confdefs.h <<EOF
19335 #define $ac_tr_hdr 1
19339 echo "$ac_t""no" 1>&6
19344 if test $ol_link_termcap = no ; then
19345 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19346 echo "configure:19347: checking for tputs in -ltermcap" >&5
19347 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19348 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19349 echo $ac_n "(cached) $ac_c" 1>&6
19351 ac_save_LIBS="$LIBS"
19352 LIBS="-ltermcap $LIBS"
19353 cat > conftest.$ac_ext <<EOF
19354 #line 19355 "configure"
19355 #include "confdefs.h"
19356 /* Override any gcc2 internal prototype to avoid an error. */
19357 /* We use char because int might match the return type of a gcc2
19358 builtin and then its argument prototype would still apply. */
19365 if { (eval echo configure:19366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19367 eval "ac_cv_lib_$ac_lib_var=yes"
19369 echo "configure: failed program was:" >&5
19370 cat conftest.$ac_ext >&5
19372 eval "ac_cv_lib_$ac_lib_var=no"
19375 LIBS="$ac_save_LIBS"
19378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19379 echo "$ac_t""yes" 1>&6
19382 echo "$ac_t""no" 1>&6
19386 if test $have_termcap = yes ; then
19387 cat >> confdefs.h <<\EOF
19388 #define HAVE_TERMCAP 1
19391 ol_link_termcap=yes
19392 TERMCAP_LIBS=-ltermcap
19396 if test $ol_link_termcap = no ; then
19397 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19398 echo "configure:19399: checking for initscr in -lncurses" >&5
19399 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19401 echo $ac_n "(cached) $ac_c" 1>&6
19403 ac_save_LIBS="$LIBS"
19404 LIBS="-lncurses $LIBS"
19405 cat > conftest.$ac_ext <<EOF
19406 #line 19407 "configure"
19407 #include "confdefs.h"
19408 /* Override any gcc2 internal prototype to avoid an error. */
19409 /* We use char because int might match the return type of a gcc2
19410 builtin and then its argument prototype would still apply. */
19417 if { (eval echo configure:19418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19419 eval "ac_cv_lib_$ac_lib_var=yes"
19421 echo "configure: failed program was:" >&5
19422 cat conftest.$ac_ext >&5
19424 eval "ac_cv_lib_$ac_lib_var=no"
19427 LIBS="$ac_save_LIBS"
19430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19431 echo "$ac_t""yes" 1>&6
19434 echo "$ac_t""no" 1>&6
19438 if test $have_ncurses = yes ; then
19439 cat >> confdefs.h <<\EOF
19440 #define HAVE_NCURSES 1
19443 ol_link_termcap=yes
19444 TERMCAP_LIBS=-lncurses
19448 if test $ol_link_termcap = no ; then
19449 cat >> confdefs.h <<\EOF
19450 #define NO_TERMCAP 1
19458 if test $ol_with_cyrus_sasl != no ; then
19459 for ac_hdr in sasl/sasl.h sasl.h
19461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19463 echo "configure:19464: checking for $ac_hdr" >&5
19464 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19465 echo $ac_n "(cached) $ac_c" 1>&6
19467 cat > conftest.$ac_ext <<EOF
19468 #line 19469 "configure"
19469 #include "confdefs.h"
19472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19473 { (eval echo configure:19474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19475 if test -z "$ac_err"; then
19477 eval "ac_cv_header_$ac_safe=yes"
19480 echo "configure: failed program was:" >&5
19481 cat conftest.$ac_ext >&5
19483 eval "ac_cv_header_$ac_safe=no"
19487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19488 echo "$ac_t""yes" 1>&6
19489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19490 cat >> confdefs.h <<EOF
19491 #define $ac_tr_hdr 1
19495 echo "$ac_t""no" 1>&6
19500 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19501 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19502 echo "configure:19503: checking for sasl_client_init in -lsasl2" >&5
19503 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19504 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19505 echo $ac_n "(cached) $ac_c" 1>&6
19507 ac_save_LIBS="$LIBS"
19508 LIBS="-lsasl2 $LIBS"
19509 cat > conftest.$ac_ext <<EOF
19510 #line 19511 "configure"
19511 #include "confdefs.h"
19512 /* Override any gcc2 internal prototype to avoid an error. */
19513 /* We use char because int might match the return type of a gcc2
19514 builtin and then its argument prototype would still apply. */
19515 char sasl_client_init();
19521 if { (eval echo configure:19522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19523 eval "ac_cv_lib_$ac_lib_var=yes"
19525 echo "configure: failed program was:" >&5
19526 cat conftest.$ac_ext >&5
19528 eval "ac_cv_lib_$ac_lib_var=no"
19531 LIBS="$ac_save_LIBS"
19534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19535 echo "$ac_t""yes" 1>&6
19536 ol_link_sasl="-lsasl2"
19538 echo "$ac_t""no" 1>&6
19539 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19540 echo "configure:19541: checking for sasl_client_init in -lsasl" >&5
19541 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19543 echo $ac_n "(cached) $ac_c" 1>&6
19545 ac_save_LIBS="$LIBS"
19546 LIBS="-lsasl $LIBS"
19547 cat > conftest.$ac_ext <<EOF
19548 #line 19549 "configure"
19549 #include "confdefs.h"
19550 /* Override any gcc2 internal prototype to avoid an error. */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19553 char sasl_client_init();
19559 if { (eval echo configure:19560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19561 eval "ac_cv_lib_$ac_lib_var=yes"
19563 echo "configure: failed program was:" >&5
19564 cat conftest.$ac_ext >&5
19566 eval "ac_cv_lib_$ac_lib_var=no"
19569 LIBS="$ac_save_LIBS"
19572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19573 echo "$ac_t""yes" 1>&6
19574 ol_link_sasl="-lsasl"
19576 echo "$ac_t""no" 1>&6
19583 if test $ol_link_sasl = no ; then
19584 if test $ol_with_cyrus_sasl != auto ; then
19585 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19587 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19588 echo "configure: warning: SASL authentication not supported!" 1>&2
19589 if test $ol_link_tls = no ; then
19590 echo "configure: warning: Strong authentication not supported!" 1>&2
19594 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19595 echo "configure:19596: checking Cyrus SASL library version" >&5
19596 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19597 echo $ac_n "(cached) $ac_c" 1>&6
19600 cat > conftest.$ac_ext <<EOF
19601 #line 19602 "configure"
19602 #include "confdefs.h"
19604 #ifdef HAVE_SASL_SASL_H
19605 #include <sasl/sasl.h>
19610 /* require 2.1.3 or later */
19611 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19612 char *__sasl_compat = "1.5.x okay";
19613 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19614 __sasl_compat "2.2+ or better okay (we guess)";
19615 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19616 && SASL_VERSION_STEP >=3
19617 __sasl_compat = "2.1.3+ or better okay";
19621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19622 egrep "__sasl_compat" >/dev/null 2>&1; then
19624 ol_cv_sasl_compat=yes
19627 ol_cv_sasl_compat=no
19633 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19635 if test $ol_cv_sasl_compat = no ; then
19637 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19640 cat >> confdefs.h <<\EOF
19641 #define HAVE_CYRUS_SASL 1
19644 SASL_LIBS="$ol_link_sasl"
19645 if test $ol_enable_spasswd != no ; then
19646 ol_link_spasswd=yes
19651 echo "configure: warning: SASL authentication not supported!" 1>&2
19652 if test $ol_link_tls = no ; then
19653 echo "configure: warning: Strong authentication not supported!" 1>&2
19657 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19659 if test -r /dev/urandom ; then
19660 dev="/dev/urandom";
19661 elif test -r /idev/urandom ; then
19662 dev="/idev/urandom";
19663 elif test -r /dev/srandom ; then
19664 dev="/dev/srandom";
19665 elif test -r /dev/random ; then
19667 elif test -r /idev/random ; then
19668 dev="/idev/random";
19671 if test $dev != no ; then
19672 cat >> confdefs.h <<EOF
19673 #define URANDOM_DEVICE "$dev"
19680 if test $ol_with_fetch != no ; then
19682 LIBS="-lfetch -lcom_err $LIBS"
19683 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19684 echo "configure:19685: checking fetch(3) library" >&5
19685 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19686 echo $ac_n "(cached) $ac_c" 1>&6
19689 cat > conftest.$ac_ext <<EOF
19690 #line 19691 "configure"
19691 #include "confdefs.h"
19693 #include <sys/param.h>
19697 struct url *u = fetchParseURL("file:///");
19700 if { (eval echo configure:19701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19702 ol_cv_lib_fetch=yes
19704 echo "configure: failed program was:" >&5
19705 cat conftest.$ac_ext >&5
19712 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19714 if test $ol_cv_lib_fetch != no ; then
19715 ol_link_fetch="-lfetch -lcom_err"
19716 cat >> confdefs.h <<\EOF
19717 #define HAVE_FETCH 1
19723 if test $ol_cv_lib_fetch != no ; then
19724 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19725 ol_link_fetch=freebsd
19727 elif test $ol_with_fetch != auto ; then
19728 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19732 ol_link_readline=no
19733 if test $ol_with_readline != no ; then
19734 for ac_hdr in readline/readline.h readline/history.h
19736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19738 echo "configure:19739: checking for $ac_hdr" >&5
19739 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19740 echo $ac_n "(cached) $ac_c" 1>&6
19742 cat > conftest.$ac_ext <<EOF
19743 #line 19744 "configure"
19744 #include "confdefs.h"
19747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19748 { (eval echo configure:19749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19750 if test -z "$ac_err"; then
19752 eval "ac_cv_header_$ac_safe=yes"
19755 echo "configure: failed program was:" >&5
19756 cat conftest.$ac_ext >&5
19758 eval "ac_cv_header_$ac_safe=no"
19762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19763 echo "$ac_t""yes" 1>&6
19764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19765 cat >> confdefs.h <<EOF
19766 #define $ac_tr_hdr 1
19770 echo "$ac_t""no" 1>&6
19775 if test $ac_cv_header_readline_readline_h = yes ; then
19777 LIBS="$TERMCAP_LIBS $LIBS"
19778 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19779 echo "configure:19780: checking for readline in -lreadline" >&5
19780 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19781 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19782 echo $ac_n "(cached) $ac_c" 1>&6
19784 ac_save_LIBS="$LIBS"
19785 LIBS="-lreadline $LIBS"
19786 cat > conftest.$ac_ext <<EOF
19787 #line 19788 "configure"
19788 #include "confdefs.h"
19789 /* Override any gcc2 internal prototype to avoid an error. */
19790 /* We use char because int might match the return type of a gcc2
19791 builtin and then its argument prototype would still apply. */
19798 if { (eval echo configure:19799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19800 eval "ac_cv_lib_$ac_lib_var=yes"
19802 echo "configure: failed program was:" >&5
19803 cat conftest.$ac_ext >&5
19805 eval "ac_cv_lib_$ac_lib_var=no"
19808 LIBS="$ac_save_LIBS"
19811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19812 echo "$ac_t""yes" 1>&6
19815 echo "$ac_t""no" 1>&6
19821 if test $have_readline = yes ; then
19822 ol_with_readline=found
19823 ol_link_readline=yes
19825 READLINE_LIBS="-lreadline"
19830 if test $ol_link_readline = yes ; then
19831 cat >> confdefs.h <<\EOF
19832 #define HAVE_READLINE 1
19838 if test $ol_enable_crypt != no ; then
19839 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19840 echo "configure:19841: checking for crypt" >&5
19841 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19842 echo $ac_n "(cached) $ac_c" 1>&6
19844 cat > conftest.$ac_ext <<EOF
19845 #line 19846 "configure"
19846 #include "confdefs.h"
19847 /* System header to define __stub macros and hopefully few prototypes,
19848 which can conflict with char crypt(); below. */
19849 #include <assert.h>
19850 /* Override any gcc2 internal prototype to avoid an error. */
19851 /* We use char because int might match the return type of a gcc2
19852 builtin and then its argument prototype would still apply. */
19858 /* The GNU C library defines this for functions which it implements
19859 to always fail with ENOSYS. Some functions are actually named
19860 something starting with __ and the normal name is an alias. */
19861 #if defined (__stub_crypt) || defined (__stub___crypt)
19869 if { (eval echo configure:19870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19871 eval "ac_cv_func_crypt=yes"
19873 echo "configure: failed program was:" >&5
19874 cat conftest.$ac_ext >&5
19876 eval "ac_cv_func_crypt=no"
19881 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19882 echo "$ac_t""yes" 1>&6
19885 echo "$ac_t""no" 1>&6
19887 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19888 echo "configure:19889: checking for crypt in -lcrypt" >&5
19889 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19890 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19891 echo $ac_n "(cached) $ac_c" 1>&6
19893 ac_save_LIBS="$LIBS"
19894 LIBS="-lcrypt $LIBS"
19895 cat > conftest.$ac_ext <<EOF
19896 #line 19897 "configure"
19897 #include "confdefs.h"
19898 /* Override any gcc2 internal prototype to avoid an error. */
19899 /* We use char because int might match the return type of a gcc2
19900 builtin and then its argument prototype would still apply. */
19907 if { (eval echo configure:19908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19909 eval "ac_cv_lib_$ac_lib_var=yes"
19911 echo "configure: failed program was:" >&5
19912 cat conftest.$ac_ext >&5
19914 eval "ac_cv_lib_$ac_lib_var=no"
19917 LIBS="$ac_save_LIBS"
19920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19921 echo "$ac_t""yes" 1>&6
19922 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19925 echo "$ac_t""no" 1>&6
19932 if test $have_crypt = yes ; then
19933 cat >> confdefs.h <<\EOF
19934 #define HAVE_CRYPT 1
19938 echo "configure: warning: could not find crypt" 1>&2
19939 if test $ol_enable_crypt = yes ; then
19940 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19943 echo "configure: warning: disabling crypt support" 1>&2
19948 if test $ol_enable_proctitle != no ; then
19949 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19950 echo "configure:19951: checking for setproctitle" >&5
19951 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19952 echo $ac_n "(cached) $ac_c" 1>&6
19954 cat > conftest.$ac_ext <<EOF
19955 #line 19956 "configure"
19956 #include "confdefs.h"
19957 /* System header to define __stub macros and hopefully few prototypes,
19958 which can conflict with char setproctitle(); below. */
19959 #include <assert.h>
19960 /* Override any gcc2 internal prototype to avoid an error. */
19961 /* We use char because int might match the return type of a gcc2
19962 builtin and then its argument prototype would still apply. */
19963 char setproctitle();
19968 /* The GNU C library defines this for functions which it implements
19969 to always fail with ENOSYS. Some functions are actually named
19970 something starting with __ and the normal name is an alias. */
19971 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19979 if { (eval echo configure:19980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19981 eval "ac_cv_func_setproctitle=yes"
19983 echo "configure: failed program was:" >&5
19984 cat conftest.$ac_ext >&5
19986 eval "ac_cv_func_setproctitle=no"
19991 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19992 echo "$ac_t""yes" 1>&6
19993 have_setproctitle=yes
19995 echo "$ac_t""no" 1>&6
19997 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19998 echo "configure:19999: checking for setproctitle in -lutil" >&5
19999 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20001 echo $ac_n "(cached) $ac_c" 1>&6
20003 ac_save_LIBS="$LIBS"
20004 LIBS="-lutil $LIBS"
20005 cat > conftest.$ac_ext <<EOF
20006 #line 20007 "configure"
20007 #include "confdefs.h"
20008 /* Override any gcc2 internal prototype to avoid an error. */
20009 /* We use char because int might match the return type of a gcc2
20010 builtin and then its argument prototype would still apply. */
20011 char setproctitle();
20017 if { (eval echo configure:20018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20019 eval "ac_cv_lib_$ac_lib_var=yes"
20021 echo "configure: failed program was:" >&5
20022 cat conftest.$ac_ext >&5
20024 eval "ac_cv_lib_$ac_lib_var=no"
20027 LIBS="$ac_save_LIBS"
20030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20031 echo "$ac_t""yes" 1>&6
20032 have_setproctitle=yes
20033 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20035 echo "$ac_t""no" 1>&6
20036 have_setproctitle=no
20037 LIBOBJS="$LIBOBJS setproctitle.o"
20038 LIBSRCS="$LIBSRCS setproctitle.c"
20044 if test $have_setproctitle = yes ; then
20045 cat >> confdefs.h <<\EOF
20046 #define HAVE_SETPROCTITLE 1
20052 if test $ol_enable_slp != no ; then
20053 for ac_hdr in slp.h
20055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20057 echo "configure:20058: checking for $ac_hdr" >&5
20058 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20059 echo $ac_n "(cached) $ac_c" 1>&6
20061 cat > conftest.$ac_ext <<EOF
20062 #line 20063 "configure"
20063 #include "confdefs.h"
20066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20067 { (eval echo configure:20068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20069 if test -z "$ac_err"; then
20071 eval "ac_cv_header_$ac_safe=yes"
20074 echo "configure: failed program was:" >&5
20075 cat conftest.$ac_ext >&5
20077 eval "ac_cv_header_$ac_safe=no"
20081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20082 echo "$ac_t""yes" 1>&6
20083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20084 cat >> confdefs.h <<EOF
20085 #define $ac_tr_hdr 1
20089 echo "$ac_t""no" 1>&6
20094 if test $ac_cv_header_slp_h = yes ; then
20095 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20096 echo "configure:20097: checking for SLPOpen in -lslp" >&5
20097 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20098 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20099 echo $ac_n "(cached) $ac_c" 1>&6
20101 ac_save_LIBS="$LIBS"
20103 cat > conftest.$ac_ext <<EOF
20104 #line 20105 "configure"
20105 #include "confdefs.h"
20106 /* Override any gcc2 internal prototype to avoid an error. */
20107 /* We use char because int might match the return type of a gcc2
20108 builtin and then its argument prototype would still apply. */
20115 if { (eval echo configure:20116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20117 eval "ac_cv_lib_$ac_lib_var=yes"
20119 echo "configure: failed program was:" >&5
20120 cat conftest.$ac_ext >&5
20122 eval "ac_cv_lib_$ac_lib_var=no"
20125 LIBS="$ac_save_LIBS"
20128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20129 echo "$ac_t""yes" 1>&6
20132 echo "$ac_t""no" 1>&6
20136 if test $have_slp = yes ; then
20137 cat >> confdefs.h <<\EOF
20141 SLAPD_SLP_LIBS=-lslp
20144 elif test $ol_enable_slp = yes ; then
20145 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20149 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20150 echo "configure:20151: checking for ANSI C header files" >&5
20151 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20152 echo $ac_n "(cached) $ac_c" 1>&6
20154 cat > conftest.$ac_ext <<EOF
20155 #line 20156 "configure"
20156 #include "confdefs.h"
20157 #include <stdlib.h>
20158 #include <stdarg.h>
20159 #include <string.h>
20162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20163 { (eval echo configure:20164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20165 if test -z "$ac_err"; then
20167 ac_cv_header_stdc=yes
20170 echo "configure: failed program was:" >&5
20171 cat conftest.$ac_ext >&5
20173 ac_cv_header_stdc=no
20177 if test $ac_cv_header_stdc = yes; then
20178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20179 cat > conftest.$ac_ext <<EOF
20180 #line 20181 "configure"
20181 #include "confdefs.h"
20182 #include <string.h>
20184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20185 egrep "memchr" >/dev/null 2>&1; then
20189 ac_cv_header_stdc=no
20195 if test $ac_cv_header_stdc = yes; then
20196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20197 cat > conftest.$ac_ext <<EOF
20198 #line 20199 "configure"
20199 #include "confdefs.h"
20200 #include <stdlib.h>
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203 egrep "free" >/dev/null 2>&1; then
20207 ac_cv_header_stdc=no
20213 if test $ac_cv_header_stdc = yes; then
20214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20215 if test "$cross_compiling" = yes; then
20218 cat > conftest.$ac_ext <<EOF
20219 #line 20220 "configure"
20220 #include "confdefs.h"
20222 #if ((' ' & 0x0FF) == 0x020)
20223 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20224 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20226 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20227 || ('j' <= (c) && (c) <= 'r') \
20228 || ('s' <= (c) && (c) <= 'z'))
20229 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20232 int main () { int i; for (i = 0; i < 256; i++)
20233 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20237 if { (eval echo configure:20238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20241 echo "configure: failed program was:" >&5
20242 cat conftest.$ac_ext >&5
20244 ac_cv_header_stdc=no
20252 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20253 if test $ac_cv_header_stdc = yes; then
20254 cat >> confdefs.h <<\EOF
20255 #define STDC_HEADERS 1
20260 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20261 echo "configure:20262: checking for mode_t" >&5
20262 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20263 echo $ac_n "(cached) $ac_c" 1>&6
20265 cat > conftest.$ac_ext <<EOF
20266 #line 20267 "configure"
20267 #include "confdefs.h"
20268 #include <sys/types.h>
20270 #include <stdlib.h>
20271 #include <stddef.h>
20275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20276 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20278 eval "ac_cv_type_mode_t=yes"
20281 eval "ac_cv_type_mode_t=no"
20286 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20287 echo "$ac_t""yes" 1>&6
20289 echo "$ac_t""no" 1>&6
20290 cat >> confdefs.h <<EOF
20296 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20297 echo "configure:20298: checking for off_t" >&5
20298 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20299 echo $ac_n "(cached) $ac_c" 1>&6
20301 cat > conftest.$ac_ext <<EOF
20302 #line 20303 "configure"
20303 #include "confdefs.h"
20304 #include <sys/types.h>
20306 #include <stdlib.h>
20307 #include <stddef.h>
20311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20312 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20314 eval "ac_cv_type_off_t=yes"
20317 eval "ac_cv_type_off_t=no"
20322 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20323 echo "$ac_t""yes" 1>&6
20325 echo "$ac_t""no" 1>&6
20326 cat >> confdefs.h <<EOF
20332 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20333 echo "configure:20334: checking for pid_t" >&5
20334 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20335 echo $ac_n "(cached) $ac_c" 1>&6
20337 cat > conftest.$ac_ext <<EOF
20338 #line 20339 "configure"
20339 #include "confdefs.h"
20340 #include <sys/types.h>
20342 #include <stdlib.h>
20343 #include <stddef.h>
20347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20348 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20350 eval "ac_cv_type_pid_t=yes"
20353 eval "ac_cv_type_pid_t=no"
20358 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20359 echo "$ac_t""yes" 1>&6
20361 echo "$ac_t""no" 1>&6
20362 cat >> confdefs.h <<EOF
20368 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20369 echo "configure:20370: checking for ptrdiff_t" >&5
20370 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20371 echo $ac_n "(cached) $ac_c" 1>&6
20373 cat > conftest.$ac_ext <<EOF
20374 #line 20375 "configure"
20375 #include "confdefs.h"
20376 #include <stddef.h>
20381 if { (eval echo configure:20382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20383 am_cv_type_ptrdiff_t=yes
20385 echo "configure: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20388 am_cv_type_ptrdiff_t=no
20393 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20394 if test $am_cv_type_ptrdiff_t = yes; then
20395 cat >> confdefs.h <<\EOF
20396 #define HAVE_PTRDIFF_T 1
20401 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20402 echo "configure:20403: checking return type of signal handlers" >&5
20403 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20404 echo $ac_n "(cached) $ac_c" 1>&6
20406 cat > conftest.$ac_ext <<EOF
20407 #line 20408 "configure"
20408 #include "confdefs.h"
20409 #include <sys/types.h>
20410 #include <signal.h>
20415 extern "C" void (*signal (int, void (*)(int)))(int);
20417 void (*signal ()) ();
20424 if { (eval echo configure:20425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20426 ac_cv_type_signal=void
20428 echo "configure: failed program was:" >&5
20429 cat conftest.$ac_ext >&5
20431 ac_cv_type_signal=int
20436 echo "$ac_t""$ac_cv_type_signal" 1>&6
20437 cat >> confdefs.h <<EOF
20438 #define RETSIGTYPE $ac_cv_type_signal
20442 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20443 echo "configure:20444: checking for size_t" >&5
20444 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20445 echo $ac_n "(cached) $ac_c" 1>&6
20447 cat > conftest.$ac_ext <<EOF
20448 #line 20449 "configure"
20449 #include "confdefs.h"
20450 #include <sys/types.h>
20452 #include <stdlib.h>
20453 #include <stddef.h>
20457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20458 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20460 eval "ac_cv_type_size_t=yes"
20463 eval "ac_cv_type_size_t=no"
20468 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20469 echo "$ac_t""yes" 1>&6
20471 echo "$ac_t""no" 1>&6
20472 cat >> confdefs.h <<EOF
20473 #define size_t unsigned
20479 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20480 echo "configure:20481: checking for ssize_t" >&5
20481 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20482 echo $ac_n "(cached) $ac_c" 1>&6
20484 cat > conftest.$ac_ext <<EOF
20485 #line 20486 "configure"
20486 #include "confdefs.h"
20487 #include <sys/types.h>
20489 #include <stdlib.h>
20490 #include <stddef.h>
20494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20495 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20497 eval "ac_cv_type_ssize_t=yes"
20500 eval "ac_cv_type_ssize_t=no"
20505 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20506 echo "$ac_t""yes" 1>&6
20508 echo "$ac_t""no" 1>&6
20509 cat >> confdefs.h <<EOF
20510 #define ssize_t signed int
20515 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20516 echo "configure:20517: checking for caddr_t" >&5
20517 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20518 echo $ac_n "(cached) $ac_c" 1>&6
20520 cat > conftest.$ac_ext <<EOF
20521 #line 20522 "configure"
20522 #include "confdefs.h"
20523 #include <sys/types.h>
20525 #include <stdlib.h>
20526 #include <stddef.h>
20530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20531 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20533 eval "ac_cv_type_caddr_t=yes"
20536 eval "ac_cv_type_caddr_t=no"
20541 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20542 echo "$ac_t""yes" 1>&6
20544 echo "$ac_t""no" 1>&6
20545 cat >> confdefs.h <<EOF
20546 #define caddr_t char *
20552 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20553 echo "configure:20554: checking for socklen_t" >&5
20554 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20555 echo $ac_n "(cached) $ac_c" 1>&6
20557 cat > conftest.$ac_ext <<EOF
20558 #line 20559 "configure"
20559 #include "confdefs.h"
20561 #ifdef HAVE_SYS_TYPES_H
20562 #include <sys/types.h>
20564 #ifdef HAVE_SYS_SOCKET_H
20565 #include <sys/socket.h>
20572 if { (eval echo configure:20573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20574 ol_cv_type_socklen_t=yes
20576 echo "configure: failed program was:" >&5
20577 cat conftest.$ac_ext >&5
20579 ol_cv_type_socklen_t=no
20584 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20585 if test $ol_cv_type_socklen_t = no; then
20586 cat >> confdefs.h <<\EOF
20587 #define socklen_t int
20592 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20593 echo "configure:20594: checking for member st_blksize in aggregate type struct stat" >&5
20594 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20595 echo $ac_n "(cached) $ac_c" 1>&6
20597 cat > conftest.$ac_ext <<EOF
20598 #line 20599 "configure"
20599 #include "confdefs.h"
20600 #include <sys/types.h>
20601 #include <sys/stat.h>
20603 struct stat foo; foo.st_blksize;
20606 if { (eval echo configure:20607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20608 ac_cv_c_struct_member_st_blksize=yes
20610 echo "configure: failed program was:" >&5
20611 cat conftest.$ac_ext >&5
20613 ac_cv_c_struct_member_st_blksize=no
20618 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20619 st_blksize="$ac_cv_c_struct_member_st_blksize"
20620 if test $ac_cv_c_struct_member_st_blksize = yes; then
20621 cat >> confdefs.h <<\EOF
20622 #define HAVE_ST_BLKSIZE 1
20627 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20628 echo "configure:20629: checking whether time.h and sys/time.h may both be included" >&5
20629 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20630 echo $ac_n "(cached) $ac_c" 1>&6
20632 cat > conftest.$ac_ext <<EOF
20633 #line 20634 "configure"
20634 #include "confdefs.h"
20635 #include <sys/types.h>
20636 #include <sys/time.h>
20642 if { (eval echo configure:20643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20644 ac_cv_header_time=yes
20646 echo "configure: failed program was:" >&5
20647 cat conftest.$ac_ext >&5
20649 ac_cv_header_time=no
20654 echo "$ac_t""$ac_cv_header_time" 1>&6
20655 if test $ac_cv_header_time = yes; then
20656 cat >> confdefs.h <<\EOF
20657 #define TIME_WITH_SYS_TIME 1
20662 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20663 echo "configure:20664: checking whether struct tm is in sys/time.h or time.h" >&5
20664 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20665 echo $ac_n "(cached) $ac_c" 1>&6
20667 cat > conftest.$ac_ext <<EOF
20668 #line 20669 "configure"
20669 #include "confdefs.h"
20670 #include <sys/types.h>
20673 struct tm *tp; tp->tm_sec;
20676 if { (eval echo configure:20677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20678 ac_cv_struct_tm=time.h
20680 echo "configure: failed program was:" >&5
20681 cat conftest.$ac_ext >&5
20683 ac_cv_struct_tm=sys/time.h
20688 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20689 if test $ac_cv_struct_tm = sys/time.h; then
20690 cat >> confdefs.h <<\EOF
20691 #define TM_IN_SYS_TIME 1
20696 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20697 echo "configure:20698: checking for uid_t in sys/types.h" >&5
20698 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20699 echo $ac_n "(cached) $ac_c" 1>&6
20701 cat > conftest.$ac_ext <<EOF
20702 #line 20703 "configure"
20703 #include "confdefs.h"
20704 #include <sys/types.h>
20706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20707 egrep "uid_t" >/dev/null 2>&1; then
20709 ac_cv_type_uid_t=yes
20712 ac_cv_type_uid_t=no
20718 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20719 if test $ac_cv_type_uid_t = no; then
20720 cat >> confdefs.h <<\EOF
20724 cat >> confdefs.h <<\EOF
20730 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20731 echo "configure:20732: checking for sig_atomic_t" >&5
20732 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20733 echo $ac_n "(cached) $ac_c" 1>&6
20735 cat > conftest.$ac_ext <<EOF
20736 #line 20737 "configure"
20737 #include "confdefs.h"
20738 #include <signal.h>
20740 sig_atomic_t atomic;
20743 if { (eval echo configure:20744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20745 ol_cv_type_sig_atomic_t=yes
20747 echo "configure: failed program was:" >&5
20748 cat conftest.$ac_ext >&5
20750 ol_cv_type_sig_atomic_t=no
20755 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20756 if test $ol_cv_type_sig_atomic_t = no; then
20757 cat >> confdefs.h <<\EOF
20758 #define sig_atomic_t int
20765 # test for pw_gecos in struct passwd
20766 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20767 echo "configure:20768: checking struct passwd for pw_gecos" >&5
20768 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20769 echo $ac_n "(cached) $ac_c" 1>&6
20772 cat > conftest.$ac_ext <<EOF
20773 #line 20774 "configure"
20774 #include "confdefs.h"
20779 pwd.pw_gecos = pwd.pw_name;
20783 if { (eval echo configure:20784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20785 ol_cv_struct_passwd_pw_gecos=yes
20787 echo "configure: failed program was:" >&5
20788 cat conftest.$ac_ext >&5
20790 ol_cv_struct_passwd_pw_gecos=no
20795 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20796 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20797 cat >> confdefs.h <<\EOF
20798 #define HAVE_PW_GECOS 1
20803 # test for pw_passwd in struct passwd
20804 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20805 echo "configure:20806: checking struct passwd for pw_passwd" >&5
20806 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20807 echo $ac_n "(cached) $ac_c" 1>&6
20810 cat > conftest.$ac_ext <<EOF
20811 #line 20812 "configure"
20812 #include "confdefs.h"
20817 pwd.pw_passwd = pwd.pw_name;
20821 if { (eval echo configure:20822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20823 ol_cv_struct_passwd_pw_passwd=yes
20825 echo "configure: failed program was:" >&5
20826 cat conftest.$ac_ext >&5
20828 ol_cv_struct_passwd_pw_passwd=no
20833 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20834 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20835 cat >> confdefs.h <<\EOF
20836 #define HAVE_PW_PASSWD 1
20842 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20843 echo "configure:20844: checking if toupper() requires islower()" >&5
20844 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20845 echo $ac_n "(cached) $ac_c" 1>&6
20848 if test "$cross_compiling" = yes; then
20849 ol_cv_c_upper_lower=safe
20851 cat > conftest.$ac_ext <<EOF
20852 #line 20853 "configure"
20853 #include "confdefs.h"
20858 if ('C' == toupper('C'))
20864 if { (eval echo configure:20865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20866 ol_cv_c_upper_lower=no
20868 echo "configure: failed program was:" >&5
20869 cat conftest.$ac_ext >&5
20871 ol_cv_c_upper_lower=yes
20878 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20879 if test $ol_cv_c_upper_lower != no ; then
20880 cat >> confdefs.h <<\EOF
20881 #define C_UPPER_LOWER 1
20886 echo $ac_n "checking for working const""... $ac_c" 1>&6
20887 echo "configure:20888: checking for working const" >&5
20888 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20889 echo $ac_n "(cached) $ac_c" 1>&6
20891 cat > conftest.$ac_ext <<EOF
20892 #line 20893 "configure"
20893 #include "confdefs.h"
20897 /* Ultrix mips cc rejects this. */
20898 typedef int charset[2]; const charset x;
20899 /* SunOS 4.1.1 cc rejects this. */
20900 char const *const *ccp;
20902 /* NEC SVR4.0.2 mips cc rejects this. */
20903 struct point {int x, y;};
20904 static struct point const zero = {0,0};
20905 /* AIX XL C 1.02.0.0 rejects this.
20906 It does not let you subtract one const X* pointer from another in an arm
20907 of an if-expression whose if-part is not a constant expression */
20908 const char *g = "string";
20909 ccp = &g + (g ? g-g : 0);
20910 /* HPUX 7.0 cc rejects these. */
20913 ccp = (char const *const *) p;
20914 { /* SCO 3.2v4 cc rejects this. */
20916 char const *s = 0 ? (char *) 0 : (char const *) 0;
20920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20921 int x[] = {25, 17};
20922 const int *foo = &x[0];
20925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20926 typedef const int *iptr;
20930 { /* AIX XL C 1.02.0.0 rejects this saying
20931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20932 struct s { int j; const int *ap[3]; };
20933 struct s *b; b->j = 5;
20935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20936 const int foo = 10;
20941 if { (eval echo configure:20942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20945 echo "configure: failed program was:" >&5
20946 cat conftest.$ac_ext >&5
20953 echo "$ac_t""$ac_cv_c_const" 1>&6
20954 if test $ac_cv_c_const = no; then
20955 cat >> confdefs.h <<\EOF
20961 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20962 echo "configure:20963: checking if compiler understands volatile" >&5
20963 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20964 echo $ac_n "(cached) $ac_c" 1>&6
20966 cat > conftest.$ac_ext <<EOF
20967 #line 20968 "configure"
20968 #include "confdefs.h"
20971 volatile int a; int * volatile b = x ? &y : &z;
20972 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20976 if { (eval echo configure:20977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20978 ol_cv_c_volatile=yes
20980 echo "configure: failed program was:" >&5
20981 cat conftest.$ac_ext >&5
20983 ol_cv_c_volatile=no
20988 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20989 if test $ol_cv_c_volatile = yes; then
20992 cat >> confdefs.h <<\EOF
20999 if test $cross_compiling = yes ; then
21000 cat >> confdefs.h <<\EOF
21001 #define CROSS_COMPILING 1
21005 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21006 echo "configure:21007: checking whether byte ordering is bigendian" >&5
21007 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21008 echo $ac_n "(cached) $ac_c" 1>&6
21010 ac_cv_c_bigendian=unknown
21011 # See if sys/param.h defines the BYTE_ORDER macro.
21012 cat > conftest.$ac_ext <<EOF
21013 #line 21014 "configure"
21014 #include "confdefs.h"
21015 #include <sys/types.h>
21016 #include <sys/param.h>
21019 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21020 bogus endian macros
21024 if { (eval echo configure:21025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21026 # It does; now see whether it defined to BIG_ENDIAN or not.
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 #include <sys/types.h>
21031 #include <sys/param.h>
21034 #if BYTE_ORDER != BIG_ENDIAN
21039 if { (eval echo configure:21040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21041 ac_cv_c_bigendian=yes
21043 echo "configure: failed program was:" >&5
21044 cat conftest.$ac_ext >&5
21046 ac_cv_c_bigendian=no
21050 echo "configure: failed program was:" >&5
21051 cat conftest.$ac_ext >&5
21054 if test $ac_cv_c_bigendian = unknown; then
21055 if test "$cross_compiling" = yes; then
21056 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21058 cat > conftest.$ac_ext <<EOF
21059 #line 21060 "configure"
21060 #include "confdefs.h"
21062 /* Are we little or big endian? From Harbison&Steele. */
21066 char c[sizeof (long)];
21069 exit (u.c[sizeof (long) - 1] == 1);
21072 if { (eval echo configure:21073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21074 ac_cv_c_bigendian=no
21076 echo "configure: failed program was:" >&5
21077 cat conftest.$ac_ext >&5
21079 ac_cv_c_bigendian=yes
21087 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21088 if test $ac_cv_c_bigendian = yes; then
21089 cat >> confdefs.h <<\EOF
21090 #define WORDS_BIGENDIAN 1
21097 echo $ac_n "checking size of short""... $ac_c" 1>&6
21098 echo "configure:21099: checking size of short" >&5
21099 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21100 echo $ac_n "(cached) $ac_c" 1>&6
21102 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21103 cat > conftest.$ac_ext <<EOF
21104 #line 21105 "configure"
21105 #include "confdefs.h"
21106 #include "confdefs.h"
21107 #include <sys/types.h>
21111 switch (0) case 0: case (sizeof (short) == $ac_size):;
21114 if { (eval echo configure:21115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21116 ac_cv_sizeof_short=$ac_size
21118 echo "configure: failed program was:" >&5
21119 cat conftest.$ac_ext >&5
21122 if test x$ac_cv_sizeof_short != x ; then break; fi
21127 if test x$ac_cv_sizeof_short = x ; then
21128 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21130 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21131 cat >> confdefs.h <<EOF
21132 #define SIZEOF_SHORT $ac_cv_sizeof_short
21136 echo $ac_n "checking size of int""... $ac_c" 1>&6
21137 echo "configure:21138: checking size of int" >&5
21138 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21139 echo $ac_n "(cached) $ac_c" 1>&6
21141 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21142 cat > conftest.$ac_ext <<EOF
21143 #line 21144 "configure"
21144 #include "confdefs.h"
21145 #include "confdefs.h"
21146 #include <sys/types.h>
21150 switch (0) case 0: case (sizeof (int) == $ac_size):;
21153 if { (eval echo configure:21154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21155 ac_cv_sizeof_int=$ac_size
21157 echo "configure: failed program was:" >&5
21158 cat conftest.$ac_ext >&5
21161 if test x$ac_cv_sizeof_int != x ; then break; fi
21166 if test x$ac_cv_sizeof_int = x ; then
21167 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21169 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21170 cat >> confdefs.h <<EOF
21171 #define SIZEOF_INT $ac_cv_sizeof_int
21175 echo $ac_n "checking size of long""... $ac_c" 1>&6
21176 echo "configure:21177: checking size of long" >&5
21177 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21178 echo $ac_n "(cached) $ac_c" 1>&6
21180 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21181 cat > conftest.$ac_ext <<EOF
21182 #line 21183 "configure"
21183 #include "confdefs.h"
21184 #include "confdefs.h"
21185 #include <sys/types.h>
21189 switch (0) case 0: case (sizeof (long) == $ac_size):;
21192 if { (eval echo configure:21193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21194 ac_cv_sizeof_long=$ac_size
21196 echo "configure: failed program was:" >&5
21197 cat conftest.$ac_ext >&5
21200 if test x$ac_cv_sizeof_long != x ; then break; fi
21205 if test x$ac_cv_sizeof_long = x ; then
21206 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21208 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21209 cat >> confdefs.h <<EOF
21210 #define SIZEOF_LONG $ac_cv_sizeof_long
21215 if test "$ac_cv_sizeof_int" -lt 4 ; then
21216 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21218 cat >> confdefs.h <<\EOF
21219 #define LBER_INT_T long
21223 cat >> confdefs.h <<\EOF
21224 #define LBER_INT_T int
21229 cat >> confdefs.h <<\EOF
21230 #define LBER_LEN_T long
21233 cat >> confdefs.h <<\EOF
21234 #define LBER_SOCKET_T int
21237 cat >> confdefs.h <<\EOF
21238 #define LBER_TAG_T long
21242 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21243 echo "configure:21244: checking for 8-bit clean memcmp" >&5
21244 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21245 echo $ac_n "(cached) $ac_c" 1>&6
21247 if test "$cross_compiling" = yes; then
21248 ac_cv_func_memcmp_clean=no
21250 cat > conftest.$ac_ext <<EOF
21251 #line 21252 "configure"
21252 #include "confdefs.h"
21256 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21257 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21261 if { (eval echo configure:21262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21263 ac_cv_func_memcmp_clean=yes
21265 echo "configure: failed program was:" >&5
21266 cat conftest.$ac_ext >&5
21268 ac_cv_func_memcmp_clean=no
21275 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21276 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21278 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21279 echo "configure:21280: checking for strftime" >&5
21280 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21281 echo $ac_n "(cached) $ac_c" 1>&6
21283 cat > conftest.$ac_ext <<EOF
21284 #line 21285 "configure"
21285 #include "confdefs.h"
21286 /* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char strftime(); below. */
21288 #include <assert.h>
21289 /* Override any gcc2 internal prototype to avoid an error. */
21290 /* We use char because int might match the return type of a gcc2
21291 builtin and then its argument prototype would still apply. */
21297 /* The GNU C library defines this for functions which it implements
21298 to always fail with ENOSYS. Some functions are actually named
21299 something starting with __ and the normal name is an alias. */
21300 #if defined (__stub_strftime) || defined (__stub___strftime)
21308 if { (eval echo configure:21309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21310 eval "ac_cv_func_strftime=yes"
21312 echo "configure: failed program was:" >&5
21313 cat conftest.$ac_ext >&5
21315 eval "ac_cv_func_strftime=no"
21320 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21321 echo "$ac_t""yes" 1>&6
21322 cat >> confdefs.h <<\EOF
21323 #define HAVE_STRFTIME 1
21327 echo "$ac_t""no" 1>&6
21328 # strftime is in -lintl on SCO UNIX.
21329 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21330 echo "configure:21331: checking for strftime in -lintl" >&5
21331 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21333 echo $ac_n "(cached) $ac_c" 1>&6
21335 ac_save_LIBS="$LIBS"
21336 LIBS="-lintl $LIBS"
21337 cat > conftest.$ac_ext <<EOF
21338 #line 21339 "configure"
21339 #include "confdefs.h"
21340 /* Override any gcc2 internal prototype to avoid an error. */
21341 /* We use char because int might match the return type of a gcc2
21342 builtin and then its argument prototype would still apply. */
21349 if { (eval echo configure:21350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21351 eval "ac_cv_lib_$ac_lib_var=yes"
21353 echo "configure: failed program was:" >&5
21354 cat conftest.$ac_ext >&5
21356 eval "ac_cv_lib_$ac_lib_var=no"
21359 LIBS="$ac_save_LIBS"
21362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21363 echo "$ac_t""yes" 1>&6
21364 cat >> confdefs.h <<\EOF
21365 #define HAVE_STRFTIME 1
21368 LIBS="-lintl $LIBS"
21370 echo "$ac_t""no" 1>&6
21376 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21377 echo "configure:21378: checking for inet_aton()" >&5
21378 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21379 echo $ac_n "(cached) $ac_c" 1>&6
21381 cat > conftest.$ac_ext <<EOF
21382 #line 21383 "configure"
21383 #include "confdefs.h"
21385 #ifdef HAVE_SYS_TYPES_H
21386 # include <sys/types.h>
21388 #ifdef HAVE_SYS_SOCKET_H
21389 # include <sys/socket.h>
21390 # ifdef HAVE_SYS_SELECT_H
21391 # include <sys/select.h>
21393 # include <netinet/in.h>
21394 # ifdef HAVE_ARPA_INET_H
21395 # include <arpa/inet.h>
21401 int rc = inet_aton( "255.255.255.255", &in );
21404 if { (eval echo configure:21405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21406 ol_cv_func_inet_aton=yes
21408 echo "configure: failed program was:" >&5
21409 cat conftest.$ac_ext >&5
21411 ol_cv_func_inet_aton=no
21416 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21417 if test $ol_cv_func_inet_aton != no; then
21418 cat >> confdefs.h <<\EOF
21419 #define HAVE_INET_ATON 1
21425 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21426 echo "configure:21427: checking for _spawnlp" >&5
21427 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21428 echo $ac_n "(cached) $ac_c" 1>&6
21430 cat > conftest.$ac_ext <<EOF
21431 #line 21432 "configure"
21432 #include "confdefs.h"
21433 /* System header to define __stub macros and hopefully few prototypes,
21434 which can conflict with char _spawnlp(); below. */
21435 #include <assert.h>
21436 /* Override any gcc2 internal prototype to avoid an error. */
21437 /* We use char because int might match the return type of a gcc2
21438 builtin and then its argument prototype would still apply. */
21444 /* The GNU C library defines this for functions which it implements
21445 to always fail with ENOSYS. Some functions are actually named
21446 something starting with __ and the normal name is an alias. */
21447 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21455 if { (eval echo configure:21456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21457 eval "ac_cv_func__spawnlp=yes"
21459 echo "configure: failed program was:" >&5
21460 cat conftest.$ac_ext >&5
21462 eval "ac_cv_func__spawnlp=no"
21467 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21468 echo "$ac_t""yes" 1>&6
21469 cat >> confdefs.h <<\EOF
21470 #define HAVE_SPAWNLP 1
21474 echo "$ac_t""no" 1>&6
21478 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21479 echo "configure:21480: checking for _snprintf" >&5
21480 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21481 echo $ac_n "(cached) $ac_c" 1>&6
21483 cat > conftest.$ac_ext <<EOF
21484 #line 21485 "configure"
21485 #include "confdefs.h"
21486 /* System header to define __stub macros and hopefully few prototypes,
21487 which can conflict with char _snprintf(); below. */
21488 #include <assert.h>
21489 /* Override any gcc2 internal prototype to avoid an error. */
21490 /* We use char because int might match the return type of a gcc2
21491 builtin and then its argument prototype would still apply. */
21497 /* The GNU C library defines this for functions which it implements
21498 to always fail with ENOSYS. Some functions are actually named
21499 something starting with __ and the normal name is an alias. */
21500 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21508 if { (eval echo configure:21509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21510 eval "ac_cv_func__snprintf=yes"
21512 echo "configure: failed program was:" >&5
21513 cat conftest.$ac_ext >&5
21515 eval "ac_cv_func__snprintf=no"
21520 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21521 echo "$ac_t""yes" 1>&6
21522 ac_cv_func_snprintf=yes
21523 cat >> confdefs.h <<\EOF
21524 #define snprintf _snprintf
21529 echo "$ac_t""no" 1>&6
21533 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21534 echo "configure:21535: checking for _vsnprintf" >&5
21535 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21536 echo $ac_n "(cached) $ac_c" 1>&6
21538 cat > conftest.$ac_ext <<EOF
21539 #line 21540 "configure"
21540 #include "confdefs.h"
21541 /* System header to define __stub macros and hopefully few prototypes,
21542 which can conflict with char _vsnprintf(); below. */
21543 #include <assert.h>
21544 /* Override any gcc2 internal prototype to avoid an error. */
21545 /* We use char because int might match the return type of a gcc2
21546 builtin and then its argument prototype would still apply. */
21552 /* The GNU C library defines this for functions which it implements
21553 to always fail with ENOSYS. Some functions are actually named
21554 something starting with __ and the normal name is an alias. */
21555 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21563 if { (eval echo configure:21564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21565 eval "ac_cv_func__vsnprintf=yes"
21567 echo "configure: failed program was:" >&5
21568 cat conftest.$ac_ext >&5
21570 eval "ac_cv_func__vsnprintf=no"
21575 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21576 echo "$ac_t""yes" 1>&6
21577 ac_cv_func_vsnprintf=yes
21578 cat >> confdefs.h <<\EOF
21579 #define vsnprintf _vsnprintf
21584 echo "$ac_t""no" 1>&6
21588 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21589 echo "configure:21590: checking for vprintf" >&5
21590 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21591 echo $ac_n "(cached) $ac_c" 1>&6
21593 cat > conftest.$ac_ext <<EOF
21594 #line 21595 "configure"
21595 #include "confdefs.h"
21596 /* System header to define __stub macros and hopefully few prototypes,
21597 which can conflict with char vprintf(); below. */
21598 #include <assert.h>
21599 /* Override any gcc2 internal prototype to avoid an error. */
21600 /* We use char because int might match the return type of a gcc2
21601 builtin and then its argument prototype would still apply. */
21607 /* The GNU C library defines this for functions which it implements
21608 to always fail with ENOSYS. Some functions are actually named
21609 something starting with __ and the normal name is an alias. */
21610 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21618 if { (eval echo configure:21619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21620 eval "ac_cv_func_vprintf=yes"
21622 echo "configure: failed program was:" >&5
21623 cat conftest.$ac_ext >&5
21625 eval "ac_cv_func_vprintf=no"
21630 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21631 echo "$ac_t""yes" 1>&6
21632 cat >> confdefs.h <<\EOF
21633 #define HAVE_VPRINTF 1
21637 echo "$ac_t""no" 1>&6
21640 if test "$ac_cv_func_vprintf" != yes; then
21641 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21642 echo "configure:21643: checking for _doprnt" >&5
21643 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21644 echo $ac_n "(cached) $ac_c" 1>&6
21646 cat > conftest.$ac_ext <<EOF
21647 #line 21648 "configure"
21648 #include "confdefs.h"
21649 /* System header to define __stub macros and hopefully few prototypes,
21650 which can conflict with char _doprnt(); below. */
21651 #include <assert.h>
21652 /* Override any gcc2 internal prototype to avoid an error. */
21653 /* We use char because int might match the return type of a gcc2
21654 builtin and then its argument prototype would still apply. */
21660 /* The GNU C library defines this for functions which it implements
21661 to always fail with ENOSYS. Some functions are actually named
21662 something starting with __ and the normal name is an alias. */
21663 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21671 if { (eval echo configure:21672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21673 eval "ac_cv_func__doprnt=yes"
21675 echo "configure: failed program was:" >&5
21676 cat conftest.$ac_ext >&5
21678 eval "ac_cv_func__doprnt=no"
21683 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21684 echo "$ac_t""yes" 1>&6
21685 cat >> confdefs.h <<\EOF
21686 #define HAVE_DOPRNT 1
21690 echo "$ac_t""no" 1>&6
21696 if test $ac_cv_func_vprintf = yes ; then
21697 for ac_func in vsnprintf vsprintf
21699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21700 echo "configure:21701: checking for $ac_func" >&5
21701 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21702 echo $ac_n "(cached) $ac_c" 1>&6
21704 cat > conftest.$ac_ext <<EOF
21705 #line 21706 "configure"
21706 #include "confdefs.h"
21707 /* System header to define __stub macros and hopefully few prototypes,
21708 which can conflict with char $ac_func(); below. */
21709 #include <assert.h>
21710 /* Override any gcc2 internal prototype to avoid an error. */
21711 /* We use char because int might match the return type of a gcc2
21712 builtin and then its argument prototype would still apply. */
21718 /* The GNU C library defines this for functions which it implements
21719 to always fail with ENOSYS. Some functions are actually named
21720 something starting with __ and the normal name is an alias. */
21721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21729 if { (eval echo configure:21730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21731 eval "ac_cv_func_$ac_func=yes"
21733 echo "configure: failed program was:" >&5
21734 cat conftest.$ac_ext >&5
21736 eval "ac_cv_func_$ac_func=no"
21741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21742 echo "$ac_t""yes" 1>&6
21743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21744 cat >> confdefs.h <<EOF
21745 #define $ac_tr_func 1
21749 echo "$ac_t""no" 1>&6
21810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21811 echo "configure:21812: checking for $ac_func" >&5
21812 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21813 echo $ac_n "(cached) $ac_c" 1>&6
21815 cat > conftest.$ac_ext <<EOF
21816 #line 21817 "configure"
21817 #include "confdefs.h"
21818 /* System header to define __stub macros and hopefully few prototypes,
21819 which can conflict with char $ac_func(); below. */
21820 #include <assert.h>
21821 /* Override any gcc2 internal prototype to avoid an error. */
21822 /* We use char because int might match the return type of a gcc2
21823 builtin and then its argument prototype would still apply. */
21829 /* The GNU C library defines this for functions which it implements
21830 to always fail with ENOSYS. Some functions are actually named
21831 something starting with __ and the normal name is an alias. */
21832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21840 if { (eval echo configure:21841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21842 eval "ac_cv_func_$ac_func=yes"
21844 echo "configure: failed program was:" >&5
21845 cat conftest.$ac_ext >&5
21847 eval "ac_cv_func_$ac_func=no"
21852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21853 echo "$ac_t""yes" 1>&6
21854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21855 cat >> confdefs.h <<EOF
21856 #define $ac_tr_func 1
21860 echo "$ac_t""no" 1>&6
21865 for ac_func in getopt
21867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21868 echo "configure:21869: checking for $ac_func" >&5
21869 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21870 echo $ac_n "(cached) $ac_c" 1>&6
21872 cat > conftest.$ac_ext <<EOF
21873 #line 21874 "configure"
21874 #include "confdefs.h"
21875 /* System header to define __stub macros and hopefully few prototypes,
21876 which can conflict with char $ac_func(); below. */
21877 #include <assert.h>
21878 /* Override any gcc2 internal prototype to avoid an error. */
21879 /* We use char because int might match the return type of a gcc2
21880 builtin and then its argument prototype would still apply. */
21886 /* The GNU C library defines this for functions which it implements
21887 to always fail with ENOSYS. Some functions are actually named
21888 something starting with __ and the normal name is an alias. */
21889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21897 if { (eval echo configure:21898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21899 eval "ac_cv_func_$ac_func=yes"
21901 echo "configure: failed program was:" >&5
21902 cat conftest.$ac_ext >&5
21904 eval "ac_cv_func_$ac_func=no"
21909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21910 echo "$ac_t""yes" 1>&6
21911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21912 cat >> confdefs.h <<EOF
21913 #define $ac_tr_func 1
21917 echo "$ac_t""no" 1>&6
21918 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21924 if test "$ac_cv_func_getopt" != yes; then
21925 LIBSRCS="$LIBSRCS getopt.c"
21928 # Check Configuration
21929 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21930 echo "configure:21931: checking declaration of sys_errlist" >&5
21931 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21932 echo $ac_n "(cached) $ac_c" 1>&6
21935 cat > conftest.$ac_ext <<EOF
21936 #line 21937 "configure"
21937 #include "confdefs.h"
21940 #include <sys/types.h>
21943 #include <stdlib.h>
21946 char *c = (char *) *sys_errlist
21949 if { (eval echo configure:21950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21951 ol_cv_dcl_sys_errlist=yes
21952 ol_cv_have_sys_errlist=yes
21954 echo "configure: failed program was:" >&5
21955 cat conftest.$ac_ext >&5
21957 ol_cv_dcl_sys_errlist=no
21962 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21964 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21965 if test $ol_cv_dcl_sys_errlist = no ; then
21966 cat >> confdefs.h <<\EOF
21967 #define DECL_SYS_ERRLIST 1
21971 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21972 echo "configure:21973: checking existence of sys_errlist" >&5
21973 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21974 echo $ac_n "(cached) $ac_c" 1>&6
21977 cat > conftest.$ac_ext <<EOF
21978 #line 21979 "configure"
21979 #include "confdefs.h"
21982 char *c = (char *) *sys_errlist
21985 if { (eval echo configure:21986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21987 ol_cv_have_sys_errlist=yes
21989 echo "configure: failed program was:" >&5
21990 cat conftest.$ac_ext >&5
21992 ol_cv_have_sys_errlist=no
21997 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21999 if test $ol_cv_have_sys_errlist = yes ; then
22000 cat >> confdefs.h <<\EOF
22001 #define HAVE_SYS_ERRLIST 1
22008 if test "$ol_enable_debug" != no ; then
22009 cat >> confdefs.h <<\EOF
22010 #define LDAP_DEBUG 1
22014 if test "$ol_enable_syslog" = yes ; then
22015 cat >> confdefs.h <<\EOF
22016 #define LDAP_SYSLOG 1
22020 if test "$ol_enable_cache" = no ; then
22021 cat >> confdefs.h <<\EOF
22022 #define LDAP_NOCACHE 1
22026 if test "$ol_link_kbind" != no ; then
22027 cat >> confdefs.h <<\EOF
22028 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22032 if test "$ol_enable_proctitle" != no ; then
22033 cat >> confdefs.h <<\EOF
22034 #define LDAP_PROCTITLE 1
22038 if test "$ol_enable_referrals" != no ; then
22039 cat >> confdefs.h <<\EOF
22040 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22044 if test "$ol_enable_local" != no; then
22045 cat >> confdefs.h <<\EOF
22046 #define LDAP_PF_LOCAL 1
22050 if test "$ol_link_ipv6" != no; then
22051 cat >> confdefs.h <<\EOF
22052 #define LDAP_PF_INET6 1
22056 if test "$ol_enable_cleartext" != no ; then
22057 cat >> confdefs.h <<\EOF
22058 #define SLAPD_CLEARTEXT 1
22062 if test "$ol_enable_crypt" != no ; then
22063 cat >> confdefs.h <<\EOF
22064 #define SLAPD_CRYPT 1
22068 if test "$ol_link_kpasswd" != no ; then
22069 cat >> confdefs.h <<\EOF
22070 #define SLAPD_KPASSWD 1
22074 if test "$ol_link_spasswd" != no ; then
22075 cat >> confdefs.h <<\EOF
22076 #define SLAPD_SPASSWD 1
22080 if test "$ol_enable_multimaster" != no ; then
22081 cat >> confdefs.h <<\EOF
22082 #define SLAPD_MULTIMASTER 1
22086 if test "$ol_enable_phonetic" != no ; then
22087 cat >> confdefs.h <<\EOF
22088 #define SLAPD_PHONETIC 1
22092 if test "$ol_enable_rlookups" != no ; then
22093 cat >> confdefs.h <<\EOF
22094 #define SLAPD_RLOOKUPS 1
22098 if test "$ol_enable_aci" != no ; then
22099 cat >> confdefs.h <<\EOF
22100 #define SLAPD_ACI_ENABLED 1
22105 if test "$ol_link_modules" != no ; then
22106 cat >> confdefs.h <<\EOF
22107 #define SLAPD_MODULES 1
22111 SLAPD_MODULES_LDFLAGS="-dlopen self"
22114 if test "$ol_enable_bdb" != no ; then
22115 cat >> confdefs.h <<\EOF
22116 #define SLAPD_BDB 1
22121 if test "$ol_with_bdb_module" != static ; then
22122 cat >> confdefs.h <<\EOF
22123 #define SLAPD_BDB_DYNAMIC 1
22127 BUILD_BDB_DYNAMIC=shared
22128 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22130 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22134 if test "$ol_link_dnssrv" != no ; then
22135 cat >> confdefs.h <<\EOF
22136 #define SLAPD_DNSSRV 1
22141 if test "$ol_with_dnssrv_module" != static ; then
22142 cat >> confdefs.h <<\EOF
22143 #define SLAPD_DNSSRV_DYNAMIC 1
22147 BUILD_DNSSRV_DYNAMIC=shared
22148 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22150 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22154 if test "$ol_enable_ldap" != no ; then
22155 cat >> confdefs.h <<\EOF
22156 #define SLAPD_LDAP 1
22161 if test "$ol_with_ldap_module" != static ; then
22162 cat >> confdefs.h <<\EOF
22163 #define SLAPD_LDAP_DYNAMIC 1
22167 BUILD_LDAP_DYNAMIC=shared
22168 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22170 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22174 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22175 cat >> confdefs.h <<\EOF
22176 #define SLAPD_LDBM 1
22182 if test "$ol_with_ldbm_module" != static ; then
22183 cat >> confdefs.h <<\EOF
22184 #define SLAPD_LDBM_DYNAMIC 1
22188 BUILD_LDBM_DYNAMIC=shared
22189 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22191 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22195 if test "$ol_enable_meta" != no ; then
22196 if test "$ol_enable_ldap" = no ; then
22197 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22199 if test "$ol_enable_rewrite" = no ; then
22200 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22202 cat >> confdefs.h <<\EOF
22203 #define SLAPD_META 1
22210 if test "$ol_with_meta_module" != static ; then
22211 cat >> confdefs.h <<\EOF
22212 #define SLAPD_META_DYNAMIC 1
22216 BUILD_META_DYNAMIC=shared
22217 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22219 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22223 if test "$ol_enable_monitor" != no ; then
22224 cat >> confdefs.h <<\EOF
22225 #define SLAPD_MONITOR 1
22230 if test "$ol_with_monitor_module" != static ; then
22231 cat >> confdefs.h <<\EOF
22232 #define SLAPD_MONITOR_DYNAMIC 1
22236 BUILD_MONITOR_DYNAMIC=shared
22237 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22239 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22243 if test "$ol_enable_null" != no ; then
22244 cat >> confdefs.h <<\EOF
22245 #define SLAPD_NULL 1
22250 if test "$ol_with_null_module" != static ; then
22251 cat >> confdefs.h <<\EOF
22252 #define SLAPD_NULL_DYNAMIC 1
22256 BUILD_NULL_DYNAMIC=shared
22257 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22259 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22263 if test "$ol_enable_passwd" != no ; then
22264 cat >> confdefs.h <<\EOF
22265 #define SLAPD_PASSWD 1
22270 if test "$ol_with_passwd_module" != static ; then
22271 cat >> confdefs.h <<\EOF
22272 #define SLAPD_PASSWD_DYNAMIC 1
22276 BUILD_PASSWD_DYNAMIC=shared
22277 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22279 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22283 if test "$ol_link_perl" != no ; then
22284 cat >> confdefs.h <<\EOF
22285 #define SLAPD_PERL 1
22290 if test "$ol_with_perl_module" != static ; then
22291 cat >> confdefs.h <<\EOF
22292 #define SLAPD_PERL_DYNAMIC 1
22296 BUILD_PERL_DYNAMIC=shared
22297 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22299 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22303 if test "$ol_enable_shell" != no ; then
22304 cat >> confdefs.h <<\EOF
22305 #define SLAPD_SHELL 1
22310 if test "$ol_with_shell_module" != static ; then
22311 cat >> confdefs.h <<\EOF
22312 #define SLAPD_SHELL_DYNAMIC 1
22316 BUILD_SHELL_DYNAMIC=shared
22317 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22319 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22323 if test "$ol_enable_tcl" != no ; then
22324 cat >> confdefs.h <<\EOF
22325 #define SLAPD_TCL 1
22330 if test "$ol_with_tcl_module" != static; then
22331 cat >> confdefs.h <<\EOF
22332 #define SLAPD_TCL_DYNAMIC 1
22336 BUILD_TCL_DYNAMIC=shared
22337 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22339 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22343 if test "$ol_link_sql" != no ; then
22344 cat >> confdefs.h <<\EOF
22345 #define SLAPD_SQL 1
22350 if test "$ol_with_sql_module" != static; then
22351 cat >> confdefs.h <<\EOF
22352 #define SLAPD_SQL_DYNAMIC 1
22356 BUILD_SQL_DYNAMIC=shared
22357 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22359 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22363 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22364 $BUILD_SLAPD = yes ; then
22368 if test "$ol_enable_rewrite" != no ; then
22369 cat >> confdefs.h <<\EOF
22370 #define ENABLE_REWRITE 1
22378 if test "$ac_cv_mingw32" = yes ; then
22380 SLAPD_MODULES_LDFLAGS=
22453 # Check whether --with-xxinstall or --without-xxinstall was given.
22454 if test "${with_xxinstall+set}" = set; then
22455 withval="$with_xxinstall"
22463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22465 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22466 # Let make expand exec_prefix.
22467 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22469 # Any assignment to VPATH causes Sun make to only execute
22470 # the first set of double-colon rules, so remove it if not needed.
22471 # If there is a colon in the path, we need to keep it.
22472 if test "x$srcdir" = x.; then
22473 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22476 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22478 DEFS=-DHAVE_CONFIG_H
22480 # Without the "./", some shells look in PATH for config.status.
22481 : ${CONFIG_STATUS=./config.status}
22483 echo creating $CONFIG_STATUS
22484 rm -f $CONFIG_STATUS
22485 cat > $CONFIG_STATUS <<EOF
22487 # Generated automatically by configure.
22488 # Run this file to recreate the current configuration.
22489 # This directory was configured as follows,
22490 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22492 # $0 $ac_configure_args
22494 # Compiler output produced by configure, useful for debugging
22495 # configure, is in ./config.log if it exists.
22497 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22500 case "\$ac_option" in
22501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22502 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22503 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22504 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22505 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22507 -help | --help | --hel | --he | --h)
22508 echo "\$ac_cs_usage"; exit 0 ;;
22509 *) echo "\$ac_cs_usage"; exit 1 ;;
22513 ac_given_srcdir=$srcdir
22514 ac_given_INSTALL="$INSTALL"
22516 trap 'rm -fr `echo "\
22517 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22518 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22519 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22520 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22521 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22522 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22523 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22524 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22525 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22526 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22527 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22528 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22529 include/Makefile:build/top.mk:include/Makefile.in \
22530 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22531 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22532 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22533 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22534 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22535 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22536 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22537 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22538 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22539 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22540 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22541 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22542 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22543 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22544 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22545 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22546 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22547 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22548 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22549 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22550 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22551 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22552 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22553 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22554 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22555 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22556 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22557 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22558 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22559 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22561 cat >> $CONFIG_STATUS <<EOF
22563 # Protect against being on the right side of a sed subst in config.status.
22564 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22565 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22569 s%@CFLAGS@%$CFLAGS%g
22570 s%@CPPFLAGS@%$CPPFLAGS%g
22571 s%@CXXFLAGS@%$CXXFLAGS%g
22572 s%@FFLAGS@%$FFLAGS%g
22574 s%@LDFLAGS@%$LDFLAGS%g
22576 s%@exec_prefix@%$exec_prefix%g
22577 s%@prefix@%$prefix%g
22578 s%@program_transform_name@%$program_transform_name%g
22579 s%@bindir@%$bindir%g
22580 s%@sbindir@%$sbindir%g
22581 s%@libexecdir@%$libexecdir%g
22582 s%@datadir@%$datadir%g
22583 s%@sysconfdir@%$sysconfdir%g
22584 s%@sharedstatedir@%$sharedstatedir%g
22585 s%@localstatedir@%$localstatedir%g
22586 s%@libdir@%$libdir%g
22587 s%@includedir@%$includedir%g
22588 s%@oldincludedir@%$oldincludedir%g
22589 s%@infodir@%$infodir%g
22590 s%@mandir@%$mandir%g
22592 s%@host_alias@%$host_alias%g
22593 s%@host_cpu@%$host_cpu%g
22594 s%@host_vendor@%$host_vendor%g
22595 s%@host_os@%$host_os%g
22596 s%@target@%$target%g
22597 s%@target_alias@%$target_alias%g
22598 s%@target_cpu@%$target_cpu%g
22599 s%@target_vendor@%$target_vendor%g
22600 s%@target_os@%$target_os%g
22602 s%@build_alias@%$build_alias%g
22603 s%@build_cpu@%$build_cpu%g
22604 s%@build_vendor@%$build_vendor%g
22605 s%@build_os@%$build_os%g
22606 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22607 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22608 s%@INSTALL_DATA@%$INSTALL_DATA%g
22609 s%@PACKAGE@%$PACKAGE%g
22610 s%@VERSION@%$VERSION%g
22611 s%@ACLOCAL@%$ACLOCAL%g
22612 s%@AUTOCONF@%$AUTOCONF%g
22613 s%@AUTOMAKE@%$AUTOMAKE%g
22614 s%@AUTOHEADER@%$AUTOHEADER%g
22615 s%@MAKEINFO@%$MAKEINFO%g
22616 s%@install_sh@%$install_sh%g
22619 s%@AMTARFLAGS@%$AMTARFLAGS%g
22620 s%@SET_MAKE@%$SET_MAKE%g
22621 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22622 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
22623 s%@top_builddir@%$top_builddir%g
22624 s%@ldap_subdir@%$ldap_subdir%g
22628 s%@OBJEXT@%$OBJEXT%g
22629 s%@EXEEXT@%$EXEEXT%g
22631 s%@RANLIB@%$RANLIB%g
22633 s%@DLLTOOL@%$DLLTOOL%g
22635 s%@OBJDUMP@%$OBJDUMP%g
22637 s%@LIBTOOL@%$LIBTOOL%g
22639 s%@SENDMAIL@%$SENDMAIL%g
22640 s%@EDITOR@%$EDITOR%g
22641 s%@PERLBIN@%$PERLBIN%g
22642 s%@OL_MKDEP@%$OL_MKDEP%g
22643 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22644 s%@LIBOBJS@%$LIBOBJS%g
22645 s%@LIBSRCS@%$LIBSRCS%g
22647 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22648 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22649 s%@BUILD_BDB@%$BUILD_BDB%g
22650 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22651 s%@BUILD_LDAP@%$BUILD_LDAP%g
22652 s%@BUILD_LDBM@%$BUILD_LDBM%g
22653 s%@BUILD_META@%$BUILD_META%g
22654 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22655 s%@BUILD_NULL@%$BUILD_NULL%g
22656 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22657 s%@BUILD_PERL@%$BUILD_PERL%g
22658 s%@BUILD_SHELL@%$BUILD_SHELL%g
22659 s%@BUILD_SQL@%$BUILD_SQL%g
22660 s%@BUILD_TCL@%$BUILD_TCL%g
22661 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22662 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22663 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22664 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22665 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22666 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22667 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22668 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22669 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22670 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22671 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22672 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22673 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22674 s%@LDBM_LIB@%$LDBM_LIB%g
22675 s%@LDAP_LIBS@%$LDAP_LIBS%g
22676 s%@LDIF_LIBS@%$LDIF_LIBS%g
22677 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22678 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22679 s%@LDBM_LIBS@%$LDBM_LIBS%g
22680 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22681 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22682 s%@WRAP_LIBS@%$WRAP_LIBS%g
22683 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22684 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22685 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22686 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22687 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22688 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22689 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22690 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22691 s%@KRB4_LIBS@%$KRB4_LIBS%g
22692 s%@KRB5_LIBS@%$KRB5_LIBS%g
22693 s%@READLINE_LIBS@%$READLINE_LIBS%g
22694 s%@SASL_LIBS@%$SASL_LIBS%g
22695 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22696 s%@TLS_LIBS@%$TLS_LIBS%g
22697 s%@MODULES_LIBS@%$MODULES_LIBS%g
22698 s%@AUTH_LIBS@%$AUTH_LIBS%g
22699 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22700 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22701 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22702 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22707 cat >> $CONFIG_STATUS <<\EOF
22709 # Split the substitutions into bite-sized pieces for seds with
22710 # small command number limits, like on Digital OSF/1 and HP-UX.
22711 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22712 ac_file=1 # Number of current file.
22713 ac_beg=1 # First line for current file.
22714 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22717 while $ac_more_lines; do
22718 if test $ac_beg -gt 1; then
22719 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22721 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22723 if test ! -s conftest.s$ac_file; then
22724 ac_more_lines=false
22725 rm -f conftest.s$ac_file
22727 if test -z "$ac_sed_cmds"; then
22728 ac_sed_cmds="sed -f conftest.s$ac_file"
22730 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22732 ac_file=`expr $ac_file + 1`
22734 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22737 if test -z "$ac_sed_cmds"; then
22742 cat >> $CONFIG_STATUS <<EOF
22744 CONFIG_FILES=\${CONFIG_FILES-"\
22745 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22746 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22747 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22748 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22749 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22750 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22751 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22752 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22753 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22754 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22755 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22756 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22757 include/Makefile:build/top.mk:include/Makefile.in \
22758 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22759 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22760 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22761 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22762 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22763 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22764 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22765 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22766 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22767 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22768 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22769 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22770 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22771 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22772 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22773 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22774 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22775 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22776 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22777 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22778 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22779 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22780 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22781 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22782 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22783 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22784 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22785 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22786 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22789 cat >> $CONFIG_STATUS <<\EOF
22790 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22791 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22793 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22794 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22795 *) ac_file_in="${ac_file}.in" ;;
22798 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22800 # Remove last slash and all that follows it. Not all systems have dirname.
22801 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22802 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22803 # The file is in a subdirectory.
22804 test ! -d "$ac_dir" && mkdir "$ac_dir"
22805 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22806 # A "../" for each directory in $ac_dir_suffix.
22807 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22809 ac_dir_suffix= ac_dots=
22812 case "$ac_given_srcdir" in
22814 if test -z "$ac_dots"; then top_srcdir=.
22815 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22816 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22817 *) # Relative path.
22818 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22819 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22822 case "$ac_given_INSTALL" in
22823 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22824 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22827 echo creating "$ac_file"
22829 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22831 *[Mm]akefile*) ac_comsub="1i\\
22832 # $configure_input" ;;
22836 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22838 s%@configure_input@%$configure_input%g
22839 s%@srcdir@%$srcdir%g
22840 s%@top_srcdir@%$top_srcdir%g
22841 s%@INSTALL@%$INSTALL%g
22842 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22846 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22847 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22849 # ac_d sets the value in "#define NAME VALUE" lines.
22850 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22851 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22854 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22855 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22856 ac_uB='\([ ]\)%\1#\2define\3'
22859 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22860 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22861 ac_eB='$%\1#\2define\3'
22865 if test "${CONFIG_HEADERS+set}" != set; then
22867 cat >> $CONFIG_STATUS <<EOF
22868 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22870 cat >> $CONFIG_STATUS <<\EOF
22872 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22873 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22875 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22876 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22877 *) ac_file_in="${ac_file}.in" ;;
22880 echo creating $ac_file
22882 rm -f conftest.frag conftest.in conftest.out
22883 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22884 cat $ac_file_inputs > conftest.in
22888 # Transform confdefs.h into a sed script conftest.vals that substitutes
22889 # the proper values into config.h.in to produce config.h. And first:
22890 # Protect against being on the right side of a sed subst in config.status.
22891 # Protect against being in an unquoted here document in config.status.
22892 rm -f conftest.vals
22893 cat > conftest.hdr <<\EOF
22896 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22900 sed -n -f conftest.hdr confdefs.h > conftest.vals
22903 # This sed command replaces #undef with comments. This is necessary, for
22904 # example, in the case of _POSIX_SOURCE, which is predefined and required
22905 # on some systems where configure will not decide to define it.
22906 cat >> conftest.vals <<\EOF
22907 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22910 # Break up conftest.vals because some shells have a limit on
22911 # the size of here documents, and old seds have small limits too.
22913 rm -f conftest.tail
22916 ac_lines=`grep -c . conftest.vals`
22917 # grep -c gives empty output for an empty file on some AIX systems.
22918 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22919 # Write a limited-size here document to conftest.frag.
22920 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22921 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22923 sed -f conftest.frag conftest.in > conftest.out
22925 mv conftest.out conftest.in
22926 ' >> $CONFIG_STATUS
22927 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22928 rm -f conftest.vals
22929 mv conftest.tail conftest.vals
22931 rm -f conftest.vals
22933 cat >> $CONFIG_STATUS <<\EOF
22934 rm -f conftest.frag conftest.h
22935 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22936 cat conftest.in >> conftest.h
22938 if cmp -s $ac_file conftest.h 2>/dev/null; then
22939 echo "$ac_file is unchanged"
22942 # Remove last slash and all that follows it. Not all systems have dirname.
22943 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22944 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22945 # The file is in a subdirectory.
22946 test ! -d "$ac_dir" && mkdir "$ac_dir"
22949 mv conftest.h $ac_file
22954 cat >> $CONFIG_STATUS <<EOF
22957 cat >> $CONFIG_STATUS <<\EOF
22960 echo Please run \"make depend\" to build dependencies
22964 chmod +x $CONFIG_STATUS
22965 rm -fr confdefs* $ac_clean_files
22966 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1