3 # from OpenLDAP: pkg/ldap/configure.in,v 1.444 2002/11/09 16:03:07 ando 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' 2>/dev/null`"
874 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
876 echo "Configuring ${TB}${OL_STRING}${TN} ..."
879 echo $ac_n "checking host system type""... $ac_c" 1>&6
880 echo "configure:881: checking host system type" >&5
881 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 ac_cv_host_alias=$host
889 case "$ac_cv_host_alias" in
893 if ac_cv_host_alias=`$ac_config_guess`; then :
894 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896 *) ac_cv_host_alias=$nonopt ;;
900 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
901 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
902 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
903 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo $ac_n "(cached) $ac_c" 1>&6
908 echo "$ac_t""$ac_cv_host" 1>&6
911 host_alias=$ac_cv_host_alias
912 host_cpu=$ac_cv_host_cpu
913 host_vendor=$ac_cv_host_vendor
914 host_os=$ac_cv_host_os
920 echo $ac_n "checking target system type""... $ac_c" 1>&6
921 echo "configure:922: checking target system type" >&5
922 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
924 # Make sure we can run config.sub.
925 if $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 ac_cv_target_alias=$target
930 case "$ac_cv_target_alias" in
934 ac_cv_target_alias=$host_alias ;;
936 *) ac_cv_target_alias=$nonopt ;;
940 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
941 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo $ac_n "(cached) $ac_c" 1>&6
948 echo "$ac_t""$ac_cv_target" 1>&6
951 target_alias=$ac_cv_target_alias
952 target_cpu=$ac_cv_target_cpu
953 target_vendor=$ac_cv_target_vendor
954 target_os=$ac_cv_target_os
960 echo $ac_n "checking build system type""... $ac_c" 1>&6
961 echo "configure:962: checking build system type" >&5
962 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
964 # Make sure we can run config.sub.
965 if $ac_config_sub sun4 >/dev/null 2>&1; then :
966 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
969 ac_cv_build_alias=$build
970 case "$ac_cv_build_alias" in
974 ac_cv_build_alias=$host_alias ;;
976 *) ac_cv_build_alias=$nonopt ;;
980 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
981 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo $ac_n "(cached) $ac_c" 1>&6
988 echo "$ac_t""$ac_cv_build" 1>&6
991 build_alias=$ac_cv_build_alias
992 build_cpu=$ac_cv_build_cpu
993 build_vendor=$ac_cv_build_vendor
994 build_os=$ac_cv_build_os
1000 # Do some error checking and defaulting for the host and target type.
1002 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 # 1. You are not allowed to specify --host, --target, and nonopt at the
1007 # 2. Host defaults to nonopt.
1008 # 3. If nonopt is not specified, then host defaults to the current host,
1009 # as determined by config.guess.
1010 # 4. Target and build default to nonopt.
1011 # 5. If nonopt is not specified, then target and build default to host.
1013 # The aliases save the names the user supplied, while $host etc.
1014 # will get canonicalized.
1015 case $host---$target---$nonopt in
1016 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1026 # Find a good install program. We prefer a C program (faster),
1027 # so one script is as good as another. But avoid the broken or
1028 # incompatible versions:
1029 # SysV /etc/install, /usr/sbin/install
1030 # SunOS /usr/etc/install
1031 # IRIX /sbin/install
1033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1036 # ./install, which can be erroneously created by make from ./install.sh.
1037 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1038 echo "configure:1039: checking for a BSD compatible install" >&5
1039 if test -z "$INSTALL"; then
1040 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1044 for ac_dir in $PATH; do
1045 # Account for people who put trailing slashes in PATH elements.
1047 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 # Don't use installbsd from OSF since it installs stuff as root
1052 for ac_prog in ginstall scoinst install; do
1053 if test -f $ac_dir/$ac_prog; then
1054 if test $ac_prog = install &&
1055 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # AIX install. It has an incompatible calling convention.
1058 elif test $ac_prog = install &&
1059 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # program-specific install script used by HP pwplus--don't use.
1063 ac_cv_path_install="$ac_dir/$ac_prog -c"
1074 if test "${ac_cv_path_install+set}" = set; then
1075 INSTALL="$ac_cv_path_install"
1077 # As a last resort, use the slow shell script. We don't cache a
1078 # path for INSTALL within a source directory, because that will
1079 # break other packages using the cache if that directory is
1080 # removed, or if the path is relative.
1081 INSTALL="$ac_install_sh"
1084 echo "$ac_t""$INSTALL" 1>&6
1086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1087 # It thinks the first close brace ends the variable substitution.
1088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1094 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether build environment is sane" >&5
1098 echo timestamp > conftestfile
1099 # Do `set' in a subshell so we don't clobber the current shell's
1100 # arguments. Must try -L first in case configure is actually a
1101 # symlink; some systems play weird games with the mod time of symlinks
1102 # (eg FreeBSD returns the mod time of the symlink's containing
1105 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1106 if test "$*" = "X"; then
1108 set X `ls -t $srcdir/configure conftestfile`
1110 if test "$*" != "X $srcdir/configure conftestfile" \
1111 && test "$*" != "X conftestfile $srcdir/configure"; then
1113 # If neither matched, then we have a broken ls. This can happen
1114 # if, for instance, CONFIG_SHELL is bash and it inherits a
1115 # broken ls alias from the environment. This has actually
1116 # happened. Such a system could not be considered "sane".
1117 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1118 alias in your environment" 1>&2; exit 1; }
1121 test "$2" = conftestfile
1127 { echo "configure: error: newly created file is older than distributed files!
1128 Check your system clock" 1>&2; exit 1; }
1131 echo "$ac_t""yes" 1>&6
1132 if test "$program_transform_name" = s,x,x,; then
1133 program_transform_name=
1135 # Double any \ or $. echo might interpret backslashes.
1136 cat <<\EOF_SED > conftestsed
1137 s,\\,\\\\,g; s,\$,$$,g
1139 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1142 test "$program_prefix" != NONE &&
1143 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1144 # Use a double $ so make ignores it.
1145 test "$program_suffix" != NONE &&
1146 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1148 # sed with no file args requires a program.
1149 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1151 for ac_prog in mawk gawk nawk awk
1153 # Extract the first word of "$ac_prog", so it can be a program name with args.
1154 set dummy $ac_prog; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$AWK"; then
1161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_AWK="$ac_prog"
1175 AWK="$ac_cv_prog_AWK"
1176 if test -n "$AWK"; then
1177 echo "$ac_t""$AWK" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 test -n "$AWK" && break
1185 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5
1187 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1188 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftestmake <<\EOF
1193 @echo 'ac_maketemp="${MAKE}"'
1195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1196 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1197 if test -n "$ac_maketemp"; then
1198 eval ac_cv_prog_make_${ac_make}_set=yes
1200 eval ac_cv_prog_make_${ac_make}_set=no
1204 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1208 echo "$ac_t""no" 1>&6
1209 SET_MAKE="MAKE=${MAKE-make}"
1218 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1219 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224 missing_dir=`cd $ac_aux_dir && pwd`
1225 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1226 echo "configure:1227: checking for working aclocal" >&5
1227 # Run test in a subshell; some versions of sh will print an error if
1228 # an executable is not found, even if stderr is redirected.
1229 # Redirect stdin to placate older versions of autoconf. Sigh.
1230 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1232 echo "$ac_t""found" 1>&6
1234 ACLOCAL="$missing_dir/missing aclocal"
1235 echo "$ac_t""missing" 1>&6
1238 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1239 echo "configure:1240: checking for working autoconf" >&5
1240 # Run test in a subshell; some versions of sh will print an error if
1241 # an executable is not found, even if stderr is redirected.
1242 # Redirect stdin to placate older versions of autoconf. Sigh.
1243 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1245 echo "$ac_t""found" 1>&6
1247 AUTOCONF="$missing_dir/missing autoconf"
1248 echo "$ac_t""missing" 1>&6
1251 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1252 echo "configure:1253: checking for working automake" >&5
1253 # Run test in a subshell; some versions of sh will print an error if
1254 # an executable is not found, even if stderr is redirected.
1255 # Redirect stdin to placate older versions of autoconf. Sigh.
1256 if (automake --version) < /dev/null > /dev/null 2>&1; then
1258 echo "$ac_t""found" 1>&6
1260 AUTOMAKE="$missing_dir/missing automake"
1261 echo "$ac_t""missing" 1>&6
1264 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1265 echo "configure:1266: checking for working autoheader" >&5
1266 # Run test in a subshell; some versions of sh will print an error if
1267 # an executable is not found, even if stderr is redirected.
1268 # Redirect stdin to placate older versions of autoconf. Sigh.
1269 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1270 AUTOHEADER=autoheader
1271 echo "$ac_t""found" 1>&6
1273 AUTOHEADER="$missing_dir/missing autoheader"
1274 echo "$ac_t""missing" 1>&6
1277 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1278 echo "configure:1279: checking for working makeinfo" >&5
1279 # Run test in a subshell; some versions of sh will print an error if
1280 # an executable is not found, even if stderr is redirected.
1281 # Redirect stdin to placate older versions of autoconf. Sigh.
1282 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1284 echo "$ac_t""found" 1>&6
1286 MAKEINFO="$missing_dir/missing makeinfo"
1287 echo "$ac_t""missing" 1>&6
1290 install_sh="$missing_dir/install-sh"
1291 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1293 for ac_prog in gnutar gtar tar
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$AMTAR"; then
1303 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AMTAR="$ac_prog"
1317 AMTAR="$ac_cv_prog_AMTAR"
1318 if test -n "$AMTAR"; then
1319 echo "$ac_t""$AMTAR" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 test -n "$AMTAR" && break
1329 if test -n "$AMTAR"; then
1330 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_PACKAGE "$PACKAGE"
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_VERSION "$VERSION"
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION $OL_API_INC
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1361 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1367 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1368 echo "configure:1369: checking configure arguments" >&5
1373 ldap_subdir="/openldap"
1375 # Check whether --with-subdir or --without-subdir was given.
1376 if test "${with_subdir+set}" = set; then
1377 withval="$with_subdir"
1384 ldap_subdir="$withval"
1387 ldap_subdir="/$withval"
1394 # OpenLDAP --enable-debug
1395 # Check whether --enable-debug or --disable-debug was given.
1396 if test "${enable_debug+set}" = set; then
1397 enableval="$enable_debug"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1408 ol_enable_debug="$ol_arg"
1411 ol_enable_debug="yes"
1413 # end --enable-debug
1414 # OpenLDAP --enable-syslog
1415 # Check whether --enable-syslog or --disable-syslog was given.
1416 if test "${enable_syslog+set}" = set; then
1417 enableval="$enable_syslog"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1428 ol_enable_syslog="$ol_arg"
1431 ol_enable_syslog="auto"
1433 # end --enable-syslog
1434 # OpenLDAP --enable-proctitle
1435 # Check whether --enable-proctitle or --disable-proctitle was given.
1436 if test "${enable_proctitle+set}" = set; then
1437 enableval="$enable_proctitle"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1448 ol_enable_proctitle="$ol_arg"
1451 ol_enable_proctitle="yes"
1453 # end --enable-proctitle
1454 # OpenLDAP --enable-cache
1455 # Check whether --enable-cache or --disable-cache was given.
1456 if test "${enable_cache+set}" = set; then
1457 enableval="$enable_cache"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1468 ol_enable_cache="$ol_arg"
1471 ol_enable_cache="no"
1473 # end --enable-cache
1474 # OpenLDAP --enable-referrals
1475 # Check whether --enable-referrals or --disable-referrals was given.
1476 if test "${enable_referrals+set}" = set; then
1477 enableval="$enable_referrals"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1488 ol_enable_referrals="$ol_arg"
1491 ol_enable_referrals="no"
1493 # end --enable-referrals
1494 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1535 # OpenLDAP --enable-x_compile
1536 # Check whether --enable-x_compile or --disable-x_compile was given.
1537 if test "${enable_x_compile+set}" = set; then
1538 enableval="$enable_x_compile"
1541 for ol_val in yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1549 ol_enable_x_compile="$ol_arg"
1552 ol_enable_x_compile="no"
1554 # end --enable-x_compile
1557 # OpenLDAP --with-cyrus_sasl
1558 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1559 if test "${with_cyrus_sasl+set}" = set; then
1560 withval="$with_cyrus_sasl"
1563 for ol_val in auto yes no ; do
1564 if test "$withval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1571 ol_with_cyrus_sasl="$ol_arg"
1574 ol_with_cyrus_sasl="auto"
1576 # end --with-cyrus_sasl
1578 # OpenLDAP --with-fetch
1579 # Check whether --with-fetch or --without-fetch was given.
1580 if test "${with_fetch+set}" = set; then
1581 withval="$with_fetch"
1584 for ol_val in auto yes no ; do
1585 if test "$withval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1592 ol_with_fetch="$ol_arg"
1595 ol_with_fetch="auto"
1599 # OpenLDAP --with-kerberos
1600 # Check whether --with-kerberos or --without-kerberos was given.
1601 if test "${with_kerberos+set}" = set; then
1602 withval="$with_kerberos"
1605 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1606 if test "$withval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1613 ol_with_kerberos="$ol_arg"
1616 ol_with_kerberos="auto"
1618 # end --with-kerberos
1620 # OpenLDAP --with-readline
1621 # Check whether --with-readline or --without-readline was given.
1622 if test "${with_readline+set}" = set; then
1623 withval="$with_readline"
1626 for ol_val in auto yes no ; do
1627 if test "$withval" = "$ol_val" ; then
1631 if test "$ol_arg" = "invalid" ; then
1632 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1634 ol_with_readline="$ol_arg"
1637 ol_with_readline="auto"
1639 # end --with-readline
1641 # OpenLDAP --with-threads
1642 # Check whether --with-threads or --without-threads was given.
1643 if test "${with_threads+set}" = set; then
1644 withval="$with_threads"
1647 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1655 ol_with_threads="$ol_arg"
1658 ol_with_threads="auto"
1660 # end --with-threads
1662 # OpenLDAP --with-tls
1663 # Check whether --with-tls or --without-tls was given.
1664 if test "${with_tls+set}" = set; then
1668 for ol_val in auto ssleay openssl yes no ; do
1669 if test "$withval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1676 ol_with_tls="$ol_arg"
1683 # OpenLDAP --with-yielding_select
1684 # Check whether --with-yielding_select or --without-yielding_select was given.
1685 if test "${with_yielding_select+set}" = set; then
1686 withval="$with_yielding_select"
1689 for ol_val in auto yes no manual ; do
1690 if test "$withval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1697 ol_with_yielding_select="$ol_arg"
1700 ol_with_yielding_select="auto"
1702 # end --with-yielding_select
1706 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1707 if test "${with_xxslapdoptions+set}" = set; then
1708 withval="$with_xxslapdoptions"
1712 # OpenLDAP --enable-slapd
1713 # Check whether --enable-slapd or --disable-slapd was given.
1714 if test "${enable_slapd+set}" = set; then
1715 enableval="$enable_slapd"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1726 ol_enable_slapd="$ol_arg"
1729 ol_enable_slapd="yes"
1731 # end --enable-slapd
1732 # OpenLDAP --enable-aci
1733 # Check whether --enable-aci or --disable-aci was given.
1734 if test "${enable_aci+set}" = set; then
1735 enableval="$enable_aci"
1738 for ol_val in auto yes no ; do
1739 if test "$enableval" = "$ol_val" ; then
1743 if test "$ol_arg" = "invalid" ; then
1744 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1746 ol_enable_aci="$ol_arg"
1752 # OpenLDAP --enable-cleartext
1753 # Check whether --enable-cleartext or --disable-cleartext was given.
1754 if test "${enable_cleartext+set}" = set; then
1755 enableval="$enable_cleartext"
1758 for ol_val in auto yes no ; do
1759 if test "$enableval" = "$ol_val" ; then
1763 if test "$ol_arg" = "invalid" ; then
1764 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1766 ol_enable_cleartext="$ol_arg"
1769 ol_enable_cleartext="yes"
1771 # end --enable-cleartext
1772 # OpenLDAP --enable-crypt
1773 # Check whether --enable-crypt or --disable-crypt was given.
1774 if test "${enable_crypt+set}" = set; then
1775 enableval="$enable_crypt"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1786 ol_enable_crypt="$ol_arg"
1789 ol_enable_crypt="no"
1791 # end --enable-crypt
1792 # OpenLDAP --enable-dynamic
1793 # Check whether --enable-dynamic or --disable-dynamic was given.
1794 if test "${enable_dynamic+set}" = set; then
1795 enableval="$enable_dynamic"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1806 ol_enable_dynamic="$ol_arg"
1809 ol_enable_dynamic="no"
1811 # end --enable-dynamic
1812 # OpenLDAP --enable-kpasswd
1813 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1814 if test "${enable_kpasswd+set}" = set; then
1815 enableval="$enable_kpasswd"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1826 ol_enable_kpasswd="$ol_arg"
1829 ol_enable_kpasswd="no"
1831 # end --enable-kpasswd
1832 # OpenLDAP --enable-lmpasswd
1833 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1834 if test "${enable_lmpasswd+set}" = set; then
1835 enableval="$enable_lmpasswd"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1846 ol_enable_lmpasswd="$ol_arg"
1849 ol_enable_lmpasswd="no"
1851 # end --enable-lmpasswd
1852 # OpenLDAP --enable-spasswd
1853 # Check whether --enable-spasswd or --disable-spasswd was given.
1854 if test "${enable_spasswd+set}" = set; then
1855 enableval="$enable_spasswd"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1866 ol_enable_spasswd="$ol_arg"
1869 ol_enable_spasswd="no"
1871 # end --enable-spasswd
1872 # OpenLDAP --enable-modules
1873 # Check whether --enable-modules or --disable-modules was given.
1874 if test "${enable_modules+set}" = set; then
1875 enableval="$enable_modules"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1886 ol_enable_modules="$ol_arg"
1889 ol_enable_modules="no"
1891 # end --enable-modules
1892 ol_enable_multimaster=${ol_enable_multimaster-no}
1893 # OpenLDAP --enable-phonetic
1894 # Check whether --enable-phonetic or --disable-phonetic was given.
1895 if test "${enable_phonetic+set}" = set; then
1896 enableval="$enable_phonetic"
1899 for ol_val in auto yes no ; do
1900 if test "$enableval" = "$ol_val" ; then
1904 if test "$ol_arg" = "invalid" ; then
1905 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1907 ol_enable_phonetic="$ol_arg"
1910 ol_enable_phonetic="no"
1912 # end --enable-phonetic
1913 # OpenLDAP --enable-rewrite
1914 # Check whether --enable-rewrite or --disable-rewrite was given.
1915 if test "${enable_rewrite+set}" = set; then
1916 enableval="$enable_rewrite"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1927 ol_enable_rewrite="$ol_arg"
1930 ol_enable_rewrite="no"
1932 # end --enable-rewrite
1933 # OpenLDAP --enable-rlookups
1934 # Check whether --enable-rlookups or --disable-rlookups was given.
1935 if test "${enable_rlookups+set}" = set; then
1936 enableval="$enable_rlookups"
1939 for ol_val in auto yes no ; do
1940 if test "$enableval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1947 ol_enable_rlookups="$ol_arg"
1950 ol_enable_rlookups="no"
1952 # end --enable-rlookups
1953 # OpenLDAP --enable-slp
1954 # Check whether --enable-slp or --disable-slp was given.
1955 if test "${enable_slp+set}" = set; then
1956 enableval="$enable_slp"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1967 ol_enable_slp="$ol_arg"
1973 # OpenLDAP --enable-wrappers
1974 # Check whether --enable-wrappers or --disable-wrappers was given.
1975 if test "${enable_wrappers+set}" = set; then
1976 enableval="$enable_wrappers"
1979 for ol_val in auto yes no ; do
1980 if test "$enableval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1987 ol_enable_wrappers="$ol_arg"
1990 ol_enable_wrappers="no"
1992 # end --enable-wrappers
1994 # OpenLDAP --enable-bdb
1995 # Check whether --enable-bdb or --disable-bdb was given.
1996 if test "${enable_bdb+set}" = set; then
1997 enableval="$enable_bdb"
2000 for ol_val in auto yes no ; do
2001 if test "$enableval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2008 ol_enable_bdb="$ol_arg"
2014 # OpenLDAP --with-bdb_module
2015 # Check whether --with-bdb_module or --without-bdb_module was given.
2016 if test "${with_bdb_module+set}" = set; then
2017 withval="$with_bdb_module"
2020 for ol_val in static dynamic ; do
2021 if test "$withval" = "$ol_val" ; then
2025 if test "$ol_arg" = "invalid" ; then
2026 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2028 ol_with_bdb_module="$ol_arg"
2031 ol_with_bdb_module="static"
2033 # end --with-bdb_module
2035 # OpenLDAP --enable-dnssrv
2036 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2037 if test "${enable_dnssrv+set}" = set; then
2038 enableval="$enable_dnssrv"
2041 for ol_val in auto yes no ; do
2042 if test "$enableval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2049 ol_enable_dnssrv="$ol_arg"
2052 ol_enable_dnssrv="no"
2054 # end --enable-dnssrv
2055 # OpenLDAP --with-dnssrv_module
2056 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2057 if test "${with_dnssrv_module+set}" = set; then
2058 withval="$with_dnssrv_module"
2061 for ol_val in static dynamic ; do
2062 if test "$withval" = "$ol_val" ; then
2066 if test "$ol_arg" = "invalid" ; then
2067 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2069 ol_with_dnssrv_module="$ol_arg"
2072 ol_with_dnssrv_module="static"
2074 # end --with-dnssrv_module
2076 # OpenLDAP --enable-ldap
2077 # Check whether --enable-ldap or --disable-ldap was given.
2078 if test "${enable_ldap+set}" = set; then
2079 enableval="$enable_ldap"
2082 for ol_val in auto yes no ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2090 ol_enable_ldap="$ol_arg"
2096 # OpenLDAP --with-ldap_module
2097 # Check whether --with-ldap_module or --without-ldap_module was given.
2098 if test "${with_ldap_module+set}" = set; then
2099 withval="$with_ldap_module"
2102 for ol_val in static dynamic ; do
2103 if test "$withval" = "$ol_val" ; then
2107 if test "$ol_arg" = "invalid" ; then
2108 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2110 ol_with_ldap_module="$ol_arg"
2113 ol_with_ldap_module="static"
2115 # end --with-ldap_module
2117 # OpenLDAP --enable-ldbm
2118 # Check whether --enable-ldbm or --disable-ldbm was given.
2119 if test "${enable_ldbm+set}" = set; then
2120 enableval="$enable_ldbm"
2123 for ol_val in auto yes no ; do
2124 if test "$enableval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2131 ol_enable_ldbm="$ol_arg"
2137 # OpenLDAP --with-ldbm_api
2138 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2139 if test "${with_ldbm_api+set}" = set; then
2140 withval="$with_ldbm_api"
2143 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2144 if test "$withval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2151 ol_with_ldbm_api="$ol_arg"
2154 ol_with_ldbm_api="auto"
2156 # end --with-ldbm_api
2158 # OpenLDAP --with-ldbm_module
2159 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2160 if test "${with_ldbm_module+set}" = set; then
2161 withval="$with_ldbm_module"
2164 for ol_val in static dynamic ; do
2165 if test "$withval" = "$ol_val" ; then
2169 if test "$ol_arg" = "invalid" ; then
2170 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2172 ol_with_ldbm_module="$ol_arg"
2175 ol_with_ldbm_module="static"
2177 # end --with-ldbm_module
2179 # OpenLDAP --with-ldbm_type
2180 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2181 if test "${with_ldbm_type+set}" = set; then
2182 withval="$with_ldbm_type"
2185 for ol_val in auto btree hash ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2193 ol_with_ldbm_type="$ol_arg"
2196 ol_with_ldbm_type="auto"
2198 # end --with-ldbm_type
2200 # OpenLDAP --enable-meta
2201 # Check whether --enable-meta or --disable-meta was given.
2202 if test "${enable_meta+set}" = set; then
2203 enableval="$enable_meta"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2214 ol_enable_meta="$ol_arg"
2220 # OpenLDAP --with-meta_module
2221 # Check whether --with-meta_module or --without-meta_module was given.
2222 if test "${with_meta_module+set}" = set; then
2223 withval="$with_meta_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2234 ol_with_meta_module="$ol_arg"
2237 ol_with_meta_module="static"
2239 # end --with-meta_module
2241 # OpenLDAP --enable-monitor
2242 # Check whether --enable-monitor or --disable-monitor was given.
2243 if test "${enable_monitor+set}" = set; then
2244 enableval="$enable_monitor"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2255 ol_enable_monitor="$ol_arg"
2258 ol_enable_monitor="no"
2260 # end --enable-monitor
2261 # OpenLDAP --with-monitor_module
2262 # Check whether --with-monitor_module or --without-monitor_module was given.
2263 if test "${with_monitor_module+set}" = set; then
2264 withval="$with_monitor_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2275 ol_with_monitor_module="$ol_arg"
2278 ol_with_monitor_module="static"
2280 # end --with-monitor_module
2282 # OpenLDAP --enable-null
2283 # Check whether --enable-null or --disable-null was given.
2284 if test "${enable_null+set}" = set; then
2285 enableval="$enable_null"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2296 ol_enable_null="$ol_arg"
2302 # OpenLDAP --with-null_module
2303 # Check whether --with-null_module or --without-null_module was given.
2304 if test "${with_null_module+set}" = set; then
2305 withval="$with_null_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2316 ol_with_null_module="$ol_arg"
2319 ol_with_null_module="static"
2321 # end --with-null_module
2323 # OpenLDAP --enable-passwd
2324 # Check whether --enable-passwd or --disable-passwd was given.
2325 if test "${enable_passwd+set}" = set; then
2326 enableval="$enable_passwd"
2329 for ol_val in auto yes no ; do
2330 if test "$enableval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2337 ol_enable_passwd="$ol_arg"
2340 ol_enable_passwd="no"
2342 # end --enable-passwd
2343 # OpenLDAP --with-passwd_module
2344 # Check whether --with-passwd_module or --without-passwd_module was given.
2345 if test "${with_passwd_module+set}" = set; then
2346 withval="$with_passwd_module"
2349 for ol_val in static dynamic ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2357 ol_with_passwd_module="$ol_arg"
2360 ol_with_passwd_module="static"
2362 # end --with-passwd_module
2364 # OpenLDAP --enable-perl
2365 # Check whether --enable-perl or --disable-perl was given.
2366 if test "${enable_perl+set}" = set; then
2367 enableval="$enable_perl"
2370 for ol_val in auto yes no ; do
2371 if test "$enableval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2378 ol_enable_perl="$ol_arg"
2384 # OpenLDAP --with-perl_module
2385 # Check whether --with-perl_module or --without-perl_module was given.
2386 if test "${with_perl_module+set}" = set; then
2387 withval="$with_perl_module"
2390 for ol_val in static dynamic ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2398 ol_with_perl_module="$ol_arg"
2401 ol_with_perl_module="static"
2403 # end --with-perl_module
2405 # OpenLDAP --enable-shell
2406 # Check whether --enable-shell or --disable-shell was given.
2407 if test "${enable_shell+set}" = set; then
2408 enableval="$enable_shell"
2411 for ol_val in auto yes no ; do
2412 if test "$enableval" = "$ol_val" ; then
2416 if test "$ol_arg" = "invalid" ; then
2417 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2419 ol_enable_shell="$ol_arg"
2422 ol_enable_shell="no"
2424 # end --enable-shell
2425 # OpenLDAP --with-shell_module
2426 # Check whether --with-shell_module or --without-shell_module was given.
2427 if test "${with_shell_module+set}" = set; then
2428 withval="$with_shell_module"
2431 for ol_val in static dynamic ; do
2432 if test "$withval" = "$ol_val" ; then
2436 if test "$ol_arg" = "invalid" ; then
2437 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2439 ol_with_shell_module="$ol_arg"
2442 ol_with_shell_module="static"
2444 # end --with-shell_module
2446 # OpenLDAP --enable-sql
2447 # Check whether --enable-sql or --disable-sql was given.
2448 if test "${enable_sql+set}" = set; then
2449 enableval="$enable_sql"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2460 ol_enable_sql="$ol_arg"
2466 # OpenLDAP --with-sql_module
2467 # Check whether --with-sql_module or --without-sql_module was given.
2468 if test "${with_sql_module+set}" = set; then
2469 withval="$with_sql_module"
2472 for ol_val in static dynamic ; do
2473 if test "$withval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2480 ol_with_sql_module="$ol_arg"
2483 ol_with_sql_module="static"
2485 # end --with-sql_module
2487 # OpenLDAP --enable-tcl
2488 # Check whether --enable-tcl or --disable-tcl was given.
2489 if test "${enable_tcl+set}" = set; then
2490 enableval="$enable_tcl"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2501 ol_enable_tcl="$ol_arg"
2507 # OpenLDAP --with-tcl_module
2508 # Check whether --with-tcl_module or --without-tcl_module was given.
2509 if test "${with_tcl_module+set}" = set; then
2510 withval="$with_tcl_module"
2513 for ol_val in static dynamic ; do
2514 if test "$withval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2521 ol_with_tcl_module="$ol_arg"
2524 ol_with_tcl_module="static"
2526 # end --with-tcl_module
2529 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2530 if test "${with_xxslurpdoptions+set}" = set; then
2531 withval="$with_xxslurpdoptions"
2535 # OpenLDAP --enable-slurpd
2536 # Check whether --enable-slurpd or --disable-slurpd was given.
2537 if test "${enable_slurpd+set}" = set; then
2538 enableval="$enable_slurpd"
2541 for ol_val in auto yes no ; do
2542 if test "$enableval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2549 ol_enable_slurpd="$ol_arg"
2552 ol_enable_slurpd="auto"
2554 # end --enable-slurpd
2556 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2557 if test "${with_xxliboptions+set}" = set; then
2558 withval="$with_xxliboptions"
2562 # Check whether --enable-static or --disable-static was given.
2563 if test "${enable_static+set}" = set; then
2564 enableval="$enable_static"
2565 p=${PACKAGE-default}
2567 yes) enable_static=yes ;;
2568 no) enable_static=no ;;
2571 # Look at the argument we got. We use all the common list separators.
2572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2573 for pkg in $enableval; do
2574 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-shared or --disable-shared was given.
2586 if test "${enable_shared+set}" = set; then
2587 enableval="$enable_shared"
2588 p=${PACKAGE-default}
2590 yes) enable_shared=yes ;;
2591 no) enable_shared=no ;;
2594 # Look at the argument we got. We use all the common list separators.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2596 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2611 if test $ol_enable_slapd = no ; then
2612 if test $ol_enable_bdb = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2615 if test $ol_enable_dnssrv = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2618 if test $ol_enable_ldap = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2621 if test $ol_enable_ldbm = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2624 if test $ol_enable_meta = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2627 if test $ol_enable_monitor = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2630 if test $ol_enable_null = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2633 if test $ol_enable_passwd = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2636 if test $ol_enable_perl = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2639 if test $ol_enable_shell = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2642 if test $ol_enable_tcl = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2645 if test $ol_enable_sql = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2648 if test $ol_enable_modules = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2651 if test $ol_enable_multimaster = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2654 if test $ol_enable_wrappers = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2657 if test $ol_enable_phonetic = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2660 if test $ol_enable_rlookups = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2663 if test $ol_enable_aci = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2666 if test $ol_with_ldbm_api != auto ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2669 if test $ol_with_ldbm_type != auto ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2672 if test $ol_with_bdb_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2675 if test $ol_with_dnssrv_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2678 if test $ol_with_ldap_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2681 if test $ol_with_ldbm_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2684 if test $ol_with_meta_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2687 if test $ol_with_monitor_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2690 if test $ol_with_null_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2693 if test $ol_with_passwd_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2696 if test $ol_with_perl_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2699 if test $ol_with_shell_module != static ; then
2700 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2702 if test $ol_with_tcl_module != static ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2705 if test $ol_with_sql_module != static ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2708 if test $ol_enable_slurpd = yes ; then
2709 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2711 if test $ol_enable_rewrite = yes ; then
2712 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2715 # force settings to no
2721 ol_enable_monitor=no
2729 ol_enable_modules=no
2730 ol_enable_multimaster=no
2731 ol_enable_phonetic=no
2732 ol_enable_rlookups=no
2734 ol_enable_wrappers=no
2735 ol_enable_dynamic=no
2738 ol_with_ldbm_type=no
2740 ol_with_bdb_module=static
2741 ol_with_dnssrv_module=static
2742 ol_with_ldap_module=static
2743 ol_with_ldbm_module=static
2744 ol_with_meta_module=static
2745 ol_with_monitor_module=static
2746 ol_with_null_module=static
2747 ol_with_passwd_module=static
2748 ol_with_perl_module=static
2749 ol_with_shell_module=static
2750 ol_with_tcl_module=static
2751 ol_with_sql_module=static
2755 ol_enable_rewrite=no
2757 elif test $ol_enable_ldbm = no ; then
2759 if test $ol_with_ldbm_api != auto ; then
2760 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2763 if test $ol_with_ldbm_type != auto ; then
2764 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2767 if test $ol_with_ldbm_module != static ; then
2768 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2771 if test $ol_enable_modules != yes -a \
2772 $ol_enable_bdb = no -a \
2773 $ol_enable_dnssrv = no -a \
2774 $ol_enable_ldap = no -a \
2775 $ol_enable_meta = no -a \
2776 $ol_enable_monitor = no -a \
2777 $ol_enable_null = no -a \
2778 $ol_enable_passwd = no -a \
2779 $ol_enable_perl = no -a \
2780 $ol_enable_shell = no -a \
2781 $ol_enable_sql = no -a \
2782 $ol_enable_tcl = no ; then
2784 if test $ol_enable_slapd = yes ; then
2785 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2787 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2793 ol_with_ldbm_type=no
2794 ol_with_ldbm_module=static
2796 if test $ol_enable_bdb != no ; then
2797 ol_with_ldbm_api=berkeley
2801 if test $ol_with_ldbm_api = gdbm -a \
2802 $ol_with_ldbm_type = btree ; then
2803 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2805 if test $ol_with_ldbm_api = mdbm -a \
2806 $ol_with_ldbm_type = btree ; then
2807 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2809 if test $ol_with_ldbm_api = ndbm -a \
2810 $ol_with_ldbm_type = btree ; then
2811 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2814 if test $ol_enable_bdb = yes ; then
2815 if test $ol_with_ldbm_api = auto ; then
2816 ol_with_ldbm_api=berkeley
2817 elif test $ol_with_ldbm_api != berkeley ; then
2818 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2821 elif test $ol_enable_bdb = auto ; then
2822 if test $ol_with_ldbm_api != berkeley \
2823 -o $ol_with_ldbm_api != auto ; then
2824 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2830 if test $ol_enable_slurpd = yes ; then
2831 if test $ol_with_threads = no ; then
2832 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2836 if test $ol_enable_lmpasswd = yes ; then
2837 if test $ol_with_tls = no ; then
2838 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2842 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2843 if test $ol_with_kerberos = no ; then
2844 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2845 elif test $ol_with_kerberos = auto ; then
2846 ol_with_kerberos=yes
2849 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2850 if test $ol_with_kerberos = auto ; then
2852 elif test $ol_with_kerberos != no ; then
2853 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2858 if test $ol_enable_spasswd = yes ; then
2859 if test $ol_with_cyrus_sasl = no ; then
2860 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2862 ol_with_cyrus_sasl=yes
2865 echo "$ac_t""done" 1>&6
2894 BUILD_BDB_DYNAMIC=static
2895 BUILD_DNSSRV_DYNAMIC=static
2896 BUILD_LDAP_DYNAMIC=static
2897 BUILD_LDBM_DYNAMIC=static
2898 BUILD_META_DYNAMIC=static
2899 BUILD_MONITOR_DYNAMIC=static
2900 BUILD_NULL_DYNAMIC=static
2901 BUILD_PASSWD_DYNAMIC=static
2902 BUILD_PERL_DYNAMIC=static
2903 BUILD_SHELL_DYNAMIC=static
2904 BUILD_TCL_DYNAMIC=static
2905 BUILD_SQL_DYNAMIC=static
2907 SLAPD_MODULES_LDFLAGS=
2908 SLAPD_MODULES_CPPFLAGS=
2910 SLAPD_STATIC_BACKENDS=
2911 SLAPD_DYNAMIC_BACKENDS=
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2946 echo "configure:2947: checking for a BSD compatible install" >&5
2947 if test -z "$INSTALL"; then
2948 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2952 for ac_dir in $PATH; do
2953 # Account for people who put trailing slashes in PATH elements.
2955 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2960 for ac_prog in ginstall scoinst install; do
2961 if test -f $ac_dir/$ac_prog; then
2962 if test $ac_prog = install &&
2963 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2966 elif test $ac_prog = install &&
2967 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2971 ac_cv_path_install="$ac_dir/$ac_prog -c"
2982 if test "${ac_cv_path_install+set}" = set; then
2983 INSTALL="$ac_cv_path_install"
2985 # As a last resort, use the slow shell script. We don't cache a
2986 # path for INSTALL within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the path is relative.
2989 INSTALL="$ac_install_sh"
2992 echo "$ac_t""$INSTALL" 1>&6
2994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2995 # It thinks the first close brace ends the variable substitution.
2996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_MKVERSION 1
3012 *-*-aix*) if test -z "$CC" ; then
3013 case "$ol_with_threads" in
3014 auto | yes | posix) ol_aix_threads=yes ;;
3020 if test $ol_aix_threads = yes ; then
3021 if test -z "${CC}" ; then
3022 for ac_prog in cc_r xlc_r cc
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_CC="$ac_prog"
3047 if test -n "$CC"; then
3048 echo "$ac_t""$CC" 1>&6
3050 echo "$ac_t""no" 1>&6
3053 test -n "$CC" && break
3057 if test "$CC" = cc ; then
3058 if test $ol_with_threads != auto ; then
3059 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3061 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3067 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3068 ol_with_threads=posix
3069 ol_cv_pthread_create=yes
3073 if test -z "${CC}"; then
3074 for ac_prog in cc gcc
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3080 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_CC="$ac_prog"
3099 if test -n "$CC"; then
3100 echo "$ac_t""$CC" 1>&6
3102 echo "$ac_t""no" 1>&6
3105 test -n "$CC" && break
3107 test -n "$CC" || CC="missing"
3110 if test "${CC}" = "missing" ; then
3111 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3115 if test -z "${AR}"; then
3116 for ac_prog in ar gar
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_word" >&5
3122 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 if test -n "$AR"; then
3126 ac_cv_prog_AR="$AR" # Let the user override the test.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3130 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 if test -f $ac_dir/$ac_word; then
3133 ac_cv_prog_AR="$ac_prog"
3141 if test -n "$AR"; then
3142 echo "$ac_t""$AR" 1>&6
3144 echo "$ac_t""no" 1>&6
3147 test -n "$AR" && break
3149 test -n "$AR" || AR="missing"
3152 if test "${AR}" = "missing" ; then
3153 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3159 # Find the correct PATH separator. Usually this is `:', but
3160 # DJGPP uses `;' like DOS.
3161 if test "X${PATH_SEPARATOR+set}" != Xset; then
3162 UNAME=${UNAME-`uname 2>/dev/null`}
3164 *-DOS) lt_cv_sys_path_separator=';' ;;
3165 *) lt_cv_sys_path_separator=':' ;;
3167 PATH_SEPARATOR=$lt_cv_sys_path_separator
3170 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3171 echo "configure:3172: checking for Cygwin environment" >&5
3172 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3182 #define __CYGWIN__ __CYGWIN32__
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3199 echo "$ac_t""$ac_cv_cygwin" 1>&6
3201 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3202 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3203 echo "configure:3204: checking for mingw32 environment" >&5
3204 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3227 echo "$ac_t""$ac_cv_mingw32" 1>&6
3229 test "$ac_cv_mingw32" = yes && MINGW32=yes
3230 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3231 echo "configure:3232: checking for EMX OS/2 environment" >&5
3232 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3255 echo "$ac_t""$ac_cv_emxos2" 1>&6
3257 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3258 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3259 echo "configure:3260: checking how to run the C preprocessor" >&5
3260 # On Suns, sometimes $CPP names a directory.
3261 if test -n "$CPP" && test -d "$CPP"; then
3264 if test -z "$CPP"; then
3265 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 # This must be in double quotes, not single quotes, because CPP may get
3269 # substituted into the Makefile and "${CC-cc}" will confuse make.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp.
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3280 { (eval echo configure:3281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3282 if test -z "$ac_err"; then
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 CPP="${CC-cc} -E -traditional-cpp"
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 CPP="${CC-cc} -nologo -E"
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3314 { (eval echo configure:3315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3316 if test -z "$ac_err"; then
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3330 ac_cv_prog_CPP="$CPP"
3332 CPP="$ac_cv_prog_CPP"
3334 ac_cv_prog_CPP="$CPP"
3336 echo "$ac_t""$CPP" 1>&6
3338 # Check whether --enable-fast-install or --disable-fast-install was given.
3339 if test "${enable_fast_install+set}" = set; then
3340 enableval="$enable_fast_install"
3341 p=${PACKAGE-default}
3343 yes) enable_fast_install=yes ;;
3344 no) enable_fast_install=no ;;
3346 enable_fast_install=no
3347 # Look at the argument we got. We use all the common list separators.
3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3349 for pkg in $enableval; do
3350 if test "X$pkg" = "X$p"; then
3351 enable_fast_install=yes
3358 enable_fast_install=yes
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 for ac_dir in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir=.
3375 if test -f $ac_dir/$ac_word; then
3384 if test -n "$CC"; then
3385 echo "$ac_t""$CC" 1>&6
3387 echo "$ac_t""no" 1>&6
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3407 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy $ac_cv_prog_CC
3420 if test $# -gt 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3425 set dummy "$ac_dir/$ac_word" "$@"
3433 if test -n "$CC"; then
3434 echo "$ac_t""$CC" 1>&6
3436 echo "$ac_t""no" 1>&6
3439 if test -z "$CC"; then
3440 case "`uname -s`" in
3441 *win32* | *WIN32* | *CYGWIN*)
3442 # Extract the first word of "cl", so it can be a program name with args.
3443 set dummy cl; ac_word=$2
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_word" >&5
3446 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3454 for ac_dir in $ac_dummy; do
3455 test -z "$ac_dir" && ac_dir=.
3456 if test -f $ac_dir/$ac_word; then
3465 if test -n "$CC"; then
3466 echo "$ac_t""$CC" 1>&6
3468 echo "$ac_t""no" 1>&6
3473 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3476 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3477 echo "configure:3478: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cc_cross
3486 cat > conftest.$ac_ext << EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 ac_cv_prog_cc_works=yes
3495 # If we can't run a trivial program, we are probably using a cross compiler.
3496 if (./conftest; exit) 2>/dev/null; then
3497 ac_cv_prog_cc_cross=no
3499 ac_cv_prog_cc_cross=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 ac_cv_prog_cc_works=no
3508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3512 cross_compiling=$ac_cv_prog_cc_cross
3514 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3515 if test $ac_cv_prog_cc_works = no; then
3516 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3518 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3520 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3521 cross_compiling=$ac_cv_prog_cc_cross
3523 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3524 echo "configure:3525: checking whether we are using GNU C" >&5
3525 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.c <<EOF
3533 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3540 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3542 if test $ac_cv_prog_gcc = yes; then
3548 ac_test_CFLAGS="${CFLAGS+set}"
3549 ac_save_CFLAGS="$CFLAGS"
3551 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether ${CC-cc} accepts -g" >&5
3553 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 echo 'void f(){}' > conftest.c
3557 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3566 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS="$ac_save_CFLAGS"
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3576 if test "$GCC" = yes; then
3583 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3584 if test "${with_gnu_ld+set}" = set; then
3585 withval="$with_gnu_ld"
3586 test "$withval" = no || with_gnu_ld=yes
3592 if test "$GCC" = yes; then
3593 # Check if gcc -print-prog-name=ld gives a path.
3594 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ld used by GCC" >&5
3598 # gcc leaves a trailing carriage return which upsets mingw
3599 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3601 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3604 # Accept absolute paths.
3605 [\\/]* | [A-Za-z]:[\\/]*)
3606 re_direlt='/[^/][^/]*/\.\./'
3607 # Canonicalize the path of ld
3608 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3609 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3610 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3612 test -z "$LD" && LD="$ac_prog"
3615 # If it fails, then pretend we aren't using GCC.
3619 # If it is relative, then search for the first ld in PATH.
3623 elif test "$with_gnu_ld" = yes; then
3624 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3625 echo "configure:3626: checking for GNU ld" >&5
3627 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3628 echo "configure:3629: checking for non-GNU ld" >&5
3630 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 if test -z "$LD"; then
3634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3635 for ac_dir in $PATH; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3638 lt_cv_path_LD="$ac_dir/$ac_prog"
3639 # Check to see if the program is GNU ld. I'd rather use --version,
3640 # but apparently some GNU ld's only accept -v.
3641 # Break only if it was the GNU/non-GNU ld that we prefer.
3642 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3643 test "$with_gnu_ld" != no && break
3645 test "$with_gnu_ld" != yes && break
3651 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3656 if test -n "$LD"; then
3657 echo "$ac_t""$LD" 1>&6
3659 echo "$ac_t""no" 1>&6
3661 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3662 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3663 echo "configure:3664: checking if the linker ($LD) is GNU ld" >&5
3664 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3668 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3669 lt_cv_prog_gnu_ld=yes
3671 lt_cv_prog_gnu_ld=no
3675 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3676 with_gnu_ld=$lt_cv_prog_gnu_ld
3679 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $LD option to reload object files" >&5
3681 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 lt_cv_ld_reload_flag='-r'
3687 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3688 reload_flag=$lt_cv_ld_reload_flag
3689 test -n "$reload_flag" && reload_flag=" $reload_flag"
3691 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3692 echo "configure:3693: checking for BSD-compatible nm" >&5
3693 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3701 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3702 test -z "$ac_dir" && ac_dir=.
3703 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3704 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3705 # Check to see if the nm accepts a BSD-compat flag.
3706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3707 # nm: unknown option "B" ignored
3708 # Tru64's nm complains that /dev/null is an invalid object file
3709 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3710 lt_cv_path_NM="$tmp_nm -B"
3712 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3713 lt_cv_path_NM="$tmp_nm -p"
3716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3717 continue # so that we can try to find one that supports BSD flags
3722 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3727 echo "$ac_t""$NM" 1>&6
3729 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3730 echo "configure:3731: checking whether ln -s works" >&5
3731 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3735 if ln -s X conftestdata 2>/dev/null
3738 ac_cv_prog_LN_S="ln -s"
3743 LN_S="$ac_cv_prog_LN_S"
3744 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3745 echo "$ac_t""yes" 1>&6
3747 echo "$ac_t""no" 1>&6
3750 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3751 echo "configure:3752: checking how to recognise dependant libraries" >&5
3752 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 lt_cv_file_magic_cmd='$MAGIC_CMD'
3756 lt_cv_file_magic_test_file=
3757 lt_cv_deplibs_check_method='unknown'
3758 # Need to set the preceding variable on all platforms that support
3759 # interlibrary dependencies.
3760 # 'none' -- dependencies not supported.
3761 # `unknown' -- same as none, but documents that we really don't know.
3762 # 'pass_all' -- all dependencies passed with no checks.
3763 # 'test_compile' -- check by making test program.
3764 # 'file_magic [[regex]]' -- check by looking for files in library path
3765 # which responds to the $file_magic_cmd with a given egrep regex.
3766 # If you have `file' or equivalent on your system and you're not sure
3767 # whether `pass_all' will *always* work, you probably want this one.
3771 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_deplibs_check_method=pass_all
3779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3780 lt_cv_file_magic_cmd='/usr/bin/file -L'
3781 lt_cv_file_magic_test_file=/shlib/libc.so
3784 cygwin* | mingw* | pw32*)
3785 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3786 lt_cv_file_magic_cmd='$OBJDUMP -f'
3789 darwin* | rhapsody*)
3790 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3791 lt_cv_file_magic_cmd='/usr/bin/file -L'
3793 rhapsody* | darwin1.[012])
3794 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3797 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3803 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3806 # Not sure whether the presence of OpenBSD here was a mistake.
3807 # Let's accept both of them until this is cleared up.
3808 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3809 lt_cv_file_magic_cmd=/usr/bin/file
3810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3814 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_deplibs_check_method=pass_all
3823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3824 lt_cv_file_magic_cmd=/usr/bin/file
3825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3831 # this will be overridden with pass_all, but let us keep it just in case
3832 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3836 *-32|*"-32 ") libmagic=32-bit;;
3837 *-n32|*"-n32 ") libmagic=N32;;
3838 *-64|*"-64 ") libmagic=64-bit;;
3839 *) libmagic=never-match;;
3841 # this will be overridden with pass_all, but let us keep it just in case
3842 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3845 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3846 lt_cv_deplibs_check_method=pass_all
3849 # This must be Linux ELF.
3852 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3853 lt_cv_deplibs_check_method=pass_all ;;
3855 # glibc up to 2.1.1 does not perform some relocations on ARM
3856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3858 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3862 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3865 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3876 lt_cv_file_magic_cmd=/usr/bin/file
3877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3881 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3885 osf3* | osf4* | osf5*)
3886 # this will be overridden with pass_all, but let us keep it just in case
3887 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3888 lt_cv_file_magic_test_file=/shlib/libc.so
3889 lt_cv_deplibs_check_method=pass_all
3893 lt_cv_deplibs_check_method=pass_all
3897 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_file_magic_test_file=/lib/libc.so
3901 sysv5uw[78]* | sysv4*uw2*)
3902 lt_cv_deplibs_check_method=pass_all
3905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3906 case $host_vendor in
3908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3912 lt_cv_deplibs_check_method=pass_all
3915 lt_cv_file_magic_cmd='/bin/file'
3916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3919 lt_cv_file_magic_cmd='/bin/file'
3920 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3921 lt_cv_file_magic_test_file=/lib/libc.so
3929 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3930 file_magic_cmd=$lt_cv_file_magic_cmd
3931 deplibs_check_method=$lt_cv_deplibs_check_method
3933 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3934 echo "configure:3935: checking for object suffix" >&5
3935 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3939 echo 'int i = 1;' > conftest.$ac_ext
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 for ac_file in conftest.*; do
3944 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3948 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3953 echo "$ac_t""$ac_cv_objext" 1>&6
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$ac_cv_objext
3960 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3961 echo "configure:3962: checking for executable suffix" >&5
3962 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3969 echo 'int main () { return 0; }' > conftest.$ac_ext
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3972 for file in conftest.*; do
3974 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3975 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3979 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3982 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3987 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3988 echo "$ac_t""${ac_cv_exeext}" 1>&6
3991 if test $host != $build; then
3992 ac_tool_prefix=${host_alias}-
4000 # Check for command to grab the raw symbol name followed by C symbol from nm.
4001 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4002 echo "configure:4003: checking command to parse $NM output" >&5
4003 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4007 # These are sane defaults that work on at least a few old systems.
4008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4010 # Character class describing NM global symbol codes.
4011 symcode='[BCDEGRST]'
4013 # Regexp to match symbols that can be accessed directly from C.
4014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4016 # Transform the above into a raw symbol and a C symbol.
4017 symxfrm='\1 \2\3 \3'
4019 # Transform an extracted symbol line into a proper C declaration
4020 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4022 # Transform an extracted symbol line into symbol name and symbol address
4023 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4025 # Define system-specific variables.
4030 cygwin* | mingw* | pw32*)
4031 symcode='[ABCDGISTW]'
4033 hpux*) # Its linker distinguishes data from code symbols
4034 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4035 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4038 symcode='[BCDEGRST]'
4048 # Handle CRLF in mingw tool chain
4052 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4056 # If we're using GNU nm, then use its standard symbol codes.
4057 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4058 symcode='[ABCDGISTW]'
4061 # Try without a prefix undercore, then with it.
4062 for ac_symprfx in "" "_"; do
4064 # Write the raw and C identifiers.
4065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4067 # Check to see that the pipe works correctly.
4070 cat > conftest.$ac_ext <<EOF
4075 void nm_test_func(){}
4079 int main(){nm_test_var='a';nm_test_func();return(0);}
4082 if { (eval echo configure:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4083 # Now try to grab the symbols.
4085 if { (eval echo configure:4086: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
4086 # Try sorting and uniquifying the output.
4087 if sort "$nlist" | uniq > "$nlist"T; then
4088 mv -f "$nlist"T "$nlist"
4093 # Make sure that we snagged all the symbols we need.
4094 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4095 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4096 cat <<EOF > conftest.$ac_ext
4102 # Now generate the symbol file.
4103 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4105 cat <<EOF >> conftest.$ac_ext
4106 #if defined (__STDC__) && __STDC__
4107 # define lt_ptr void *
4109 # define lt_ptr char *
4113 /* The mapping between symbol names and symbols. */
4118 lt_preloaded_symbols[] =
4121 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4122 cat <<\EOF >> conftest.$ac_ext
4130 # Now try linking the two files.
4131 mv conftest.$ac_objext conftstm.$ac_objext
4133 save_CFLAGS="$CFLAGS"
4134 LIBS="conftstm.$ac_objext"
4135 CFLAGS="$CFLAGS$no_builtin_flag"
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4140 CFLAGS="$save_CFLAGS"
4142 echo "cannot find nm_test_func in $nlist" >&5
4145 echo "cannot find nm_test_var in $nlist" >&5
4148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4151 echo "$progname: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 rm -f conftest* conftst*
4156 # Do not use the global_symbol_pipe unless it works.
4157 if test "$pipe_works" = yes; then
4160 lt_cv_sys_global_symbol_pipe=
4166 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4168 global_symbol_to_cdecl=
4169 global_symbol_to_c_name_address=
4171 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4172 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4174 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4176 echo "$ac_t""failed" 1>&6
4178 echo "$ac_t""ok" 1>&6
4181 for ac_hdr in dlfcn.h
4183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4185 echo "configure:4186: checking for $ac_hdr" >&5
4186 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4195 { (eval echo configure:4196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4197 if test -z "$ac_err"; then
4199 eval "ac_cv_header_$ac_safe=yes"
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 eval "ac_cv_header_$ac_safe=no"
4209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4212 cat >> confdefs.h <<EOF
4213 #define $ac_tr_hdr 1
4217 echo "$ac_t""no" 1>&6
4225 # Only perform the check for file, if the check method requires it
4226 case $deplibs_check_method in
4228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4229 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4230 echo "configure:4231: checking for ${ac_tool_prefix}file" >&5
4231 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4242 ac_save_MAGIC_CMD="$MAGIC_CMD"
4243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4244 ac_dummy="/usr/bin:$PATH"
4245 for ac_dir in $ac_dummy; do
4246 test -z "$ac_dir" && ac_dir=.
4247 if test -f $ac_dir/${ac_tool_prefix}file; then
4248 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4249 if test -n "$file_magic_test_file"; then
4250 case $deplibs_check_method in
4252 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4255 egrep "$file_magic_regex" > /dev/null; then
4260 *** Warning: the command libtool uses to detect shared libraries,
4261 *** $file_magic_cmd, produces output that libtool cannot recognize.
4262 *** The result is that libtool may fail to recognize shared libraries
4263 *** as such. This will affect the creation of libtool libraries that
4264 *** depend on shared libraries, but programs linked with such libtool
4265 *** libraries will work regardless of this problem. Nevertheless, you
4266 *** may want to report the problem to your system manager and/or to
4267 *** bug-libtool@gnu.org
4277 MAGIC_CMD="$ac_save_MAGIC_CMD"
4282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4283 if test -n "$MAGIC_CMD"; then
4284 echo "$ac_t""$MAGIC_CMD" 1>&6
4286 echo "$ac_t""no" 1>&6
4289 if test -z "$lt_cv_path_MAGIC_CMD"; then
4290 if test -n "$ac_tool_prefix"; then
4291 echo $ac_n "checking for file""... $ac_c" 1>&6
4292 echo "configure:4293: checking for file" >&5
4293 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4304 ac_save_MAGIC_CMD="$MAGIC_CMD"
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4306 ac_dummy="/usr/bin:$PATH"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/file; then
4310 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4311 if test -n "$file_magic_test_file"; then
4312 case $deplibs_check_method in
4314 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4317 egrep "$file_magic_regex" > /dev/null; then
4322 *** Warning: the command libtool uses to detect shared libraries,
4323 *** $file_magic_cmd, produces output that libtool cannot recognize.
4324 *** The result is that libtool may fail to recognize shared libraries
4325 *** as such. This will affect the creation of libtool libraries that
4326 *** depend on shared libraries, but programs linked with such libtool
4327 *** libraries will work regardless of this problem. Nevertheless, you
4328 *** may want to report the problem to your system manager and/or to
4329 *** bug-libtool@gnu.org
4339 MAGIC_CMD="$ac_save_MAGIC_CMD"
4344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4345 if test -n "$MAGIC_CMD"; then
4346 echo "$ac_t""$MAGIC_CMD" 1>&6
4348 echo "$ac_t""no" 1>&6
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4363 echo "configure:4364: checking for $ac_word" >&5
4364 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4372 for ac_dir in $ac_dummy; do
4373 test -z "$ac_dir" && ac_dir=.
4374 if test -f $ac_dir/$ac_word; then
4375 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4382 RANLIB="$ac_cv_prog_RANLIB"
4383 if test -n "$RANLIB"; then
4384 echo "$ac_t""$RANLIB" 1>&6
4386 echo "$ac_t""no" 1>&6
4390 if test -z "$ac_cv_prog_RANLIB"; then
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "ranlib", so it can be a program name with args.
4393 set dummy ranlib; ac_word=$2
4394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4395 echo "configure:4396: checking for $ac_word" >&5
4396 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 if test -n "$RANLIB"; then
4400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4404 for ac_dir in $ac_dummy; do
4405 test -z "$ac_dir" && ac_dir=.
4406 if test -f $ac_dir/$ac_word; then
4407 ac_cv_prog_RANLIB="ranlib"
4412 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4415 RANLIB="$ac_cv_prog_RANLIB"
4416 if test -n "$RANLIB"; then
4417 echo "$ac_t""$RANLIB" 1>&6
4419 echo "$ac_t""no" 1>&6
4427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}strip; ac_word=$2
4429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4430 echo "configure:4431: checking for $ac_word" >&5
4431 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 if test -n "$STRIP"; then
4435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4439 for ac_dir in $ac_dummy; do
4440 test -z "$ac_dir" && ac_dir=.
4441 if test -f $ac_dir/$ac_word; then
4442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4449 STRIP="$ac_cv_prog_STRIP"
4450 if test -n "$STRIP"; then
4451 echo "$ac_t""$STRIP" 1>&6
4453 echo "$ac_t""no" 1>&6
4457 if test -z "$ac_cv_prog_STRIP"; then
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "strip", so it can be a program name with args.
4460 set dummy strip; ac_word=$2
4461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4462 echo "configure:4463: checking for $ac_word" >&5
4463 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 if test -n "$STRIP"; then
4467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4471 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f $ac_dir/$ac_word; then
4474 ac_cv_prog_STRIP="strip"
4479 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4482 STRIP="$ac_cv_prog_STRIP"
4483 if test -n "$STRIP"; then
4484 echo "$ac_t""$STRIP" 1>&6
4486 echo "$ac_t""no" 1>&6
4496 enable_win32_dll=yes
4498 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4499 if test "${enable_libtool_lock+set}" = set; then
4500 enableval="$enable_libtool_lock"
4504 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4506 # Some flags need to be propagated to the compiler or linker for good
4510 # Find out which ABI we are using.
4511 echo '#line 4512 "configure"' > conftest.$ac_ext
4512 if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4513 case `/usr/bin/file conftest.$ac_objext` in
4529 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4530 SAVE_CFLAGS="$CFLAGS"
4531 CFLAGS="$CFLAGS -belf"
4532 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4533 echo "configure:4534: checking whether the C compiler needs -belf" >&5
4534 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543 cross_compiling=$ac_cv_prog_cc_cross
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555 lt_cv_cc_needs_belf=yes
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 lt_cv_cc_needs_belf=no
4564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 cross_compiling=$ac_cv_prog_cc_cross
4572 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4573 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4575 CFLAGS="$SAVE_CFLAGS"
4579 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4580 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_word" >&5
4584 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 if test -n "$DLLTOOL"; then
4588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4592 for ac_dir in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir=.
4594 if test -f $ac_dir/$ac_word; then
4595 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4602 DLLTOOL="$ac_cv_prog_DLLTOOL"
4603 if test -n "$DLLTOOL"; then
4604 echo "$ac_t""$DLLTOOL" 1>&6
4606 echo "$ac_t""no" 1>&6
4610 if test -z "$ac_cv_prog_DLLTOOL"; then
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "dlltool", so it can be a program name with args.
4613 set dummy dlltool; ac_word=$2
4614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_word" >&5
4616 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 if test -n "$DLLTOOL"; then
4620 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4624 for ac_dir in $ac_dummy; do
4625 test -z "$ac_dir" && ac_dir=.
4626 if test -f $ac_dir/$ac_word; then
4627 ac_cv_prog_DLLTOOL="dlltool"
4632 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4635 DLLTOOL="$ac_cv_prog_DLLTOOL"
4636 if test -n "$DLLTOOL"; then
4637 echo "$ac_t""$DLLTOOL" 1>&6
4639 echo "$ac_t""no" 1>&6
4647 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}as; ac_word=$2
4649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_word" >&5
4651 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test -n "$AS"; then
4655 ac_cv_prog_AS="$AS" # Let the user override the test.
4657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 if test -f $ac_dir/$ac_word; then
4662 ac_cv_prog_AS="${ac_tool_prefix}as"
4670 if test -n "$AS"; then
4671 echo "$ac_t""$AS" 1>&6
4673 echo "$ac_t""no" 1>&6
4677 if test -z "$ac_cv_prog_AS"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "as", so it can be a program name with args.
4680 set dummy as; ac_word=$2
4681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_word" >&5
4683 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 if test -n "$AS"; then
4687 ac_cv_prog_AS="$AS" # Let the user override the test.
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4699 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4703 if test -n "$AS"; then
4704 echo "$ac_t""$AS" 1>&6
4706 echo "$ac_t""no" 1>&6
4714 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_word" >&5
4718 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 if test -n "$OBJDUMP"; then
4722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4726 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f $ac_dir/$ac_word; then
4729 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4736 OBJDUMP="$ac_cv_prog_OBJDUMP"
4737 if test -n "$OBJDUMP"; then
4738 echo "$ac_t""$OBJDUMP" 1>&6
4740 echo "$ac_t""no" 1>&6
4744 if test -z "$ac_cv_prog_OBJDUMP"; then
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "objdump", so it can be a program name with args.
4747 set dummy objdump; ac_word=$2
4748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_word" >&5
4750 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 if test -n "$OBJDUMP"; then
4754 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/$ac_word; then
4761 ac_cv_prog_OBJDUMP="objdump"
4766 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4769 OBJDUMP="$ac_cv_prog_OBJDUMP"
4770 if test -n "$OBJDUMP"; then
4771 echo "$ac_t""$OBJDUMP" 1>&6
4773 echo "$ac_t""no" 1>&6
4782 # recent cygwin and mingw systems supply a stub DllMain which the user
4783 # can override, but on older systems we have to supply one
4784 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4785 echo "configure:4786: checking if libtool should supply DllMain function" >&5
4786 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800 lt_cv_need_dllmain=no
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 lt_cv_need_dllmain=yes
4810 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4813 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4814 # old mingw systems require "-dll" to link a DLL, while more recent ones
4816 SAVE_CFLAGS="$CFLAGS"
4817 CFLAGS="$CFLAGS -mdll"
4818 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4819 echo "configure:4820: checking how to link DLLs" >&5
4820 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 lt_cv_cc_dll_switch=-mdll
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 lt_cv_cc_dll_switch=-dll
4843 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4844 CFLAGS="$SAVE_CFLAGS" ;;
4845 *-*-cygwin* | *-*-pw32*)
4846 # cygwin systems need to pass --dll to the linker, and not link
4847 # crt.o which will require a WinMain@16 definition.
4848 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4854 # Sed substitution that helps us do robust quoting. It backslashifies
4855 # metacharacters that are still active within double-quoted strings.
4856 Xsed='sed -e s/^X//'
4857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4859 # Same as above, but do not quote variable references.
4860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4862 # Sed substitution to delay expansion of an escaped shell variable in a
4863 # double_quote_subst'ed string.
4864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4870 default_ofile=libtool
4871 can_build_shared=yes
4873 # All known linkers require a `.a' archive for static linking (except M$VC,
4874 # which needs '.lib').
4876 ltmain="$ac_aux_dir/ltmain.sh"
4877 ofile="$default_ofile"
4878 with_gnu_ld="$lt_cv_prog_gnu_ld"
4879 need_locks="$enable_libtool_lock"
4882 old_CFLAGS="$CFLAGS"
4884 # Set sane defaults for various variables
4885 test -z "$AR" && AR=ar
4886 test -z "$AR_FLAGS" && AR_FLAGS=cru
4887 test -z "$AS" && AS=as
4888 test -z "$CC" && CC=cc
4889 test -z "$DLLTOOL" && DLLTOOL=dlltool
4890 test -z "$LD" && LD=ld
4891 test -z "$LN_S" && LN_S="ln -s"
4892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4893 test -z "$NM" && NM=nm
4894 test -z "$OBJDUMP" && OBJDUMP=objdump
4895 test -z "$RANLIB" && RANLIB=:
4896 test -z "$STRIP" && STRIP=:
4897 test -z "$ac_objext" && ac_objext=o
4899 if test x"$host" != x"$build"; then
4900 ac_tool_prefix=${host_alias}-
4905 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4908 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4913 # AIX sometimes has problems with the GCC collect2 program. For some
4914 # reason, if we set the COLLECT_NAMES environment variable, the problems
4915 # vanish in a puff of smoke.
4916 if test "X${COLLECT_NAMES+set}" != Xset; then
4918 export COLLECT_NAMES
4923 # Determine commands to create old-style static archives.
4924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4925 old_postinstall_cmds='chmod 644 $oldlib'
4926 old_postuninstall_cmds=
4928 if test -n "$RANLIB"; then
4931 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4934 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4937 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4940 # Allow CC to be a program name with arguments.
4944 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4945 echo "configure:4946: checking for objdir" >&5
4946 rm -f .libs 2>/dev/null
4947 mkdir .libs 2>/dev/null
4948 if test -d .libs; then
4951 # MS-DOS does not allow filenames that begin with a dot.
4954 rmdir .libs 2>/dev/null
4955 echo "$ac_t""$objdir" 1>&6
4958 # Check whether --with-pic or --without-pic was given.
4959 if test "${with_pic+set}" = set; then
4966 test -z "$pic_mode" && pic_mode=default
4968 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4969 # in isolation, and that seeing it set (from the cache) indicates that
4970 # the associated values are set (in the cache) correctly too.
4971 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $compiler option to produce PIC" >&5
4973 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4977 lt_cv_prog_cc_shlib=
4979 lt_cv_prog_cc_static=
4980 lt_cv_prog_cc_no_builtin=
4981 lt_cv_prog_cc_can_build_shared=$can_build_shared
4983 if test "$GCC" = yes; then
4984 lt_cv_prog_cc_wl='-Wl,'
4985 lt_cv_prog_cc_static='-static'
4989 # Below there is a dirty hack to force normal static linking with -ldl
4990 # The problem is because libdl dynamically linked with both libc and
4991 # libC (AIX C++ library), which obviously doesn't included in libraries
4992 # list by gcc. This cause undefined symbols with -static flags.
4993 # This hack allows C programs to be linked with "-static -ldl", but
4994 # not sure about C++ programs.
4995 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4998 # FIXME: we need at least 68020 code to build shared libraries, but
4999 # adding the `-m68020' flag to GCC prevents building anything better,
5001 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5003 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5004 # PIC is the default for these OSes.
5006 darwin* | rhapsody*)
5007 # PIC is the default on this platform
5008 # Common symbols not allowed in MH_DYLIB files
5009 lt_cv_prog_cc_pic='-fno-common'
5011 cygwin* | mingw* | pw32* | os2*)
5012 # This hack is so that the source file can tell whether it is being
5013 # built for inclusion in a dll (and should export symbols for example).
5014 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5017 if test -d /usr/nec; then
5018 lt_cv_prog_cc_pic=-Kconform_pic
5022 lt_cv_prog_cc_pic='-fPIC'
5026 # PORTME Check for PIC flags for the system compiler.
5028 aix3* | aix4* | aix5*)
5029 lt_cv_prog_cc_wl='-Wl,'
5030 # All AIX code is PIC.
5031 if test "$host_cpu" = ia64; then
5032 # AIX 5 now supports IA64 processor
5033 lt_cv_prog_cc_static='-Bstatic'
5035 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5039 hpux9* | hpux10* | hpux11*)
5040 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5041 lt_cv_prog_cc_wl='-Wl,'
5042 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5043 lt_cv_prog_cc_pic='+Z'
5047 lt_cv_prog_cc_wl='-Wl,'
5048 lt_cv_prog_cc_static='-non_shared'
5049 # PIC (with -KPIC) is the default.
5052 cygwin* | mingw* | pw32* | os2*)
5053 # This hack is so that the source file can tell whether it is being
5054 # built for inclusion in a dll (and should export symbols for example).
5055 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5059 lt_cv_prog_cc_pic='-KPIC'
5060 lt_cv_prog_cc_static='-Bstatic'
5063 osf3* | osf4* | osf5*)
5064 # All OSF/1 code is PIC.
5065 lt_cv_prog_cc_wl='-Wl,'
5066 lt_cv_prog_cc_static='-non_shared'
5070 lt_cv_prog_cc_pic='-Kpic'
5071 lt_cv_prog_cc_static='-dn'
5072 lt_cv_prog_cc_shlib='-belf'
5076 lt_cv_prog_cc_pic='-KPIC'
5077 lt_cv_prog_cc_static='-Bstatic'
5078 lt_cv_prog_cc_wl='-Wl,'
5082 lt_cv_prog_cc_pic='-PIC'
5083 lt_cv_prog_cc_static='-Bstatic'
5084 lt_cv_prog_cc_wl='-Qoption ld '
5087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5088 lt_cv_prog_cc_pic='-KPIC'
5089 lt_cv_prog_cc_static='-Bstatic'
5090 if test "x$host_vendor" = xsni; then
5091 lt_cv_prog_cc_wl='-LD'
5093 lt_cv_prog_cc_wl='-Wl,'
5098 lt_cv_prog_cc_pic='-pic'
5099 lt_cv_prog_cc_static='-Bstatic'
5103 if test -d /usr/nec ;then
5104 lt_cv_prog_cc_pic='-Kconform_pic'
5105 lt_cv_prog_cc_static='-Bstatic'
5110 lt_cv_prog_cc_can_build_shared=no
5117 if test -z "$lt_cv_prog_cc_pic"; then
5118 echo "$ac_t""none" 1>&6
5120 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5122 # Check to make sure the pic_flag actually works.
5123 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5124 echo "configure:5125: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5125 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 save_CFLAGS="$CFLAGS"
5129 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5130 cat > conftest.$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 hpux9* | hpux10* | hpux11*)
5142 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5143 # they create non-PIC objects. So, if there were any warnings, we
5144 # assume that PIC is not supported.
5145 if test -s conftest.err; then
5146 lt_cv_prog_cc_pic_works=no
5148 lt_cv_prog_cc_pic_works=yes
5152 lt_cv_prog_cc_pic_works=yes
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 lt_cv_prog_cc_pic_works=no
5164 CFLAGS="$save_CFLAGS"
5169 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5171 lt_cv_prog_cc_can_build_shared=no
5173 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5176 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5179 # Check for any special shared library compilation flags.
5180 if test -n "$lt_cv_prog_cc_shlib"; then
5181 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5182 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5184 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5185 lt_cv_prog_cc_can_build_shared=no
5189 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5190 echo "configure:5191: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5191 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 lt_cv_prog_cc_static_works=no
5195 save_LDFLAGS="$LDFLAGS"
5196 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5207 lt_cv_prog_cc_static_works=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5213 LDFLAGS="$save_LDFLAGS"
5218 # Belt *and* braces to stop my trousers falling down:
5219 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5220 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5222 pic_flag="$lt_cv_prog_cc_pic"
5223 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5224 wl="$lt_cv_prog_cc_wl"
5225 link_static_flag="$lt_cv_prog_cc_static"
5226 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5227 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5230 # Check to see if options -o and -c are simultaneously supported by compiler
5231 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5232 echo "configure:5233: checking if $compiler supports -c -o file.$ac_objext" >&5
5233 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5237 $rm -r conftest 2>/dev/null
5240 echo "int some_variable = 0;" > conftest.$ac_ext
5242 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5243 # that will create temporary files in the current directory regardless of
5244 # the output directory. Thus, making CWD read-only will cause this test
5245 # to fail, enabling locking or at least warning the user not to do parallel
5248 save_CFLAGS="$CFLAGS"
5249 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5251 if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5252 # The compiler can only warn and ignore the option if not recognized
5253 # So say no if there are warnings
5254 if test -s out/conftest.err; then
5255 lt_cv_compiler_c_o=no
5257 lt_cv_compiler_c_o=yes
5260 # Append any errors to the config.log.
5261 cat out/conftest.err 1>&5
5262 lt_cv_compiler_c_o=no
5264 CFLAGS="$save_CFLAGS"
5270 $rm -r conftest 2>/dev/null
5274 compiler_c_o=$lt_cv_compiler_c_o
5275 echo "$ac_t""$compiler_c_o" 1>&6
5277 if test x"$compiler_c_o" = x"yes"; then
5278 # Check to see if we can write to a .lo
5279 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5280 echo "configure:5281: checking if $compiler supports -c -o file.lo" >&5
5281 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5285 lt_cv_compiler_o_lo=no
5286 save_CFLAGS="$CFLAGS"
5287 CFLAGS="$CFLAGS -c -o conftest.lo"
5288 save_objext="$ac_objext"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5295 int some_variable = 0;
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 # The compiler can only warn and ignore the option if not recognized
5301 # So say no if there are warnings
5302 if test -s conftest.err; then
5303 lt_cv_compiler_o_lo=no
5305 lt_cv_compiler_o_lo=yes
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5313 ac_objext="$save_objext"
5314 CFLAGS="$save_CFLAGS"
5318 compiler_o_lo=$lt_cv_compiler_o_lo
5319 echo "$ac_t""$compiler_o_lo" 1>&6
5324 # Check to see if we can do hard links to lock some files if needed
5325 hard_links="nottested"
5326 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5327 # do not overwrite the value of need_locks provided by the user
5328 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5329 echo "configure:5330: checking if we can lock with hard links" >&5
5332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5334 ln conftest.a conftest.b 2>&5 || hard_links=no
5335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5336 echo "$ac_t""$hard_links" 1>&6
5337 if test "$hard_links" = no; then
5338 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5345 if test "$GCC" = yes; then
5346 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5347 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5348 echo "configure:5349: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5349 echo "int some_variable = 0;" > conftest.$ac_ext
5350 save_CFLAGS="$CFLAGS"
5351 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5352 compiler_rtti_exceptions=no
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5358 int some_variable = 0;
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363 # The compiler can only warn and ignore the option if not recognized
5364 # So say no if there are warnings
5365 if test -s conftest.err; then
5366 compiler_rtti_exceptions=no
5368 compiler_rtti_exceptions=yes
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5376 CFLAGS="$save_CFLAGS"
5377 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5379 if test "$compiler_rtti_exceptions" = "yes"; then
5380 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5382 no_builtin_flag=' -fno-builtin'
5386 # See if the linker supports building shared libraries.
5387 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5388 echo "configure:5389: checking whether the linker ($LD) supports shared libraries" >&5
5390 allow_undefined_flag=
5392 need_lib_prefix=unknown
5393 need_version=unknown
5394 # when you set need_version to no, make sure it does not cause -set_version
5395 # flags to be left without arguments
5397 archive_expsym_cmds=
5398 old_archive_from_new_cmds=
5399 old_archive_from_expsyms_cmds=
5400 export_dynamic_flag_spec=
5401 whole_archive_flag_spec=
5402 thread_safe_flag_spec=
5403 hardcode_into_libs=no
5404 hardcode_libdir_flag_spec=
5405 hardcode_libdir_separator=
5408 hardcode_shlibpath_var=unsupported
5410 link_all_deplibs=unknown
5411 always_export_symbols=no
5412 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5413 # include_expsyms should be a list of space-separated symbols to be *always*
5414 # included in the symbol list
5416 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5419 # as well as any symbol that contains `d'.
5420 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5422 # platforms (ab)use it in PIC code, but their linkers get confused if
5423 # the symbol is explicitly referenced. Since portable code cannot
5424 # rely on this symbol name, it's probably fine to never include it in
5425 # preloaded symbol tables.
5426 extract_expsyms_cmds=
5429 cygwin* | mingw* | pw32*)
5430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5431 # When not using gcc, we currently assume that we are using
5432 # Microsoft Visual C++.
5433 if test "$GCC" != yes; then
5443 if test "$with_gnu_ld" = yes; then
5444 # If archive_cmds runs LD, not CC, wlarc should be empty
5447 # See if GNU ld supports shared libraries.
5449 aix3* | aix4* | aix5*)
5450 # On AIX, the GNU linker is very broken
5451 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5456 *** to be unable to reliably create shared libraries on AIX.
5457 *** Therefore, libtool is disabling shared libraries support. If you
5458 *** really care for shared libraries, you may want to modify your PATH
5459 *** so that a non-GNU linker is found, and then restart.
5465 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5466 hardcode_libdir_flag_spec='-L$libdir'
5467 hardcode_minus_L=yes
5469 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5470 # that the semantics of dynamic libraries on AmigaOS, at least up
5471 # to version 4, is to share data among multiple programs linked
5472 # with the same dynamic library. Since this doesn't match the
5473 # behavior of shared libraries on other platforms, we can use
5479 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5480 allow_undefined_flag=unsupported
5481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5482 # support --undefined. This deserves some investigation. FIXME
5483 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5489 cygwin* | mingw* | pw32*)
5490 # hardcode_libdir_flag_spec is actually meaningless, as there is
5491 # no search path for DLLs.
5492 hardcode_libdir_flag_spec='-L$libdir'
5493 allow_undefined_flag=unsupported
5494 always_export_symbols=yes
5496 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5497 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5498 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5499 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5500 else $CC -o impgen impgen.c ; fi)~
5501 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5503 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5505 # cygwin and mingw dlls have different entry points and sets of symbols
5507 # FIXME: what about values for MSVC?
5508 dll_entry=__cygwin_dll_entry@12
5509 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5513 dll_entry=_DllMainCRTStartup@12
5514 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5518 # mingw and cygwin differ, and it's simplest to just exclude the union
5519 # of the two symbol sets.
5520 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5522 # recent cygwin and mingw systems supply a stub DllMain which the user
5523 # can override, but on older systems we have to supply one (in ltdll.c)
5524 if test "x$lt_cv_need_dllmain" = "xyes"; then
5525 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5526 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5527 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5533 # Extract the symbol export list from an `--export-all' def file,
5534 # then regenerate the def file from the symbol export list, so that
5535 # the compiled dll only exports the symbol export list.
5536 # Be careful not to strip the DATA tag left be newer dlltools.
5537 export_symbols_cmds="$ltdll_cmds"'
5538 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5539 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5541 # If the export-symbols file already is a .def file (1st line
5542 # is EXPORTS), use it as is.
5543 # If DATA tags from a recent dlltool are present, honour them!
5544 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5545 cp $export_symbols $output_objdir/$soname-def;
5547 echo EXPORTS > $output_objdir/$soname-def;
5549 cat $export_symbols | while read symbol; do
5552 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5553 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5555 _lt_hint=`expr 1 + \$_lt_hint`;
5559 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5560 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5561 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5562 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5563 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5571 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5572 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5577 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5582 *** create shared libraries on Solaris systems. Therefore, libtool
5583 *** is disabling shared libraries support. We urge you to upgrade GNU
5584 *** binutils to release 2.9.1 or newer. Another option is to modify
5585 *** your PATH or compiler configuration so that the native linker is
5586 *** used, and then restart.
5589 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5601 hardcode_shlibpath_var=no
5605 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5614 if test "$ld_shlibs" = yes; then
5615 runpath_var=LD_RUN_PATH
5616 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5617 export_dynamic_flag_spec='${wl}--export-dynamic'
5619 cygwin* | mingw* | pw32*)
5620 # dlltool doesn't understand --whole-archive et. al.
5621 whole_archive_flag_spec=
5624 # ancient GNU ld didn't support --whole-archive et. al.
5625 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5628 whole_archive_flag_spec=
5634 # PORTME fill in a description of your system's linker (not GNU ld)
5637 allow_undefined_flag=unsupported
5638 always_export_symbols=yes
5639 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5640 # Note: this linker hardcodes the directories in LIBPATH if there
5641 # are no directories specified by -L.
5642 hardcode_minus_L=yes
5643 if test "$GCC" = yes && test -z "$link_static_flag"; then
5644 # Neither direct hardcoding nor static linking is supported with a
5646 hardcode_direct=unsupported
5651 if test "$host_cpu" = ia64; then
5652 # On IA64, the linker does run time linking by default, so we don't
5653 # have to do anything special.
5654 aix_use_runtimelinking=no
5655 exp_sym_flag='-Bexport'
5658 aix_use_runtimelinking=no
5660 # Test if we are trying to use run time linking or normal
5661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5662 # need to do runtime linking.
5663 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5664 for ld_flag in $LDFLAGS; do
5665 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5666 aix_use_runtimelinking=yes
5672 exp_sym_flag='-bexport'
5673 no_entry_flag='-bnoentry'
5676 # When large executables or shared objects are built, AIX ld can
5677 # have problems creating the table of contents. If linking a library
5678 # or program results in "error TOC overflow" add -mminimal-toc to
5679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5684 hardcode_libdir_separator=':'
5685 if test "$GCC" = yes; then
5686 case $host_os in aix4.[012]|aix4.[012].*)
5687 collect2name=`${CC} -print-prog-name=collect2`
5688 if test -f "$collect2name" && \
5689 strings "$collect2name" | grep resolve_lib_name >/dev/null
5691 # We have reworked collect2
5694 # We have old collect2
5695 hardcode_direct=unsupported
5696 # It fails to find uninstalled libraries when the uninstalled
5697 # path is not listed in the libpath. Setting hardcode_minus_L
5698 # to unsupported forces relinking
5699 hardcode_minus_L=yes
5700 hardcode_libdir_flag_spec='-L$libdir'
5701 hardcode_libdir_separator=
5705 shared_flag='-shared'
5708 if test "$host_cpu" = ia64; then
5709 shared_flag='${wl}-G'
5711 if test "$aix_use_runtimelinking" = yes; then
5712 shared_flag='${wl}-G'
5714 shared_flag='${wl}-bM:SRE'
5719 # It seems that -bexpall can do strange things, so it is better to
5720 # generate a list of symbols to export.
5721 always_export_symbols=yes
5722 if test "$aix_use_runtimelinking" = yes; then
5723 # Warning - without using the other runtime loading flags (-brtl),
5724 # -berok will link without error, but may produce a broken library.
5725 allow_undefined_flag='-berok'
5726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5727 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5729 if test "$host_cpu" = ia64; then
5730 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5731 allow_undefined_flag="-z nodefs"
5732 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5734 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5735 # Warning - without using the other run time loading flags,
5736 # -berok will link without error, but may produce a broken library.
5737 allow_undefined_flag='${wl}-berok'
5738 # This is a bit strange, but is similar to how AIX traditionally builds
5739 # it's shared libraries.
5740 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5746 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5747 hardcode_libdir_flag_spec='-L$libdir'
5748 hardcode_minus_L=yes
5749 # see comment about different semantics on the GNU ld section
5753 cygwin* | mingw* | pw32*)
5754 # When not using gcc, we currently assume that we are using
5755 # Microsoft Visual C++.
5756 # hardcode_libdir_flag_spec is actually meaningless, as there is
5757 # no search path for DLLs.
5758 hardcode_libdir_flag_spec=' '
5759 allow_undefined_flag=unsupported
5760 # Tell ltmain to make .lib files, not .a files.
5762 # FIXME: Setting linknames here is a bad hack.
5763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5764 # The linker will automatically build a .lib file if we build a DLL.
5765 old_archive_from_new_cmds='true'
5766 # FIXME: Should let the user specify the lib program.
5767 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5768 fix_srcfile_path='`cygpath -w "$srcfile"`'
5771 darwin* | rhapsody*)
5773 rhapsody* | darwin1.[012])
5774 allow_undefined_flag='-undefined suppress'
5777 allow_undefined_flag='-flat_namespace -undefined suppress'
5780 # FIXME: Relying on posixy $() will cause problems for
5781 # cross-compilation, but unfortunately the echo tests do not
5782 # yet detect zsh echo's removal of \ escapes.
5783 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5784 # We need to add '_' to the symbols in $export_symbols first
5785 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5787 hardcode_shlibpath_var=no
5788 whole_archive_flag_spec='-all_load $convenience'
5795 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5796 # support. Future versions do this automatically, but an explicit c++rt0.o
5797 # does not break anything, and helps significantly (at the cost of a little
5800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5801 hardcode_libdir_flag_spec='-R$libdir'
5803 hardcode_shlibpath_var=no
5806 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_minus_L=yes
5811 hardcode_shlibpath_var=no
5814 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5816 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5817 hardcode_libdir_flag_spec='-R$libdir'
5819 hardcode_shlibpath_var=no
5822 hpux9* | hpux10* | hpux11*)
5824 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5825 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5828 hardcode_libdir_separator=:
5830 hardcode_minus_L=yes # Not in the search PATH, but as the default
5831 # location of the library.
5832 export_dynamic_flag_spec='${wl}-E'
5836 if test "$GCC" = yes; then
5837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5839 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5842 hardcode_libdir_separator=:
5843 link_all_deplibs=yes
5847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5852 hardcode_libdir_flag_spec='-R$libdir'
5854 hardcode_shlibpath_var=no
5858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5861 hardcode_libdir_separator=:
5862 hardcode_shlibpath_var=no
5867 hardcode_shlibpath_var=no
5868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5871 export_dynamic_flag_spec='${wl}-E'
5874 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5876 hardcode_libdir_flag_spec='-R$libdir'
5879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5887 hardcode_libdir_flag_spec='-L$libdir'
5888 hardcode_minus_L=yes
5889 allow_undefined_flag=unsupported
5890 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5891 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5895 if test "$GCC" = yes; then
5896 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5897 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5899 allow_undefined_flag=' -expect_unresolved \*'
5900 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5903 hardcode_libdir_separator=:
5906 osf4* | osf5*) # as osf3* with the addition of -msym flag
5907 if test "$GCC" = yes; then
5908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5909 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5912 allow_undefined_flag=' -expect_unresolved \*'
5913 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5914 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5915 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5917 #Both c and cxx compiler support -rpath directly
5918 hardcode_libdir_flag_spec='-rpath $libdir'
5920 hardcode_libdir_separator=:
5924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 hardcode_shlibpath_var=no
5926 runpath_var=LD_RUN_PATH
5927 hardcode_runpath_var=yes
5928 export_dynamic_flag_spec='${wl}-Bexport'
5932 # gcc --version < 3.0 without binutils cannot create self contained
5933 # shared libraries reliably, requiring libgcc.a to resolve some of
5934 # the object symbols generated in some cases. Libraries that use
5935 # assert need libgcc.a to resolve __eprintf, for example. Linking
5936 # a copy of libgcc.a into every shared library to guarantee resolving
5937 # such symbols causes other problems: According to Tim Van Holder
5938 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5939 # (to the application) exception stack for one thing.
5940 no_undefined_flag=' -z defs'
5941 if test "$GCC" = yes; then
5942 case `$CC --version 2>/dev/null` in
5946 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5947 *** create self contained shared libraries on Solaris systems, without
5948 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5949 *** -no-undefined support, which will at least allow you to build shared
5950 *** libraries. However, you may find that when you link such libraries
5951 *** into an application without using GCC, you have to manually add
5952 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5953 *** upgrade to a newer version of GCC. Another option is to rebuild your
5954 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5961 # $CC -shared without GNU ld will not create a library from C++
5962 # object files and a static libstdc++, better avoid it by now
5963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5966 hardcode_libdir_flag_spec='-R$libdir'
5967 hardcode_shlibpath_var=no
5969 solaris2.[0-5] | solaris2.[0-5].*) ;;
5970 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5973 link_all_deplibs=yes
5977 if test "x$host_vendor" = xsequent; then
5978 # Use $CC to link under sequent, because it throws in some extra .o
5979 # files that make .init and .fini sections work.
5980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5984 hardcode_libdir_flag_spec='-L$libdir'
5986 hardcode_minus_L=yes
5987 hardcode_shlibpath_var=no
5991 if test "x$host_vendor" = xsno; then
5992 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993 hardcode_direct=yes # is this really true???
5995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5996 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5998 runpath_var='LD_RUN_PATH'
5999 hardcode_shlibpath_var=no
6003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6004 hardcode_shlibpath_var=no
6005 export_dynamic_flag_spec='-Bexport'
6009 no_undefined_flag=' -z text'
6010 # $CC -shared without GNU ld will not create a library from C++
6011 # object files and a static libstdc++, better avoid it by now
6012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6013 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6015 hardcode_libdir_flag_spec=
6016 hardcode_shlibpath_var=no
6017 runpath_var='LD_RUN_PATH'
6021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6022 hardcode_libdir_flag_spec='-L$libdir'
6023 hardcode_shlibpath_var=no
6027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6028 hardcode_libdir_flag_spec='-L$libdir'
6029 hardcode_shlibpath_var=no
6033 if test -d /usr/nec; then
6034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6035 hardcode_shlibpath_var=no
6036 runpath_var=LD_RUN_PATH
6037 hardcode_runpath_var=yes
6043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6046 hardcode_shlibpath_var=no
6047 hardcode_runpath_var=yes
6048 runpath_var=LD_RUN_PATH
6051 sysv5uw7* | unixware7*)
6052 no_undefined_flag='${wl}-z ${wl}text'
6053 if test "$GCC" = yes; then
6054 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6056 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6058 runpath_var='LD_RUN_PATH'
6059 hardcode_shlibpath_var=no
6067 echo "$ac_t""$ld_shlibs" 1>&6
6068 test "$ld_shlibs" = no && can_build_shared=no
6070 # Check hardcoding attributes.
6071 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6072 echo "configure:6073: checking how to hardcode library paths into programs" >&5
6074 if test -n "$hardcode_libdir_flag_spec" || \
6075 test -n "$runpath_var"; then
6077 # We can hardcode non-existant directories.
6078 if test "$hardcode_direct" != no &&
6079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6080 # have to relink, otherwise we might link with an installed library
6081 # when we should be linking with a yet-to-be-installed one
6082 ## test "$hardcode_shlibpath_var" != no &&
6083 test "$hardcode_minus_L" != no; then
6084 # Linking always hardcodes the temporary library directory.
6085 hardcode_action=relink
6087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6088 hardcode_action=immediate
6091 # We cannot hardcode anything, or else we can only hardcode existing
6093 hardcode_action=unsupported
6095 echo "$ac_t""$hardcode_action" 1>&6
6099 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6100 echo "configure:6101: checking whether stripping libraries is possible" >&5
6101 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6102 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6103 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6104 echo "$ac_t""yes" 1>&6
6106 echo "$ac_t""no" 1>&6
6109 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6110 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6112 # PORTME Fill in your ld.so characteristics
6113 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6114 echo "configure:6115: checking dynamic linker characteristics" >&5
6116 libname_spec='lib$name'
6123 shlibpath_overrides_runpath=unknown
6125 dynamic_linker="$host_os ld.so"
6126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6132 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6133 shlibpath_var=LIBPATH
6135 # AIX has no versioning support, so we append a major version to the name.
6136 soname_spec='${libname}${release}.so$major'
6141 if test "$host_cpu" = ia64; then
6142 # AIX 5 supports IA64
6143 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6144 shlibpath_var=LD_LIBRARY_PATH
6146 # With GCC up to 2.95.x, collect2 would create an import file
6147 # for dependence libraries. The import file would start with
6148 # the line `#! .'. This would cause the generated library to
6149 # depend on `.', always an invalid library. This was fixed in
6150 # development snapshots of GCC prior to 3.0.
6152 aix4 | aix4.[01] | aix4.[01].*)
6153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6162 # AIX (on Power*) has no versioning support, so currently we can
6163 # not hardcode correct soname into executable. Probably we can
6164 # add versioning support to collect2, so additional links can
6165 # be useful in future.
6166 if test "$aix_use_runtimelinking" = yes; then
6167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6168 # instead of lib<name>.a to let people know that these are not
6169 # typical AIX shared libraries.
6170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6172 # We preserve .a as extension for shared libraries through AIX4.2
6173 # and later when we are not doing run time linking.
6174 library_names_spec='${libname}${release}.a $libname.a'
6175 soname_spec='${libname}${release}.so$major'
6177 shlibpath_var=LIBPATH
6182 library_names_spec='$libname.ixlibrary $libname.a'
6183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6184 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6188 library_names_spec='${libname}.so'
6189 dynamic_linker="$host_os ld.so"
6190 shlibpath_var=LIBRARY_PATH
6196 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6197 soname_spec='${libname}${release}.so$major'
6198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6199 shlibpath_var=LD_LIBRARY_PATH
6200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6202 export_dynamic_flag_spec=-rdynamic
6203 # the default ld.so.conf also contains /usr/contrib/lib and
6204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6205 # libtool to hard-code these into programs
6208 cygwin* | mingw* | pw32*)
6209 version_type=windows
6212 case $GCC,$host_os in
6214 library_names_spec='$libname.dll.a'
6215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6216 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6217 dldir=$destdir/`dirname \$dlpath`~
6218 test -d \$dldir || mkdir -p \$dldir~
6219 $install_prog .libs/$dlname \$dldir/$dlname'
6220 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6221 dlpath=$dir/\$dldll~
6225 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6232 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6235 dynamic_linker='Win32 ld.exe'
6236 # FIXME: first we should search . and the directory the executable is in
6240 darwin* | rhapsody*)
6241 dynamic_linker="$host_os dyld"
6245 # FIXME: Relying on posixy $() will cause problems for
6246 # cross-compilation, but unfortunately the echo tests do not
6247 # yet detect zsh echo's removal of \ escapes.
6248 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6249 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6250 shlibpath_overrides_runpath=yes
6251 shlibpath_var=DYLD_LIBRARY_PATH
6259 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6260 version_type=freebsd-$objformat
6261 case $version_type in
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6268 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6272 shlibpath_var=LD_LIBRARY_PATH
6275 shlibpath_overrides_runpath=yes
6278 shlibpath_overrides_runpath=no
6279 hardcode_into_libs=yes
6288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6289 soname_spec='${libname}${release}.so$major'
6290 shlibpath_var=LD_LIBRARY_PATH
6291 hardcode_into_libs=yes
6294 hpux9* | hpux10* | hpux11*)
6295 # Give a soname corresponding to the major version so that dld.sl refuses to
6296 # link against other versions.
6297 dynamic_linker="$host_os dld.sl"
6301 shlibpath_var=SHLIB_PATH
6302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6303 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6304 soname_spec='${libname}${release}.sl$major'
6305 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6306 postinstall_cmds='chmod 555 $lib'
6313 soname_spec='${libname}${release}.so$major'
6314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6320 case $LD in # libtool.m4 will add one of these switches to LD
6321 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6322 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6323 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6324 *) libsuff= shlibsuff= libmagic=never-match;;
6328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6329 shlibpath_overrides_runpath=no
6330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6334 # No shared lib support for Linux oldld, aout, or coff.
6335 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6339 # This must be Linux ELF.
6344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6345 soname_spec='${libname}${release}.so$major'
6346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6347 shlibpath_var=LD_LIBRARY_PATH
6348 shlibpath_overrides_runpath=no
6349 # This implies no fast_install, which is unacceptable.
6350 # Some rework will be needed to allow for fast_install
6351 # before this can be enabled.
6352 hardcode_into_libs=yes
6354 # We used to test for /lib/ld.so.1 and disable shared libraries on
6355 # powerpc, because MkLinux only supported shared libraries with the
6356 # GNU dynamic linker. Since this was broken with cross compilers,
6357 # most powerpc-linux boxes support dynamic linking these days and
6358 # people can always --disable-shared, the test was removed, and we
6359 # assume the GNU/Linux dynamic linker is in use.
6360 dynamic_linker='GNU/Linux ld.so'
6367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6368 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6370 dynamic_linker='NetBSD (a.out) ld.so'
6372 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6373 soname_spec='${libname}${release}.so$major'
6374 dynamic_linker='NetBSD ld.elf_so'
6376 shlibpath_var=LD_LIBRARY_PATH
6377 shlibpath_overrides_runpath=yes
6378 hardcode_into_libs=yes
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6384 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6394 openbsd2.[89] | openbsd2.[89].*)
6395 shlibpath_overrides_runpath=no
6398 shlibpath_overrides_runpath=yes
6402 shlibpath_overrides_runpath=yes
6404 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6406 shlibpath_var=LD_LIBRARY_PATH
6410 libname_spec='$name'
6412 library_names_spec='$libname.dll $libname.a'
6413 dynamic_linker='OS/2 ld.exe'
6414 shlibpath_var=LIBPATH
6417 osf3* | osf4* | osf5*)
6420 soname_spec='${libname}${release}.so'
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6422 shlibpath_var=LD_LIBRARY_PATH
6423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6429 soname_spec='${libname}${release}.so$major'
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 shlibpath_var=LD_LIBRARY_PATH
6438 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6439 soname_spec='${libname}${release}.so$major'
6440 shlibpath_var=LD_LIBRARY_PATH
6441 shlibpath_overrides_runpath=yes
6442 hardcode_into_libs=yes
6443 # ldd complains unless libraries are executable
6444 postinstall_cmds='chmod +x $lib'
6449 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 shlibpath_overrides_runpath=yes
6453 if test "$with_gnu_ld" = yes; then
6459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6461 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6462 soname_spec='${libname}${release}.so$major'
6463 shlibpath_var=LD_LIBRARY_PATH
6464 case $host_vendor in
6466 shlibpath_overrides_runpath=no
6471 shlibpath_overrides_runpath=no
6472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480 soname_spec='${libname}${release}.so$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6489 soname_spec='${libname}${release}.so$major'
6490 shlibpath_var=LD_LIBRARY_PATH
6494 if test -d /usr/nec ;then
6496 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6497 soname_spec='$libname.so.$major'
6498 shlibpath_var=LD_LIBRARY_PATH
6506 echo "$ac_t""$dynamic_linker" 1>&6
6507 test "$dynamic_linker" = no && can_build_shared=no
6509 # Report the final consequences.
6510 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6511 echo "configure:6512: checking if libtool supports shared libraries" >&5
6512 echo "$ac_t""$can_build_shared" 1>&6
6514 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6515 echo "configure:6516: checking whether to build shared libraries" >&5
6516 test "$can_build_shared" = "no" && enable_shared=no
6518 # On AIX, shared libraries and static libraries use the same namespace, and
6519 # are all built from PIC.
6522 test "$enable_shared" = yes && enable_static=no
6523 if test -n "$RANLIB"; then
6524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6525 postinstall_cmds='$RANLIB $lib'
6530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6531 test "$enable_shared" = yes && enable_static=no
6535 echo "$ac_t""$enable_shared" 1>&6
6537 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6538 echo "configure:6539: checking whether to build static libraries" >&5
6539 # Make sure either enable_shared or enable_static is yes.
6540 test "$enable_shared" = yes || enable_static=yes
6541 echo "$ac_t""$enable_static" 1>&6
6543 if test "$hardcode_action" = relink; then
6544 # Fast installation is not supported
6545 enable_fast_install=no
6546 elif test "$shlibpath_overrides_runpath" = yes ||
6547 test "$enable_shared" = no; then
6548 # Fast installation is not necessary
6549 enable_fast_install=needless
6552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6553 if test "$GCC" = yes; then
6554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6557 if test "x$enable_dlopen" != xyes; then
6558 enable_dlopen=unknown
6559 enable_dlopen_self=unknown
6560 enable_dlopen_self_static=unknown
6567 lt_cv_dlopen="load_add_on"
6569 lt_cv_dlopen_self=yes
6572 cygwin* | mingw* | pw32*)
6573 lt_cv_dlopen="LoadLibrary"
6578 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6579 echo "configure:6580: checking for shl_load" >&5
6580 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char shl_load(); below. */
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6597 /* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 eval "ac_cv_func_shl_load=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 eval "ac_cv_func_shl_load=no"
6620 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 lt_cv_dlopen="shl_load"
6624 echo "$ac_t""no" 1>&6
6625 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6626 echo "configure:6627: checking for shl_load in -ldld" >&5
6627 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6631 ac_save_LIBS="$LIBS"
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 eval "ac_cv_lib_$ac_lib_var=yes"
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6652 eval "ac_cv_lib_$ac_lib_var=no"
6655 LIBS="$ac_save_LIBS"
6658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6662 echo "$ac_t""no" 1>&6
6663 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6664 echo "configure:6665: checking for dlopen" >&5
6665 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char dlopen(); below. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 eval "ac_cv_func_dlopen=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 eval "ac_cv_func_dlopen=no"
6705 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 lt_cv_dlopen="dlopen"
6709 echo "$ac_t""no" 1>&6
6710 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6711 echo "configure:6712: checking for dlopen in -ldl" >&5
6712 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 ac_save_LIBS="$LIBS"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 eval "ac_cv_lib_$ac_lib_var=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 eval "ac_cv_lib_$ac_lib_var=no"
6740 LIBS="$ac_save_LIBS"
6743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6747 echo "$ac_t""no" 1>&6
6748 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6749 echo "configure:6750: checking for dlopen in -lsvld" >&5
6750 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 ac_save_LIBS="$LIBS"
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_lib_$ac_lib_var=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_lib_$ac_lib_var=no"
6778 LIBS="$ac_save_LIBS"
6781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6785 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6787 echo "configure:6788: checking for dld_link in -ldld" >&5
6788 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6823 echo "$ac_t""no" 1>&6
6844 if test "x$lt_cv_dlopen" != xno; then
6850 case $lt_cv_dlopen in
6852 save_CPPFLAGS="$CPPFLAGS"
6853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6855 save_LDFLAGS="$LDFLAGS"
6856 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6859 LIBS="$lt_cv_dlopen_libs $LIBS"
6861 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6862 echo "configure:6863: checking whether a program can dlopen itself" >&5
6863 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 if test "$cross_compiling" = yes; then :
6867 lt_cv_dlopen_self=cross
6869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6870 lt_status=$lt_dlunknown
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6882 # define LT_DLGLOBAL RTLD_GLOBAL
6885 # define LT_DLGLOBAL DL_GLOBAL
6887 # define LT_DLGLOBAL 0
6891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6892 find out it does not work in some platform. */
6893 #ifndef LT_DLLAZY_OR_NOW
6895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6898 # define LT_DLLAZY_OR_NOW DL_LAZY
6901 # define LT_DLLAZY_OR_NOW RTLD_NOW
6904 # define LT_DLLAZY_OR_NOW DL_NOW
6906 # define LT_DLLAZY_OR_NOW 0
6914 extern "C" void exit (int);
6917 void fnord() { int i=42;}
6920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6921 int status = $lt_dlunknown;
6925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6926 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6927 /* dlclose (self); */
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6934 (./conftest; exit; ) 2>/dev/null
6937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6939 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6942 # compilation failed
6943 lt_cv_dlopen_self=no
6951 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6953 if test "x$lt_cv_dlopen_self" = xyes; then
6954 LDFLAGS="$LDFLAGS $link_static_flag"
6955 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6956 echo "configure:6957: checking whether a statically linked program can dlopen itself" >&5
6957 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 if test "$cross_compiling" = yes; then :
6961 lt_cv_dlopen_self_static=cross
6963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6964 lt_status=$lt_dlunknown
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6976 # define LT_DLGLOBAL RTLD_GLOBAL
6979 # define LT_DLGLOBAL DL_GLOBAL
6981 # define LT_DLGLOBAL 0
6985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6986 find out it does not work in some platform. */
6987 #ifndef LT_DLLAZY_OR_NOW
6989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6992 # define LT_DLLAZY_OR_NOW DL_LAZY
6995 # define LT_DLLAZY_OR_NOW RTLD_NOW
6998 # define LT_DLLAZY_OR_NOW DL_NOW
7000 # define LT_DLLAZY_OR_NOW 0
7008 extern "C" void exit (int);
7011 void fnord() { int i=42;}
7014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7015 int status = $lt_dlunknown;
7019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7021 /* dlclose (self); */
7027 if { (eval echo configure:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7028 (./conftest; exit; ) 2>/dev/null
7031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7033 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7036 # compilation failed
7037 lt_cv_dlopen_self_static=no
7045 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7048 CPPFLAGS="$save_CPPFLAGS"
7049 LDFLAGS="$save_LDFLAGS"
7054 case $lt_cv_dlopen_self in
7055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7056 *) enable_dlopen_self=unknown ;;
7059 case $lt_cv_dlopen_self_static in
7060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7061 *) enable_dlopen_self_static=unknown ;;
7066 if test "$enable_shared" = yes && test "$GCC" = yes; then
7067 case $archive_cmds in
7069 # FIXME: we may have to deal with multi-command sequences.
7072 # Test whether the compiler implicitly links with -lc since on some
7073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7074 # to ld, don't add -lc before -lgcc.
7075 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7076 echo "configure:7077: checking whether -lc should be explicitly linked in" >&5
7077 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7081 echo 'static int dummy;' > conftest.$ac_ext
7083 if { (eval echo configure:7084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7086 libobjs=conftest.$ac_objext
7088 wl=$lt_cv_prog_cc_wl
7094 save_allow_undefined_flag=$allow_undefined_flag
7095 allow_undefined_flag=
7096 if { (eval echo configure:7097: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
7098 lt_cv_archive_cmds_need_lc=no
7100 lt_cv_archive_cmds_need_lc=yes
7102 allow_undefined_flag=$save_allow_undefined_flag
7104 cat conftest.err 1>&5
7108 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7112 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7114 # The second clause should only fire when bootstrapping the
7115 # libtool distribution, otherwise you forgot to ship ltmain.sh
7116 # with your package, and you will get complaints that there are
7117 # no rules to generate ltmain.sh.
7118 if test -f "$ltmain"; then
7121 # If there is no Makefile yet, we rely on a make rule to execute
7122 # `config.status --recheck' to rerun these tests and create the
7123 # libtool script then.
7124 test -f Makefile && make "$ltmain"
7127 if test -f "$ltmain"; then
7128 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7131 echo creating $ofile
7133 # Now quote all the things that may contain metacharacters while being
7134 # careful not to overquote the AC_SUBSTed values. We take copies of the
7135 # variables and quote the copies for generation of the libtool script.
7136 for var in echo old_CC old_CFLAGS \
7137 AR AR_FLAGS CC LD LN_S NM SHELL \
7138 reload_flag reload_cmds wl \
7139 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7140 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7141 library_names_spec soname_spec \
7142 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7143 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7144 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7145 old_striplib striplib file_magic_cmd export_symbols_cmds \
7146 deplibs_check_method allow_undefined_flag no_undefined_flag \
7147 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7148 global_symbol_to_c_name_address \
7149 hardcode_libdir_flag_spec hardcode_libdir_separator \
7150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7151 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7154 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7155 old_postinstall_cmds | old_postuninstall_cmds | \
7156 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7157 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7158 postinstall_cmds | postuninstall_cmds | \
7159 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7160 # Double-quote double-evaled strings.
7161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7169 cat <<__EOF__ > "${ofile}T"
7172 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7173 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7174 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7176 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7179 # This program is free software; you can redistribute it and/or modify
7180 # it under the terms of the GNU General Public License as published by
7181 # the Free Software Foundation; either version 2 of the License, or
7182 # (at your option) any later version.
7184 # This program is distributed in the hope that it will be useful, but
7185 # WITHOUT ANY WARRANTY; without even the implied warranty of
7186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7187 # General Public License for more details.
7189 # You should have received a copy of the GNU General Public License
7190 # along with this program; if not, write to the Free Software
7191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7193 # As a special exception to the GNU General Public License, if you
7194 # distribute this file as part of a program that contains a
7195 # configuration script generated by Autoconf, you may include it under
7196 # the same distribution terms that you use for the rest of that program.
7198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7199 Xsed="sed -e s/^X//"
7201 # The HP-UX ksh and POSIX shell print the target directory to stdout
7203 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7205 # ### BEGIN LIBTOOL CONFIG
7207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7209 # Shell to use when invoking shell scripts.
7212 # Whether or not to build shared libraries.
7213 build_libtool_libs=$enable_shared
7215 # Whether or not to build static libraries.
7216 build_old_libs=$enable_static
7218 # Whether or not to add -lc for building shared libraries.
7219 build_libtool_need_lc=$need_lc
7221 # Whether or not to optimize for fast installation.
7222 fast_install=$enable_fast_install
7225 host_alias=$host_alias
7228 # An echo program that does not interpret backslashes.
7233 AR_FLAGS=$lt_AR_FLAGS
7235 # The default C compiler.
7238 # Is the compiler the GNU C compiler?
7241 # The linker used to build libraries.
7244 # Whether we need hard or soft links.
7247 # A BSD-compatible nm program.
7250 # A symbol stripping program
7253 # Used to examine libraries when file_magic_cmd begins "file"
7254 MAGIC_CMD=$MAGIC_CMD
7256 # Used on cygwin: DLL creation program.
7259 # Used on cygwin: object dumper.
7262 # Used on cygwin: assembler.
7265 # The name of the directory that contains temporary libtool files.
7268 # How to create reloadable object files.
7269 reload_flag=$lt_reload_flag
7270 reload_cmds=$lt_reload_cmds
7272 # How to pass a linker flag through the compiler.
7275 # Object file suffix (normally "o").
7278 # Old archive suffix (normally "a").
7281 # Executable file suffix (normally "").
7284 # Additional compiler flags for building library objects.
7285 pic_flag=$lt_pic_flag
7288 # Does compiler simultaneously support -c and -o options?
7289 compiler_c_o=$lt_compiler_c_o
7291 # Can we write directly to a .lo ?
7292 compiler_o_lo=$lt_compiler_o_lo
7294 # Must we lock files when doing compilation ?
7295 need_locks=$lt_need_locks
7297 # Do we need the lib prefix for modules?
7298 need_lib_prefix=$need_lib_prefix
7300 # Do we need a version for libraries?
7301 need_version=$need_version
7303 # Whether dlopen is supported.
7304 dlopen_support=$enable_dlopen
7306 # Whether dlopen of programs is supported.
7307 dlopen_self=$enable_dlopen_self
7309 # Whether dlopen of statically linked programs is supported.
7310 dlopen_self_static=$enable_dlopen_self_static
7312 # Compiler flag to prevent dynamic linking.
7313 link_static_flag=$lt_link_static_flag
7315 # Compiler flag to turn off builtin functions.
7316 no_builtin_flag=$lt_no_builtin_flag
7318 # Compiler flag to allow reflexive dlopens.
7319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7321 # Compiler flag to generate shared objects directly from archives.
7322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7324 # Compiler flag to generate thread-safe objects.
7325 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7327 # Library versioning type.
7328 version_type=$version_type
7330 # Format of library name prefix.
7331 libname_spec=$lt_libname_spec
7333 # List of archive names. First name is the real one, the rest are links.
7334 # The last name is the one that the linker finds with -lNAME.
7335 library_names_spec=$lt_library_names_spec
7337 # The coded name of the library, if different from the real name.
7338 soname_spec=$lt_soname_spec
7340 # Commands used to build and install an old-style archive.
7342 old_archive_cmds=$lt_old_archive_cmds
7343 old_postinstall_cmds=$lt_old_postinstall_cmds
7344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7346 # Create an old-style archive from a shared archive.
7347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7349 # Create a temporary old-style archive to link instead of a shared archive.
7350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7352 # Commands used to build and install a shared archive.
7353 archive_cmds=$lt_archive_cmds
7354 archive_expsym_cmds=$lt_archive_expsym_cmds
7355 postinstall_cmds=$lt_postinstall_cmds
7356 postuninstall_cmds=$lt_postuninstall_cmds
7358 # Commands to strip libraries.
7359 old_striplib=$lt_old_striplib
7360 striplib=$lt_striplib
7362 # Method to check whether dependent libraries are shared objects.
7363 deplibs_check_method=$lt_deplibs_check_method
7365 # Command to use when deplibs_check_method == file_magic.
7366 file_magic_cmd=$lt_file_magic_cmd
7368 # Flag that allows shared libraries with undefined symbols to be built.
7369 allow_undefined_flag=$lt_allow_undefined_flag
7371 # Flag that forces no undefined symbols.
7372 no_undefined_flag=$lt_no_undefined_flag
7374 # Commands used to finish a libtool library installation in a directory.
7375 finish_cmds=$lt_finish_cmds
7377 # Same as above, but a single script fragment to be evaled but not shown.
7378 finish_eval=$lt_finish_eval
7380 # Take the output of nm and produce a listing of raw symbols and C names.
7381 global_symbol_pipe=$lt_global_symbol_pipe
7383 # Transform the output of nm in a proper C declaration
7384 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7386 # Transform the output of nm in a C name address pair
7387 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7389 # This is the shared library runtime path variable.
7390 runpath_var=$runpath_var
7392 # This is the shared library path variable.
7393 shlibpath_var=$shlibpath_var
7395 # Is shlibpath searched before the hard-coded library search path?
7396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7398 # How to hardcode a shared library path into an executable.
7399 hardcode_action=$hardcode_action
7401 # Whether we should hardcode library paths into libraries.
7402 hardcode_into_libs=$hardcode_into_libs
7404 # Flag to hardcode \$libdir into a binary during linking.
7405 # This must work even if \$libdir does not exist.
7406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7408 # Whether we need a single -rpath flag with a separated argument.
7409 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7411 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7413 hardcode_direct=$hardcode_direct
7415 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7417 hardcode_minus_L=$hardcode_minus_L
7419 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7420 # the resulting binary.
7421 hardcode_shlibpath_var=$hardcode_shlibpath_var
7423 # Variables whose values should be saved in libtool wrapper scripts and
7424 # restored at relink time.
7425 variables_saved_for_relink="$variables_saved_for_relink"
7427 # Whether libtool must link a program against all its dependency libraries.
7428 link_all_deplibs=$link_all_deplibs
7430 # Compile-time system search path for libraries
7431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7433 # Run-time system search path for libraries
7434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7436 # Fix the shell variable \$srcfile for the compiler.
7437 fix_srcfile_path="$fix_srcfile_path"
7439 # Set to yes if exported symbols are required.
7440 always_export_symbols=$always_export_symbols
7442 # The commands to list exported symbols.
7443 export_symbols_cmds=$lt_export_symbols_cmds
7445 # The commands to extract the exported symbol list from a shared archive.
7446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7448 # Symbols that should not be listed in the preloaded symbols.
7449 exclude_expsyms=$lt_exclude_expsyms
7451 # Symbols that must always be exported.
7452 include_expsyms=$lt_include_expsyms
7454 # ### END LIBTOOL CONFIG
7460 cat <<\EOF >> "${ofile}T"
7462 # AIX sometimes has problems with the GCC collect2 program. For some
7463 # reason, if we set the COLLECT_NAMES environment variable, the problems
7464 # vanish in a puff of smoke.
7465 if test "X${COLLECT_NAMES+set}" != Xset; then
7467 export COLLECT_NAMES
7474 cygwin* | mingw* | pw32* | os2*)
7475 cat <<'EOF' >> "${ofile}T"
7476 # This is a source program that is used to create dlls on Windows
7477 # Don't remove nor modify the starting and closing comments
7478 # /* ltdll.c starts here */
7479 # #define WIN32_LEAN_AND_MEAN
7480 # #include <windows.h>
7481 # #undef WIN32_LEAN_AND_MEAN
7482 # #include <stdio.h>
7484 # #ifndef __CYGWIN__
7485 # # ifdef __CYGWIN32__
7486 # # define __CYGWIN__ __CYGWIN32__
7490 # #ifdef __cplusplus
7493 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7494 # #ifdef __cplusplus
7499 # #include <cygwin/cygwin_dll.h>
7500 # DECLARE_CYGWIN_DLL( DllMain );
7502 # HINSTANCE __hDllInstance_base;
7505 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7507 # __hDllInstance_base = hInst;
7510 # /* ltdll.c ends here */
7511 # This is a source program that is used to create import libraries
7512 # on Windows for dlls which lack them. Don't remove nor modify the
7513 # starting and closing comments
7514 # /* impgen.c starts here */
7515 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7517 # This file is part of GNU libtool.
7519 # This program is free software; you can redistribute it and/or modify
7520 # it under the terms of the GNU General Public License as published by
7521 # the Free Software Foundation; either version 2 of the License, or
7522 # (at your option) any later version.
7524 # This program is distributed in the hope that it will be useful,
7525 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7527 # GNU General Public License for more details.
7529 # You should have received a copy of the GNU General Public License
7530 # along with this program; if not, write to the Free Software
7531 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7534 # #include <stdio.h> /* for printf() */
7535 # #include <unistd.h> /* for open(), lseek(), read() */
7536 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7537 # #include <string.h> /* for strdup() */
7539 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7541 # #define O_BINARY 0
7544 # static unsigned int
7545 # pe_get16 (fd, offset)
7549 # unsigned char b[2];
7550 # lseek (fd, offset, SEEK_SET);
7552 # return b[0] + (b[1]<<8);
7555 # static unsigned int
7556 # pe_get32 (fd, offset)
7560 # unsigned char b[4];
7561 # lseek (fd, offset, SEEK_SET);
7563 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7566 # static unsigned int
7570 # unsigned char *b = ptr;
7571 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7580 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7581 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7582 # unsigned long name_rvas, nexp;
7583 # unsigned char *expdata, *erva;
7584 # char *filename, *dll_name;
7586 # filename = argv[1];
7588 # dll = open(filename, O_RDONLY|O_BINARY);
7592 # dll_name = filename;
7594 # for (i=0; filename[i]; i++)
7595 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7596 # dll_name = filename + i +1;
7598 # pe_header_offset = pe_get32 (dll, 0x3c);
7599 # opthdr_ofs = pe_header_offset + 4 + 20;
7600 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7602 # if (num_entries < 1) /* no exports */
7605 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7606 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7607 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7608 # secptr = (pe_header_offset + 4 + 20 +
7609 # pe_get16 (dll, pe_header_offset + 4 + 16));
7612 # for (i = 0; i < nsections; i++)
7615 # unsigned long secptr1 = secptr + 40 * i;
7616 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7617 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7618 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7619 # lseek(dll, secptr1, SEEK_SET);
7620 # read(dll, sname, 8);
7621 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7623 # expptr = fptr + (export_rva - vaddr);
7624 # if (export_rva + export_size > vaddr + vsize)
7625 # export_size = vsize - (export_rva - vaddr);
7630 # expdata = (unsigned char*)malloc(export_size);
7631 # lseek (dll, expptr, SEEK_SET);
7632 # read (dll, expdata, export_size);
7633 # erva = expdata - export_rva;
7635 # nexp = pe_as32 (expdata+24);
7636 # name_rvas = pe_as32 (expdata+32);
7638 # printf ("EXPORTS\n");
7639 # for (i = 0; i<nexp; i++)
7641 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7642 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7647 # /* impgen.c ends here */
7653 # We use sed instead of cat because bash on DJGPP gets confused if
7654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7655 # text mode, it properly converts lines to CR/LF. This bash problem
7656 # is reportedly fixed, but why not run on old versions too?
7657 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7659 mv -f "${ofile}T" "$ofile" || \
7660 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7668 # This can be used to rebuild libtool when needed
7669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7671 # Always use our own libtool.
7672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7674 # Prevent multiple expansion
7678 # test for ln hardlink support
7679 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7680 echo "configure:7681: checking whether ln works" >&5
7681 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7684 rm -f conftest.src conftest.dst
7685 echo "conftest" > conftest.src
7686 if ln conftest.src conftest.dst 2>/dev/null
7688 ol_cv_prog_LN_H="ln"
7690 ol_cv_prog_LN_H="cp"
7692 rm -f conftest.src conftest.dst
7695 LN_H="$ol_cv_prog_LN_H"
7696 if test "$ol_cv_prog_LN_H" = "ln"; then
7697 echo "$ac_t""yes" 1>&6
7699 echo "$ac_t""no" 1>&6
7702 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7703 echo "configure:7704: checking whether ln -s works" >&5
7704 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7708 if ln -s X conftestdata 2>/dev/null
7711 ac_cv_prog_LN_S="ln -s"
7716 LN_S="$ac_cv_prog_LN_S"
7717 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7718 echo "$ac_t""yes" 1>&6
7720 echo "$ac_t""no" 1>&6
7725 if test $ol_enable_perl != no ; then
7726 # Extract the first word of "perl", so it can be a program name with args.
7727 set dummy perl; ac_word=$2
7728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7729 echo "configure:7730: checking for $ac_word" >&5
7730 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7731 echo $ac_n "(cached) $ac_c" 1>&6
7735 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7738 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7743 for ac_dir in $ac_dummy; do
7744 test -z "$ac_dir" && ac_dir=.
7745 if test -f $ac_dir/$ac_word; then
7746 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7751 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7755 PERLBIN="$ac_cv_path_PERLBIN"
7756 if test -n "$PERLBIN"; then
7757 echo "$ac_t""$PERLBIN" 1>&6
7759 echo "$ac_t""no" 1>&6
7763 if test "no$PERLBIN" = "no" ; then
7764 if test $ol_enable_perl = yes ; then
7765 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7769 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7770 if test x"$ol_with_perl_module" = "xstatic" ; then
7771 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7773 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7779 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7780 echo "configure:7781: checking how to run the C preprocessor" >&5
7781 # On Suns, sometimes $CPP names a directory.
7782 if test -n "$CPP" && test -d "$CPP"; then
7785 if test -z "$CPP"; then
7786 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 # This must be in double quotes, not single quotes, because CPP may get
7790 # substituted into the Makefile and "${CC-cc}" will confuse make.
7792 # On the NeXT, cc -E runs the code through the compiler's parser,
7793 # not just through cpp.
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7801 { (eval echo configure:7802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7803 if test -z "$ac_err"; then
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 CPP="${CC-cc} -E -traditional-cpp"
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7818 { (eval echo configure:7819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7820 if test -z "$ac_err"; then
7824 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7827 CPP="${CC-cc} -nologo -E"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7835 { (eval echo configure:7836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7837 if test -z "$ac_err"; then
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7851 ac_cv_prog_CPP="$CPP"
7853 CPP="$ac_cv_prog_CPP"
7855 ac_cv_prog_CPP="$CPP"
7857 echo "$ac_t""$CPP" 1>&6
7860 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7861 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7863 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7864 echo "configure: warning: programs compiled here do run here..." 1>&2
7865 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7867 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7868 echo "configure: warning: programs compiled here do not run here..." 1>&2
7869 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7873 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7874 echo "configure:7875: checking for Cygwin environment" >&5
7875 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7885 #define __CYGWIN__ __CYGWIN32__
7890 if { (eval echo configure:7891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7894 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7902 echo "$ac_t""$ac_cv_cygwin" 1>&6
7904 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7905 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7906 echo "configure:7907: checking for mingw32 environment" >&5
7907 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7918 if { (eval echo configure:7919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7922 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7930 echo "$ac_t""$ac_cv_mingw32" 1>&6
7932 test "$ac_cv_mingw32" = yes && MINGW32=yes
7936 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7937 echo "configure:7938: checking for executable suffix" >&5
7938 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7945 echo 'int main () { return 0; }' > conftest.$ac_ext
7947 if { (eval echo configure:7948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7948 for file in conftest.*; do
7950 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7951 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7955 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7958 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7963 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7964 echo "$ac_t""${ac_cv_exeext}" 1>&6
7967 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7968 echo "configure:7969: checking for object suffix" >&5
7969 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7973 echo 'int i = 1;' > conftest.$ac_ext
7974 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7975 for ac_file in conftest.*; do
7978 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7982 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7987 echo "$ac_t""$ac_cv_objext" 1>&6
7988 OBJEXT=$ac_cv_objext
7989 ac_objext=$ac_cv_objext
7992 cat >> confdefs.h <<EOF
7993 #define EXEEXT "${EXEEXT}"
7997 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7998 echo "configure:7999: checking for be_app in -lbe" >&5
7999 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8003 ac_save_LIBS="$LIBS"
8004 LIBS="-lbe -lroot -lnet $LIBS"
8005 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8017 if { (eval echo configure:8018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8019 eval "ac_cv_lib_$ac_lib_var=yes"
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8024 eval "ac_cv_lib_$ac_lib_var=no"
8027 LIBS="$ac_save_LIBS"
8030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8032 LIBS="$LIBS -lbe -lroot -lnet"
8034 echo "$ac_t""no" 1>&6
8042 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8043 echo "configure:8044: checking for ${CC-cc} option to accept ANSI C" >&5
8044 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8047 am_cv_prog_cc_stdc=no
8049 # Don't try gcc -ansi; that turns off useful extensions and
8050 # breaks some systems' header files.
8051 # AIX -qlanglvl=ansi
8052 # Ultrix and OSF/1 -std1
8053 # HP-UX 10.20 and later -Ae
8054 # HP-UX older versions -Aa -D_HPUX_SOURCE
8055 # SVR4 -Xc -D__EXTENSIONS__
8056 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8058 CC="$ac_save_CC $ac_arg"
8059 cat > conftest.$ac_ext <<EOF
8060 #line 8061 "configure"
8061 #include "confdefs.h"
8064 #include <sys/types.h>
8065 #include <sys/stat.h>
8066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8067 struct buf { int x; };
8068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8069 static char *e (p, i)
8075 static char *f (char * (*g) (char **, int), char **p, ...)
8080 s = g (p, va_arg (v,int));
8084 int test (int i, double x);
8085 struct s1 {int (*f) (int a);};
8086 struct s2 {int (*f) (double a);};
8087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8097 if { (eval echo configure:8098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8099 am_cv_prog_cc_stdc="$ac_arg"; break
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8110 if test -z "$am_cv_prog_cc_stdc"; then
8111 echo "$ac_t""none needed" 1>&6
8113 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8115 case "x$am_cv_prog_cc_stdc" in
8117 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8120 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8121 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8124 # test for make depend flag
8127 if test -z "${MKDEP}"; then
8129 if test -z "${MKDEP_FLAGS}"; then
8130 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8131 echo "configure:8132: checking for ${OL_MKDEP} depend flag" >&5
8132 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8133 echo $ac_n "(cached) $ac_c" 1>&6
8137 for flag in "-M" "-xM"; do
8138 cat > conftest.c <<EOF
8141 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8142 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8144 if test ! -f conftest."${ac_object}" ; then
8146 OL_MKDEP_FLAGS="$flag"
8155 echo "$ac_t""$ol_cv_mkdep" 1>&6
8158 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8163 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8168 if test "${ol_cv_mkdep}" = no ; then
8169 # this will soon become an error
8170 echo "configure: warning: do not know how to generate dependencies" 1>&2
8173 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8174 echo "configure:8175: checking for afopen in -ls" >&5
8175 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8179 ac_save_LIBS="$LIBS"
8181 cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 /* We use char because int might match the return type of a gcc2
8186 builtin and then its argument prototype would still apply. */
8193 if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8195 eval "ac_cv_lib_$ac_lib_var=yes"
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8200 eval "ac_cv_lib_$ac_lib_var=no"
8203 LIBS="$ac_save_LIBS"
8206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8207 echo "$ac_t""yes" 1>&6
8210 cat >> confdefs.h <<\EOF
8211 #define HAVE_AIX_SECURITY 1
8216 echo "$ac_t""no" 1>&6
8222 ac_cv_func_getopt=no
8223 cat >> confdefs.h <<\EOF
8224 #define BOTH_STRINGS_H 1
8231 if test $ol_enable_modules != no ; then
8232 for ac_hdr in ltdl.h
8234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8236 echo "configure:8237: checking for $ac_hdr" >&5
8237 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8240 cat > conftest.$ac_ext <<EOF
8241 #line 8242 "configure"
8242 #include "confdefs.h"
8245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8246 { (eval echo configure:8247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8248 if test -z "$ac_err"; then
8250 eval "ac_cv_header_$ac_safe=yes"
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 eval "ac_cv_header_$ac_safe=no"
8260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8261 echo "$ac_t""yes" 1>&6
8262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8263 cat >> confdefs.h <<EOF
8264 #define $ac_tr_hdr 1
8268 echo "$ac_t""no" 1>&6
8273 if test $ac_cv_header_ltdl_h = no ; then
8274 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8277 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8278 echo "configure:8279: checking for lt_dlinit in -lltdl" >&5
8279 ac_lib_var=`echo ltdl'_'lt_dlinit | 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_LIBLTDL 1
8320 echo "$ac_t""no" 1>&6
8324 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8325 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8329 ol_with_bdb_module=static
8330 ol_with_dnssrv_module=static
8331 ol_with_ldap_module=static
8332 ol_with_ldbm_module=static
8333 ol_with_meta_module=static
8334 ol_with_monitor_module=static
8335 ol_with_null_module=static
8336 ol_with_passwd_module=static
8337 ol_with_perl_module=static
8338 ol_with_shell_module=static
8339 ol_with_tcl_module=static
8340 ol_with_sql_module=static
8344 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8345 echo "configure:8346: checking for EBCDIC" >&5
8346 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8355 #include <__ASCII__/generate_error.h>
8359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8360 { (eval echo configure:8361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8362 if test -z "$ac_err"; then
8364 ol_cv_cpp_ebcdic=yes
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8375 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8376 if test $ol_cv_cpp_ebcdic = yes ; then
8377 cat >> confdefs.h <<\EOF
8378 #define HAVE_EBCDIC 1
8383 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8384 echo "configure:8385: checking for ANSI C header files" >&5
8385 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8388 cat > conftest.$ac_ext <<EOF
8389 #line 8390 "configure"
8390 #include "confdefs.h"
8396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8397 { (eval echo configure:8398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8399 if test -z "$ac_err"; then
8401 ol_cv_header_stdc=yes
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8407 ol_cv_header_stdc=no
8411 if test $ol_cv_header_stdc = yes; then
8412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8419 egrep "memchr" >/dev/null 2>&1; then
8423 ol_cv_header_stdc=no
8429 if test $ol_cv_header_stdc = yes; then
8430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437 egrep "free" >/dev/null 2>&1; then
8441 ol_cv_header_stdc=no
8447 if test $ol_cv_header_stdc = yes; then
8448 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8449 if test "$cross_compiling" = yes; then
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8460 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8461 || ('j' <= (c) && (c) <= 'r') \
8462 || ('s' <= (c) && (c) <= 'z'))
8463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8466 int main () { int i; for (i = 0; i < 256; i++)
8467 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8471 if { (eval echo configure:8472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 ol_cv_header_stdc=no
8486 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8487 if test $ol_cv_header_stdc = yes; then
8488 cat >> confdefs.h <<\EOF
8489 #define STDC_HEADERS 1
8493 ac_cv_header_stdc=disable
8496 if test $ol_cv_header_stdc != yes; then
8497 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8501 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8504 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8505 echo "configure:8506: checking for $ac_hdr that defines DIR" >&5
8506 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8512 #include <sys/types.h>
8518 if { (eval echo configure:8519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8520 eval "ac_cv_header_dirent_$ac_safe=yes"
8522 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8525 eval "ac_cv_header_dirent_$ac_safe=no"
8529 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8530 echo "$ac_t""yes" 1>&6
8531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8532 cat >> confdefs.h <<EOF
8533 #define $ac_tr_hdr 1
8535 ac_header_dirent=$ac_hdr; break
8537 echo "$ac_t""no" 1>&6
8540 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8541 if test $ac_header_dirent = dirent.h; then
8542 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8543 echo "configure:8544: checking for opendir in -ldir" >&5
8544 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8548 ac_save_LIBS="$LIBS"
8550 cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 /* We use char because int might match the return type of a gcc2
8555 builtin and then its argument prototype would still apply. */
8562 if { (eval echo configure:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8564 eval "ac_cv_lib_$ac_lib_var=yes"
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8569 eval "ac_cv_lib_$ac_lib_var=no"
8572 LIBS="$ac_save_LIBS"
8575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8579 echo "$ac_t""no" 1>&6
8583 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8584 echo "configure:8585: checking for opendir in -lx" >&5
8585 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8586 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8589 ac_save_LIBS="$LIBS"
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605 eval "ac_cv_lib_$ac_lib_var=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 eval "ac_cv_lib_$ac_lib_var=no"
8613 LIBS="$ac_save_LIBS"
8616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8620 echo "$ac_t""no" 1>&6
8625 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8626 echo "configure:8627: checking for sys/wait.h that is POSIX.1 compatible" >&5
8627 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 #include <sys/types.h>
8634 #include <sys/wait.h>
8636 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8639 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8644 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8647 if { (eval echo configure:8648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8649 ac_cv_header_sys_wait_h=yes
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8654 ac_cv_header_sys_wait_h=no
8659 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8660 if test $ac_cv_header_sys_wait_h = yes; then
8661 cat >> confdefs.h <<\EOF
8662 #define HAVE_SYS_WAIT_H 1
8667 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8668 echo "configure:8669: checking POSIX termios" >&5
8669 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8672 cat > conftest.$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 #include <sys/types.h>
8677 #include <termios.h>
8679 /* SunOS 4.0.3 has termios.h but not the library calls. */
8683 if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8685 am_cv_sys_posix_termios=yes
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 am_cv_sys_posix_termios=no
8695 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8698 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8699 echo "configure:8700: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8700 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8703 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8705 gwinsz_in_termios_h=no
8706 if test $am_cv_sys_posix_termios = yes; then
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8709 "configure"
8709 #include "confdefs.h"
8710 #include <sys/types.h>
8711 # include <termios.h>
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 egrep "yes" >/dev/null 2>&1; then
8720 gwinsz_in_termios_h=yes
8726 if test $gwinsz_in_termios_h = no; then
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 #include <sys/types.h>
8731 # include <sys/ioctl.h>
8737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8738 egrep "yes" >/dev/null 2>&1; then
8740 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8748 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8749 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8750 cat >> confdefs.h <<\EOF
8751 #define GWINSZ_IN_SYS_IOCTL 1
8756 if test $am_cv_sys_posix_termios = yes ; then
8757 cat >> confdefs.h <<\EOF
8758 #define HAVE_POSIX_TERMIOS 1
8810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8812 echo "configure:8813: checking for $ac_hdr" >&5
8813 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8822 { (eval echo configure:8823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8824 if test -z "$ac_err"; then
8826 eval "ac_cv_header_$ac_safe=yes"
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 eval "ac_cv_header_$ac_safe=no"
8836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8837 echo "$ac_t""yes" 1>&6
8838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8839 cat >> confdefs.h <<EOF
8840 #define $ac_tr_hdr 1
8844 echo "$ac_t""no" 1>&6
8851 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8852 echo "configure:8853: checking for dlopen" >&5
8853 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860 which can conflict with char dlopen(); below. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8870 /* The GNU C library defines this for functions which it implements
8871 to always fail with ENOSYS. Some functions are actually named
8872 something starting with __ and the normal name is an alias. */
8873 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8883 eval "ac_cv_func_dlopen=yes"
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8888 eval "ac_cv_func_dlopen=no"
8893 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8894 echo "$ac_t""yes" 1>&6
8897 echo "$ac_t""no" 1>&6
8898 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8899 echo "configure:8900: checking for dlopen in -ldl" >&5
8900 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8901 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8904 ac_save_LIBS="$LIBS"
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8909 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8918 if { (eval echo configure:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8920 eval "ac_cv_lib_$ac_lib_var=yes"
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8925 eval "ac_cv_lib_$ac_lib_var=no"
8928 LIBS="$ac_save_LIBS"
8931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8932 echo "$ac_t""yes" 1>&6
8933 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8935 cat >> confdefs.h <<EOF
8936 #define $ac_tr_lib 1
8942 echo "$ac_t""no" 1>&6
8948 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8949 echo "configure:8950: checking for sigset in -lV3" >&5
8950 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8951 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8954 ac_save_LIBS="$LIBS"
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8968 if { (eval echo configure:8969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8970 eval "ac_cv_lib_$ac_lib_var=yes"
8972 echo "configure: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8975 eval "ac_cv_lib_$ac_lib_var=no"
8978 LIBS="$ac_save_LIBS"
8981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8982 echo "$ac_t""yes" 1>&6
8983 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8985 cat >> confdefs.h <<EOF
8986 #define $ac_tr_lib 1
8992 echo "$ac_t""no" 1>&6
8996 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8997 echo "configure:8998: checking for winsock" >&5
8999 for curlib in ws2_32 wsock32; do
9000 LIBS="$LIBS -l$curlib"
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9007 char closesocket@4();
9008 char gethostname@8();
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9030 if test $have_winsock = yes; then
9031 cat >> confdefs.h <<\EOF
9032 #define HAVE_WINSOCK 1
9035 ac_cv_func_socket=yes
9036 ac_cv_func_select=yes
9037 ac_cv_func_closesocket=yes
9038 ac_cv_func_gethostname=yes
9039 if test $curlib = ws2_32; then
9040 have_winsock=winsock2
9041 cat >> confdefs.h <<\EOF
9042 #define HAVE_WINSOCK2 1
9050 echo "$ac_t""$have_winsock" 1>&6
9053 echo $ac_n "checking for socket""... $ac_c" 1>&6
9054 echo "configure:9055: checking for socket" >&5
9055 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char socket(); below. */
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9072 /* The GNU C library defines this for functions which it implements
9073 to always fail with ENOSYS. Some functions are actually named
9074 something starting with __ and the normal name is an alias. */
9075 #if defined (__stub_socket) || defined (__stub___socket)
9083 if { (eval echo configure:9084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9085 eval "ac_cv_func_socket=yes"
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9090 eval "ac_cv_func_socket=no"
9095 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9096 echo "$ac_t""yes" 1>&6
9099 echo "$ac_t""no" 1>&6
9101 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9102 echo "configure:9103: checking for main in -lsocket" >&5
9103 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9105 echo $ac_n "(cached) $ac_c" 1>&6
9107 ac_save_LIBS="$LIBS"
9108 LIBS="-lsocket $LIBS"
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 eval "ac_cv_lib_$ac_lib_var=yes"
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 eval "ac_cv_lib_$ac_lib_var=no"
9127 LIBS="$ac_save_LIBS"
9130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9134 cat >> confdefs.h <<EOF
9135 #define $ac_tr_lib 1
9138 LIBS="-lsocket $LIBS"
9141 echo "$ac_t""no" 1>&6
9144 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9145 echo "configure:9146: checking for main in -lnet" >&5
9146 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9147 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9150 ac_save_LIBS="$LIBS"
9152 cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9160 if { (eval echo configure:9161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9162 eval "ac_cv_lib_$ac_lib_var=yes"
9164 echo "configure: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9167 eval "ac_cv_lib_$ac_lib_var=no"
9170 LIBS="$ac_save_LIBS"
9173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9174 echo "$ac_t""yes" 1>&6
9175 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9177 cat >> confdefs.h <<EOF
9178 #define $ac_tr_lib 1
9184 echo "$ac_t""no" 1>&6
9187 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9188 echo "configure:9189: checking for main in -lnsl_s" >&5
9189 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9193 ac_save_LIBS="$LIBS"
9194 LIBS="-lnsl_s $LIBS"
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9205 eval "ac_cv_lib_$ac_lib_var=yes"
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 eval "ac_cv_lib_$ac_lib_var=no"
9213 LIBS="$ac_save_LIBS"
9216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9220 cat >> confdefs.h <<EOF
9221 #define $ac_tr_lib 1
9224 LIBS="-lnsl_s $LIBS"
9227 echo "$ac_t""no" 1>&6
9230 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9231 echo "configure:9232: checking for main in -lnsl" >&5
9232 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9233 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9236 ac_save_LIBS="$LIBS"
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9248 eval "ac_cv_lib_$ac_lib_var=yes"
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9253 eval "ac_cv_lib_$ac_lib_var=no"
9256 LIBS="$ac_save_LIBS"
9259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9260 echo "$ac_t""yes" 1>&6
9261 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9263 cat >> confdefs.h <<EOF
9264 #define $ac_tr_lib 1
9270 echo "$ac_t""no" 1>&6
9273 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9274 echo "configure:9275: checking for socket in -linet" >&5
9275 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9279 ac_save_LIBS="$LIBS"
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 /* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9295 eval "ac_cv_lib_$ac_lib_var=yes"
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9300 eval "ac_cv_lib_$ac_lib_var=no"
9303 LIBS="$ac_save_LIBS"
9306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9307 echo "$ac_t""yes" 1>&6
9308 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9310 cat >> confdefs.h <<EOF
9311 #define $ac_tr_lib 1
9317 echo "$ac_t""no" 1>&6
9320 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9321 echo "configure:9322: checking for main in -lgen" >&5
9322 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9326 ac_save_LIBS="$LIBS"
9328 cat > conftest.$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9336 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9338 eval "ac_cv_lib_$ac_lib_var=yes"
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9343 eval "ac_cv_lib_$ac_lib_var=no"
9346 LIBS="$ac_save_LIBS"
9349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9350 echo "$ac_t""yes" 1>&6
9351 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9353 cat >> confdefs.h <<EOF
9354 #define $ac_tr_lib 1
9360 echo "$ac_t""no" 1>&6
9367 echo $ac_n "checking for select""... $ac_c" 1>&6
9368 echo "configure:9369: checking for select" >&5
9369 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9375 /* System header to define __stub macros and hopefully few prototypes,
9376 which can conflict with char select(); below. */
9378 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9386 /* The GNU C library defines this for functions which it implements
9387 to always fail with ENOSYS. Some functions are actually named
9388 something starting with __ and the normal name is an alias. */
9389 #if defined (__stub_select) || defined (__stub___select)
9397 if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9399 eval "ac_cv_func_select=yes"
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9404 eval "ac_cv_func_select=no"
9409 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9410 echo "$ac_t""yes" 1>&6
9413 echo "$ac_t""no" 1>&6
9414 { echo "configure: error: select() required." 1>&2; exit 1; }
9418 if test "${ac_cv_header_winsock_h}" != yes; then
9419 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9420 echo "configure:9421: checking types of arguments for select()" >&5
9421 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9424 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9425 echo $ac_n "(cached) $ac_c" 1>&6
9427 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9428 echo $ac_n "(cached) $ac_c" 1>&6
9430 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9431 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9432 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9433 cat > conftest.$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 #ifdef HAVE_SYS_TYPES_H
9437 #include <sys/types.h>
9439 #ifdef HAVE_SYS_TIME_H
9440 #include <sys/time.h>
9442 #ifdef HAVE_SYS_SELECT_H
9443 #include <sys/select.h>
9445 #ifdef HAVE_SYS_SOCKET_H
9446 #include <sys/socket.h>
9448 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);
9453 if { (eval echo configure:9454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9455 ac_not_found=no ; break 3
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9472 if test "$ac_not_found" = yes; then
9473 ac_cv_func_select_arg1=int
9474 ac_cv_func_select_arg234='int *'
9475 ac_cv_func_select_arg5='struct timeval *'
9477 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9478 cat >> confdefs.h <<EOF
9479 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9482 cat >> confdefs.h <<EOF
9483 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9486 cat >> confdefs.h <<EOF
9487 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9494 for ac_hdr in regex.h
9496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9498 echo "configure:9499: checking for $ac_hdr" >&5
9499 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9508 { (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510 if test -z "$ac_err"; then
9512 eval "ac_cv_header_$ac_safe=yes"
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9518 eval "ac_cv_header_$ac_safe=no"
9522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9525 cat >> confdefs.h <<EOF
9526 #define $ac_tr_hdr 1
9530 echo "$ac_t""no" 1>&6
9534 if test "$ac_cv_header_regex_h" != yes ; then
9535 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9538 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9539 echo "configure:9540: checking for library containing regfree" >&5
9540 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9543 ac_func_search_save_LIBS="$LIBS"
9544 ac_cv_search_regfree="no"
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 /* Override any gcc2 internal prototype to avoid an error. */
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9557 if { (eval echo configure:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9559 ac_cv_search_regfree="none required"
9561 echo "configure: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9565 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9570 /* Override any gcc2 internal prototype to avoid an error. */
9571 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9581 ac_cv_search_regfree="-l$ac_lib"
9584 echo "configure: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9589 LIBS="$ac_func_search_save_LIBS"
9592 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9593 if test "$ac_cv_search_regfree" != "no"; then
9594 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9597 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9601 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9602 echo "configure:9603: checking for compatible POSIX regex" >&5
9603 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9604 echo $ac_n "(cached) $ac_c" 1>&6
9607 if test "$cross_compiling" = yes; then
9608 ol_cv_c_posix_regex=cross
9610 cat > conftest.$ac_ext <<EOF
9611 #line 9612 "configure"
9612 #include "confdefs.h"
9614 #include <sys/types.h>
9616 static char *pattern, *string;
9624 if(regcomp(&re, pattern, 0)) {
9628 string = "ALL MATCH";
9630 rc = regexec(&re, string, 0, (void*)0, 0);
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9639 ol_cv_c_posix_regex=yes
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9644 ol_cv_c_posix_regex=no
9651 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9653 if test "$ol_cv_c_posix_regex" = no ; then
9654 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9659 for ac_hdr in sys/uuid.h
9661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_hdr" >&5
9664 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9673 { (eval echo configure:9674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9675 if test -z "$ac_err"; then
9677 eval "ac_cv_header_$ac_safe=yes"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 eval "ac_cv_header_$ac_safe=no"
9687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9688 echo "$ac_t""yes" 1>&6
9689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9690 cat >> confdefs.h <<EOF
9691 #define $ac_tr_hdr 1
9695 echo "$ac_t""no" 1>&6
9699 if test $ac_cv_header_sys_uuid_h = yes ; then
9702 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9703 echo "configure:9704: checking for library containing uuid_to_str" >&5
9704 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9707 ac_func_search_save_LIBS="$LIBS"
9708 ac_cv_search_uuid_to_str="no"
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 /* Override any gcc2 internal prototype to avoid an error. */
9713 /* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 ac_cv_search_uuid_to_str="none required"
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9729 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9734 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9745 ac_cv_search_uuid_to_str="-l$ac_lib"
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9753 LIBS="$ac_func_search_save_LIBS"
9756 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9757 if test "$ac_cv_search_uuid_to_str" != "no"; then
9758 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9765 if test have_uuid = yes ; then
9766 cat >> confdefs.h <<\EOF
9767 #define HAVE_UUID_TO_STR 1
9771 test "$ac_cv_search_uuid_to_str" = "none required" || \
9772 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9776 if test $have_uuid = no ; then
9777 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9778 echo "configure:9779: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9780 LIBS="$LIBS -lrpcrt4"
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9785 char UuidCreate@4();
9786 char UuidToStringA@8();
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9805 if test $need_rpcrt = yes; then
9806 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9809 echo "$ac_t""$need_rpcrt" 1>&6
9813 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9814 echo "configure:9815: checking for res_query" >&5
9815 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char res_query(); below. */
9824 /* Override any gcc2 internal prototype to avoid an error. */
9825 /* We use char because int might match the return type of a gcc2
9826 builtin and then its argument prototype would still apply. */
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined (__stub_res_query) || defined (__stub___res_query)
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9845 eval "ac_cv_func_res_query=yes"
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9850 eval "ac_cv_func_res_query=no"
9855 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9856 echo "$ac_t""yes" 1>&6
9859 echo "$ac_t""no" 1>&6
9862 if test $ac_cv_func_res_query = no ; then
9863 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9864 echo "configure:9865: checking for __res_query" >&5
9865 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9868 cat > conftest.$ac_ext <<EOF
9869 #line 9870 "configure"
9870 #include "confdefs.h"
9871 /* System header to define __stub macros and hopefully few prototypes,
9872 which can conflict with char __res_query(); below. */
9874 /* Override any gcc2 internal prototype to avoid an error. */
9875 /* We use char because int might match the return type of a gcc2
9876 builtin and then its argument prototype would still apply. */
9882 /* The GNU C library defines this for functions which it implements
9883 to always fail with ENOSYS. Some functions are actually named
9884 something starting with __ and the normal name is an alias. */
9885 #if defined (__stub___res_query) || defined (__stub_____res_query)
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9895 eval "ac_cv_func___res_query=yes"
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 eval "ac_cv_func___res_query=no"
9905 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9906 echo "$ac_t""yes" 1>&6
9909 echo "$ac_t""no" 1>&6
9912 ac_cv_func_res_query=$ac_cv_func___res_query
9915 if test $ac_cv_func_res_query = no ; then
9916 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9917 echo "configure:9918: checking for res_query in -lbind" >&5
9918 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9922 ac_save_LIBS="$LIBS"
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938 eval "ac_cv_lib_$ac_lib_var=yes"
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9943 eval "ac_cv_lib_$ac_lib_var=no"
9946 LIBS="$ac_save_LIBS"
9949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9950 echo "$ac_t""yes" 1>&6
9951 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9953 cat >> confdefs.h <<EOF
9954 #define $ac_tr_lib 1
9960 echo "$ac_t""no" 1>&6
9963 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9966 if test $ac_cv_func_res_query = no ; then
9967 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9968 echo "configure:9969: checking for __res_query in -lbind" >&5
9969 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9973 ac_save_LIBS="$LIBS"
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9989 eval "ac_cv_lib_$ac_lib_var=yes"
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 eval "ac_cv_lib_$ac_lib_var=no"
9997 LIBS="$ac_save_LIBS"
10000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10001 echo "$ac_t""yes" 1>&6
10002 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10004 cat >> confdefs.h <<EOF
10005 #define $ac_tr_lib 1
10008 LIBS="-lbind $LIBS"
10011 echo "$ac_t""no" 1>&6
10014 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10017 if test $ac_cv_func_res_query = no ; then
10018 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10019 echo "configure:10020: checking for res_query in -lresolv" >&5
10020 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10024 ac_save_LIBS="$LIBS"
10025 LIBS="-lresolv $LIBS"
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 /* Override any gcc2 internal prototype to avoid an error. */
10030 /* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10038 if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10040 eval "ac_cv_lib_$ac_lib_var=yes"
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 eval "ac_cv_lib_$ac_lib_var=no"
10048 LIBS="$ac_save_LIBS"
10051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10052 echo "$ac_t""yes" 1>&6
10053 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10055 cat >> confdefs.h <<EOF
10056 #define $ac_tr_lib 1
10059 LIBS="-lresolv $LIBS"
10062 echo "$ac_t""no" 1>&6
10065 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10068 if test $ac_cv_func_res_query = no ; then
10069 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10070 echo "configure:10071: checking for __res_query in -lresolv" >&5
10071 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10075 ac_save_LIBS="$LIBS"
10076 LIBS="-lresolv $LIBS"
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 /* Override any gcc2 internal prototype to avoid an error. */
10081 /* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10083 char __res_query();
10089 if { (eval echo configure:10090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10091 eval "ac_cv_lib_$ac_lib_var=yes"
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10096 eval "ac_cv_lib_$ac_lib_var=no"
10099 LIBS="$ac_save_LIBS"
10102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10106 cat >> confdefs.h <<EOF
10107 #define $ac_tr_lib 1
10110 LIBS="-lresolv $LIBS"
10113 echo "$ac_t""no" 1>&6
10116 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10119 if test "$ac_cv_func_res_query" = yes ; then
10120 cat >> confdefs.h <<\EOF
10121 #define HAVE_RES_QUERY 1
10125 if test $ol_enable_dnssrv != no ; then
10130 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10131 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10134 for ac_func in getaddrinfo gai_strerror inet_ntop
10136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10137 echo "configure:10138: checking for $ac_func" >&5
10138 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func(); below. */
10146 #include <assert.h>
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10155 /* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10166 if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10168 eval "ac_cv_func_$ac_func=yes"
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10173 eval "ac_cv_func_$ac_func=no"
10178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10179 echo "$ac_t""yes" 1>&6
10180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10181 cat >> confdefs.h <<EOF
10182 #define $ac_tr_func 1
10186 echo "$ac_t""no" 1>&6
10192 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10193 if test $ol_enable_ipv6 = yes ; then
10194 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10196 elif test $ol_enable_ipv6 != no ; then
10197 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10198 echo "configure:10199: checking INET6_ADDRSTRLEN" >&5
10199 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10200 echo $ac_n "(cached) $ac_c" 1>&6
10203 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure"
10205 #include "confdefs.h"
10207 # include <netinet/in.h>
10208 # ifdef INET6_ADDRSTRLEN
10209 __has_inet6_addrstrlen__;
10213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10214 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10216 ol_cv_inet6_addrstrlen=yes
10219 ol_cv_inet6_addrstrlen=no
10225 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10228 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10229 echo "configure:10230: checking struct sockaddr_storage" >&5
10230 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10238 #include <sys/types.h>
10239 #include <sys/socket.h>
10243 struct sockaddr_storage ss;
10247 if { (eval echo configure:10248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10249 ol_cv_struct_sockaddr_storage=yes
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10254 ol_cv_struct_sockaddr_storage=no
10259 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10261 if test $ol_cv_inet6_addrstrlen = yes \
10262 -a $ol_cv_struct_sockaddr_storage = yes ; then
10264 elif test $ol_enable_ipv6 = yes \
10265 -a $ol_cv_inet6_addrstrlen = no ; then
10266 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10267 elif test $ol_enable_ipv6 = yes \
10268 -a $ol_cv_struct_sockaddr_storage = no ; then
10269 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10273 if test $ol_enable_local != no ; then
10274 for ac_hdr in sys/un.h
10276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10278 echo "configure:10279: checking for $ac_hdr" >&5
10279 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10282 cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure"
10284 #include "confdefs.h"
10287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10288 { (eval echo configure:10289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10290 if test -z "$ac_err"; then
10292 eval "ac_cv_header_$ac_safe=yes"
10295 echo "configure: failed program was:" >&5
10296 cat conftest.$ac_ext >&5
10298 eval "ac_cv_header_$ac_safe=no"
10302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10303 echo "$ac_t""yes" 1>&6
10304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10305 cat >> confdefs.h <<EOF
10306 #define $ac_tr_hdr 1
10310 echo "$ac_t""no" 1>&6
10315 if test $ol_enable_local = auto ; then
10316 ol_enable_local=$ac_cv_header_sys_un_h
10317 elif test $ac_cv_header_sys_un_h = no ; then
10318 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10327 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10328 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10329 -o $ol_with_kerberos = k425 ; then
10331 for ac_hdr in krb5.h
10333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10335 echo "configure:10336: checking for $ac_hdr" >&5
10336 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10345 { (eval echo configure:10346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10347 if test -z "$ac_err"; then
10349 eval "ac_cv_header_$ac_safe=yes"
10352 echo "configure: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 eval "ac_cv_header_$ac_safe=no"
10359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10360 echo "$ac_t""yes" 1>&6
10361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10362 cat >> confdefs.h <<EOF
10363 #define $ac_tr_hdr 1
10367 echo "$ac_t""no" 1>&6
10372 if test $ac_cv_header_krb5_h = yes ; then
10373 for ac_hdr in heim_err.h
10375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10377 echo "configure:10378: checking for $ac_hdr" >&5
10378 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10387 { (eval echo configure:10388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10389 if test -z "$ac_err"; then
10391 eval "ac_cv_header_$ac_safe=yes"
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10397 eval "ac_cv_header_$ac_safe=no"
10401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10402 echo "$ac_t""yes" 1>&6
10403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10404 cat >> confdefs.h <<EOF
10405 #define $ac_tr_hdr 1
10409 echo "$ac_t""no" 1>&6
10413 if test $ac_cv_header_heim_err_h = yes ; then
10419 if test $krb5_impl = mit; then
10420 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10421 echo "configure:10422: checking for main in -lk5crypto" >&5
10422 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10426 ac_save_LIBS="$LIBS"
10427 LIBS="-lk5crypto $LIBS"
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10436 if { (eval echo configure:10437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10438 eval "ac_cv_lib_$ac_lib_var=yes"
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10443 eval "ac_cv_lib_$ac_lib_var=no"
10446 LIBS="$ac_save_LIBS"
10449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10450 echo "$ac_t""yes" 1>&6
10451 krb5crypto=k5crypto
10453 echo "$ac_t""no" 1>&6
10458 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10459 echo "configure:10460: checking for main in -lkrb5" >&5
10460 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10461 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10464 ac_save_LIBS="$LIBS"
10465 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10476 eval "ac_cv_lib_$ac_lib_var=yes"
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10481 eval "ac_cv_lib_$ac_lib_var=no"
10484 LIBS="$ac_save_LIBS"
10487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10490 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10492 echo "$ac_t""no" 1>&6
10497 elif test $krb5_impl = heimdal; then
10498 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10499 echo "configure:10500: checking for main in -ldes" >&5
10500 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10501 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10502 echo $ac_n "(cached) $ac_c" 1>&6
10504 ac_save_LIBS="$LIBS"
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10516 eval "ac_cv_lib_$ac_lib_var=yes"
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10521 eval "ac_cv_lib_$ac_lib_var=no"
10524 LIBS="$ac_save_LIBS"
10527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10531 echo "$ac_t""no" 1>&6
10536 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10537 echo "configure:10538: checking for main in -lkrb5" >&5
10538 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10539 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10542 ac_save_LIBS="$LIBS"
10543 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10544 cat > conftest.$ac_ext <<EOF
10545 #line 10546 "configure"
10546 #include "confdefs.h"
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10554 eval "ac_cv_lib_$ac_lib_var=yes"
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10559 eval "ac_cv_lib_$ac_lib_var=no"
10562 LIBS="$ac_save_LIBS"
10565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10566 echo "$ac_t""yes" 1>&6
10568 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10570 echo "$ac_t""no" 1>&6
10575 cat >> confdefs.h <<\EOF
10576 #define HAVE_HEIMDAL_KERBEROS 1
10582 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10585 if test $have_krb5 = yes ; then
10588 cat >> confdefs.h <<\EOF
10589 #define HAVE_KRB5 1
10593 if test $ol_enable_kpasswd != no ; then
10594 ol_link_kpasswd=yes;
10597 if test $ol_with_kerberos = k5only ; then
10598 ol_with_kerberos=found
10601 elif test $ol_with_kerberos != auto ; then
10602 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10608 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10609 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10611 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10615 echo "configure:10616: checking for $ac_hdr" >&5
10616 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10619 cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10625 { (eval echo configure:10626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10627 if test -z "$ac_err"; then
10629 eval "ac_cv_header_$ac_safe=yes"
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10635 eval "ac_cv_header_$ac_safe=no"
10639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10642 cat >> confdefs.h <<EOF
10643 #define $ac_tr_hdr 1
10647 echo "$ac_t""no" 1>&6
10652 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10653 if test $krb5_impl = mit; then
10654 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10655 echo "configure:10656: checking for main in -lkrb4" >&5
10656 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10657 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10658 echo $ac_n "(cached) $ac_c" 1>&6
10660 ac_save_LIBS="$LIBS"
10661 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10662 cat > conftest.$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10672 eval "ac_cv_lib_$ac_lib_var=yes"
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10677 eval "ac_cv_lib_$ac_lib_var=no"
10680 LIBS="$ac_save_LIBS"
10683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10684 echo "$ac_t""yes" 1>&6
10686 KRB4_LIBS="-lkrb4 -ldes425"
10688 echo "$ac_t""no" 1>&6
10693 elif test $krb5_impl = heimdal; then
10694 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10695 echo "configure:10696: checking for main in -lkrb4" >&5
10696 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10697 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10700 ac_save_LIBS="$LIBS"
10701 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10702 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10710 if { (eval echo configure:10711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10712 eval "ac_cv_lib_$ac_lib_var=yes"
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10717 eval "ac_cv_lib_$ac_lib_var=no"
10720 LIBS="$ac_save_LIBS"
10723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10724 echo "$ac_t""yes" 1>&6
10728 echo "$ac_t""no" 1>&6
10735 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10738 if test $have_k425 = yes ; then
10739 ol_with_kerberos=found
10742 cat >> confdefs.h <<\EOF
10743 #define HAVE_KRB425 1
10746 cat >> confdefs.h <<\EOF
10747 #define HAVE_KRB4 1
10751 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10752 echo "configure:10753: checking for des_debug in Kerberos libraries" >&5
10753 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10758 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10759 cat > conftest.$ac_ext <<EOF
10760 #line 10761 "configure"
10761 #include "confdefs.h"
10763 #include <kerberosIV/krb.h>
10764 #include <kerberosIV/des.h>
10765 extern int des_debug;
10773 if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10775 ol_cv_var_des_debug=yes
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10780 ol_cv_var_des_debug=no
10787 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10789 if test $ol_cv_var_des_debug = yes ; then
10790 cat >> confdefs.h <<\EOF
10791 #define HAVE_DES_DEBUG 1
10801 if test $ol_link_krb5 = yes ; then
10802 ol_with_kerberos=found
10805 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10806 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10808 for ac_hdr in krb.h des.h krb-archaeology.h
10810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10812 echo "configure:10813: checking for $ac_hdr" >&5
10813 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10822 { (eval echo configure:10823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10824 if test -z "$ac_err"; then
10826 eval "ac_cv_header_$ac_safe=yes"
10829 echo "configure: failed program was:" >&5
10830 cat conftest.$ac_ext >&5
10832 eval "ac_cv_header_$ac_safe=no"
10836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10837 echo "$ac_t""yes" 1>&6
10838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10839 cat >> confdefs.h <<EOF
10840 #define $ac_tr_hdr 1
10844 echo "$ac_t""no" 1>&6
10849 if test $ac_cv_header_krb_h = yes ; then
10850 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10851 echo "configure:10852: checking for main in -lkrb" >&5
10852 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10853 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10854 echo $ac_n "(cached) $ac_c" 1>&6
10856 ac_save_LIBS="$LIBS"
10857 LIBS="-lkrb -ldes $LIBS"
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10866 if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10868 eval "ac_cv_lib_$ac_lib_var=yes"
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10873 eval "ac_cv_lib_$ac_lib_var=no"
10876 LIBS="$ac_save_LIBS"
10879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10880 echo "$ac_t""yes" 1>&6
10883 echo "$ac_t""no" 1>&6
10888 if test $have_k4 = yes ; then
10889 ol_with_kerberos=found
10892 cat >> confdefs.h <<\EOF
10893 #define HAVE_KRB4 1
10897 KRB4_LIBS="-lkrb -ldes"
10899 if test $ac_cv_header_krb_archaeology_h = yes ; then
10900 cat >> confdefs.h <<\EOF
10901 #define HAVE_KTH_KERBEROS 1
10909 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10910 ol_link_kpasswd=yes
10913 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10916 elif test $ol_enable_kbind = yes ; then
10917 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10920 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10921 cat >> confdefs.h <<\EOF
10922 #define HAVE_KERBEROS 1
10926 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10927 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10931 if test $ol_with_tls != no ; then
10932 for ac_hdr in openssl/ssl.h ssl.h
10934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10936 echo "configure:10937: checking for $ac_hdr" >&5
10937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10938 echo $ac_n "(cached) $ac_c" 1>&6
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10946 { (eval echo configure:10947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10948 if test -z "$ac_err"; then
10950 eval "ac_cv_header_$ac_safe=yes"
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 eval "ac_cv_header_$ac_safe=no"
10960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10963 cat >> confdefs.h <<EOF
10964 #define $ac_tr_hdr 1
10968 echo "$ac_t""no" 1>&6
10973 if test $ac_cv_header_openssl_ssl_h = yes \
10974 -o $ac_cv_header_ssl_h = yes ; then
10975 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10976 echo "configure:10977: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10977 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10979 echo $ac_n "(cached) $ac_c" 1>&6
10981 ac_save_LIBS="$LIBS"
10982 LIBS="-lssl -lcrypto $LIBS"
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 /* Override any gcc2 internal prototype to avoid an error. */
10987 /* We use char because int might match the return type of a gcc2
10988 builtin and then its argument prototype would still apply. */
10989 char SSLeay_add_ssl_algorithms();
10992 SSLeay_add_ssl_algorithms()
10995 if { (eval echo configure:10996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10997 eval "ac_cv_lib_$ac_lib_var=yes"
10999 echo "configure: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11002 eval "ac_cv_lib_$ac_lib_var=no"
11005 LIBS="$ac_save_LIBS"
11008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11009 echo "$ac_t""yes" 1>&6
11013 echo "$ac_t""no" 1>&6
11018 if test $have_ssleay = no ; then
11019 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11020 echo "configure:11021: checking for SSL_library_init in -lssl" >&5
11021 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11022 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11025 ac_save_LIBS="$LIBS"
11026 LIBS="-lssl -lcrypto $LIBS"
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11030 /* Override any gcc2 internal prototype to avoid an error. */
11031 /* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11033 char SSL_library_init();
11039 if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11041 eval "ac_cv_lib_$ac_lib_var=yes"
11043 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11046 eval "ac_cv_lib_$ac_lib_var=no"
11049 LIBS="$ac_save_LIBS"
11052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11053 echo "$ac_t""yes" 1>&6
11057 echo "$ac_t""no" 1>&6
11063 if test $have_ssleay = no ; then
11064 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11065 echo "configure:11066: checking for ssl3_accept in -lssl" >&5
11066 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11067 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11068 echo $ac_n "(cached) $ac_c" 1>&6
11070 ac_save_LIBS="$LIBS"
11071 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11075 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11078 char ssl3_accept();
11084 if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11086 eval "ac_cv_lib_$ac_lib_var=yes"
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 eval "ac_cv_lib_$ac_lib_var=no"
11094 LIBS="$ac_save_LIBS"
11097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11098 echo "$ac_t""yes" 1>&6
11102 echo "$ac_t""no" 1>&6
11108 if test $have_ssleay = yes ; then
11112 cat >> confdefs.h <<\EOF
11113 #define HAVE_SSLEAY 1
11117 if test $need_rsaref = yes; then
11118 cat >> confdefs.h <<\EOF
11119 #define HAVE_RSAREF 1
11123 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11125 TLS_LIBS="-lssl -lcrypto"
11131 echo "configure: warning: TLS data protection not supported!" 1>&2
11134 if test $ol_link_tls = yes ; then
11135 cat >> confdefs.h <<\EOF
11140 elif test $ol_with_tls = auto ; then
11141 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11142 echo "configure: warning: TLS data protection not supported!" 1>&2
11144 elif test $ol_with_tls != no ; then
11145 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11148 if test $ol_enable_lmpasswd != no; then
11149 if test $ol_link_tls != yes ; then
11150 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11153 cat >> confdefs.h <<\EOF
11154 #define SLAPD_LMHASH 1
11161 gethostbyname_r gethostbyaddr_r \
11164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11165 echo "configure:11166: checking for $ac_func" >&5
11166 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func(); below. */
11174 #include <assert.h>
11175 /* Override any gcc2 internal prototype to avoid an error. */
11176 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */
11183 /* The GNU C library defines this for functions which it implements
11184 to always fail with ENOSYS. Some functions are actually named
11185 something starting with __ and the normal name is an alias. */
11186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11196 eval "ac_cv_func_$ac_func=yes"
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11201 eval "ac_cv_func_$ac_func=no"
11206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11209 cat >> confdefs.h <<EOF
11210 #define $ac_tr_func 1
11214 echo "$ac_t""no" 1>&6
11219 if test "$ac_cv_func_ctime_r" = no ; then
11220 ol_cv_func_ctime_r_nargs=0
11222 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11223 echo "configure:11224: checking number of arguments of ctime_r" >&5
11224 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11232 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11235 if { (eval echo configure:11236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11237 ol_cv_func_ctime_r_nargs3=yes
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11242 ol_cv_func_ctime_r_nargs3=no
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11251 time_t ti; char *buffer; ctime_r(&ti,buffer);
11254 if { (eval echo configure:11255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11256 ol_cv_func_ctime_r_nargs2=yes
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11261 ol_cv_func_ctime_r_nargs2=no
11265 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11266 $ol_cv_func_ctime_r_nargs2 = no ; then
11268 ol_cv_func_ctime_r_nargs=3
11270 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11271 $ol_cv_func_ctime_r_nargs2 = yes ; then
11273 ol_cv_func_ctime_r_nargs=2
11276 ol_cv_func_ctime_r_nargs=0
11281 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11283 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11284 cat >> confdefs.h <<EOF
11285 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11292 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11293 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11294 echo "configure:11295: checking number of arguments of gethostbyname_r" >&5
11295 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11296 echo $ac_n "(cached) $ac_c" 1>&6
11298 cat > conftest.$ac_ext <<EOF
11299 #line 11300 "configure"
11300 #include "confdefs.h"
11301 #include <sys/types.h>
11302 #include <sys/socket.h>
11303 #include <netinet/in.h>
11305 #define BUFSIZE (sizeof(struct hostent)+10)
11307 struct hostent hent; char buffer[BUFSIZE];
11308 int bufsize=BUFSIZE;int h_errno;
11309 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11310 buffer, bufsize, &h_errno);
11313 if { (eval echo configure:11314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11315 ol_cv_func_gethostbyname_r_nargs5=yes
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11320 ol_cv_func_gethostbyname_r_nargs5=no
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 #include <sys/types.h>
11328 #include <sys/socket.h>
11329 #include <netinet/in.h>
11331 #define BUFSIZE (sizeof(struct hostent)+10)
11333 struct hostent hent;struct hostent *rhent;
11334 char buffer[BUFSIZE];
11335 int bufsize=BUFSIZE;int h_errno;
11336 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11340 if { (eval echo configure:11341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11342 ol_cv_func_gethostbyname_r_nargs6=yes
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11347 ol_cv_func_gethostbyname_r_nargs6=no
11351 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11352 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11354 ol_cv_func_gethostbyname_r_nargs=5
11356 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11357 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11359 ol_cv_func_gethostbyname_r_nargs=6
11362 ol_cv_func_gethostbyname_r_nargs=0
11367 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11368 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11369 cat >> confdefs.h <<EOF
11370 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11376 ol_cv_func_gethostbyname_r_nargs=0
11379 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11380 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11381 echo "configure:11382: checking number of arguments of gethostbyaddr_r" >&5
11382 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 #include <sys/types.h>
11389 #include <sys/socket.h>
11390 #include <netinet/in.h>
11392 #define BUFSIZE (sizeof(struct hostent)+10)
11394 struct hostent hent; char buffer[BUFSIZE];
11395 struct in_addr add;
11396 size_t alen=sizeof(struct in_addr);
11397 int bufsize=BUFSIZE;int h_errno;
11398 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11399 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11402 if { (eval echo configure:11403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11404 ol_cv_func_gethostbyaddr_r_nargs7=yes
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11409 ol_cv_func_gethostbyaddr_r_nargs7=no
11413 cat > conftest.$ac_ext <<EOF
11414 #line 11415 "configure"
11415 #include "confdefs.h"
11416 #include <sys/types.h>
11417 #include <sys/socket.h>
11418 #include <netinet/in.h>
11420 #define BUFSIZE (sizeof(struct hostent)+10)
11422 struct hostent hent;
11423 struct hostent *rhent; char buffer[BUFSIZE];
11424 struct in_addr add;
11425 size_t alen=sizeof(struct in_addr);
11426 int bufsize=BUFSIZE;int h_errno;
11427 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11428 alen, AF_INET, &hent, buffer, bufsize,
11432 if { (eval echo configure:11433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11434 ol_cv_func_gethostbyaddr_r_nargs8=yes
11436 echo "configure: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11439 ol_cv_func_gethostbyaddr_r_nargs8=no
11443 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11444 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11446 ol_cv_func_gethostbyaddr_r_nargs=7
11448 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11449 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11451 ol_cv_func_gethostbyaddr_r_nargs=8
11454 ol_cv_func_gethostbyaddr_r_nargs=0
11459 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11460 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11461 cat >> confdefs.h <<EOF
11462 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11468 ol_cv_func_gethostbyaddr_r_nargs=0
11471 if test "$ac_cv_func_ctime_r" = yes \
11472 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11473 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11474 -a "$ac_cv_func_gethostbyname_r" = yes \
11475 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11476 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11477 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11478 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11479 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11482 cat >> confdefs.h <<\EOF
11483 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11490 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11491 -o $ol_with_threads = nt ; then
11494 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11495 echo "configure:11496: checking for _beginthread" >&5
11496 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 /* System header to define __stub macros and hopefully few prototypes,
11503 which can conflict with char _beginthread(); below. */
11504 #include <assert.h>
11505 /* Override any gcc2 internal prototype to avoid an error. */
11506 /* We use char because int might match the return type of a gcc2
11507 builtin and then its argument prototype would still apply. */
11508 char _beginthread();
11513 /* The GNU C library defines this for functions which it implements
11514 to always fail with ENOSYS. Some functions are actually named
11515 something starting with __ and the normal name is an alias. */
11516 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11524 if { (eval echo configure:11525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11526 eval "ac_cv_func__beginthread=yes"
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11531 eval "ac_cv_func__beginthread=no"
11536 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11537 echo "$ac_t""yes" 1>&6
11540 echo "$ac_t""no" 1>&6
11544 if test $ac_cv_func__beginthread = yes ; then
11545 cat >> confdefs.h <<\EOF
11546 #define HAVE_NT_THREADS 1
11549 ol_cv_nt_threads=yes
11553 if test "$ol_cv_nt_threads" = yes ; then
11555 ol_with_threads=found
11556 ol_with_yielding_select=yes
11558 cat >> confdefs.h <<\EOF
11559 #define HAVE_NT_SERVICE_MANAGER 1
11562 cat >> confdefs.h <<\EOF
11563 #define HAVE_NT_EVENT_LOG 1
11568 if test $ol_with_threads = nt ; then
11569 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11573 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11574 -o $ol_with_threads = posix ; then
11576 for ac_hdr in pthread.h
11578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11580 echo "configure:11581: checking for $ac_hdr" >&5
11581 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11582 echo $ac_n "(cached) $ac_c" 1>&6
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11590 { (eval echo configure:11591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11592 if test -z "$ac_err"; then
11594 eval "ac_cv_header_$ac_safe=yes"
11597 echo "configure: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11600 eval "ac_cv_header_$ac_safe=no"
11604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11605 echo "$ac_t""yes" 1>&6
11606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11607 cat >> confdefs.h <<EOF
11608 #define $ac_tr_hdr 1
11612 echo "$ac_t""no" 1>&6
11617 if test $ac_cv_header_pthread_h = yes ; then
11618 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11619 echo "configure:11620: checking POSIX thread version" >&5
11620 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11621 echo $ac_n "(cached) $ac_c" 1>&6
11624 cat > conftest.$ac_ext <<EOF
11625 #line 11626 "configure"
11626 #include "confdefs.h"
11628 # include <pthread.h>
11632 int i = PTHREAD_CREATE_JOINABLE;
11636 if { (eval echo configure:11637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11639 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 #include <pthread.h>
11644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11645 egrep "pthread_detach" >/dev/null 2>&1; then
11647 ol_cv_pthread_version=10
11650 ol_cv_pthread_version=8
11655 echo "configure: failed program was:" >&5
11656 cat conftest.$ac_ext >&5
11659 cat > conftest.$ac_ext <<EOF
11660 #line 11661 "configure"
11661 #include "confdefs.h"
11663 # include <pthread.h>
11664 # ifdef PTHREAD_CREATE_UNDETACHED
11669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11670 egrep "draft7" >/dev/null 2>&1; then
11672 ol_cv_pthread_version=7
11676 cat > conftest.$ac_ext <<EOF
11677 #line 11678 "configure"
11678 #include "confdefs.h"
11679 #include <pthread.h>
11681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11682 egrep "pthread_attr_init" >/dev/null 2>&1; then
11684 ol_cv_pthread_version=6
11688 cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11692 # include <pthread.h>
11693 #ifdef PTHREAD_MUTEX_INITIALIZER
11698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11699 egrep "draft5" >/dev/null 2>&1; then
11701 ol_cv_pthread_version=5
11704 ol_cv_pthread_version=4
11719 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11722 if test $ol_cv_pthread_version != 0 ; then
11723 cat >> confdefs.h <<EOF
11724 #define HAVE_PTHREADS $ol_cv_pthread_version
11728 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11731 # consider threads found
11732 ol_with_threads=found
11735 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11736 echo "configure:11737: checking for LinuxThreads pthread.h" >&5
11737 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11738 echo $ac_n "(cached) $ac_c" 1>&6
11740 cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11743 #include <pthread.h>
11745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11746 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11748 ol_cv_header_linux_threads=yes
11751 ol_cv_header_linux_threads=no
11758 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11759 if test $ol_cv_header_linux_threads = yes; then
11760 cat >> confdefs.h <<\EOF
11761 #define HAVE_LINUX_THREADS 1
11767 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11768 echo "configure:11769: checking for GNU Pth pthread.h" >&5
11769 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11770 echo $ac_n "(cached) $ac_c" 1>&6
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 #include <pthread.h>
11776 #ifdef _POSIX_THREAD_IS_GNU_PTH
11781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11782 egrep "__gnu_pth__" >/dev/null 2>&1; then
11784 ol_cv_header_gnu_pth_pthread_h=yes
11787 ol_cv_header_gnu_pth_pthread_h=no
11794 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11797 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11798 for ac_hdr in sched.h
11800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11802 echo "configure:11803: checking for $ac_hdr" >&5
11803 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11804 echo $ac_n "(cached) $ac_c" 1>&6
11806 cat > conftest.$ac_ext <<EOF
11807 #line 11808 "configure"
11808 #include "confdefs.h"
11811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11812 { (eval echo configure:11813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11814 if test -z "$ac_err"; then
11816 eval "ac_cv_header_$ac_safe=yes"
11819 echo "configure: failed program was:" >&5
11820 cat conftest.$ac_ext >&5
11822 eval "ac_cv_header_$ac_safe=no"
11826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11827 echo "$ac_t""yes" 1>&6
11828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11829 cat >> confdefs.h <<EOF
11830 #define $ac_tr_hdr 1
11834 echo "$ac_t""no" 1>&6
11841 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11842 echo "configure:11843: checking for pthread_create in default libraries" >&5
11843 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11844 echo $ac_n "(cached) $ac_c" 1>&6
11847 if test "$cross_compiling" = yes; then
11848 cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11851 /* pthread test headers */
11852 #include <pthread.h>
11853 #if HAVE_PTHREADS < 7
11857 #define NULL (void*)0
11860 static void *task(p)
11863 return (void *) (p == NULL);
11868 /* pthread test function */
11869 #ifndef PTHREAD_CREATE_DETACHED
11870 #define PTHREAD_CREATE_DETACHED 1
11874 int detach = PTHREAD_CREATE_DETACHED;
11876 #if HAVE_PTHREADS > 4
11877 /* Final pthreads */
11878 pthread_attr_t attr;
11880 status = pthread_attr_init(&attr);
11881 if( status ) return status;
11883 #if HAVE_PTHREADS < 7
11884 status = pthread_attr_setdetachstate(&attr, &detach);
11885 if( status < 0 ) status = errno;
11887 status = pthread_attr_setdetachstate(&attr, detach);
11889 if( status ) return status;
11890 status = pthread_create( &t, &attr, task, NULL );
11891 #if HAVE_PTHREADS < 7
11892 if( status < 0 ) status = errno;
11894 if( status ) return status;
11896 /* Draft 4 pthreads */
11897 status = pthread_create( &t, pthread_attr_default, task, NULL );
11898 if( status ) return errno;
11900 /* give thread a chance to complete */
11901 /* it should remain joinable and hence detachable */
11904 status = pthread_detach( &t );
11905 if( status ) return errno;
11908 #ifdef HAVE_LINUX_THREADS
11909 pthread_kill_other_threads_np();
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11918 ol_cv_pthread_create=yes
11920 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11923 ol_cv_pthread_create=no
11927 cat > conftest.$ac_ext <<EOF
11928 #line 11929 "configure"
11929 #include "confdefs.h"
11930 /* pthread test headers */
11931 #include <pthread.h>
11932 #if HAVE_PTHREADS < 7
11936 #define NULL (void*)0
11939 static void *task(p)
11942 return (void *) (p == NULL);
11946 int main(argc, argv)
11951 /* pthread test function */
11952 #ifndef PTHREAD_CREATE_DETACHED
11953 #define PTHREAD_CREATE_DETACHED 1
11957 int detach = PTHREAD_CREATE_DETACHED;
11959 #if HAVE_PTHREADS > 4
11960 /* Final pthreads */
11961 pthread_attr_t attr;
11963 status = pthread_attr_init(&attr);
11964 if( status ) return status;
11966 #if HAVE_PTHREADS < 7
11967 status = pthread_attr_setdetachstate(&attr, &detach);
11968 if( status < 0 ) status = errno;
11970 status = pthread_attr_setdetachstate(&attr, detach);
11972 if( status ) return status;
11973 status = pthread_create( &t, &attr, task, NULL );
11974 #if HAVE_PTHREADS < 7
11975 if( status < 0 ) status = errno;
11977 if( status ) return status;
11979 /* Draft 4 pthreads */
11980 status = pthread_create( &t, pthread_attr_default, task, NULL );
11981 if( status ) return errno;
11983 /* give thread a chance to complete */
11984 /* it should remain joinable and hence detachable */
11987 status = pthread_detach( &t );
11988 if( status ) return errno;
11991 #ifdef HAVE_LINUX_THREADS
11992 pthread_kill_other_threads_np();
12000 if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12002 ol_cv_pthread_create=yes
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12007 ol_cv_pthread_create=no
12014 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12016 if test $ol_cv_pthread_create != no ; then
12017 ol_link_threads=posix
12018 ol_link_pthreads=""
12021 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12022 if test "$ol_link_threads" = no ; then
12024 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12025 echo "configure:12026: checking for pthread link with -kthread" >&5
12026 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12027 echo $ac_n "(cached) $ac_c" 1>&6
12032 LIBS="-kthread $LIBS"
12034 if test "$cross_compiling" = yes; then
12035 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* pthread test headers */
12039 #include <pthread.h>
12040 #if HAVE_PTHREADS < 7
12044 #define NULL (void*)0
12047 static void *task(p)
12050 return (void *) (p == NULL);
12055 /* pthread test function */
12056 #ifndef PTHREAD_CREATE_DETACHED
12057 #define PTHREAD_CREATE_DETACHED 1
12061 int detach = PTHREAD_CREATE_DETACHED;
12063 #if HAVE_PTHREADS > 4
12064 /* Final pthreads */
12065 pthread_attr_t attr;
12067 status = pthread_attr_init(&attr);
12068 if( status ) return status;
12070 #if HAVE_PTHREADS < 7
12071 status = pthread_attr_setdetachstate(&attr, &detach);
12072 if( status < 0 ) status = errno;
12074 status = pthread_attr_setdetachstate(&attr, detach);
12076 if( status ) return status;
12077 status = pthread_create( &t, &attr, task, NULL );
12078 #if HAVE_PTHREADS < 7
12079 if( status < 0 ) status = errno;
12081 if( status ) return status;
12083 /* Draft 4 pthreads */
12084 status = pthread_create( &t, pthread_attr_default, task, NULL );
12085 if( status ) return errno;
12087 /* give thread a chance to complete */
12088 /* it should remain joinable and hence detachable */
12091 status = pthread_detach( &t );
12092 if( status ) return errno;
12095 #ifdef HAVE_LINUX_THREADS
12096 pthread_kill_other_threads_np();
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12105 ol_cv_pthread_kthread=yes
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 ol_cv_pthread_kthread=no
12114 cat > conftest.$ac_ext <<EOF
12115 #line 12116 "configure"
12116 #include "confdefs.h"
12117 /* pthread test headers */
12118 #include <pthread.h>
12119 #if HAVE_PTHREADS < 7
12123 #define NULL (void*)0
12126 static void *task(p)
12129 return (void *) (p == NULL);
12133 int main(argc, argv)
12138 /* pthread test function */
12139 #ifndef PTHREAD_CREATE_DETACHED
12140 #define PTHREAD_CREATE_DETACHED 1
12144 int detach = PTHREAD_CREATE_DETACHED;
12146 #if HAVE_PTHREADS > 4
12147 /* Final pthreads */
12148 pthread_attr_t attr;
12150 status = pthread_attr_init(&attr);
12151 if( status ) return status;
12153 #if HAVE_PTHREADS < 7
12154 status = pthread_attr_setdetachstate(&attr, &detach);
12155 if( status < 0 ) status = errno;
12157 status = pthread_attr_setdetachstate(&attr, detach);
12159 if( status ) return status;
12160 status = pthread_create( &t, &attr, task, NULL );
12161 #if HAVE_PTHREADS < 7
12162 if( status < 0 ) status = errno;
12164 if( status ) return status;
12166 /* Draft 4 pthreads */
12167 status = pthread_create( &t, pthread_attr_default, task, NULL );
12168 if( status ) return errno;
12170 /* give thread a chance to complete */
12171 /* it should remain joinable and hence detachable */
12174 status = pthread_detach( &t );
12175 if( status ) return errno;
12178 #ifdef HAVE_LINUX_THREADS
12179 pthread_kill_other_threads_np();
12187 if { (eval echo configure:12188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12189 ol_cv_pthread_kthread=yes
12191 echo "configure: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12194 ol_cv_pthread_kthread=no
12205 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12207 if test $ol_cv_pthread_kthread = yes ; then
12208 ol_link_pthreads="-kthread"
12209 ol_link_threads=posix
12213 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12214 if test "$ol_link_threads" = no ; then
12216 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12217 echo "configure:12218: checking for pthread link with -pthread" >&5
12218 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
12224 LIBS="-pthread $LIBS"
12226 if test "$cross_compiling" = yes; then
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 /* pthread test headers */
12231 #include <pthread.h>
12232 #if HAVE_PTHREADS < 7
12236 #define NULL (void*)0
12239 static void *task(p)
12242 return (void *) (p == NULL);
12247 /* pthread test function */
12248 #ifndef PTHREAD_CREATE_DETACHED
12249 #define PTHREAD_CREATE_DETACHED 1
12253 int detach = PTHREAD_CREATE_DETACHED;
12255 #if HAVE_PTHREADS > 4
12256 /* Final pthreads */
12257 pthread_attr_t attr;
12259 status = pthread_attr_init(&attr);
12260 if( status ) return status;
12262 #if HAVE_PTHREADS < 7
12263 status = pthread_attr_setdetachstate(&attr, &detach);
12264 if( status < 0 ) status = errno;
12266 status = pthread_attr_setdetachstate(&attr, detach);
12268 if( status ) return status;
12269 status = pthread_create( &t, &attr, task, NULL );
12270 #if HAVE_PTHREADS < 7
12271 if( status < 0 ) status = errno;
12273 if( status ) return status;
12275 /* Draft 4 pthreads */
12276 status = pthread_create( &t, pthread_attr_default, task, NULL );
12277 if( status ) return errno;
12279 /* give thread a chance to complete */
12280 /* it should remain joinable and hence detachable */
12283 status = pthread_detach( &t );
12284 if( status ) return errno;
12287 #ifdef HAVE_LINUX_THREADS
12288 pthread_kill_other_threads_np();
12295 if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12297 ol_cv_pthread_pthread=yes
12299 echo "configure: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12302 ol_cv_pthread_pthread=no
12306 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309 /* pthread test headers */
12310 #include <pthread.h>
12311 #if HAVE_PTHREADS < 7
12315 #define NULL (void*)0
12318 static void *task(p)
12321 return (void *) (p == NULL);
12325 int main(argc, argv)
12330 /* pthread test function */
12331 #ifndef PTHREAD_CREATE_DETACHED
12332 #define PTHREAD_CREATE_DETACHED 1
12336 int detach = PTHREAD_CREATE_DETACHED;
12338 #if HAVE_PTHREADS > 4
12339 /* Final pthreads */
12340 pthread_attr_t attr;
12342 status = pthread_attr_init(&attr);
12343 if( status ) return status;
12345 #if HAVE_PTHREADS < 7
12346 status = pthread_attr_setdetachstate(&attr, &detach);
12347 if( status < 0 ) status = errno;
12349 status = pthread_attr_setdetachstate(&attr, detach);
12351 if( status ) return status;
12352 status = pthread_create( &t, &attr, task, NULL );
12353 #if HAVE_PTHREADS < 7
12354 if( status < 0 ) status = errno;
12356 if( status ) return status;
12358 /* Draft 4 pthreads */
12359 status = pthread_create( &t, pthread_attr_default, task, NULL );
12360 if( status ) return errno;
12362 /* give thread a chance to complete */
12363 /* it should remain joinable and hence detachable */
12366 status = pthread_detach( &t );
12367 if( status ) return errno;
12370 #ifdef HAVE_LINUX_THREADS
12371 pthread_kill_other_threads_np();
12379 if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12381 ol_cv_pthread_pthread=yes
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12386 ol_cv_pthread_pthread=no
12397 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12399 if test $ol_cv_pthread_pthread = yes ; then
12400 ol_link_pthreads="-pthread"
12401 ol_link_threads=posix
12405 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12406 if test "$ol_link_threads" = no ; then
12408 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12409 echo "configure:12410: checking for pthread link with -pthreads" >&5
12410 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12411 echo $ac_n "(cached) $ac_c" 1>&6
12416 LIBS="-pthreads $LIBS"
12418 if test "$cross_compiling" = yes; then
12419 cat > conftest.$ac_ext <<EOF
12420 #line 12421 "configure"
12421 #include "confdefs.h"
12422 /* pthread test headers */
12423 #include <pthread.h>
12424 #if HAVE_PTHREADS < 7
12428 #define NULL (void*)0
12431 static void *task(p)
12434 return (void *) (p == NULL);
12439 /* pthread test function */
12440 #ifndef PTHREAD_CREATE_DETACHED
12441 #define PTHREAD_CREATE_DETACHED 1
12445 int detach = PTHREAD_CREATE_DETACHED;
12447 #if HAVE_PTHREADS > 4
12448 /* Final pthreads */
12449 pthread_attr_t attr;
12451 status = pthread_attr_init(&attr);
12452 if( status ) return status;
12454 #if HAVE_PTHREADS < 7
12455 status = pthread_attr_setdetachstate(&attr, &detach);
12456 if( status < 0 ) status = errno;
12458 status = pthread_attr_setdetachstate(&attr, detach);
12460 if( status ) return status;
12461 status = pthread_create( &t, &attr, task, NULL );
12462 #if HAVE_PTHREADS < 7
12463 if( status < 0 ) status = errno;
12465 if( status ) return status;
12467 /* Draft 4 pthreads */
12468 status = pthread_create( &t, pthread_attr_default, task, NULL );
12469 if( status ) return errno;
12471 /* give thread a chance to complete */
12472 /* it should remain joinable and hence detachable */
12475 status = pthread_detach( &t );
12476 if( status ) return errno;
12479 #ifdef HAVE_LINUX_THREADS
12480 pthread_kill_other_threads_np();
12487 if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12489 ol_cv_pthread_pthreads=yes
12491 echo "configure: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12494 ol_cv_pthread_pthreads=no
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501 /* pthread test headers */
12502 #include <pthread.h>
12503 #if HAVE_PTHREADS < 7
12507 #define NULL (void*)0
12510 static void *task(p)
12513 return (void *) (p == NULL);
12517 int main(argc, argv)
12522 /* pthread test function */
12523 #ifndef PTHREAD_CREATE_DETACHED
12524 #define PTHREAD_CREATE_DETACHED 1
12528 int detach = PTHREAD_CREATE_DETACHED;
12530 #if HAVE_PTHREADS > 4
12531 /* Final pthreads */
12532 pthread_attr_t attr;
12534 status = pthread_attr_init(&attr);
12535 if( status ) return status;
12537 #if HAVE_PTHREADS < 7
12538 status = pthread_attr_setdetachstate(&attr, &detach);
12539 if( status < 0 ) status = errno;
12541 status = pthread_attr_setdetachstate(&attr, detach);
12543 if( status ) return status;
12544 status = pthread_create( &t, &attr, task, NULL );
12545 #if HAVE_PTHREADS < 7
12546 if( status < 0 ) status = errno;
12548 if( status ) return status;
12550 /* Draft 4 pthreads */
12551 status = pthread_create( &t, pthread_attr_default, task, NULL );
12552 if( status ) return errno;
12554 /* give thread a chance to complete */
12555 /* it should remain joinable and hence detachable */
12558 status = pthread_detach( &t );
12559 if( status ) return errno;
12562 #ifdef HAVE_LINUX_THREADS
12563 pthread_kill_other_threads_np();
12571 if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12573 ol_cv_pthread_pthreads=yes
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12578 ol_cv_pthread_pthreads=no
12589 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12591 if test $ol_cv_pthread_pthreads = yes ; then
12592 ol_link_pthreads="-pthreads"
12593 ol_link_threads=posix
12597 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12598 if test "$ol_link_threads" = no ; then
12600 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12601 echo "configure:12602: checking for pthread link with -mthreads" >&5
12602 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12603 echo $ac_n "(cached) $ac_c" 1>&6
12608 LIBS="-mthreads $LIBS"
12610 if test "$cross_compiling" = yes; then
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614 /* pthread test headers */
12615 #include <pthread.h>
12616 #if HAVE_PTHREADS < 7
12620 #define NULL (void*)0
12623 static void *task(p)
12626 return (void *) (p == NULL);
12631 /* pthread test function */
12632 #ifndef PTHREAD_CREATE_DETACHED
12633 #define PTHREAD_CREATE_DETACHED 1
12637 int detach = PTHREAD_CREATE_DETACHED;
12639 #if HAVE_PTHREADS > 4
12640 /* Final pthreads */
12641 pthread_attr_t attr;
12643 status = pthread_attr_init(&attr);
12644 if( status ) return status;
12646 #if HAVE_PTHREADS < 7
12647 status = pthread_attr_setdetachstate(&attr, &detach);
12648 if( status < 0 ) status = errno;
12650 status = pthread_attr_setdetachstate(&attr, detach);
12652 if( status ) return status;
12653 status = pthread_create( &t, &attr, task, NULL );
12654 #if HAVE_PTHREADS < 7
12655 if( status < 0 ) status = errno;
12657 if( status ) return status;
12659 /* Draft 4 pthreads */
12660 status = pthread_create( &t, pthread_attr_default, task, NULL );
12661 if( status ) return errno;
12663 /* give thread a chance to complete */
12664 /* it should remain joinable and hence detachable */
12667 status = pthread_detach( &t );
12668 if( status ) return errno;
12671 #ifdef HAVE_LINUX_THREADS
12672 pthread_kill_other_threads_np();
12679 if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 ol_cv_pthread_mthreads=yes
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12686 ol_cv_pthread_mthreads=no
12690 cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 /* pthread test headers */
12694 #include <pthread.h>
12695 #if HAVE_PTHREADS < 7
12699 #define NULL (void*)0
12702 static void *task(p)
12705 return (void *) (p == NULL);
12709 int main(argc, argv)
12714 /* pthread test function */
12715 #ifndef PTHREAD_CREATE_DETACHED
12716 #define PTHREAD_CREATE_DETACHED 1
12720 int detach = PTHREAD_CREATE_DETACHED;
12722 #if HAVE_PTHREADS > 4
12723 /* Final pthreads */
12724 pthread_attr_t attr;
12726 status = pthread_attr_init(&attr);
12727 if( status ) return status;
12729 #if HAVE_PTHREADS < 7
12730 status = pthread_attr_setdetachstate(&attr, &detach);
12731 if( status < 0 ) status = errno;
12733 status = pthread_attr_setdetachstate(&attr, detach);
12735 if( status ) return status;
12736 status = pthread_create( &t, &attr, task, NULL );
12737 #if HAVE_PTHREADS < 7
12738 if( status < 0 ) status = errno;
12740 if( status ) return status;
12742 /* Draft 4 pthreads */
12743 status = pthread_create( &t, pthread_attr_default, task, NULL );
12744 if( status ) return errno;
12746 /* give thread a chance to complete */
12747 /* it should remain joinable and hence detachable */
12750 status = pthread_detach( &t );
12751 if( status ) return errno;
12754 #ifdef HAVE_LINUX_THREADS
12755 pthread_kill_other_threads_np();
12763 if { (eval echo configure:12764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12765 ol_cv_pthread_mthreads=yes
12767 echo "configure: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12770 ol_cv_pthread_mthreads=no
12781 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12783 if test $ol_cv_pthread_mthreads = yes ; then
12784 ol_link_pthreads="-mthreads"
12785 ol_link_threads=posix
12789 # Pthread try link: -thread (ol_cv_pthread_thread)
12790 if test "$ol_link_threads" = no ; then
12792 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12793 echo "configure:12794: checking for pthread link with -thread" >&5
12794 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12800 LIBS="-thread $LIBS"
12802 if test "$cross_compiling" = yes; then
12803 cat > conftest.$ac_ext <<EOF
12804 #line 12805 "configure"
12805 #include "confdefs.h"
12806 /* pthread test headers */
12807 #include <pthread.h>
12808 #if HAVE_PTHREADS < 7
12812 #define NULL (void*)0
12815 static void *task(p)
12818 return (void *) (p == NULL);
12823 /* pthread test function */
12824 #ifndef PTHREAD_CREATE_DETACHED
12825 #define PTHREAD_CREATE_DETACHED 1
12829 int detach = PTHREAD_CREATE_DETACHED;
12831 #if HAVE_PTHREADS > 4
12832 /* Final pthreads */
12833 pthread_attr_t attr;
12835 status = pthread_attr_init(&attr);
12836 if( status ) return status;
12838 #if HAVE_PTHREADS < 7
12839 status = pthread_attr_setdetachstate(&attr, &detach);
12840 if( status < 0 ) status = errno;
12842 status = pthread_attr_setdetachstate(&attr, detach);
12844 if( status ) return status;
12845 status = pthread_create( &t, &attr, task, NULL );
12846 #if HAVE_PTHREADS < 7
12847 if( status < 0 ) status = errno;
12849 if( status ) return status;
12851 /* Draft 4 pthreads */
12852 status = pthread_create( &t, pthread_attr_default, task, NULL );
12853 if( status ) return errno;
12855 /* give thread a chance to complete */
12856 /* it should remain joinable and hence detachable */
12859 status = pthread_detach( &t );
12860 if( status ) return errno;
12863 #ifdef HAVE_LINUX_THREADS
12864 pthread_kill_other_threads_np();
12871 if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12873 ol_cv_pthread_thread=yes
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12878 ol_cv_pthread_thread=no
12882 cat > conftest.$ac_ext <<EOF
12883 #line 12884 "configure"
12884 #include "confdefs.h"
12885 /* pthread test headers */
12886 #include <pthread.h>
12887 #if HAVE_PTHREADS < 7
12891 #define NULL (void*)0
12894 static void *task(p)
12897 return (void *) (p == NULL);
12901 int main(argc, argv)
12906 /* pthread test function */
12907 #ifndef PTHREAD_CREATE_DETACHED
12908 #define PTHREAD_CREATE_DETACHED 1
12912 int detach = PTHREAD_CREATE_DETACHED;
12914 #if HAVE_PTHREADS > 4
12915 /* Final pthreads */
12916 pthread_attr_t attr;
12918 status = pthread_attr_init(&attr);
12919 if( status ) return status;
12921 #if HAVE_PTHREADS < 7
12922 status = pthread_attr_setdetachstate(&attr, &detach);
12923 if( status < 0 ) status = errno;
12925 status = pthread_attr_setdetachstate(&attr, detach);
12927 if( status ) return status;
12928 status = pthread_create( &t, &attr, task, NULL );
12929 #if HAVE_PTHREADS < 7
12930 if( status < 0 ) status = errno;
12932 if( status ) return status;
12934 /* Draft 4 pthreads */
12935 status = pthread_create( &t, pthread_attr_default, task, NULL );
12936 if( status ) return errno;
12938 /* give thread a chance to complete */
12939 /* it should remain joinable and hence detachable */
12942 status = pthread_detach( &t );
12943 if( status ) return errno;
12946 #ifdef HAVE_LINUX_THREADS
12947 pthread_kill_other_threads_np();
12955 if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12957 ol_cv_pthread_thread=yes
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12962 ol_cv_pthread_thread=no
12973 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12975 if test $ol_cv_pthread_thread = yes ; then
12976 ol_link_pthreads="-thread"
12977 ol_link_threads=posix
12982 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12983 if test "$ol_link_threads" = no ; then
12984 # try -lpthread -lmach -lexc -lc_r
12985 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12986 echo "configure:12987: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12987 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12988 echo $ac_n "(cached) $ac_c" 1>&6
12993 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12995 if test "$cross_compiling" = yes; then
12996 cat > conftest.$ac_ext <<EOF
12997 #line 12998 "configure"
12998 #include "confdefs.h"
12999 /* pthread test headers */
13000 #include <pthread.h>
13001 #if HAVE_PTHREADS < 7
13005 #define NULL (void*)0
13008 static void *task(p)
13011 return (void *) (p == NULL);
13016 /* pthread test function */
13017 #ifndef PTHREAD_CREATE_DETACHED
13018 #define PTHREAD_CREATE_DETACHED 1
13022 int detach = PTHREAD_CREATE_DETACHED;
13024 #if HAVE_PTHREADS > 4
13025 /* Final pthreads */
13026 pthread_attr_t attr;
13028 status = pthread_attr_init(&attr);
13029 if( status ) return status;
13031 #if HAVE_PTHREADS < 7
13032 status = pthread_attr_setdetachstate(&attr, &detach);
13033 if( status < 0 ) status = errno;
13035 status = pthread_attr_setdetachstate(&attr, detach);
13037 if( status ) return status;
13038 status = pthread_create( &t, &attr, task, NULL );
13039 #if HAVE_PTHREADS < 7
13040 if( status < 0 ) status = errno;
13042 if( status ) return status;
13044 /* Draft 4 pthreads */
13045 status = pthread_create( &t, pthread_attr_default, task, NULL );
13046 if( status ) return errno;
13048 /* give thread a chance to complete */
13049 /* it should remain joinable and hence detachable */
13052 status = pthread_detach( &t );
13053 if( status ) return errno;
13056 #ifdef HAVE_LINUX_THREADS
13057 pthread_kill_other_threads_np();
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13066 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13071 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 /* pthread test headers */
13079 #include <pthread.h>
13080 #if HAVE_PTHREADS < 7
13084 #define NULL (void*)0
13087 static void *task(p)
13090 return (void *) (p == NULL);
13094 int main(argc, argv)
13099 /* pthread test function */
13100 #ifndef PTHREAD_CREATE_DETACHED
13101 #define PTHREAD_CREATE_DETACHED 1
13105 int detach = PTHREAD_CREATE_DETACHED;
13107 #if HAVE_PTHREADS > 4
13108 /* Final pthreads */
13109 pthread_attr_t attr;
13111 status = pthread_attr_init(&attr);
13112 if( status ) return status;
13114 #if HAVE_PTHREADS < 7
13115 status = pthread_attr_setdetachstate(&attr, &detach);
13116 if( status < 0 ) status = errno;
13118 status = pthread_attr_setdetachstate(&attr, detach);
13120 if( status ) return status;
13121 status = pthread_create( &t, &attr, task, NULL );
13122 #if HAVE_PTHREADS < 7
13123 if( status < 0 ) status = errno;
13125 if( status ) return status;
13127 /* Draft 4 pthreads */
13128 status = pthread_create( &t, pthread_attr_default, task, NULL );
13129 if( status ) return errno;
13131 /* give thread a chance to complete */
13132 /* it should remain joinable and hence detachable */
13135 status = pthread_detach( &t );
13136 if( status ) return errno;
13139 #ifdef HAVE_LINUX_THREADS
13140 pthread_kill_other_threads_np();
13148 if { (eval echo configure:13149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13150 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13166 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13168 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13169 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13170 ol_link_threads=posix
13174 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13175 if test "$ol_link_threads" = no ; then
13176 # try -lpthread -lmach -lexc
13177 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13178 echo "configure:13179: checking for pthread link with -lpthread -lmach -lexc" >&5
13179 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13185 LIBS="-lpthread -lmach -lexc $LIBS"
13187 if test "$cross_compiling" = yes; then
13188 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13191 /* pthread test headers */
13192 #include <pthread.h>
13193 #if HAVE_PTHREADS < 7
13197 #define NULL (void*)0
13200 static void *task(p)
13203 return (void *) (p == NULL);
13208 /* pthread test function */
13209 #ifndef PTHREAD_CREATE_DETACHED
13210 #define PTHREAD_CREATE_DETACHED 1
13214 int detach = PTHREAD_CREATE_DETACHED;
13216 #if HAVE_PTHREADS > 4
13217 /* Final pthreads */
13218 pthread_attr_t attr;
13220 status = pthread_attr_init(&attr);
13221 if( status ) return status;
13223 #if HAVE_PTHREADS < 7
13224 status = pthread_attr_setdetachstate(&attr, &detach);
13225 if( status < 0 ) status = errno;
13227 status = pthread_attr_setdetachstate(&attr, detach);
13229 if( status ) return status;
13230 status = pthread_create( &t, &attr, task, NULL );
13231 #if HAVE_PTHREADS < 7
13232 if( status < 0 ) status = errno;
13234 if( status ) return status;
13236 /* Draft 4 pthreads */
13237 status = pthread_create( &t, pthread_attr_default, task, NULL );
13238 if( status ) return errno;
13240 /* give thread a chance to complete */
13241 /* it should remain joinable and hence detachable */
13244 status = pthread_detach( &t );
13245 if( status ) return errno;
13248 #ifdef HAVE_LINUX_THREADS
13249 pthread_kill_other_threads_np();
13256 if { (eval echo configure:13257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13258 ol_cv_pthread_lpthread_lmach_lexc=yes
13260 echo "configure: failed program was:" >&5
13261 cat conftest.$ac_ext >&5
13263 ol_cv_pthread_lpthread_lmach_lexc=no
13267 cat > conftest.$ac_ext <<EOF
13268 #line 13269 "configure"
13269 #include "confdefs.h"
13270 /* pthread test headers */
13271 #include <pthread.h>
13272 #if HAVE_PTHREADS < 7
13276 #define NULL (void*)0
13279 static void *task(p)
13282 return (void *) (p == NULL);
13286 int main(argc, argv)
13291 /* pthread test function */
13292 #ifndef PTHREAD_CREATE_DETACHED
13293 #define PTHREAD_CREATE_DETACHED 1
13297 int detach = PTHREAD_CREATE_DETACHED;
13299 #if HAVE_PTHREADS > 4
13300 /* Final pthreads */
13301 pthread_attr_t attr;
13303 status = pthread_attr_init(&attr);
13304 if( status ) return status;
13306 #if HAVE_PTHREADS < 7
13307 status = pthread_attr_setdetachstate(&attr, &detach);
13308 if( status < 0 ) status = errno;
13310 status = pthread_attr_setdetachstate(&attr, detach);
13312 if( status ) return status;
13313 status = pthread_create( &t, &attr, task, NULL );
13314 #if HAVE_PTHREADS < 7
13315 if( status < 0 ) status = errno;
13317 if( status ) return status;
13319 /* Draft 4 pthreads */
13320 status = pthread_create( &t, pthread_attr_default, task, NULL );
13321 if( status ) return errno;
13323 /* give thread a chance to complete */
13324 /* it should remain joinable and hence detachable */
13327 status = pthread_detach( &t );
13328 if( status ) return errno;
13331 #ifdef HAVE_LINUX_THREADS
13332 pthread_kill_other_threads_np();
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13342 ol_cv_pthread_lpthread_lmach_lexc=yes
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13347 ol_cv_pthread_lpthread_lmach_lexc=no
13358 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13360 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13361 ol_link_pthreads="-lpthread -lmach -lexc"
13362 ol_link_threads=posix
13367 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13368 if test "$ol_link_threads" = no ; then
13369 # try -lpthread -Wl,-woff,85
13370 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13371 echo "configure:13372: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13372 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13373 echo $ac_n "(cached) $ac_c" 1>&6
13378 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13380 if test "$cross_compiling" = yes; then
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 /* pthread test headers */
13385 #include <pthread.h>
13386 #if HAVE_PTHREADS < 7
13390 #define NULL (void*)0
13393 static void *task(p)
13396 return (void *) (p == NULL);
13401 /* pthread test function */
13402 #ifndef PTHREAD_CREATE_DETACHED
13403 #define PTHREAD_CREATE_DETACHED 1
13407 int detach = PTHREAD_CREATE_DETACHED;
13409 #if HAVE_PTHREADS > 4
13410 /* Final pthreads */
13411 pthread_attr_t attr;
13413 status = pthread_attr_init(&attr);
13414 if( status ) return status;
13416 #if HAVE_PTHREADS < 7
13417 status = pthread_attr_setdetachstate(&attr, &detach);
13418 if( status < 0 ) status = errno;
13420 status = pthread_attr_setdetachstate(&attr, detach);
13422 if( status ) return status;
13423 status = pthread_create( &t, &attr, task, NULL );
13424 #if HAVE_PTHREADS < 7
13425 if( status < 0 ) status = errno;
13427 if( status ) return status;
13429 /* Draft 4 pthreads */
13430 status = pthread_create( &t, pthread_attr_default, task, NULL );
13431 if( status ) return errno;
13433 /* give thread a chance to complete */
13434 /* it should remain joinable and hence detachable */
13437 status = pthread_detach( &t );
13438 if( status ) return errno;
13441 #ifdef HAVE_LINUX_THREADS
13442 pthread_kill_other_threads_np();
13449 if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13451 ol_cv_pthread_lib_lpthread_woff=yes
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13456 ol_cv_pthread_lib_lpthread_woff=no
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* pthread test headers */
13464 #include <pthread.h>
13465 #if HAVE_PTHREADS < 7
13469 #define NULL (void*)0
13472 static void *task(p)
13475 return (void *) (p == NULL);
13479 int main(argc, argv)
13484 /* pthread test function */
13485 #ifndef PTHREAD_CREATE_DETACHED
13486 #define PTHREAD_CREATE_DETACHED 1
13490 int detach = PTHREAD_CREATE_DETACHED;
13492 #if HAVE_PTHREADS > 4
13493 /* Final pthreads */
13494 pthread_attr_t attr;
13496 status = pthread_attr_init(&attr);
13497 if( status ) return status;
13499 #if HAVE_PTHREADS < 7
13500 status = pthread_attr_setdetachstate(&attr, &detach);
13501 if( status < 0 ) status = errno;
13503 status = pthread_attr_setdetachstate(&attr, detach);
13505 if( status ) return status;
13506 status = pthread_create( &t, &attr, task, NULL );
13507 #if HAVE_PTHREADS < 7
13508 if( status < 0 ) status = errno;
13510 if( status ) return status;
13512 /* Draft 4 pthreads */
13513 status = pthread_create( &t, pthread_attr_default, task, NULL );
13514 if( status ) return errno;
13516 /* give thread a chance to complete */
13517 /* it should remain joinable and hence detachable */
13520 status = pthread_detach( &t );
13521 if( status ) return errno;
13524 #ifdef HAVE_LINUX_THREADS
13525 pthread_kill_other_threads_np();
13533 if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13535 ol_cv_pthread_lib_lpthread_woff=yes
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13540 ol_cv_pthread_lib_lpthread_woff=no
13551 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13553 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13554 ol_link_pthreads="-lpthread -Wl,-woff,85"
13555 ol_link_threads=posix
13560 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13561 if test "$ol_link_threads" = no ; then
13563 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13564 echo "configure:13565: checking for pthread link with -lpthread" >&5
13565 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
13571 LIBS="-lpthread $LIBS"
13573 if test "$cross_compiling" = yes; then
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13577 /* pthread test headers */
13578 #include <pthread.h>
13579 #if HAVE_PTHREADS < 7
13583 #define NULL (void*)0
13586 static void *task(p)
13589 return (void *) (p == NULL);
13594 /* pthread test function */
13595 #ifndef PTHREAD_CREATE_DETACHED
13596 #define PTHREAD_CREATE_DETACHED 1
13600 int detach = PTHREAD_CREATE_DETACHED;
13602 #if HAVE_PTHREADS > 4
13603 /* Final pthreads */
13604 pthread_attr_t attr;
13606 status = pthread_attr_init(&attr);
13607 if( status ) return status;
13609 #if HAVE_PTHREADS < 7
13610 status = pthread_attr_setdetachstate(&attr, &detach);
13611 if( status < 0 ) status = errno;
13613 status = pthread_attr_setdetachstate(&attr, detach);
13615 if( status ) return status;
13616 status = pthread_create( &t, &attr, task, NULL );
13617 #if HAVE_PTHREADS < 7
13618 if( status < 0 ) status = errno;
13620 if( status ) return status;
13622 /* Draft 4 pthreads */
13623 status = pthread_create( &t, pthread_attr_default, task, NULL );
13624 if( status ) return errno;
13626 /* give thread a chance to complete */
13627 /* it should remain joinable and hence detachable */
13630 status = pthread_detach( &t );
13631 if( status ) return errno;
13634 #ifdef HAVE_LINUX_THREADS
13635 pthread_kill_other_threads_np();
13642 if { (eval echo configure:13643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13644 ol_cv_pthread_lpthread=yes
13646 echo "configure: failed program was:" >&5
13647 cat conftest.$ac_ext >&5
13649 ol_cv_pthread_lpthread=no
13653 cat > conftest.$ac_ext <<EOF
13654 #line 13655 "configure"
13655 #include "confdefs.h"
13656 /* pthread test headers */
13657 #include <pthread.h>
13658 #if HAVE_PTHREADS < 7
13662 #define NULL (void*)0
13665 static void *task(p)
13668 return (void *) (p == NULL);
13672 int main(argc, argv)
13677 /* pthread test function */
13678 #ifndef PTHREAD_CREATE_DETACHED
13679 #define PTHREAD_CREATE_DETACHED 1
13683 int detach = PTHREAD_CREATE_DETACHED;
13685 #if HAVE_PTHREADS > 4
13686 /* Final pthreads */
13687 pthread_attr_t attr;
13689 status = pthread_attr_init(&attr);
13690 if( status ) return status;
13692 #if HAVE_PTHREADS < 7
13693 status = pthread_attr_setdetachstate(&attr, &detach);
13694 if( status < 0 ) status = errno;
13696 status = pthread_attr_setdetachstate(&attr, detach);
13698 if( status ) return status;
13699 status = pthread_create( &t, &attr, task, NULL );
13700 #if HAVE_PTHREADS < 7
13701 if( status < 0 ) status = errno;
13703 if( status ) return status;
13705 /* Draft 4 pthreads */
13706 status = pthread_create( &t, pthread_attr_default, task, NULL );
13707 if( status ) return errno;
13709 /* give thread a chance to complete */
13710 /* it should remain joinable and hence detachable */
13713 status = pthread_detach( &t );
13714 if( status ) return errno;
13717 #ifdef HAVE_LINUX_THREADS
13718 pthread_kill_other_threads_np();
13726 if { (eval echo configure:13727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13728 ol_cv_pthread_lpthread=yes
13730 echo "configure: failed program was:" >&5
13731 cat conftest.$ac_ext >&5
13733 ol_cv_pthread_lpthread=no
13744 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13746 if test $ol_cv_pthread_lpthread = yes ; then
13747 ol_link_pthreads="-lpthread"
13748 ol_link_threads=posix
13752 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13753 if test "$ol_link_threads" = no ; then
13755 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13756 echo "configure:13757: checking for pthread link with -lc_r" >&5
13757 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13765 if test "$cross_compiling" = yes; then
13766 cat > conftest.$ac_ext <<EOF
13767 #line 13768 "configure"
13768 #include "confdefs.h"
13769 /* pthread test headers */
13770 #include <pthread.h>
13771 #if HAVE_PTHREADS < 7
13775 #define NULL (void*)0
13778 static void *task(p)
13781 return (void *) (p == NULL);
13786 /* pthread test function */
13787 #ifndef PTHREAD_CREATE_DETACHED
13788 #define PTHREAD_CREATE_DETACHED 1
13792 int detach = PTHREAD_CREATE_DETACHED;
13794 #if HAVE_PTHREADS > 4
13795 /* Final pthreads */
13796 pthread_attr_t attr;
13798 status = pthread_attr_init(&attr);
13799 if( status ) return status;
13801 #if HAVE_PTHREADS < 7
13802 status = pthread_attr_setdetachstate(&attr, &detach);
13803 if( status < 0 ) status = errno;
13805 status = pthread_attr_setdetachstate(&attr, detach);
13807 if( status ) return status;
13808 status = pthread_create( &t, &attr, task, NULL );
13809 #if HAVE_PTHREADS < 7
13810 if( status < 0 ) status = errno;
13812 if( status ) return status;
13814 /* Draft 4 pthreads */
13815 status = pthread_create( &t, pthread_attr_default, task, NULL );
13816 if( status ) return errno;
13818 /* give thread a chance to complete */
13819 /* it should remain joinable and hence detachable */
13822 status = pthread_detach( &t );
13823 if( status ) return errno;
13826 #ifdef HAVE_LINUX_THREADS
13827 pthread_kill_other_threads_np();
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13836 ol_cv_pthread_lc_r=yes
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13841 ol_cv_pthread_lc_r=no
13845 cat > conftest.$ac_ext <<EOF
13846 #line 13847 "configure"
13847 #include "confdefs.h"
13848 /* pthread test headers */
13849 #include <pthread.h>
13850 #if HAVE_PTHREADS < 7
13854 #define NULL (void*)0
13857 static void *task(p)
13860 return (void *) (p == NULL);
13864 int main(argc, argv)
13869 /* pthread test function */
13870 #ifndef PTHREAD_CREATE_DETACHED
13871 #define PTHREAD_CREATE_DETACHED 1
13875 int detach = PTHREAD_CREATE_DETACHED;
13877 #if HAVE_PTHREADS > 4
13878 /* Final pthreads */
13879 pthread_attr_t attr;
13881 status = pthread_attr_init(&attr);
13882 if( status ) return status;
13884 #if HAVE_PTHREADS < 7
13885 status = pthread_attr_setdetachstate(&attr, &detach);
13886 if( status < 0 ) status = errno;
13888 status = pthread_attr_setdetachstate(&attr, detach);
13890 if( status ) return status;
13891 status = pthread_create( &t, &attr, task, NULL );
13892 #if HAVE_PTHREADS < 7
13893 if( status < 0 ) status = errno;
13895 if( status ) return status;
13897 /* Draft 4 pthreads */
13898 status = pthread_create( &t, pthread_attr_default, task, NULL );
13899 if( status ) return errno;
13901 /* give thread a chance to complete */
13902 /* it should remain joinable and hence detachable */
13905 status = pthread_detach( &t );
13906 if( status ) return errno;
13909 #ifdef HAVE_LINUX_THREADS
13910 pthread_kill_other_threads_np();
13918 if { (eval echo configure:13919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13920 ol_cv_pthread_lc_r=yes
13922 echo "configure: failed program was:" >&5
13923 cat conftest.$ac_ext >&5
13925 ol_cv_pthread_lc_r=no
13936 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13938 if test $ol_cv_pthread_lc_r = yes ; then
13939 ol_link_pthreads="-lc_r"
13940 ol_link_threads=posix
13945 # Pthread try link: -threads (ol_cv_pthread_threads)
13946 if test "$ol_link_threads" = no ; then
13948 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13949 echo "configure:13950: checking for pthread link with -threads" >&5
13950 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13956 LIBS="-threads $LIBS"
13958 if test "$cross_compiling" = yes; then
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 /* pthread test headers */
13963 #include <pthread.h>
13964 #if HAVE_PTHREADS < 7
13968 #define NULL (void*)0
13971 static void *task(p)
13974 return (void *) (p == NULL);
13979 /* pthread test function */
13980 #ifndef PTHREAD_CREATE_DETACHED
13981 #define PTHREAD_CREATE_DETACHED 1
13985 int detach = PTHREAD_CREATE_DETACHED;
13987 #if HAVE_PTHREADS > 4
13988 /* Final pthreads */
13989 pthread_attr_t attr;
13991 status = pthread_attr_init(&attr);
13992 if( status ) return status;
13994 #if HAVE_PTHREADS < 7
13995 status = pthread_attr_setdetachstate(&attr, &detach);
13996 if( status < 0 ) status = errno;
13998 status = pthread_attr_setdetachstate(&attr, detach);
14000 if( status ) return status;
14001 status = pthread_create( &t, &attr, task, NULL );
14002 #if HAVE_PTHREADS < 7
14003 if( status < 0 ) status = errno;
14005 if( status ) return status;
14007 /* Draft 4 pthreads */
14008 status = pthread_create( &t, pthread_attr_default, task, NULL );
14009 if( status ) return errno;
14011 /* give thread a chance to complete */
14012 /* it should remain joinable and hence detachable */
14015 status = pthread_detach( &t );
14016 if( status ) return errno;
14019 #ifdef HAVE_LINUX_THREADS
14020 pthread_kill_other_threads_np();
14027 if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14029 ol_cv_pthread_threads=yes
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14034 ol_cv_pthread_threads=no
14038 cat > conftest.$ac_ext <<EOF
14039 #line 14040 "configure"
14040 #include "confdefs.h"
14041 /* pthread test headers */
14042 #include <pthread.h>
14043 #if HAVE_PTHREADS < 7
14047 #define NULL (void*)0
14050 static void *task(p)
14053 return (void *) (p == NULL);
14057 int main(argc, argv)
14062 /* pthread test function */
14063 #ifndef PTHREAD_CREATE_DETACHED
14064 #define PTHREAD_CREATE_DETACHED 1
14068 int detach = PTHREAD_CREATE_DETACHED;
14070 #if HAVE_PTHREADS > 4
14071 /* Final pthreads */
14072 pthread_attr_t attr;
14074 status = pthread_attr_init(&attr);
14075 if( status ) return status;
14077 #if HAVE_PTHREADS < 7
14078 status = pthread_attr_setdetachstate(&attr, &detach);
14079 if( status < 0 ) status = errno;
14081 status = pthread_attr_setdetachstate(&attr, detach);
14083 if( status ) return status;
14084 status = pthread_create( &t, &attr, task, NULL );
14085 #if HAVE_PTHREADS < 7
14086 if( status < 0 ) status = errno;
14088 if( status ) return status;
14090 /* Draft 4 pthreads */
14091 status = pthread_create( &t, pthread_attr_default, task, NULL );
14092 if( status ) return errno;
14094 /* give thread a chance to complete */
14095 /* it should remain joinable and hence detachable */
14098 status = pthread_detach( &t );
14099 if( status ) return errno;
14102 #ifdef HAVE_LINUX_THREADS
14103 pthread_kill_other_threads_np();
14111 if { (eval echo configure:14112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14113 ol_cv_pthread_threads=yes
14115 echo "configure: failed program was:" >&5
14116 cat conftest.$ac_ext >&5
14118 ol_cv_pthread_threads=no
14129 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14131 if test $ol_cv_pthread_threads = yes ; then
14132 ol_link_pthreads="-threads"
14133 ol_link_threads=posix
14138 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14139 if test "$ol_link_threads" = no ; then
14140 # try -lpthreads -lmach -lexc -lc_r
14141 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14142 echo "configure:14143: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14143 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14144 echo $ac_n "(cached) $ac_c" 1>&6
14149 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14151 if test "$cross_compiling" = yes; then
14152 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure"
14154 #include "confdefs.h"
14155 /* pthread test headers */
14156 #include <pthread.h>
14157 #if HAVE_PTHREADS < 7
14161 #define NULL (void*)0
14164 static void *task(p)
14167 return (void *) (p == NULL);
14172 /* pthread test function */
14173 #ifndef PTHREAD_CREATE_DETACHED
14174 #define PTHREAD_CREATE_DETACHED 1
14178 int detach = PTHREAD_CREATE_DETACHED;
14180 #if HAVE_PTHREADS > 4
14181 /* Final pthreads */
14182 pthread_attr_t attr;
14184 status = pthread_attr_init(&attr);
14185 if( status ) return status;
14187 #if HAVE_PTHREADS < 7
14188 status = pthread_attr_setdetachstate(&attr, &detach);
14189 if( status < 0 ) status = errno;
14191 status = pthread_attr_setdetachstate(&attr, detach);
14193 if( status ) return status;
14194 status = pthread_create( &t, &attr, task, NULL );
14195 #if HAVE_PTHREADS < 7
14196 if( status < 0 ) status = errno;
14198 if( status ) return status;
14200 /* Draft 4 pthreads */
14201 status = pthread_create( &t, pthread_attr_default, task, NULL );
14202 if( status ) return errno;
14204 /* give thread a chance to complete */
14205 /* it should remain joinable and hence detachable */
14208 status = pthread_detach( &t );
14209 if( status ) return errno;
14212 #ifdef HAVE_LINUX_THREADS
14213 pthread_kill_other_threads_np();
14220 if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14222 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14227 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14231 cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 /* pthread test headers */
14235 #include <pthread.h>
14236 #if HAVE_PTHREADS < 7
14240 #define NULL (void*)0
14243 static void *task(p)
14246 return (void *) (p == NULL);
14250 int main(argc, argv)
14255 /* pthread test function */
14256 #ifndef PTHREAD_CREATE_DETACHED
14257 #define PTHREAD_CREATE_DETACHED 1
14261 int detach = PTHREAD_CREATE_DETACHED;
14263 #if HAVE_PTHREADS > 4
14264 /* Final pthreads */
14265 pthread_attr_t attr;
14267 status = pthread_attr_init(&attr);
14268 if( status ) return status;
14270 #if HAVE_PTHREADS < 7
14271 status = pthread_attr_setdetachstate(&attr, &detach);
14272 if( status < 0 ) status = errno;
14274 status = pthread_attr_setdetachstate(&attr, detach);
14276 if( status ) return status;
14277 status = pthread_create( &t, &attr, task, NULL );
14278 #if HAVE_PTHREADS < 7
14279 if( status < 0 ) status = errno;
14281 if( status ) return status;
14283 /* Draft 4 pthreads */
14284 status = pthread_create( &t, pthread_attr_default, task, NULL );
14285 if( status ) return errno;
14287 /* give thread a chance to complete */
14288 /* it should remain joinable and hence detachable */
14291 status = pthread_detach( &t );
14292 if( status ) return errno;
14295 #ifdef HAVE_LINUX_THREADS
14296 pthread_kill_other_threads_np();
14304 if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14306 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14308 echo "configure: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14311 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14322 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14324 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14325 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14326 ol_link_threads=posix
14330 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14331 if test "$ol_link_threads" = no ; then
14332 # try -lpthreads -lmach -lexc
14333 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14334 echo "configure:14335: checking for pthread link with -lpthreads -lmach -lexc" >&5
14335 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14336 echo $ac_n "(cached) $ac_c" 1>&6
14341 LIBS="-lpthreads -lmach -lexc $LIBS"
14343 if test "$cross_compiling" = yes; then
14344 cat > conftest.$ac_ext <<EOF
14345 #line 14346 "configure"
14346 #include "confdefs.h"
14347 /* pthread test headers */
14348 #include <pthread.h>
14349 #if HAVE_PTHREADS < 7
14353 #define NULL (void*)0
14356 static void *task(p)
14359 return (void *) (p == NULL);
14364 /* pthread test function */
14365 #ifndef PTHREAD_CREATE_DETACHED
14366 #define PTHREAD_CREATE_DETACHED 1
14370 int detach = PTHREAD_CREATE_DETACHED;
14372 #if HAVE_PTHREADS > 4
14373 /* Final pthreads */
14374 pthread_attr_t attr;
14376 status = pthread_attr_init(&attr);
14377 if( status ) return status;
14379 #if HAVE_PTHREADS < 7
14380 status = pthread_attr_setdetachstate(&attr, &detach);
14381 if( status < 0 ) status = errno;
14383 status = pthread_attr_setdetachstate(&attr, detach);
14385 if( status ) return status;
14386 status = pthread_create( &t, &attr, task, NULL );
14387 #if HAVE_PTHREADS < 7
14388 if( status < 0 ) status = errno;
14390 if( status ) return status;
14392 /* Draft 4 pthreads */
14393 status = pthread_create( &t, pthread_attr_default, task, NULL );
14394 if( status ) return errno;
14396 /* give thread a chance to complete */
14397 /* it should remain joinable and hence detachable */
14400 status = pthread_detach( &t );
14401 if( status ) return errno;
14404 #ifdef HAVE_LINUX_THREADS
14405 pthread_kill_other_threads_np();
14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14414 ol_cv_pthread_lpthreads_lmach_lexc=yes
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14419 ol_cv_pthread_lpthreads_lmach_lexc=no
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14426 /* pthread test headers */
14427 #include <pthread.h>
14428 #if HAVE_PTHREADS < 7
14432 #define NULL (void*)0
14435 static void *task(p)
14438 return (void *) (p == NULL);
14442 int main(argc, argv)
14447 /* pthread test function */
14448 #ifndef PTHREAD_CREATE_DETACHED
14449 #define PTHREAD_CREATE_DETACHED 1
14453 int detach = PTHREAD_CREATE_DETACHED;
14455 #if HAVE_PTHREADS > 4
14456 /* Final pthreads */
14457 pthread_attr_t attr;
14459 status = pthread_attr_init(&attr);
14460 if( status ) return status;
14462 #if HAVE_PTHREADS < 7
14463 status = pthread_attr_setdetachstate(&attr, &detach);
14464 if( status < 0 ) status = errno;
14466 status = pthread_attr_setdetachstate(&attr, detach);
14468 if( status ) return status;
14469 status = pthread_create( &t, &attr, task, NULL );
14470 #if HAVE_PTHREADS < 7
14471 if( status < 0 ) status = errno;
14473 if( status ) return status;
14475 /* Draft 4 pthreads */
14476 status = pthread_create( &t, pthread_attr_default, task, NULL );
14477 if( status ) return errno;
14479 /* give thread a chance to complete */
14480 /* it should remain joinable and hence detachable */
14483 status = pthread_detach( &t );
14484 if( status ) return errno;
14487 #ifdef HAVE_LINUX_THREADS
14488 pthread_kill_other_threads_np();
14496 if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14498 ol_cv_pthread_lpthreads_lmach_lexc=yes
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14503 ol_cv_pthread_lpthreads_lmach_lexc=no
14514 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14516 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14517 ol_link_pthreads="-lpthreads -lmach -lexc"
14518 ol_link_threads=posix
14522 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14523 if test "$ol_link_threads" = no ; then
14524 # try -lpthreads -lexc
14525 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14526 echo "configure:14527: checking for pthread link with -lpthreads -lexc" >&5
14527 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14528 echo $ac_n "(cached) $ac_c" 1>&6
14533 LIBS="-lpthreads -lexc $LIBS"
14535 if test "$cross_compiling" = yes; then
14536 cat > conftest.$ac_ext <<EOF
14537 #line 14538 "configure"
14538 #include "confdefs.h"
14539 /* pthread test headers */
14540 #include <pthread.h>
14541 #if HAVE_PTHREADS < 7
14545 #define NULL (void*)0
14548 static void *task(p)
14551 return (void *) (p == NULL);
14556 /* pthread test function */
14557 #ifndef PTHREAD_CREATE_DETACHED
14558 #define PTHREAD_CREATE_DETACHED 1
14562 int detach = PTHREAD_CREATE_DETACHED;
14564 #if HAVE_PTHREADS > 4
14565 /* Final pthreads */
14566 pthread_attr_t attr;
14568 status = pthread_attr_init(&attr);
14569 if( status ) return status;
14571 #if HAVE_PTHREADS < 7
14572 status = pthread_attr_setdetachstate(&attr, &detach);
14573 if( status < 0 ) status = errno;
14575 status = pthread_attr_setdetachstate(&attr, detach);
14577 if( status ) return status;
14578 status = pthread_create( &t, &attr, task, NULL );
14579 #if HAVE_PTHREADS < 7
14580 if( status < 0 ) status = errno;
14582 if( status ) return status;
14584 /* Draft 4 pthreads */
14585 status = pthread_create( &t, pthread_attr_default, task, NULL );
14586 if( status ) return errno;
14588 /* give thread a chance to complete */
14589 /* it should remain joinable and hence detachable */
14592 status = pthread_detach( &t );
14593 if( status ) return errno;
14596 #ifdef HAVE_LINUX_THREADS
14597 pthread_kill_other_threads_np();
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14606 ol_cv_pthread_lpthreads_lexc=yes
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14611 ol_cv_pthread_lpthreads_lexc=no
14615 cat > conftest.$ac_ext <<EOF
14616 #line 14617 "configure"
14617 #include "confdefs.h"
14618 /* pthread test headers */
14619 #include <pthread.h>
14620 #if HAVE_PTHREADS < 7
14624 #define NULL (void*)0
14627 static void *task(p)
14630 return (void *) (p == NULL);
14634 int main(argc, argv)
14639 /* pthread test function */
14640 #ifndef PTHREAD_CREATE_DETACHED
14641 #define PTHREAD_CREATE_DETACHED 1
14645 int detach = PTHREAD_CREATE_DETACHED;
14647 #if HAVE_PTHREADS > 4
14648 /* Final pthreads */
14649 pthread_attr_t attr;
14651 status = pthread_attr_init(&attr);
14652 if( status ) return status;
14654 #if HAVE_PTHREADS < 7
14655 status = pthread_attr_setdetachstate(&attr, &detach);
14656 if( status < 0 ) status = errno;
14658 status = pthread_attr_setdetachstate(&attr, detach);
14660 if( status ) return status;
14661 status = pthread_create( &t, &attr, task, NULL );
14662 #if HAVE_PTHREADS < 7
14663 if( status < 0 ) status = errno;
14665 if( status ) return status;
14667 /* Draft 4 pthreads */
14668 status = pthread_create( &t, pthread_attr_default, task, NULL );
14669 if( status ) return errno;
14671 /* give thread a chance to complete */
14672 /* it should remain joinable and hence detachable */
14675 status = pthread_detach( &t );
14676 if( status ) return errno;
14679 #ifdef HAVE_LINUX_THREADS
14680 pthread_kill_other_threads_np();
14688 if { (eval echo configure:14689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14690 ol_cv_pthread_lpthreads_lexc=yes
14692 echo "configure: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14695 ol_cv_pthread_lpthreads_lexc=no
14706 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14708 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14709 ol_link_pthreads="-lpthreads -lexc"
14710 ol_link_threads=posix
14715 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14716 if test "$ol_link_threads" = no ; then
14718 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14719 echo "configure:14720: checking for pthread link with -lpthreads" >&5
14720 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14726 LIBS="-lpthreads $LIBS"
14728 if test "$cross_compiling" = yes; then
14729 cat > conftest.$ac_ext <<EOF
14730 #line 14731 "configure"
14731 #include "confdefs.h"
14732 /* pthread test headers */
14733 #include <pthread.h>
14734 #if HAVE_PTHREADS < 7
14738 #define NULL (void*)0
14741 static void *task(p)
14744 return (void *) (p == NULL);
14749 /* pthread test function */
14750 #ifndef PTHREAD_CREATE_DETACHED
14751 #define PTHREAD_CREATE_DETACHED 1
14755 int detach = PTHREAD_CREATE_DETACHED;
14757 #if HAVE_PTHREADS > 4
14758 /* Final pthreads */
14759 pthread_attr_t attr;
14761 status = pthread_attr_init(&attr);
14762 if( status ) return status;
14764 #if HAVE_PTHREADS < 7
14765 status = pthread_attr_setdetachstate(&attr, &detach);
14766 if( status < 0 ) status = errno;
14768 status = pthread_attr_setdetachstate(&attr, detach);
14770 if( status ) return status;
14771 status = pthread_create( &t, &attr, task, NULL );
14772 #if HAVE_PTHREADS < 7
14773 if( status < 0 ) status = errno;
14775 if( status ) return status;
14777 /* Draft 4 pthreads */
14778 status = pthread_create( &t, pthread_attr_default, task, NULL );
14779 if( status ) return errno;
14781 /* give thread a chance to complete */
14782 /* it should remain joinable and hence detachable */
14785 status = pthread_detach( &t );
14786 if( status ) return errno;
14789 #ifdef HAVE_LINUX_THREADS
14790 pthread_kill_other_threads_np();
14797 if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14799 ol_cv_pthread_lib_lpthreads=yes
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14804 ol_cv_pthread_lib_lpthreads=no
14808 cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 /* pthread test headers */
14812 #include <pthread.h>
14813 #if HAVE_PTHREADS < 7
14817 #define NULL (void*)0
14820 static void *task(p)
14823 return (void *) (p == NULL);
14827 int main(argc, argv)
14832 /* pthread test function */
14833 #ifndef PTHREAD_CREATE_DETACHED
14834 #define PTHREAD_CREATE_DETACHED 1
14838 int detach = PTHREAD_CREATE_DETACHED;
14840 #if HAVE_PTHREADS > 4
14841 /* Final pthreads */
14842 pthread_attr_t attr;
14844 status = pthread_attr_init(&attr);
14845 if( status ) return status;
14847 #if HAVE_PTHREADS < 7
14848 status = pthread_attr_setdetachstate(&attr, &detach);
14849 if( status < 0 ) status = errno;
14851 status = pthread_attr_setdetachstate(&attr, detach);
14853 if( status ) return status;
14854 status = pthread_create( &t, &attr, task, NULL );
14855 #if HAVE_PTHREADS < 7
14856 if( status < 0 ) status = errno;
14858 if( status ) return status;
14860 /* Draft 4 pthreads */
14861 status = pthread_create( &t, pthread_attr_default, task, NULL );
14862 if( status ) return errno;
14864 /* give thread a chance to complete */
14865 /* it should remain joinable and hence detachable */
14868 status = pthread_detach( &t );
14869 if( status ) return errno;
14872 #ifdef HAVE_LINUX_THREADS
14873 pthread_kill_other_threads_np();
14881 if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14883 ol_cv_pthread_lib_lpthreads=yes
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14888 ol_cv_pthread_lib_lpthreads=no
14899 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14901 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14902 ol_link_pthreads="-lpthreads"
14903 ol_link_threads=posix
14908 if test $ol_link_threads != no ; then
14909 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14911 save_CPPFLAGS="$CPPFLAGS"
14913 LIBS="$LTHREAD_LIBS $LIBS"
14915 for ac_func in sched_yield pthread_yield thr_yield
14917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14918 echo "configure:14919: checking for $ac_func" >&5
14919 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14922 cat > conftest.$ac_ext <<EOF
14923 #line 14924 "configure"
14924 #include "confdefs.h"
14925 /* System header to define __stub macros and hopefully few prototypes,
14926 which can conflict with char $ac_func(); below. */
14927 #include <assert.h>
14928 /* Override any gcc2 internal prototype to avoid an error. */
14929 /* We use char because int might match the return type of a gcc2
14930 builtin and then its argument prototype would still apply. */
14936 /* The GNU C library defines this for functions which it implements
14937 to always fail with ENOSYS. Some functions are actually named
14938 something starting with __ and the normal name is an alias. */
14939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14947 if { (eval echo configure:14948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14949 eval "ac_cv_func_$ac_func=yes"
14951 echo "configure: failed program was:" >&5
14952 cat conftest.$ac_ext >&5
14954 eval "ac_cv_func_$ac_func=no"
14959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14960 echo "$ac_t""yes" 1>&6
14961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14962 cat >> confdefs.h <<EOF
14963 #define $ac_tr_func 1
14967 echo "$ac_t""no" 1>&6
14972 if test $ac_cv_func_sched_yield = no -a \
14973 $ac_cv_func_pthread_yield = no -a \
14974 $ac_cv_func_thr_yield = no ; then
14975 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14976 echo "configure:14977: checking for sched_yield in -lrt" >&5
14977 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14979 echo $ac_n "(cached) $ac_c" 1>&6
14981 ac_save_LIBS="$LIBS"
14983 cat > conftest.$ac_ext <<EOF
14984 #line 14985 "configure"
14985 #include "confdefs.h"
14986 /* Override any gcc2 internal prototype to avoid an error. */
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14989 char sched_yield();
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14997 eval "ac_cv_lib_$ac_lib_var=yes"
14999 echo "configure: failed program was:" >&5
15000 cat conftest.$ac_ext >&5
15002 eval "ac_cv_lib_$ac_lib_var=no"
15005 LIBS="$ac_save_LIBS"
15008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15009 echo "$ac_t""yes" 1>&6
15010 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15011 cat >> confdefs.h <<\EOF
15012 #define HAVE_SCHED_YIELD 1
15015 ac_cv_func_sched_yield=yes
15017 echo "$ac_t""no" 1>&6
15018 ac_cv_func_sched_yield=no
15022 if test $ac_cv_func_sched_yield = no -a \
15023 $ac_cv_func_pthread_yield = no -a \
15024 "$ac_cv_func_thr_yield" = no ; then
15025 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15028 for ac_func in pthread_kill pthread_rwlock_destroy
15030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15031 echo "configure:15032: checking for $ac_func" >&5
15032 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15033 echo $ac_n "(cached) $ac_c" 1>&6
15035 cat > conftest.$ac_ext <<EOF
15036 #line 15037 "configure"
15037 #include "confdefs.h"
15038 /* System header to define __stub macros and hopefully few prototypes,
15039 which can conflict with char $ac_func(); below. */
15040 #include <assert.h>
15041 /* Override any gcc2 internal prototype to avoid an error. */
15042 /* We use char because int might match the return type of a gcc2
15043 builtin and then its argument prototype would still apply. */
15049 /* The GNU C library defines this for functions which it implements
15050 to always fail with ENOSYS. Some functions are actually named
15051 something starting with __ and the normal name is an alias. */
15052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15060 if { (eval echo configure:15061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15062 eval "ac_cv_func_$ac_func=yes"
15064 echo "configure: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15067 eval "ac_cv_func_$ac_func=no"
15072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15073 echo "$ac_t""yes" 1>&6
15074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15075 cat >> confdefs.h <<EOF
15076 #define $ac_tr_func 1
15080 echo "$ac_t""no" 1>&6
15085 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15086 echo "configure:15087: checking for pthread_detach with <pthread.h>" >&5
15087 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15088 echo $ac_n "(cached) $ac_c" 1>&6
15091 cat > conftest.$ac_ext <<EOF
15092 #line 15093 "configure"
15093 #include "confdefs.h"
15095 #include <pthread.h>
15097 #define NULL (void*)0
15101 pthread_detach(NULL);
15104 if { (eval echo configure:15105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15106 ol_cv_func_pthread_detach=yes
15108 echo "configure: failed program was:" >&5
15109 cat conftest.$ac_ext >&5
15111 ol_cv_func_pthread_detach=no
15117 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15119 if test $ol_cv_func_pthread_detach = no ; then
15120 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15123 cat >> confdefs.h <<\EOF
15124 #define HAVE_PTHREAD_DETACH 1
15129 pthread_setconcurrency \
15130 pthread_getconcurrency \
15131 thr_setconcurrency \
15132 thr_getconcurrency \
15135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15136 echo "configure:15137: checking for $ac_func" >&5
15137 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15138 echo $ac_n "(cached) $ac_c" 1>&6
15140 cat > conftest.$ac_ext <<EOF
15141 #line 15142 "configure"
15142 #include "confdefs.h"
15143 /* System header to define __stub macros and hopefully few prototypes,
15144 which can conflict with char $ac_func(); below. */
15145 #include <assert.h>
15146 /* Override any gcc2 internal prototype to avoid an error. */
15147 /* We use char because int might match the return type of a gcc2
15148 builtin and then its argument prototype would still apply. */
15154 /* The GNU C library defines this for functions which it implements
15155 to always fail with ENOSYS. Some functions are actually named
15156 something starting with __ and the normal name is an alias. */
15157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15165 if { (eval echo configure:15166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15167 eval "ac_cv_func_$ac_func=yes"
15169 echo "configure: failed program was:" >&5
15170 cat conftest.$ac_ext >&5
15172 eval "ac_cv_func_$ac_func=no"
15177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15178 echo "$ac_t""yes" 1>&6
15179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15180 cat >> confdefs.h <<EOF
15181 #define $ac_tr_func 1
15185 echo "$ac_t""no" 1>&6
15191 for ac_func in pthread_kill_other_threads_np
15193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15194 echo "configure:15195: checking for $ac_func" >&5
15195 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15196 echo $ac_n "(cached) $ac_c" 1>&6
15198 cat > conftest.$ac_ext <<EOF
15199 #line 15200 "configure"
15200 #include "confdefs.h"
15201 /* System header to define __stub macros and hopefully few prototypes,
15202 which can conflict with char $ac_func(); below. */
15203 #include <assert.h>
15204 /* Override any gcc2 internal prototype to avoid an error. */
15205 /* We use char because int might match the return type of a gcc2
15206 builtin and then its argument prototype would still apply. */
15212 /* The GNU C library defines this for functions which it implements
15213 to always fail with ENOSYS. Some functions are actually named
15214 something starting with __ and the normal name is an alias. */
15215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15223 if { (eval echo configure:15224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15225 eval "ac_cv_func_$ac_func=yes"
15227 echo "configure: failed program was:" >&5
15228 cat conftest.$ac_ext >&5
15230 eval "ac_cv_func_$ac_func=no"
15235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15236 echo "$ac_t""yes" 1>&6
15237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15238 cat >> confdefs.h <<EOF
15239 #define $ac_tr_func 1
15243 echo "$ac_t""no" 1>&6
15247 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15248 echo "configure:15249: checking for LinuxThreads implementation" >&5
15249 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15250 echo $ac_n "(cached) $ac_c" 1>&6
15252 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15255 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15260 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15261 echo "configure:15262: checking for LinuxThreads consistency" >&5
15262 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15263 echo $ac_n "(cached) $ac_c" 1>&6
15266 if test $ol_cv_header_linux_threads = yes -a \
15267 $ol_cv_sys_linux_threads = yes; then
15268 ol_cv_linux_threads=yes
15269 elif test $ol_cv_header_linux_threads = no -a \
15270 $ol_cv_sys_linux_threads = no; then
15271 ol_cv_linux_threads=no
15273 ol_cv_linux_threads=error
15278 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15281 if test $ol_cv_linux_threads = error; then
15282 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15285 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15286 echo "configure:15287: checking if pthread_create() works" >&5
15287 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15288 echo $ac_n "(cached) $ac_c" 1>&6
15291 if test "$cross_compiling" = yes; then
15292 ol_cv_pthread_create_works=yes
15294 cat > conftest.$ac_ext <<EOF
15295 #line 15296 "configure"
15296 #include "confdefs.h"
15297 /* pthread test headers */
15298 #include <pthread.h>
15299 #if HAVE_PTHREADS < 7
15303 #define NULL (void*)0
15306 static void *task(p)
15309 return (void *) (p == NULL);
15313 int main(argc, argv)
15318 /* pthread test function */
15319 #ifndef PTHREAD_CREATE_DETACHED
15320 #define PTHREAD_CREATE_DETACHED 1
15324 int detach = PTHREAD_CREATE_DETACHED;
15326 #if HAVE_PTHREADS > 4
15327 /* Final pthreads */
15328 pthread_attr_t attr;
15330 status = pthread_attr_init(&attr);
15331 if( status ) return status;
15333 #if HAVE_PTHREADS < 7
15334 status = pthread_attr_setdetachstate(&attr, &detach);
15335 if( status < 0 ) status = errno;
15337 status = pthread_attr_setdetachstate(&attr, detach);
15339 if( status ) return status;
15340 status = pthread_create( &t, &attr, task, NULL );
15341 #if HAVE_PTHREADS < 7
15342 if( status < 0 ) status = errno;
15344 if( status ) return status;
15346 /* Draft 4 pthreads */
15347 status = pthread_create( &t, pthread_attr_default, task, NULL );
15348 if( status ) return errno;
15350 /* give thread a chance to complete */
15351 /* it should remain joinable and hence detachable */
15354 status = pthread_detach( &t );
15355 if( status ) return errno;
15358 #ifdef HAVE_LINUX_THREADS
15359 pthread_kill_other_threads_np();
15367 if { (eval echo configure:15368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15369 ol_cv_pthread_create_works=yes
15371 echo "configure: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15374 ol_cv_pthread_create_works=no
15381 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15383 if test $ol_cv_pthread_create_works = no ; then
15384 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15387 if test $ol_with_yielding_select = auto ; then
15388 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15389 echo "configure:15390: checking if select yields when using pthreads" >&5
15390 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15394 if test "$cross_compiling" = yes; then
15395 ol_cv_pthread_select_yields=cross
15397 cat > conftest.$ac_ext <<EOF
15398 #line 15399 "configure"
15399 #include "confdefs.h"
15401 #include <sys/types.h>
15402 #include <sys/time.h>
15403 #include <unistd.h>
15404 #include <pthread.h>
15406 #define NULL (void*) 0
15409 static int fildes[2];
15411 static void *task(p)
15423 FD_SET(fildes[0], &rfds);
15425 /* we're not interested in any fds */
15426 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15433 exit(0); /* if we exit here, the select blocked the whole process */
15436 int main(argc, argv)
15442 /* create a pipe to select */
15443 if(pipe(&fildes[0])) {
15448 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15449 (void) pthread_setconcurrency(2);
15451 #ifdef HAVE_THR_SETCONCURRENCY
15452 /* Set Solaris LWP concurrency to 2 */
15453 thr_setconcurrency(2);
15457 #if HAVE_PTHREADS < 6
15458 pthread_create(&t, pthread_attr_default, task, NULL);
15460 pthread_create(&t, NULL, task, NULL);
15463 /* make sure task runs first */
15466 #elif defined( HAVE_SCHED_YIELD )
15468 #elif defined( HAVE_PTHREAD_YIELD )
15475 if { (eval echo configure:15476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15477 ol_cv_pthread_select_yields=no
15479 echo "configure: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15482 ol_cv_pthread_select_yields=yes
15489 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15491 if test $ol_cv_pthread_select_yields = cross ; then
15492 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15495 if test $ol_cv_pthread_select_yields = yes ; then
15496 ol_with_yielding_select=yes
15500 CPPFLAGS="$save_CPPFLAGS"
15503 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15507 if test $ol_with_threads = posix ; then
15508 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15512 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15513 -o $ol_with_threads = mach ; then
15515 for ac_hdr in mach/cthreads.h cthreads.h
15517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15519 echo "configure:15520: checking for $ac_hdr" >&5
15520 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15521 echo $ac_n "(cached) $ac_c" 1>&6
15523 cat > conftest.$ac_ext <<EOF
15524 #line 15525 "configure"
15525 #include "confdefs.h"
15528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15529 { (eval echo configure:15530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15531 if test -z "$ac_err"; then
15533 eval "ac_cv_header_$ac_safe=yes"
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15539 eval "ac_cv_header_$ac_safe=no"
15543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15544 echo "$ac_t""yes" 1>&6
15545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15546 cat >> confdefs.h <<EOF
15547 #define $ac_tr_hdr 1
15551 echo "$ac_t""no" 1>&6
15555 if test $ac_cv_header_mach_cthreads_h = yes ; then
15556 ol_with_threads=found
15558 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15559 echo "configure:15560: checking for cthread_fork" >&5
15560 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15563 cat > conftest.$ac_ext <<EOF
15564 #line 15565 "configure"
15565 #include "confdefs.h"
15566 /* System header to define __stub macros and hopefully few prototypes,
15567 which can conflict with char cthread_fork(); below. */
15568 #include <assert.h>
15569 /* Override any gcc2 internal prototype to avoid an error. */
15570 /* We use char because int might match the return type of a gcc2
15571 builtin and then its argument prototype would still apply. */
15572 char cthread_fork();
15577 /* The GNU C library defines this for functions which it implements
15578 to always fail with ENOSYS. Some functions are actually named
15579 something starting with __ and the normal name is an alias. */
15580 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15588 if { (eval echo configure:15589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15590 eval "ac_cv_func_cthread_fork=yes"
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15595 eval "ac_cv_func_cthread_fork=no"
15600 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15601 echo "$ac_t""yes" 1>&6
15602 ol_link_threads=yes
15604 echo "$ac_t""no" 1>&6
15608 if test $ol_link_threads = no ; then
15609 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15610 echo "configure:15611: checking for cthread_fork with -all_load" >&5
15611 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15612 echo $ac_n "(cached) $ac_c" 1>&6
15616 LIBS="-all_load $LIBS"
15617 cat > conftest.$ac_ext <<EOF
15618 #line 15619 "configure"
15619 #include "confdefs.h"
15620 #include <mach/cthreads.h>
15623 cthread_fork((void *)0, (void *)0);
15627 if { (eval echo configure:15628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15629 ol_cv_cthread_all_load=yes
15631 echo "configure: failed program was:" >&5
15632 cat conftest.$ac_ext >&5
15634 ol_cv_cthread_all_load=no
15641 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15643 if test $ol_cv_cthread_all_load = yes ; then
15644 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15645 ol_link_threads=mach
15646 ol_with_threads=found
15650 elif test $ac_cv_header_cthreads_h = yes ; then
15652 ol_with_threads=found
15655 LIBS="$LIBS -lthreads"
15656 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15657 echo "configure:15658: checking for cthread_fork" >&5
15658 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15659 echo $ac_n "(cached) $ac_c" 1>&6
15661 cat > conftest.$ac_ext <<EOF
15662 #line 15663 "configure"
15663 #include "confdefs.h"
15664 /* System header to define __stub macros and hopefully few prototypes,
15665 which can conflict with char cthread_fork(); below. */
15666 #include <assert.h>
15667 /* Override any gcc2 internal prototype to avoid an error. */
15668 /* We use char because int might match the return type of a gcc2
15669 builtin and then its argument prototype would still apply. */
15670 char cthread_fork();
15675 /* The GNU C library defines this for functions which it implements
15676 to always fail with ENOSYS. Some functions are actually named
15677 something starting with __ and the normal name is an alias. */
15678 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15686 if { (eval echo configure:15687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15688 eval "ac_cv_func_cthread_fork=yes"
15690 echo "configure: failed program was:" >&5
15691 cat conftest.$ac_ext >&5
15693 eval "ac_cv_func_cthread_fork=no"
15698 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15699 echo "$ac_t""yes" 1>&6
15700 ol_link_threads=yes
15702 echo "$ac_t""no" 1>&6
15707 if test $ol_link_threads = yes ; then
15708 LTHREAD_LIBS="-lthreads"
15709 ol_link_threads=mach
15710 ol_with_threads=found
15712 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15715 elif test $ol_with_threads = mach ; then
15716 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15719 if test $ol_link_threads = mach ; then
15720 cat >> confdefs.h <<\EOF
15721 #define HAVE_MACH_CTHREADS 1
15724 elif test $ol_with_threads = found ; then
15725 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15729 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15730 -o $ol_with_threads = pth ; then
15732 for ac_hdr in pth.h
15734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15736 echo "configure:15737: checking for $ac_hdr" >&5
15737 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15738 echo $ac_n "(cached) $ac_c" 1>&6
15740 cat > conftest.$ac_ext <<EOF
15741 #line 15742 "configure"
15742 #include "confdefs.h"
15745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15746 { (eval echo configure:15747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15748 if test -z "$ac_err"; then
15750 eval "ac_cv_header_$ac_safe=yes"
15753 echo "configure: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15756 eval "ac_cv_header_$ac_safe=no"
15760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15761 echo "$ac_t""yes" 1>&6
15762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15763 cat >> confdefs.h <<EOF
15764 #define $ac_tr_hdr 1
15768 echo "$ac_t""no" 1>&6
15773 if test $ac_cv_header_pth_h = yes ; then
15774 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15775 echo "configure:15776: checking for pth_version in -lpth" >&5
15776 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15778 echo $ac_n "(cached) $ac_c" 1>&6
15780 ac_save_LIBS="$LIBS"
15782 cat > conftest.$ac_ext <<EOF
15783 #line 15784 "configure"
15784 #include "confdefs.h"
15785 /* Override any gcc2 internal prototype to avoid an error. */
15786 /* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15788 char pth_version();
15794 if { (eval echo configure:15795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15796 eval "ac_cv_lib_$ac_lib_var=yes"
15798 echo "configure: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15801 eval "ac_cv_lib_$ac_lib_var=no"
15804 LIBS="$ac_save_LIBS"
15807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15808 echo "$ac_t""yes" 1>&6
15811 echo "$ac_t""no" 1>&6
15816 if test $have_pth = yes ; then
15817 cat >> confdefs.h <<\EOF
15818 #define HAVE_GNU_PTH 1
15821 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15822 ol_link_threads=pth
15823 ol_with_threads=found
15825 if test $ol_with_yielding_select = auto ; then
15826 ol_with_yielding_select=yes
15832 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15833 -o $ol_with_threads = lwp ; then
15835 for ac_hdr in thread.h synch.h
15837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15839 echo "configure:15840: checking for $ac_hdr" >&5
15840 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15841 echo $ac_n "(cached) $ac_c" 1>&6
15843 cat > conftest.$ac_ext <<EOF
15844 #line 15845 "configure"
15845 #include "confdefs.h"
15848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15849 { (eval echo configure:15850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15851 if test -z "$ac_err"; then
15853 eval "ac_cv_header_$ac_safe=yes"
15856 echo "configure: failed program was:" >&5
15857 cat conftest.$ac_ext >&5
15859 eval "ac_cv_header_$ac_safe=no"
15863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15864 echo "$ac_t""yes" 1>&6
15865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15866 cat >> confdefs.h <<EOF
15867 #define $ac_tr_hdr 1
15871 echo "$ac_t""no" 1>&6
15875 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15876 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15877 echo "configure:15878: checking for thr_create in -lthread" >&5
15878 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15879 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15880 echo $ac_n "(cached) $ac_c" 1>&6
15882 ac_save_LIBS="$LIBS"
15883 LIBS="-lthread $LIBS"
15884 cat > conftest.$ac_ext <<EOF
15885 #line 15886 "configure"
15886 #include "confdefs.h"
15887 /* Override any gcc2 internal prototype to avoid an error. */
15888 /* We use char because int might match the return type of a gcc2
15889 builtin and then its argument prototype would still apply. */
15896 if { (eval echo configure:15897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15898 eval "ac_cv_lib_$ac_lib_var=yes"
15900 echo "configure: failed program was:" >&5
15901 cat conftest.$ac_ext >&5
15903 eval "ac_cv_lib_$ac_lib_var=no"
15906 LIBS="$ac_save_LIBS"
15909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15910 echo "$ac_t""yes" 1>&6
15913 echo "$ac_t""no" 1>&6
15918 if test $have_thr = yes ; then
15919 cat >> confdefs.h <<\EOF
15923 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15924 ol_link_threads=thr
15926 if test $ol_with_yielding_select = auto ; then
15927 ol_with_yielding_select=yes
15931 thr_setconcurrency \
15932 thr_getconcurrency \
15935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15936 echo "configure:15937: checking for $ac_func" >&5
15937 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15938 echo $ac_n "(cached) $ac_c" 1>&6
15940 cat > conftest.$ac_ext <<EOF
15941 #line 15942 "configure"
15942 #include "confdefs.h"
15943 /* System header to define __stub macros and hopefully few prototypes,
15944 which can conflict with char $ac_func(); below. */
15945 #include <assert.h>
15946 /* Override any gcc2 internal prototype to avoid an error. */
15947 /* We use char because int might match the return type of a gcc2
15948 builtin and then its argument prototype would still apply. */
15954 /* The GNU C library defines this for functions which it implements
15955 to always fail with ENOSYS. Some functions are actually named
15956 something starting with __ and the normal name is an alias. */
15957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15965 if { (eval echo configure:15966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15967 eval "ac_cv_func_$ac_func=yes"
15969 echo "configure: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15972 eval "ac_cv_func_$ac_func=no"
15977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15978 echo "$ac_t""yes" 1>&6
15979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15980 cat >> confdefs.h <<EOF
15981 #define $ac_tr_func 1
15985 echo "$ac_t""no" 1>&6
15992 for ac_hdr in lwp/lwp.h
15994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15996 echo "configure:15997: checking for $ac_hdr" >&5
15997 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15998 echo $ac_n "(cached) $ac_c" 1>&6
16000 cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16006 { (eval echo configure:16007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16008 if test -z "$ac_err"; then
16010 eval "ac_cv_header_$ac_safe=yes"
16013 echo "configure: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16016 eval "ac_cv_header_$ac_safe=no"
16020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16021 echo "$ac_t""yes" 1>&6
16022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16023 cat >> confdefs.h <<EOF
16024 #define $ac_tr_hdr 1
16028 echo "$ac_t""no" 1>&6
16032 if test $ac_cv_header_lwp_lwp_h = yes ; then
16033 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16034 echo "configure:16035: checking for lwp_create in -llwp" >&5
16035 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16039 ac_save_LIBS="$LIBS"
16041 cat > conftest.$ac_ext <<EOF
16042 #line 16043 "configure"
16043 #include "confdefs.h"
16044 /* Override any gcc2 internal prototype to avoid an error. */
16045 /* We use char because int might match the return type of a gcc2
16046 builtin and then its argument prototype would still apply. */
16053 if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16055 eval "ac_cv_lib_$ac_lib_var=yes"
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16060 eval "ac_cv_lib_$ac_lib_var=no"
16063 LIBS="$ac_save_LIBS"
16066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16067 echo "$ac_t""yes" 1>&6
16070 echo "$ac_t""no" 1>&6
16075 if test $have_lwp = yes ; then
16076 cat >> confdefs.h <<\EOF
16080 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16081 ol_link_threads=lwp
16083 if test $ol_with_yielding_select = auto ; then
16084 ol_with_yielding_select=no
16090 if test $ol_with_yielding_select = yes ; then
16091 cat >> confdefs.h <<\EOF
16092 #define HAVE_YIELDING_SELECT 1
16097 if test $ol_with_threads = manual ; then
16098 ol_link_threads=yes
16100 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16102 for ac_hdr in pthread.h sched.h
16104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16106 echo "configure:16107: checking for $ac_hdr" >&5
16107 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16108 echo $ac_n "(cached) $ac_c" 1>&6
16110 cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16116 { (eval echo configure:16117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16118 if test -z "$ac_err"; then
16120 eval "ac_cv_header_$ac_safe=yes"
16123 echo "configure: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16126 eval "ac_cv_header_$ac_safe=no"
16130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16131 echo "$ac_t""yes" 1>&6
16132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16133 cat >> confdefs.h <<EOF
16134 #define $ac_tr_hdr 1
16138 echo "$ac_t""no" 1>&6
16142 for ac_func in sched_yield pthread_yield
16144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16145 echo "configure:16146: checking for $ac_func" >&5
16146 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16147 echo $ac_n "(cached) $ac_c" 1>&6
16149 cat > conftest.$ac_ext <<EOF
16150 #line 16151 "configure"
16151 #include "confdefs.h"
16152 /* System header to define __stub macros and hopefully few prototypes,
16153 which can conflict with char $ac_func(); below. */
16154 #include <assert.h>
16155 /* Override any gcc2 internal prototype to avoid an error. */
16156 /* We use char because int might match the return type of a gcc2
16157 builtin and then its argument prototype would still apply. */
16163 /* The GNU C library defines this for functions which it implements
16164 to always fail with ENOSYS. Some functions are actually named
16165 something starting with __ and the normal name is an alias. */
16166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16174 if { (eval echo configure:16175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16176 eval "ac_cv_func_$ac_func=yes"
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16181 eval "ac_cv_func_$ac_func=no"
16186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16187 echo "$ac_t""yes" 1>&6
16188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16189 cat >> confdefs.h <<EOF
16190 #define $ac_tr_func 1
16194 echo "$ac_t""no" 1>&6
16199 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16200 echo "configure:16201: checking for LinuxThreads pthread.h" >&5
16201 if eval "test \"\${ol_cv_header_linux_threads+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 #include <pthread.h>
16209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16210 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16212 ol_cv_header_linux_threads=yes
16215 ol_cv_header_linux_threads=no
16222 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16223 if test $ol_cv_header_linux_threads = yes; then
16224 cat >> confdefs.h <<\EOF
16225 #define HAVE_LINUX_THREADS 1
16231 for ac_hdr in mach/cthreads.h
16233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16235 echo "configure:16236: checking for $ac_hdr" >&5
16236 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16237 echo $ac_n "(cached) $ac_c" 1>&6
16239 cat > conftest.$ac_ext <<EOF
16240 #line 16241 "configure"
16241 #include "confdefs.h"
16244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16245 { (eval echo configure:16246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16247 if test -z "$ac_err"; then
16249 eval "ac_cv_header_$ac_safe=yes"
16252 echo "configure: failed program was:" >&5
16253 cat conftest.$ac_ext >&5
16255 eval "ac_cv_header_$ac_safe=no"
16259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16260 echo "$ac_t""yes" 1>&6
16261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16262 cat >> confdefs.h <<EOF
16263 #define $ac_tr_hdr 1
16267 echo "$ac_t""no" 1>&6
16271 for ac_hdr in lwp/lwp.h
16273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16275 echo "configure:16276: checking for $ac_hdr" >&5
16276 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16277 echo $ac_n "(cached) $ac_c" 1>&6
16279 cat > conftest.$ac_ext <<EOF
16280 #line 16281 "configure"
16281 #include "confdefs.h"
16284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16285 { (eval echo configure:16286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16287 if test -z "$ac_err"; then
16289 eval "ac_cv_header_$ac_safe=yes"
16292 echo "configure: failed program was:" >&5
16293 cat conftest.$ac_ext >&5
16295 eval "ac_cv_header_$ac_safe=no"
16299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16300 echo "$ac_t""yes" 1>&6
16301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16302 cat >> confdefs.h <<EOF
16303 #define $ac_tr_hdr 1
16307 echo "$ac_t""no" 1>&6
16311 for ac_hdr in thread.h synch.h
16313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16315 echo "configure:16316: checking for $ac_hdr" >&5
16316 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16317 echo $ac_n "(cached) $ac_c" 1>&6
16319 cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16325 { (eval echo configure:16326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16327 if test -z "$ac_err"; then
16329 eval "ac_cv_header_$ac_safe=yes"
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16335 eval "ac_cv_header_$ac_safe=no"
16339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16340 echo "$ac_t""yes" 1>&6
16341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16342 cat >> confdefs.h <<EOF
16343 #define $ac_tr_hdr 1
16347 echo "$ac_t""no" 1>&6
16353 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16354 cat >> confdefs.h <<\EOF
16355 #define REENTRANT 1
16358 cat >> confdefs.h <<\EOF
16359 #define _REENTRANT 1
16362 cat >> confdefs.h <<\EOF
16363 #define THREAD_SAFE 1
16366 cat >> confdefs.h <<\EOF
16367 #define _THREAD_SAFE 1
16370 cat >> confdefs.h <<\EOF
16371 #define THREADSAFE 1
16374 cat >> confdefs.h <<\EOF
16375 #define _THREADSAFE 1
16378 cat >> confdefs.h <<\EOF
16379 #define _SGI_MP_SOURCE 1
16383 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16384 echo "configure:16385: checking for thread specific errno" >&5
16385 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16386 echo $ac_n "(cached) $ac_c" 1>&6
16389 cat > conftest.$ac_ext <<EOF
16390 #line 16391 "configure"
16391 #include "confdefs.h"
16397 if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16399 ol_cv_errno_thread_specific=yes
16401 echo "configure: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16404 ol_cv_errno_thread_specific=no
16410 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16412 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16413 echo "configure:16414: checking for thread specific h_errno" >&5
16414 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16415 echo $ac_n "(cached) $ac_c" 1>&6
16418 cat > conftest.$ac_ext <<EOF
16419 #line 16420 "configure"
16420 #include "confdefs.h"
16426 if { (eval echo configure:16427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16428 ol_cv_h_errno_thread_specific=yes
16430 echo "configure: failed program was:" >&5
16431 cat conftest.$ac_ext >&5
16433 ol_cv_h_errno_thread_specific=no
16439 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16441 if test $ol_cv_errno_thread_specific != yes \
16442 -o $ol_cv_h_errno_thread_specific != yes ; then
16443 LIBS="$LTHREAD_LIBS $LIBS"
16449 if test $ol_link_threads = no ; then
16450 if test $ol_with_threads = yes ; then
16451 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16454 if test $ol_with_threads = auto ; then
16455 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16459 cat >> confdefs.h <<\EOF
16460 #define NO_THREADS 1
16466 if test $ol_link_threads != no ; then
16467 cat >> confdefs.h <<\EOF
16468 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16475 if test $ol_with_ldbm_api = auto \
16476 -o $ol_with_ldbm_api = berkeley \
16477 -o $ol_with_ldbm_api = bcompat ; then
16479 if test $ol_with_ldbm_api = bcompat; then \
16480 for ac_hdr in db_185.h db.h
16482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16484 echo "configure:16485: checking for $ac_hdr" >&5
16485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16486 echo $ac_n "(cached) $ac_c" 1>&6
16488 cat > conftest.$ac_ext <<EOF
16489 #line 16490 "configure"
16490 #include "confdefs.h"
16493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16494 { (eval echo configure:16495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16496 if test -z "$ac_err"; then
16498 eval "ac_cv_header_$ac_safe=yes"
16501 echo "configure: failed program was:" >&5
16502 cat conftest.$ac_ext >&5
16504 eval "ac_cv_header_$ac_safe=no"
16508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16509 echo "$ac_t""yes" 1>&6
16510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16511 cat >> confdefs.h <<EOF
16512 #define $ac_tr_hdr 1
16516 echo "$ac_t""no" 1>&6
16520 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16521 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16522 echo "configure:16523: checking if Berkeley DB header compatibility" >&5
16523 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
16527 cat > conftest.$ac_ext <<EOF
16528 #line 16529 "configure"
16529 #include "confdefs.h"
16532 # include <db_185.h>
16537 /* this check could be improved */
16538 #ifndef DB_VERSION_MAJOR
16539 # define DB_VERSION_MAJOR 1
16542 #if DB_VERSION_MAJOR == 1
16547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16548 egrep "__db_version_1" >/dev/null 2>&1; then
16550 ol_cv_header_db1=yes
16553 ol_cv_header_db1=no
16559 echo "$ac_t""$ol_cv_header_db1" 1>&6
16561 if test $ol_cv_header_db1 = yes ; then
16563 if test $ol_cv_lib_db = no ; then
16564 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16565 echo "configure:16566: checking for Berkeley DB link (default)" >&5
16566 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16567 echo $ac_n "(cached) $ac_c" 1>&6
16572 LIBS="$ol_DB_LIB $LIBS"
16574 cat > conftest.$ac_ext <<EOF
16575 #line 16576 "configure"
16576 #include "confdefs.h"
16578 #ifdef HAVE_DB_185_H
16579 # include <db_185.h>
16584 #ifndef DB_VERSION_MAJOR
16585 # define DB_VERSION_MAJOR 1
16589 #define NULL ((void*)0)
16594 #if DB_VERSION_MAJOR > 1
16597 int major, minor, patch;
16599 version = db_version( &major, &minor, &patch );
16601 if( major != DB_VERSION_MAJOR ||
16602 minor < DB_VERSION_MINOR )
16604 printf("Berkeley DB version mismatch\n"
16605 "\texpected: %s\n\tgot: %s\n",
16606 DB_VERSION_STRING, version);
16612 #if DB_VERSION_MAJOR > 2
16613 db_env_create( NULL, 0 );
16614 #elif DB_VERSION_MAJOR > 1
16615 db_appexit( NULL );
16617 (void) dbopen( NULL, 0, 0, 0, NULL);
16622 if { (eval echo configure:16623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16626 echo "configure: failed program was:" >&5
16627 cat conftest.$ac_ext >&5
16637 echo "$ac_t""$ol_cv_db_none" 1>&6
16639 if test $ol_cv_db_none = yes ; then
16644 if test $ol_cv_lib_db = no ; then
16645 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16646 echo "configure:16647: checking for Berkeley DB link (-ldb4)" >&5
16647 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16648 echo $ac_n "(cached) $ac_c" 1>&6
16653 LIBS="$ol_DB_LIB $LIBS"
16655 cat > conftest.$ac_ext <<EOF
16656 #line 16657 "configure"
16657 #include "confdefs.h"
16659 #ifdef HAVE_DB_185_H
16660 # include <db_185.h>
16665 #ifndef DB_VERSION_MAJOR
16666 # define DB_VERSION_MAJOR 1
16670 #define NULL ((void*)0)
16675 #if DB_VERSION_MAJOR > 1
16678 int major, minor, patch;
16680 version = db_version( &major, &minor, &patch );
16682 if( major != DB_VERSION_MAJOR ||
16683 minor < DB_VERSION_MINOR )
16685 printf("Berkeley DB version mismatch\n"
16686 "\texpected: %s\n\tgot: %s\n",
16687 DB_VERSION_STRING, version);
16693 #if DB_VERSION_MAJOR > 2
16694 db_env_create( NULL, 0 );
16695 #elif DB_VERSION_MAJOR > 1
16696 db_appexit( NULL );
16698 (void) dbopen( NULL, 0, 0, 0, NULL);
16703 if { (eval echo configure:16704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16707 echo "configure: failed program was:" >&5
16708 cat conftest.$ac_ext >&5
16718 echo "$ac_t""$ol_cv_db_db4" 1>&6
16720 if test $ol_cv_db_db4 = yes ; then
16725 if test $ol_cv_lib_db = no ; then
16726 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16727 echo "configure:16728: checking for Berkeley DB link (-ldb-4)" >&5
16728 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16729 echo $ac_n "(cached) $ac_c" 1>&6
16734 LIBS="$ol_DB_LIB $LIBS"
16736 cat > conftest.$ac_ext <<EOF
16737 #line 16738 "configure"
16738 #include "confdefs.h"
16740 #ifdef HAVE_DB_185_H
16741 # include <db_185.h>
16746 #ifndef DB_VERSION_MAJOR
16747 # define DB_VERSION_MAJOR 1
16751 #define NULL ((void*)0)
16756 #if DB_VERSION_MAJOR > 1
16759 int major, minor, patch;
16761 version = db_version( &major, &minor, &patch );
16763 if( major != DB_VERSION_MAJOR ||
16764 minor < DB_VERSION_MINOR )
16766 printf("Berkeley DB version mismatch\n"
16767 "\texpected: %s\n\tgot: %s\n",
16768 DB_VERSION_STRING, version);
16774 #if DB_VERSION_MAJOR > 2
16775 db_env_create( NULL, 0 );
16776 #elif DB_VERSION_MAJOR > 1
16777 db_appexit( NULL );
16779 (void) dbopen( NULL, 0, 0, 0, NULL);
16784 if { (eval echo configure:16785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16788 echo "configure: failed program was:" >&5
16789 cat conftest.$ac_ext >&5
16799 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16801 if test $ol_cv_db_db_4 = yes ; then
16802 ol_cv_lib_db=-ldb-4
16806 if test $ol_cv_lib_db = no ; then
16807 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16808 echo "configure:16809: checking for Berkeley DB link (-ldb)" >&5
16809 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16810 echo $ac_n "(cached) $ac_c" 1>&6
16815 LIBS="$ol_DB_LIB $LIBS"
16817 cat > conftest.$ac_ext <<EOF
16818 #line 16819 "configure"
16819 #include "confdefs.h"
16821 #ifdef HAVE_DB_185_H
16822 # include <db_185.h>
16827 #ifndef DB_VERSION_MAJOR
16828 # define DB_VERSION_MAJOR 1
16832 #define NULL ((void*)0)
16837 #if DB_VERSION_MAJOR > 1
16840 int major, minor, patch;
16842 version = db_version( &major, &minor, &patch );
16844 if( major != DB_VERSION_MAJOR ||
16845 minor < DB_VERSION_MINOR )
16847 printf("Berkeley DB version mismatch\n"
16848 "\texpected: %s\n\tgot: %s\n",
16849 DB_VERSION_STRING, version);
16855 #if DB_VERSION_MAJOR > 2
16856 db_env_create( NULL, 0 );
16857 #elif DB_VERSION_MAJOR > 1
16858 db_appexit( NULL );
16860 (void) dbopen( NULL, 0, 0, 0, NULL);
16865 if { (eval echo configure:16866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16869 echo "configure: failed program was:" >&5
16870 cat conftest.$ac_ext >&5
16880 echo "$ac_t""$ol_cv_db_db" 1>&6
16882 if test $ol_cv_db_db = yes ; then
16887 if test $ol_cv_lib_db = no ; then
16888 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
16889 echo "configure:16890: checking for Berkeley DB link (-ldb3)" >&5
16890 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
16891 echo $ac_n "(cached) $ac_c" 1>&6
16896 LIBS="$ol_DB_LIB $LIBS"
16898 cat > conftest.$ac_ext <<EOF
16899 #line 16900 "configure"
16900 #include "confdefs.h"
16902 #ifdef HAVE_DB_185_H
16903 # include <db_185.h>
16908 #ifndef DB_VERSION_MAJOR
16909 # define DB_VERSION_MAJOR 1
16913 #define NULL ((void*)0)
16918 #if DB_VERSION_MAJOR > 1
16921 int major, minor, patch;
16923 version = db_version( &major, &minor, &patch );
16925 if( major != DB_VERSION_MAJOR ||
16926 minor < DB_VERSION_MINOR )
16928 printf("Berkeley DB version mismatch\n"
16929 "\texpected: %s\n\tgot: %s\n",
16930 DB_VERSION_STRING, version);
16936 #if DB_VERSION_MAJOR > 2
16937 db_env_create( NULL, 0 );
16938 #elif DB_VERSION_MAJOR > 1
16939 db_appexit( NULL );
16941 (void) dbopen( NULL, 0, 0, 0, NULL);
16946 if { (eval echo configure:16947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16950 echo "configure: failed program was:" >&5
16951 cat conftest.$ac_ext >&5
16961 echo "$ac_t""$ol_cv_db_db3" 1>&6
16963 if test $ol_cv_db_db3 = yes ; then
16968 if test $ol_cv_lib_db = no ; then
16969 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
16970 echo "configure:16971: checking for Berkeley DB link (-ldb-3)" >&5
16971 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
16972 echo $ac_n "(cached) $ac_c" 1>&6
16977 LIBS="$ol_DB_LIB $LIBS"
16979 cat > conftest.$ac_ext <<EOF
16980 #line 16981 "configure"
16981 #include "confdefs.h"
16983 #ifdef HAVE_DB_185_H
16984 # include <db_185.h>
16989 #ifndef DB_VERSION_MAJOR
16990 # define DB_VERSION_MAJOR 1
16994 #define NULL ((void*)0)
16999 #if DB_VERSION_MAJOR > 1
17002 int major, minor, patch;
17004 version = db_version( &major, &minor, &patch );
17006 if( major != DB_VERSION_MAJOR ||
17007 minor < DB_VERSION_MINOR )
17009 printf("Berkeley DB version mismatch\n"
17010 "\texpected: %s\n\tgot: %s\n",
17011 DB_VERSION_STRING, version);
17017 #if DB_VERSION_MAJOR > 2
17018 db_env_create( NULL, 0 );
17019 #elif DB_VERSION_MAJOR > 1
17020 db_appexit( NULL );
17022 (void) dbopen( NULL, 0, 0, 0, NULL);
17027 if { (eval echo configure:17028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17031 echo "configure: failed program was:" >&5
17032 cat conftest.$ac_ext >&5
17042 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17044 if test $ol_cv_db_db_3 = yes ; then
17045 ol_cv_lib_db=-ldb-3
17049 if test $ol_cv_lib_db = no ; then
17050 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17051 echo "configure:17052: checking for Berkeley DB link (-ldb2)" >&5
17052 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17053 echo $ac_n "(cached) $ac_c" 1>&6
17058 LIBS="$ol_DB_LIB $LIBS"
17060 cat > conftest.$ac_ext <<EOF
17061 #line 17062 "configure"
17062 #include "confdefs.h"
17064 #ifdef HAVE_DB_185_H
17065 # include <db_185.h>
17070 #ifndef DB_VERSION_MAJOR
17071 # define DB_VERSION_MAJOR 1
17075 #define NULL ((void*)0)
17080 #if DB_VERSION_MAJOR > 1
17083 int major, minor, patch;
17085 version = db_version( &major, &minor, &patch );
17087 if( major != DB_VERSION_MAJOR ||
17088 minor < DB_VERSION_MINOR )
17090 printf("Berkeley DB version mismatch\n"
17091 "\texpected: %s\n\tgot: %s\n",
17092 DB_VERSION_STRING, version);
17098 #if DB_VERSION_MAJOR > 2
17099 db_env_create( NULL, 0 );
17100 #elif DB_VERSION_MAJOR > 1
17101 db_appexit( NULL );
17103 (void) dbopen( NULL, 0, 0, 0, NULL);
17108 if { (eval echo configure:17109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17112 echo "configure: failed program was:" >&5
17113 cat conftest.$ac_ext >&5
17123 echo "$ac_t""$ol_cv_db_db2" 1>&6
17125 if test $ol_cv_db_db2 = yes ; then
17130 if test $ol_cv_lib_db = no ; then
17131 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17132 echo "configure:17133: checking for Berkeley DB link (-ldb-2)" >&5
17133 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17134 echo $ac_n "(cached) $ac_c" 1>&6
17139 LIBS="$ol_DB_LIB $LIBS"
17141 cat > conftest.$ac_ext <<EOF
17142 #line 17143 "configure"
17143 #include "confdefs.h"
17145 #ifdef HAVE_DB_185_H
17146 # include <db_185.h>
17151 #ifndef DB_VERSION_MAJOR
17152 # define DB_VERSION_MAJOR 1
17156 #define NULL ((void*)0)
17161 #if DB_VERSION_MAJOR > 1
17164 int major, minor, patch;
17166 version = db_version( &major, &minor, &patch );
17168 if( major != DB_VERSION_MAJOR ||
17169 minor < DB_VERSION_MINOR )
17171 printf("Berkeley DB version mismatch\n"
17172 "\texpected: %s\n\tgot: %s\n",
17173 DB_VERSION_STRING, version);
17179 #if DB_VERSION_MAJOR > 2
17180 db_env_create( NULL, 0 );
17181 #elif DB_VERSION_MAJOR > 1
17182 db_appexit( NULL );
17184 (void) dbopen( NULL, 0, 0, 0, NULL);
17189 if { (eval echo configure:17190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17193 echo "configure: failed program was:" >&5
17194 cat conftest.$ac_ext >&5
17204 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17206 if test $ol_cv_db_db_2 = yes ; then
17207 ol_cv_lib_db=-ldb-2
17211 if test $ol_cv_lib_db = no ; then
17212 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17213 echo "configure:17214: checking for Berkeley DB link (-ldb1)" >&5
17214 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17215 echo $ac_n "(cached) $ac_c" 1>&6
17220 LIBS="$ol_DB_LIB $LIBS"
17222 cat > conftest.$ac_ext <<EOF
17223 #line 17224 "configure"
17224 #include "confdefs.h"
17226 #ifdef HAVE_DB_185_H
17227 # include <db_185.h>
17232 #ifndef DB_VERSION_MAJOR
17233 # define DB_VERSION_MAJOR 1
17237 #define NULL ((void*)0)
17242 #if DB_VERSION_MAJOR > 1
17245 int major, minor, patch;
17247 version = db_version( &major, &minor, &patch );
17249 if( major != DB_VERSION_MAJOR ||
17250 minor < DB_VERSION_MINOR )
17252 printf("Berkeley DB version mismatch\n"
17253 "\texpected: %s\n\tgot: %s\n",
17254 DB_VERSION_STRING, version);
17260 #if DB_VERSION_MAJOR > 2
17261 db_env_create( NULL, 0 );
17262 #elif DB_VERSION_MAJOR > 1
17263 db_appexit( NULL );
17265 (void) dbopen( NULL, 0, 0, 0, NULL);
17270 if { (eval echo configure:17271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17274 echo "configure: failed program was:" >&5
17275 cat conftest.$ac_ext >&5
17285 echo "$ac_t""$ol_cv_db_db1" 1>&6
17287 if test $ol_cv_db_db1 = yes ; then
17292 if test $ol_cv_lib_db = no ; then
17293 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17294 echo "configure:17295: checking for Berkeley DB link (-ldb-1)" >&5
17295 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17296 echo $ac_n "(cached) $ac_c" 1>&6
17301 LIBS="$ol_DB_LIB $LIBS"
17303 cat > conftest.$ac_ext <<EOF
17304 #line 17305 "configure"
17305 #include "confdefs.h"
17307 #ifdef HAVE_DB_185_H
17308 # include <db_185.h>
17313 #ifndef DB_VERSION_MAJOR
17314 # define DB_VERSION_MAJOR 1
17318 #define NULL ((void*)0)
17323 #if DB_VERSION_MAJOR > 1
17326 int major, minor, patch;
17328 version = db_version( &major, &minor, &patch );
17330 if( major != DB_VERSION_MAJOR ||
17331 minor < DB_VERSION_MINOR )
17333 printf("Berkeley DB version mismatch\n"
17334 "\texpected: %s\n\tgot: %s\n",
17335 DB_VERSION_STRING, version);
17341 #if DB_VERSION_MAJOR > 2
17342 db_env_create( NULL, 0 );
17343 #elif DB_VERSION_MAJOR > 1
17344 db_appexit( NULL );
17346 (void) dbopen( NULL, 0, 0, 0, NULL);
17351 if { (eval echo configure:17352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17355 echo "configure: failed program was:" >&5
17356 cat conftest.$ac_ext >&5
17366 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17368 if test $ol_cv_db_db_1 = yes ; then
17369 ol_cv_lib_db=-ldb-1
17374 if test "$ol_cv_lib_db" != no ; then
17375 ol_cv_berkeley_db=yes
17381 ol_cv_berkeley_db=no
17384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17386 echo "configure:17387: checking for $ac_hdr" >&5
17387 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17388 echo $ac_n "(cached) $ac_c" 1>&6
17390 cat > conftest.$ac_ext <<EOF
17391 #line 17392 "configure"
17392 #include "confdefs.h"
17395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17396 { (eval echo configure:17397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17398 if test -z "$ac_err"; then
17400 eval "ac_cv_header_$ac_safe=yes"
17403 echo "configure: failed program was:" >&5
17404 cat conftest.$ac_ext >&5
17406 eval "ac_cv_header_$ac_safe=no"
17410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17411 echo "$ac_t""yes" 1>&6
17412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17413 cat >> confdefs.h <<EOF
17414 #define $ac_tr_hdr 1
17418 echo "$ac_t""no" 1>&6
17422 if test $ac_cv_header_db_h = yes; then
17424 if test $ol_cv_lib_db = no ; then
17425 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17426 echo "configure:17427: checking for Berkeley DB link (default)" >&5
17427 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17428 echo $ac_n "(cached) $ac_c" 1>&6
17433 LIBS="$ol_DB_LIB $LIBS"
17435 cat > conftest.$ac_ext <<EOF
17436 #line 17437 "configure"
17437 #include "confdefs.h"
17439 #ifdef HAVE_DB_185_H
17440 # include <db_185.h>
17445 #ifndef DB_VERSION_MAJOR
17446 # define DB_VERSION_MAJOR 1
17450 #define NULL ((void*)0)
17455 #if DB_VERSION_MAJOR > 1
17458 int major, minor, patch;
17460 version = db_version( &major, &minor, &patch );
17462 if( major != DB_VERSION_MAJOR ||
17463 minor < DB_VERSION_MINOR )
17465 printf("Berkeley DB version mismatch\n"
17466 "\texpected: %s\n\tgot: %s\n",
17467 DB_VERSION_STRING, version);
17473 #if DB_VERSION_MAJOR > 2
17474 db_env_create( NULL, 0 );
17475 #elif DB_VERSION_MAJOR > 1
17476 db_appexit( NULL );
17478 (void) dbopen( NULL, 0, 0, 0, NULL);
17483 if { (eval echo configure:17484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17487 echo "configure: failed program was:" >&5
17488 cat conftest.$ac_ext >&5
17498 echo "$ac_t""$ol_cv_db_none" 1>&6
17500 if test $ol_cv_db_none = yes ; then
17505 if test $ol_cv_lib_db = no ; then
17506 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17507 echo "configure:17508: checking for Berkeley DB link (-ldb4)" >&5
17508 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17509 echo $ac_n "(cached) $ac_c" 1>&6
17514 LIBS="$ol_DB_LIB $LIBS"
17516 cat > conftest.$ac_ext <<EOF
17517 #line 17518 "configure"
17518 #include "confdefs.h"
17520 #ifdef HAVE_DB_185_H
17521 # include <db_185.h>
17526 #ifndef DB_VERSION_MAJOR
17527 # define DB_VERSION_MAJOR 1
17531 #define NULL ((void*)0)
17536 #if DB_VERSION_MAJOR > 1
17539 int major, minor, patch;
17541 version = db_version( &major, &minor, &patch );
17543 if( major != DB_VERSION_MAJOR ||
17544 minor < DB_VERSION_MINOR )
17546 printf("Berkeley DB version mismatch\n"
17547 "\texpected: %s\n\tgot: %s\n",
17548 DB_VERSION_STRING, version);
17554 #if DB_VERSION_MAJOR > 2
17555 db_env_create( NULL, 0 );
17556 #elif DB_VERSION_MAJOR > 1
17557 db_appexit( NULL );
17559 (void) dbopen( NULL, 0, 0, 0, NULL);
17564 if { (eval echo configure:17565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17568 echo "configure: failed program was:" >&5
17569 cat conftest.$ac_ext >&5
17579 echo "$ac_t""$ol_cv_db_db4" 1>&6
17581 if test $ol_cv_db_db4 = yes ; then
17586 if test $ol_cv_lib_db = no ; then
17587 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17588 echo "configure:17589: checking for Berkeley DB link (-ldb-4)" >&5
17589 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17590 echo $ac_n "(cached) $ac_c" 1>&6
17595 LIBS="$ol_DB_LIB $LIBS"
17597 cat > conftest.$ac_ext <<EOF
17598 #line 17599 "configure"
17599 #include "confdefs.h"
17601 #ifdef HAVE_DB_185_H
17602 # include <db_185.h>
17607 #ifndef DB_VERSION_MAJOR
17608 # define DB_VERSION_MAJOR 1
17612 #define NULL ((void*)0)
17617 #if DB_VERSION_MAJOR > 1
17620 int major, minor, patch;
17622 version = db_version( &major, &minor, &patch );
17624 if( major != DB_VERSION_MAJOR ||
17625 minor < DB_VERSION_MINOR )
17627 printf("Berkeley DB version mismatch\n"
17628 "\texpected: %s\n\tgot: %s\n",
17629 DB_VERSION_STRING, version);
17635 #if DB_VERSION_MAJOR > 2
17636 db_env_create( NULL, 0 );
17637 #elif DB_VERSION_MAJOR > 1
17638 db_appexit( NULL );
17640 (void) dbopen( NULL, 0, 0, 0, NULL);
17645 if { (eval echo configure:17646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17649 echo "configure: failed program was:" >&5
17650 cat conftest.$ac_ext >&5
17660 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17662 if test $ol_cv_db_db_4 = yes ; then
17663 ol_cv_lib_db=-ldb-4
17667 if test $ol_cv_lib_db = no ; then
17668 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17669 echo "configure:17670: checking for Berkeley DB link (-ldb)" >&5
17670 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17671 echo $ac_n "(cached) $ac_c" 1>&6
17676 LIBS="$ol_DB_LIB $LIBS"
17678 cat > conftest.$ac_ext <<EOF
17679 #line 17680 "configure"
17680 #include "confdefs.h"
17682 #ifdef HAVE_DB_185_H
17683 # include <db_185.h>
17688 #ifndef DB_VERSION_MAJOR
17689 # define DB_VERSION_MAJOR 1
17693 #define NULL ((void*)0)
17698 #if DB_VERSION_MAJOR > 1
17701 int major, minor, patch;
17703 version = db_version( &major, &minor, &patch );
17705 if( major != DB_VERSION_MAJOR ||
17706 minor < DB_VERSION_MINOR )
17708 printf("Berkeley DB version mismatch\n"
17709 "\texpected: %s\n\tgot: %s\n",
17710 DB_VERSION_STRING, version);
17716 #if DB_VERSION_MAJOR > 2
17717 db_env_create( NULL, 0 );
17718 #elif DB_VERSION_MAJOR > 1
17719 db_appexit( NULL );
17721 (void) dbopen( NULL, 0, 0, 0, NULL);
17726 if { (eval echo configure:17727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17730 echo "configure: failed program was:" >&5
17731 cat conftest.$ac_ext >&5
17741 echo "$ac_t""$ol_cv_db_db" 1>&6
17743 if test $ol_cv_db_db = yes ; then
17748 if test $ol_cv_lib_db = no ; then
17749 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17750 echo "configure:17751: checking for Berkeley DB link (-ldb3)" >&5
17751 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17752 echo $ac_n "(cached) $ac_c" 1>&6
17757 LIBS="$ol_DB_LIB $LIBS"
17759 cat > conftest.$ac_ext <<EOF
17760 #line 17761 "configure"
17761 #include "confdefs.h"
17763 #ifdef HAVE_DB_185_H
17764 # include <db_185.h>
17769 #ifndef DB_VERSION_MAJOR
17770 # define DB_VERSION_MAJOR 1
17774 #define NULL ((void*)0)
17779 #if DB_VERSION_MAJOR > 1
17782 int major, minor, patch;
17784 version = db_version( &major, &minor, &patch );
17786 if( major != DB_VERSION_MAJOR ||
17787 minor < DB_VERSION_MINOR )
17789 printf("Berkeley DB version mismatch\n"
17790 "\texpected: %s\n\tgot: %s\n",
17791 DB_VERSION_STRING, version);
17797 #if DB_VERSION_MAJOR > 2
17798 db_env_create( NULL, 0 );
17799 #elif DB_VERSION_MAJOR > 1
17800 db_appexit( NULL );
17802 (void) dbopen( NULL, 0, 0, 0, NULL);
17807 if { (eval echo configure:17808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17811 echo "configure: failed program was:" >&5
17812 cat conftest.$ac_ext >&5
17822 echo "$ac_t""$ol_cv_db_db3" 1>&6
17824 if test $ol_cv_db_db3 = yes ; then
17829 if test $ol_cv_lib_db = no ; then
17830 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17831 echo "configure:17832: checking for Berkeley DB link (-ldb-3)" >&5
17832 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17833 echo $ac_n "(cached) $ac_c" 1>&6
17838 LIBS="$ol_DB_LIB $LIBS"
17840 cat > conftest.$ac_ext <<EOF
17841 #line 17842 "configure"
17842 #include "confdefs.h"
17844 #ifdef HAVE_DB_185_H
17845 # include <db_185.h>
17850 #ifndef DB_VERSION_MAJOR
17851 # define DB_VERSION_MAJOR 1
17855 #define NULL ((void*)0)
17860 #if DB_VERSION_MAJOR > 1
17863 int major, minor, patch;
17865 version = db_version( &major, &minor, &patch );
17867 if( major != DB_VERSION_MAJOR ||
17868 minor < DB_VERSION_MINOR )
17870 printf("Berkeley DB version mismatch\n"
17871 "\texpected: %s\n\tgot: %s\n",
17872 DB_VERSION_STRING, version);
17878 #if DB_VERSION_MAJOR > 2
17879 db_env_create( NULL, 0 );
17880 #elif DB_VERSION_MAJOR > 1
17881 db_appexit( NULL );
17883 (void) dbopen( NULL, 0, 0, 0, NULL);
17888 if { (eval echo configure:17889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17892 echo "configure: failed program was:" >&5
17893 cat conftest.$ac_ext >&5
17903 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17905 if test $ol_cv_db_db_3 = yes ; then
17906 ol_cv_lib_db=-ldb-3
17910 if test $ol_cv_lib_db = no ; then
17911 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17912 echo "configure:17913: checking for Berkeley DB link (-ldb2)" >&5
17913 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17914 echo $ac_n "(cached) $ac_c" 1>&6
17919 LIBS="$ol_DB_LIB $LIBS"
17921 cat > conftest.$ac_ext <<EOF
17922 #line 17923 "configure"
17923 #include "confdefs.h"
17925 #ifdef HAVE_DB_185_H
17926 # include <db_185.h>
17931 #ifndef DB_VERSION_MAJOR
17932 # define DB_VERSION_MAJOR 1
17936 #define NULL ((void*)0)
17941 #if DB_VERSION_MAJOR > 1
17944 int major, minor, patch;
17946 version = db_version( &major, &minor, &patch );
17948 if( major != DB_VERSION_MAJOR ||
17949 minor < DB_VERSION_MINOR )
17951 printf("Berkeley DB version mismatch\n"
17952 "\texpected: %s\n\tgot: %s\n",
17953 DB_VERSION_STRING, version);
17959 #if DB_VERSION_MAJOR > 2
17960 db_env_create( NULL, 0 );
17961 #elif DB_VERSION_MAJOR > 1
17962 db_appexit( NULL );
17964 (void) dbopen( NULL, 0, 0, 0, NULL);
17969 if { (eval echo configure:17970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17973 echo "configure: failed program was:" >&5
17974 cat conftest.$ac_ext >&5
17984 echo "$ac_t""$ol_cv_db_db2" 1>&6
17986 if test $ol_cv_db_db2 = yes ; then
17991 if test $ol_cv_lib_db = no ; then
17992 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17993 echo "configure:17994: checking for Berkeley DB link (-ldb-2)" >&5
17994 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17995 echo $ac_n "(cached) $ac_c" 1>&6
18000 LIBS="$ol_DB_LIB $LIBS"
18002 cat > conftest.$ac_ext <<EOF
18003 #line 18004 "configure"
18004 #include "confdefs.h"
18006 #ifdef HAVE_DB_185_H
18007 # include <db_185.h>
18012 #ifndef DB_VERSION_MAJOR
18013 # define DB_VERSION_MAJOR 1
18017 #define NULL ((void*)0)
18022 #if DB_VERSION_MAJOR > 1
18025 int major, minor, patch;
18027 version = db_version( &major, &minor, &patch );
18029 if( major != DB_VERSION_MAJOR ||
18030 minor < DB_VERSION_MINOR )
18032 printf("Berkeley DB version mismatch\n"
18033 "\texpected: %s\n\tgot: %s\n",
18034 DB_VERSION_STRING, version);
18040 #if DB_VERSION_MAJOR > 2
18041 db_env_create( NULL, 0 );
18042 #elif DB_VERSION_MAJOR > 1
18043 db_appexit( NULL );
18045 (void) dbopen( NULL, 0, 0, 0, NULL);
18050 if { (eval echo configure:18051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18054 echo "configure: failed program was:" >&5
18055 cat conftest.$ac_ext >&5
18065 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18067 if test $ol_cv_db_db_2 = yes ; then
18068 ol_cv_lib_db=-ldb-2
18072 if test $ol_cv_lib_db = no ; then
18073 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18074 echo "configure:18075: checking for Berkeley DB link (-ldb1)" >&5
18075 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18076 echo $ac_n "(cached) $ac_c" 1>&6
18081 LIBS="$ol_DB_LIB $LIBS"
18083 cat > conftest.$ac_ext <<EOF
18084 #line 18085 "configure"
18085 #include "confdefs.h"
18087 #ifdef HAVE_DB_185_H
18088 # include <db_185.h>
18093 #ifndef DB_VERSION_MAJOR
18094 # define DB_VERSION_MAJOR 1
18098 #define NULL ((void*)0)
18103 #if DB_VERSION_MAJOR > 1
18106 int major, minor, patch;
18108 version = db_version( &major, &minor, &patch );
18110 if( major != DB_VERSION_MAJOR ||
18111 minor < DB_VERSION_MINOR )
18113 printf("Berkeley DB version mismatch\n"
18114 "\texpected: %s\n\tgot: %s\n",
18115 DB_VERSION_STRING, version);
18121 #if DB_VERSION_MAJOR > 2
18122 db_env_create( NULL, 0 );
18123 #elif DB_VERSION_MAJOR > 1
18124 db_appexit( NULL );
18126 (void) dbopen( NULL, 0, 0, 0, NULL);
18131 if { (eval echo configure:18132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18135 echo "configure: failed program was:" >&5
18136 cat conftest.$ac_ext >&5
18146 echo "$ac_t""$ol_cv_db_db1" 1>&6
18148 if test $ol_cv_db_db1 = yes ; then
18153 if test $ol_cv_lib_db = no ; then
18154 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18155 echo "configure:18156: checking for Berkeley DB link (-ldb-1)" >&5
18156 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18157 echo $ac_n "(cached) $ac_c" 1>&6
18162 LIBS="$ol_DB_LIB $LIBS"
18164 cat > conftest.$ac_ext <<EOF
18165 #line 18166 "configure"
18166 #include "confdefs.h"
18168 #ifdef HAVE_DB_185_H
18169 # include <db_185.h>
18174 #ifndef DB_VERSION_MAJOR
18175 # define DB_VERSION_MAJOR 1
18179 #define NULL ((void*)0)
18184 #if DB_VERSION_MAJOR > 1
18187 int major, minor, patch;
18189 version = db_version( &major, &minor, &patch );
18191 if( major != DB_VERSION_MAJOR ||
18192 minor < DB_VERSION_MINOR )
18194 printf("Berkeley DB version mismatch\n"
18195 "\texpected: %s\n\tgot: %s\n",
18196 DB_VERSION_STRING, version);
18202 #if DB_VERSION_MAJOR > 2
18203 db_env_create( NULL, 0 );
18204 #elif DB_VERSION_MAJOR > 1
18205 db_appexit( NULL );
18207 (void) dbopen( NULL, 0, 0, 0, NULL);
18212 if { (eval echo configure:18213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18216 echo "configure: failed program was:" >&5
18217 cat conftest.$ac_ext >&5
18227 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18229 if test $ol_cv_db_db_1 = yes ; then
18230 ol_cv_lib_db=-ldb-1
18235 if test "$ol_cv_lib_db" != no ; then
18236 ol_cv_berkeley_db=yes
18237 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18238 echo "configure:18239: checking for Berkeley DB thread support" >&5
18239 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
18244 if test $ol_cv_lib_db != yes ; then
18245 LIBS="$ol_cv_lib_db"
18248 if test "$cross_compiling" = yes; then
18249 ol_cv_berkeley_db_thread=cross
18251 cat > conftest.$ac_ext <<EOF
18252 #line 18253 "configure"
18253 #include "confdefs.h"
18255 #ifdef HAVE_DB_185_H
18261 #define NULL ((void *)0)
18266 u_int32_t flags = DB_CREATE |
18272 #if DB_VERSION_MAJOR > 2
18273 DB_ENV *env = NULL;
18275 rc = db_env_create( &env, 0 );
18277 flags |= DB_INIT_MPOOL;
18278 #ifdef DB_MPOOL_PRIVATE
18279 flags |= DB_MPOOL_PRIVATE;
18283 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18287 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18288 rc = env->open( env, NULL, flags, 0 );
18290 rc = env->open( env, NULL, NULL, flags, 0 );
18294 rc = env->close( env, 0 );
18298 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18304 memset( &env, '\0', sizeof(env) );
18306 rc = db_appinit( NULL, NULL, &env, flags );
18309 db_appexit( &env );
18312 unlink("__db_mpool.share");
18313 unlink("__db_lock.share");
18319 if { (eval echo configure:18320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18321 ol_cv_berkeley_db_thread=yes
18323 echo "configure: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18326 ol_cv_berkeley_db_thread=no
18336 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18338 if test $ol_cv_berkeley_db_thread != no ; then
18339 cat >> confdefs.h <<\EOF
18340 #define HAVE_BERKELEY_DB_THREAD 1
18350 if test $ol_cv_berkeley_db != no ; then
18351 cat >> confdefs.h <<\EOF
18352 #define HAVE_BERKELEY_DB 1
18356 ol_link_ldbm=berkeley
18357 ol_with_ldbm_api=berkeley
18359 if test $ol_with_ldbm_type = hash ; then
18360 cat >> confdefs.h <<\EOF
18361 #define LDBM_USE_DBHASH 1
18365 cat >> confdefs.h <<\EOF
18366 #define LDBM_USE_DBBTREE 1
18371 if test $ol_cv_lib_db != yes ; then
18372 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18377 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18378 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18379 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18380 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18381 echo "configure:18382: checking Berkeley DB version for BDB backend" >&5
18382 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18383 echo $ac_n "(cached) $ac_c" 1>&6
18386 cat > conftest.$ac_ext <<EOF
18387 #line 18388 "configure"
18388 #include "confdefs.h"
18392 /* this check could be improved */
18393 #ifndef DB_VERSION_MAJOR
18394 # define DB_VERSION_MAJOR 1
18397 /* require 4.0 or later */
18398 #if DB_VERSION_MAJOR >= 4
18399 __db_version_compat
18403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18404 egrep "__db_version_compat" >/dev/null 2>&1; then
18406 ol_cv_bdb_compat=yes
18409 ol_cv_bdb_compat=no
18415 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18418 if test $ol_cv_bdb_compat = yes ; then
18420 elif test $ol_enable_bdb = yes ; then
18421 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18427 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18428 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18429 ol_with_ldbm_api=none
18432 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18433 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18434 echo "configure:18435: checking for MDBM library" >&5
18435 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18436 echo $ac_n "(cached) $ac_c" 1>&6
18439 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18440 echo "configure:18441: checking for mdbm_set_chain" >&5
18441 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18442 echo $ac_n "(cached) $ac_c" 1>&6
18444 cat > conftest.$ac_ext <<EOF
18445 #line 18446 "configure"
18446 #include "confdefs.h"
18447 /* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char mdbm_set_chain(); below. */
18449 #include <assert.h>
18450 /* Override any gcc2 internal prototype to avoid an error. */
18451 /* We use char because int might match the return type of a gcc2
18452 builtin and then its argument prototype would still apply. */
18453 char mdbm_set_chain();
18458 /* The GNU C library defines this for functions which it implements
18459 to always fail with ENOSYS. Some functions are actually named
18460 something starting with __ and the normal name is an alias. */
18461 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18464 f = mdbm_set_chain;
18469 if { (eval echo configure:18470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18471 eval "ac_cv_func_mdbm_set_chain=yes"
18473 echo "configure: failed program was:" >&5
18474 cat conftest.$ac_ext >&5
18476 eval "ac_cv_func_mdbm_set_chain=no"
18481 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18482 echo "$ac_t""yes" 1>&6
18485 echo "$ac_t""no" 1>&6
18487 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18488 echo "configure:18489: checking for mdbm_set_chain in -lmdbm" >&5
18489 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18490 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18491 echo $ac_n "(cached) $ac_c" 1>&6
18493 ac_save_LIBS="$LIBS"
18494 LIBS="-lmdbm $LIBS"
18495 cat > conftest.$ac_ext <<EOF
18496 #line 18497 "configure"
18497 #include "confdefs.h"
18498 /* Override any gcc2 internal prototype to avoid an error. */
18499 /* We use char because int might match the return type of a gcc2
18500 builtin and then its argument prototype would still apply. */
18501 char mdbm_set_chain();
18507 if { (eval echo configure:18508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18509 eval "ac_cv_lib_$ac_lib_var=yes"
18511 echo "configure: failed program was:" >&5
18512 cat conftest.$ac_ext >&5
18514 eval "ac_cv_lib_$ac_lib_var=no"
18517 LIBS="$ac_save_LIBS"
18520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18521 echo "$ac_t""yes" 1>&6
18522 ol_cv_lib_mdbm=-lmdbm
18524 echo "$ac_t""no" 1>&6
18535 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18538 for ac_hdr in mdbm.h
18540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18542 echo "configure:18543: checking for $ac_hdr" >&5
18543 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18544 echo $ac_n "(cached) $ac_c" 1>&6
18546 cat > conftest.$ac_ext <<EOF
18547 #line 18548 "configure"
18548 #include "confdefs.h"
18551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18552 { (eval echo configure:18553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18554 if test -z "$ac_err"; then
18556 eval "ac_cv_header_$ac_safe=yes"
18559 echo "configure: failed program was:" >&5
18560 cat conftest.$ac_ext >&5
18562 eval "ac_cv_header_$ac_safe=no"
18566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18567 echo "$ac_t""yes" 1>&6
18568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18569 cat >> confdefs.h <<EOF
18570 #define $ac_tr_hdr 1
18574 echo "$ac_t""no" 1>&6
18578 echo $ac_n "checking for db""... $ac_c" 1>&6
18579 echo "configure:18580: checking for db" >&5
18580 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18581 echo $ac_n "(cached) $ac_c" 1>&6
18584 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18592 echo "$ac_t""$ol_cv_mdbm" 1>&6
18593 if test $ol_cv_mdbm = yes ; then
18594 cat >> confdefs.h <<\EOF
18595 #define HAVE_MDBM 1
18601 if test $ol_cv_mdbm = yes ; then
18603 ol_with_ldbm_api=mdbm
18604 if test $ol_cv_lib_mdbm != yes ; then
18605 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18610 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18611 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18612 echo "configure:18613: checking for GDBM library" >&5
18613 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18614 echo $ac_n "(cached) $ac_c" 1>&6
18617 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18618 echo "configure:18619: checking for gdbm_open" >&5
18619 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18620 echo $ac_n "(cached) $ac_c" 1>&6
18622 cat > conftest.$ac_ext <<EOF
18623 #line 18624 "configure"
18624 #include "confdefs.h"
18625 /* System header to define __stub macros and hopefully few prototypes,
18626 which can conflict with char gdbm_open(); below. */
18627 #include <assert.h>
18628 /* Override any gcc2 internal prototype to avoid an error. */
18629 /* We use char because int might match the return type of a gcc2
18630 builtin and then its argument prototype would still apply. */
18636 /* The GNU C library defines this for functions which it implements
18637 to always fail with ENOSYS. Some functions are actually named
18638 something starting with __ and the normal name is an alias. */
18639 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18647 if { (eval echo configure:18648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18649 eval "ac_cv_func_gdbm_open=yes"
18651 echo "configure: failed program was:" >&5
18652 cat conftest.$ac_ext >&5
18654 eval "ac_cv_func_gdbm_open=no"
18659 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18660 echo "$ac_t""yes" 1>&6
18663 echo "$ac_t""no" 1>&6
18665 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18666 echo "configure:18667: checking for gdbm_open in -lgdbm" >&5
18667 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18668 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18669 echo $ac_n "(cached) $ac_c" 1>&6
18671 ac_save_LIBS="$LIBS"
18672 LIBS="-lgdbm $LIBS"
18673 cat > conftest.$ac_ext <<EOF
18674 #line 18675 "configure"
18675 #include "confdefs.h"
18676 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18685 if { (eval echo configure:18686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18687 eval "ac_cv_lib_$ac_lib_var=yes"
18689 echo "configure: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18692 eval "ac_cv_lib_$ac_lib_var=no"
18695 LIBS="$ac_save_LIBS"
18698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18699 echo "$ac_t""yes" 1>&6
18700 ol_cv_lib_gdbm=-lgdbm
18702 echo "$ac_t""no" 1>&6
18713 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18716 for ac_hdr in gdbm.h
18718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18720 echo "configure:18721: checking for $ac_hdr" >&5
18721 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18722 echo $ac_n "(cached) $ac_c" 1>&6
18724 cat > conftest.$ac_ext <<EOF
18725 #line 18726 "configure"
18726 #include "confdefs.h"
18729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18730 { (eval echo configure:18731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18732 if test -z "$ac_err"; then
18734 eval "ac_cv_header_$ac_safe=yes"
18737 echo "configure: failed program was:" >&5
18738 cat conftest.$ac_ext >&5
18740 eval "ac_cv_header_$ac_safe=no"
18744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18745 echo "$ac_t""yes" 1>&6
18746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18747 cat >> confdefs.h <<EOF
18748 #define $ac_tr_hdr 1
18752 echo "$ac_t""no" 1>&6
18756 echo $ac_n "checking for db""... $ac_c" 1>&6
18757 echo "configure:18758: checking for db" >&5
18758 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18759 echo $ac_n "(cached) $ac_c" 1>&6
18762 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18770 echo "$ac_t""$ol_cv_gdbm" 1>&6
18771 if test $ol_cv_gdbm = yes ; then
18772 cat >> confdefs.h <<\EOF
18773 #define HAVE_GDBM 1
18779 if test $ol_cv_gdbm = yes ; then
18781 ol_with_ldbm_api=gdbm
18783 if test $ol_cv_lib_gdbm != yes ; then
18784 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18789 if test $ol_with_ldbm_api = ndbm ; then
18790 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18791 echo "configure:18792: checking for NDBM library" >&5
18792 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18793 echo $ac_n "(cached) $ac_c" 1>&6
18796 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18797 echo "configure:18798: checking for dbm_open" >&5
18798 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18799 echo $ac_n "(cached) $ac_c" 1>&6
18801 cat > conftest.$ac_ext <<EOF
18802 #line 18803 "configure"
18803 #include "confdefs.h"
18804 /* System header to define __stub macros and hopefully few prototypes,
18805 which can conflict with char dbm_open(); below. */
18806 #include <assert.h>
18807 /* Override any gcc2 internal prototype to avoid an error. */
18808 /* We use char because int might match the return type of a gcc2
18809 builtin and then its argument prototype would still apply. */
18815 /* The GNU C library defines this for functions which it implements
18816 to always fail with ENOSYS. Some functions are actually named
18817 something starting with __ and the normal name is an alias. */
18818 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18826 if { (eval echo configure:18827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18828 eval "ac_cv_func_dbm_open=yes"
18830 echo "configure: failed program was:" >&5
18831 cat conftest.$ac_ext >&5
18833 eval "ac_cv_func_dbm_open=no"
18838 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18839 echo "$ac_t""yes" 1>&6
18842 echo "$ac_t""no" 1>&6
18844 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18845 echo "configure:18846: checking for dbm_open in -lndbm" >&5
18846 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18848 echo $ac_n "(cached) $ac_c" 1>&6
18850 ac_save_LIBS="$LIBS"
18851 LIBS="-lndbm $LIBS"
18852 cat > conftest.$ac_ext <<EOF
18853 #line 18854 "configure"
18854 #include "confdefs.h"
18855 /* Override any gcc2 internal prototype to avoid an error. */
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18864 if { (eval echo configure:18865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18866 eval "ac_cv_lib_$ac_lib_var=yes"
18868 echo "configure: failed program was:" >&5
18869 cat conftest.$ac_ext >&5
18871 eval "ac_cv_lib_$ac_lib_var=no"
18874 LIBS="$ac_save_LIBS"
18877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18878 echo "$ac_t""yes" 1>&6
18879 ol_cv_lib_ndbm=-lndbm
18881 echo "$ac_t""no" 1>&6
18883 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18884 echo "configure:18885: checking for dbm_open in -ldbm" >&5
18885 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18886 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18887 echo $ac_n "(cached) $ac_c" 1>&6
18889 ac_save_LIBS="$LIBS"
18891 cat > conftest.$ac_ext <<EOF
18892 #line 18893 "configure"
18893 #include "confdefs.h"
18894 /* Override any gcc2 internal prototype to avoid an error. */
18895 /* We use char because int might match the return type of a gcc2
18896 builtin and then its argument prototype would still apply. */
18903 if { (eval echo configure:18904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18905 eval "ac_cv_lib_$ac_lib_var=yes"
18907 echo "configure: failed program was:" >&5
18908 cat conftest.$ac_ext >&5
18910 eval "ac_cv_lib_$ac_lib_var=no"
18913 LIBS="$ac_save_LIBS"
18916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18917 echo "$ac_t""yes" 1>&6
18918 ol_cv_lib_ndbm=-ldbm
18920 echo "$ac_t""no" 1>&6
18933 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18936 for ac_hdr in ndbm.h
18938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18940 echo "configure:18941: checking for $ac_hdr" >&5
18941 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18942 echo $ac_n "(cached) $ac_c" 1>&6
18944 cat > conftest.$ac_ext <<EOF
18945 #line 18946 "configure"
18946 #include "confdefs.h"
18949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18950 { (eval echo configure:18951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18952 if test -z "$ac_err"; then
18954 eval "ac_cv_header_$ac_safe=yes"
18957 echo "configure: failed program was:" >&5
18958 cat conftest.$ac_ext >&5
18960 eval "ac_cv_header_$ac_safe=no"
18964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18965 echo "$ac_t""yes" 1>&6
18966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18967 cat >> confdefs.h <<EOF
18968 #define $ac_tr_hdr 1
18972 echo "$ac_t""no" 1>&6
18976 echo $ac_n "checking for db""... $ac_c" 1>&6
18977 echo "configure:18978: checking for db" >&5
18978 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18979 echo $ac_n "(cached) $ac_c" 1>&6
18982 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18990 echo "$ac_t""$ol_cv_ndbm" 1>&6
18991 if test $ol_cv_ndbm = yes ; then
18992 cat >> confdefs.h <<\EOF
18993 #define HAVE_NDBM 1
18999 if test $ol_cv_ndbm = yes ; then
19001 ol_with_ldbm_api=ndbm
19003 if test $ol_cv_lib_ndbm != yes ; then
19004 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19009 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19010 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19011 if test $ol_enable_ldbm = yes ; then
19012 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19015 echo "configure: warning: disabling LDBM" 1>&2
19019 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19020 BUILD_LIBS_DYNAMIC=shared
19021 cat >> confdefs.h <<\EOF
19022 #define LDAP_LIBS_DYNAMIC 1
19026 BUILD_LIBS_DYNAMIC=static
19029 if test $ol_enable_wrappers != no ; then
19030 for ac_hdr in tcpd.h
19032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19034 echo "configure:19035: checking for $ac_hdr" >&5
19035 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19036 echo $ac_n "(cached) $ac_c" 1>&6
19038 cat > conftest.$ac_ext <<EOF
19039 #line 19040 "configure"
19040 #include "confdefs.h"
19043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19044 { (eval echo configure:19045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19046 if test -z "$ac_err"; then
19048 eval "ac_cv_header_$ac_safe=yes"
19051 echo "configure: failed program was:" >&5
19052 cat conftest.$ac_ext >&5
19054 eval "ac_cv_header_$ac_safe=no"
19058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19059 echo "$ac_t""yes" 1>&6
19060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19061 cat >> confdefs.h <<EOF
19062 #define $ac_tr_hdr 1
19065 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19066 echo "configure:19067: checking for TCP wrappers library" >&5
19068 LIBS="$LIBS -lwrap"
19069 cat > conftest.$ac_ext <<EOF
19070 #line 19071 "configure"
19071 #include "confdefs.h"
19074 int allow_severity = 0;
19075 int deny_severity = 0;
19077 struct request_info *req;
19085 if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19087 echo "$ac_t""-lwrap" 1>&6
19091 echo "configure: failed program was:" >&5
19092 cat conftest.$ac_ext >&5
19096 cat > conftest.$ac_ext <<EOF
19097 #line 19098 "configure"
19098 #include "confdefs.h"
19101 int allow_severity = 0;
19102 int deny_severity = 0;
19104 struct request_info *req;
19112 if { (eval echo configure:19113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19114 echo "$ac_t""-lwrap -lnsl" 1>&6
19116 LIBS="$save_LIBS -lnsl"
19118 echo "configure: failed program was:" >&5
19119 cat conftest.$ac_ext >&5
19122 echo "$ac_t""no" 1>&6
19130 echo "$ac_t""no" 1>&6
19136 if test $have_wrappers = yes ; then
19137 cat >> confdefs.h <<\EOF
19138 #define HAVE_TCPD 1
19142 elif test $ol_enable_wrappers = yes ; then
19143 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19145 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19150 if test $ol_enable_syslog != no ; then
19151 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19152 echo "configure:19153: checking for openlog" >&5
19153 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19154 echo $ac_n "(cached) $ac_c" 1>&6
19156 cat > conftest.$ac_ext <<EOF
19157 #line 19158 "configure"
19158 #include "confdefs.h"
19159 /* System header to define __stub macros and hopefully few prototypes,
19160 which can conflict with char openlog(); below. */
19161 #include <assert.h>
19162 /* Override any gcc2 internal prototype to avoid an error. */
19163 /* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19170 /* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173 #if defined (__stub_openlog) || defined (__stub___openlog)
19181 if { (eval echo configure:19182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19183 eval "ac_cv_func_openlog=yes"
19185 echo "configure: failed program was:" >&5
19186 cat conftest.$ac_ext >&5
19188 eval "ac_cv_func_openlog=no"
19193 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19194 echo "$ac_t""yes" 1>&6
19197 echo "$ac_t""no" 1>&6
19200 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19201 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19203 ol_enable_syslog=$ac_cv_func_openlog
19208 if test $ol_enable_sql != no ; then
19209 for ac_hdr in sql.h sqlext.h
19211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19213 echo "configure:19214: checking for $ac_hdr" >&5
19214 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19215 echo $ac_n "(cached) $ac_c" 1>&6
19217 cat > conftest.$ac_ext <<EOF
19218 #line 19219 "configure"
19219 #include "confdefs.h"
19222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19223 { (eval echo configure:19224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19225 if test -z "$ac_err"; then
19227 eval "ac_cv_header_$ac_safe=yes"
19230 echo "configure: failed program was:" >&5
19231 cat conftest.$ac_ext >&5
19233 eval "ac_cv_header_$ac_safe=no"
19237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19238 echo "$ac_t""yes" 1>&6
19239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19240 cat >> confdefs.h <<EOF
19241 #define $ac_tr_hdr 1
19245 echo "$ac_t""no" 1>&6
19246 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19252 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19253 echo "configure:19254: checking for SQLDriverConnect in -liodbc" >&5
19254 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19255 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19256 echo $ac_n "(cached) $ac_c" 1>&6
19258 ac_save_LIBS="$LIBS"
19259 LIBS="-liodbc $LIBS"
19260 cat > conftest.$ac_ext <<EOF
19261 #line 19262 "configure"
19262 #include "confdefs.h"
19263 /* Override any gcc2 internal prototype to avoid an error. */
19264 /* We use char because int might match the return type of a gcc2
19265 builtin and then its argument prototype would still apply. */
19266 char SQLDriverConnect();
19272 if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19274 eval "ac_cv_lib_$ac_lib_var=yes"
19276 echo "configure: failed program was:" >&5
19277 cat conftest.$ac_ext >&5
19279 eval "ac_cv_lib_$ac_lib_var=no"
19282 LIBS="$ac_save_LIBS"
19285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19286 echo "$ac_t""yes" 1>&6
19289 echo "$ac_t""no" 1>&6
19293 if test $have_iodbc = yes ; then
19294 ol_link_sql="-liodbc"
19296 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19297 echo "configure:19298: checking for SQLDriverConnect in -lodbc" >&5
19298 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19299 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19300 echo $ac_n "(cached) $ac_c" 1>&6
19302 ac_save_LIBS="$LIBS"
19303 LIBS="-lodbc $LIBS"
19304 cat > conftest.$ac_ext <<EOF
19305 #line 19306 "configure"
19306 #include "confdefs.h"
19307 /* Override any gcc2 internal prototype to avoid an error. */
19308 /* We use char because int might match the return type of a gcc2
19309 builtin and then its argument prototype would still apply. */
19310 char SQLDriverConnect();
19316 if { (eval echo configure:19317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19318 eval "ac_cv_lib_$ac_lib_var=yes"
19320 echo "configure: failed program was:" >&5
19321 cat conftest.$ac_ext >&5
19323 eval "ac_cv_lib_$ac_lib_var=no"
19326 LIBS="$ac_save_LIBS"
19329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19330 echo "$ac_t""yes" 1>&6
19333 echo "$ac_t""no" 1>&6
19337 if test $have_odbc = yes ; then
19338 ol_link_sql="-lodbc"
19342 if test $ol_link_sql != no ; then
19343 SLAPD_SQL_LIBS="$ol_link_sql"
19345 elif test $ol_enable_sql != auto ; then
19346 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19350 if test $ol_enable_tcl != no ; then
19351 for ac_hdr in tcl.h
19353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19355 echo "configure:19356: checking for $ac_hdr" >&5
19356 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19357 echo $ac_n "(cached) $ac_c" 1>&6
19359 cat > conftest.$ac_ext <<EOF
19360 #line 19361 "configure"
19361 #include "confdefs.h"
19364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19365 { (eval echo configure:19366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19367 if test -z "$ac_err"; then
19369 eval "ac_cv_header_$ac_safe=yes"
19372 echo "configure: failed program was:" >&5
19373 cat conftest.$ac_ext >&5
19375 eval "ac_cv_header_$ac_safe=no"
19379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19380 echo "$ac_t""yes" 1>&6
19381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19382 cat >> confdefs.h <<EOF
19383 #define $ac_tr_hdr 1
19387 echo "$ac_t""no" 1>&6
19392 if test $ac_cv_header_tcl_h != yes ; then
19395 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19396 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19397 echo "configure:19398: checking for main in -l$lib" >&5
19398 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19399 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19400 echo $ac_n "(cached) $ac_c" 1>&6
19402 ac_save_LIBS="$LIBS"
19403 LIBS="-l$lib $LIBS"
19404 cat > conftest.$ac_ext <<EOF
19405 #line 19406 "configure"
19406 #include "confdefs.h"
19412 if { (eval echo configure:19413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19414 eval "ac_cv_lib_$ac_lib_var=yes"
19416 echo "configure: failed program was:" >&5
19417 cat conftest.$ac_ext >&5
19419 eval "ac_cv_lib_$ac_lib_var=no"
19422 LIBS="$ac_save_LIBS"
19425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19426 echo "$ac_t""yes" 1>&6
19428 if test x"$ol_with_tcl_module" = "xstatic" ; then
19429 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19431 MOD_TCL_LIB="-l${lib}"
19434 echo "$ac_t""no" 1>&6
19441 if test $have_tcl != yes ; then
19442 echo "configure: warning: could not find -ltcl" 1>&2
19443 if test $ol_enable_tcl = yes ; then
19444 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19452 for ac_hdr in termcap.h ncurses.h
19454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19456 echo "configure:19457: checking for $ac_hdr" >&5
19457 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19458 echo $ac_n "(cached) $ac_c" 1>&6
19460 cat > conftest.$ac_ext <<EOF
19461 #line 19462 "configure"
19462 #include "confdefs.h"
19465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19466 { (eval echo configure:19467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19468 if test -z "$ac_err"; then
19470 eval "ac_cv_header_$ac_safe=yes"
19473 echo "configure: failed program was:" >&5
19474 cat conftest.$ac_ext >&5
19476 eval "ac_cv_header_$ac_safe=no"
19480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19481 echo "$ac_t""yes" 1>&6
19482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19483 cat >> confdefs.h <<EOF
19484 #define $ac_tr_hdr 1
19488 echo "$ac_t""no" 1>&6
19493 if test $ol_link_termcap = no ; then
19494 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19495 echo "configure:19496: checking for tputs in -ltermcap" >&5
19496 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19497 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19498 echo $ac_n "(cached) $ac_c" 1>&6
19500 ac_save_LIBS="$LIBS"
19501 LIBS="-ltermcap $LIBS"
19502 cat > conftest.$ac_ext <<EOF
19503 #line 19504 "configure"
19504 #include "confdefs.h"
19505 /* Override any gcc2 internal prototype to avoid an error. */
19506 /* We use char because int might match the return type of a gcc2
19507 builtin and then its argument prototype would still apply. */
19514 if { (eval echo configure:19515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19516 eval "ac_cv_lib_$ac_lib_var=yes"
19518 echo "configure: failed program was:" >&5
19519 cat conftest.$ac_ext >&5
19521 eval "ac_cv_lib_$ac_lib_var=no"
19524 LIBS="$ac_save_LIBS"
19527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19528 echo "$ac_t""yes" 1>&6
19531 echo "$ac_t""no" 1>&6
19535 if test $have_termcap = yes ; then
19536 cat >> confdefs.h <<\EOF
19537 #define HAVE_TERMCAP 1
19540 ol_link_termcap=yes
19541 TERMCAP_LIBS=-ltermcap
19545 if test $ol_link_termcap = no ; then
19546 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19547 echo "configure:19548: checking for initscr in -lncurses" >&5
19548 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19549 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19550 echo $ac_n "(cached) $ac_c" 1>&6
19552 ac_save_LIBS="$LIBS"
19553 LIBS="-lncurses $LIBS"
19554 cat > conftest.$ac_ext <<EOF
19555 #line 19556 "configure"
19556 #include "confdefs.h"
19557 /* Override any gcc2 internal prototype to avoid an error. */
19558 /* We use char because int might match the return type of a gcc2
19559 builtin and then its argument prototype would still apply. */
19566 if { (eval echo configure:19567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19568 eval "ac_cv_lib_$ac_lib_var=yes"
19570 echo "configure: failed program was:" >&5
19571 cat conftest.$ac_ext >&5
19573 eval "ac_cv_lib_$ac_lib_var=no"
19576 LIBS="$ac_save_LIBS"
19579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19580 echo "$ac_t""yes" 1>&6
19583 echo "$ac_t""no" 1>&6
19587 if test $have_ncurses = yes ; then
19588 cat >> confdefs.h <<\EOF
19589 #define HAVE_NCURSES 1
19592 ol_link_termcap=yes
19593 TERMCAP_LIBS=-lncurses
19597 if test $ol_link_termcap = no ; then
19598 cat >> confdefs.h <<\EOF
19599 #define NO_TERMCAP 1
19607 if test $ol_with_cyrus_sasl != no ; then
19608 for ac_hdr in sasl/sasl.h sasl.h
19610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19612 echo "configure:19613: checking for $ac_hdr" >&5
19613 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19614 echo $ac_n "(cached) $ac_c" 1>&6
19616 cat > conftest.$ac_ext <<EOF
19617 #line 19618 "configure"
19618 #include "confdefs.h"
19621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19622 { (eval echo configure:19623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19624 if test -z "$ac_err"; then
19626 eval "ac_cv_header_$ac_safe=yes"
19629 echo "configure: failed program was:" >&5
19630 cat conftest.$ac_ext >&5
19632 eval "ac_cv_header_$ac_safe=no"
19636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19637 echo "$ac_t""yes" 1>&6
19638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19639 cat >> confdefs.h <<EOF
19640 #define $ac_tr_hdr 1
19644 echo "$ac_t""no" 1>&6
19649 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19650 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19651 echo "configure:19652: checking for sasl_client_init in -lsasl2" >&5
19652 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19654 echo $ac_n "(cached) $ac_c" 1>&6
19656 ac_save_LIBS="$LIBS"
19657 LIBS="-lsasl2 $LIBS"
19658 cat > conftest.$ac_ext <<EOF
19659 #line 19660 "configure"
19660 #include "confdefs.h"
19661 /* Override any gcc2 internal prototype to avoid an error. */
19662 /* We use char because int might match the return type of a gcc2
19663 builtin and then its argument prototype would still apply. */
19664 char sasl_client_init();
19670 if { (eval echo configure:19671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19672 eval "ac_cv_lib_$ac_lib_var=yes"
19674 echo "configure: failed program was:" >&5
19675 cat conftest.$ac_ext >&5
19677 eval "ac_cv_lib_$ac_lib_var=no"
19680 LIBS="$ac_save_LIBS"
19683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19684 echo "$ac_t""yes" 1>&6
19685 ol_link_sasl="-lsasl2"
19687 echo "$ac_t""no" 1>&6
19688 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19689 echo "configure:19690: checking for sasl_client_init in -lsasl" >&5
19690 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19692 echo $ac_n "(cached) $ac_c" 1>&6
19694 ac_save_LIBS="$LIBS"
19695 LIBS="-lsasl $LIBS"
19696 cat > conftest.$ac_ext <<EOF
19697 #line 19698 "configure"
19698 #include "confdefs.h"
19699 /* Override any gcc2 internal prototype to avoid an error. */
19700 /* We use char because int might match the return type of a gcc2
19701 builtin and then its argument prototype would still apply. */
19702 char sasl_client_init();
19708 if { (eval echo configure:19709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19710 eval "ac_cv_lib_$ac_lib_var=yes"
19712 echo "configure: failed program was:" >&5
19713 cat conftest.$ac_ext >&5
19715 eval "ac_cv_lib_$ac_lib_var=no"
19718 LIBS="$ac_save_LIBS"
19721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19722 echo "$ac_t""yes" 1>&6
19723 ol_link_sasl="-lsasl"
19725 echo "$ac_t""no" 1>&6
19732 if test $ol_link_sasl = no ; then
19733 if test $ol_with_cyrus_sasl != auto ; then
19734 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19736 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19737 echo "configure: warning: SASL authentication not supported!" 1>&2
19738 if test $ol_link_tls = no ; then
19739 echo "configure: warning: Strong authentication not supported!" 1>&2
19743 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19744 echo "configure:19745: checking Cyrus SASL library version" >&5
19745 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19746 echo $ac_n "(cached) $ac_c" 1>&6
19749 cat > conftest.$ac_ext <<EOF
19750 #line 19751 "configure"
19751 #include "confdefs.h"
19753 #ifdef HAVE_SASL_SASL_H
19754 #include <sasl/sasl.h>
19759 /* require 2.1.3 or later */
19760 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19761 char *__sasl_compat = "1.5.x okay";
19762 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19763 __sasl_compat "2.2+ or better okay (we guess)";
19764 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19765 && SASL_VERSION_STEP >=3
19766 __sasl_compat = "2.1.3+ or better okay";
19770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19771 egrep "__sasl_compat" >/dev/null 2>&1; then
19773 ol_cv_sasl_compat=yes
19776 ol_cv_sasl_compat=no
19782 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19784 if test $ol_cv_sasl_compat = no ; then
19786 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19789 cat >> confdefs.h <<\EOF
19790 #define HAVE_CYRUS_SASL 1
19793 SASL_LIBS="$ol_link_sasl"
19794 if test $ol_enable_spasswd != no ; then
19795 ol_link_spasswd=yes
19798 ac_save_LIBS="$LIBS"
19799 LIBS="$LIBS $ol_link_sasl"
19800 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19801 echo "configure:19802: checking for sasl_version" >&5
19802 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19803 echo $ac_n "(cached) $ac_c" 1>&6
19805 cat > conftest.$ac_ext <<EOF
19806 #line 19807 "configure"
19807 #include "confdefs.h"
19808 /* System header to define __stub macros and hopefully few prototypes,
19809 which can conflict with char sasl_version(); below. */
19810 #include <assert.h>
19811 /* Override any gcc2 internal prototype to avoid an error. */
19812 /* We use char because int might match the return type of a gcc2
19813 builtin and then its argument prototype would still apply. */
19814 char sasl_version();
19819 /* The GNU C library defines this for functions which it implements
19820 to always fail with ENOSYS. Some functions are actually named
19821 something starting with __ and the normal name is an alias. */
19822 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19830 if { (eval echo configure:19831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19832 eval "ac_cv_func_sasl_version=yes"
19834 echo "configure: failed program was:" >&5
19835 cat conftest.$ac_ext >&5
19837 eval "ac_cv_func_sasl_version=no"
19842 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
19843 echo "$ac_t""yes" 1>&6
19844 cat >> confdefs.h <<\EOF
19845 #define HAVE_SASL_VERSION 1
19849 echo "$ac_t""no" 1>&6
19852 LIBS="$ac_save_LIBS"
19856 echo "configure: warning: SASL authentication not supported!" 1>&2
19857 if test $ol_link_tls = no ; then
19858 echo "configure: warning: Strong authentication not supported!" 1>&2
19862 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19864 if test -r /dev/urandom ; then
19865 dev="/dev/urandom";
19866 elif test -r /idev/urandom ; then
19867 dev="/idev/urandom";
19868 elif test -r /dev/srandom ; then
19869 dev="/dev/srandom";
19870 elif test -r /dev/random ; then
19872 elif test -r /idev/random ; then
19873 dev="/idev/random";
19876 if test $dev != no ; then
19877 cat >> confdefs.h <<EOF
19878 #define URANDOM_DEVICE "$dev"
19885 if test $ol_with_fetch != no ; then
19887 LIBS="-lfetch -lcom_err $LIBS"
19888 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19889 echo "configure:19890: checking fetch(3) library" >&5
19890 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19891 echo $ac_n "(cached) $ac_c" 1>&6
19894 cat > conftest.$ac_ext <<EOF
19895 #line 19896 "configure"
19896 #include "confdefs.h"
19898 #include <sys/param.h>
19902 struct url *u = fetchParseURL("file:///");
19905 if { (eval echo configure:19906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19907 ol_cv_lib_fetch=yes
19909 echo "configure: failed program was:" >&5
19910 cat conftest.$ac_ext >&5
19917 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19919 if test $ol_cv_lib_fetch != no ; then
19920 ol_link_fetch="-lfetch -lcom_err"
19921 cat >> confdefs.h <<\EOF
19922 #define HAVE_FETCH 1
19928 if test $ol_cv_lib_fetch != no ; then
19929 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19930 ol_link_fetch=freebsd
19932 elif test $ol_with_fetch != auto ; then
19933 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19937 ol_link_readline=no
19938 if test $ol_with_readline != no ; then
19939 for ac_hdr in readline/readline.h readline/history.h
19941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19943 echo "configure:19944: checking for $ac_hdr" >&5
19944 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19945 echo $ac_n "(cached) $ac_c" 1>&6
19947 cat > conftest.$ac_ext <<EOF
19948 #line 19949 "configure"
19949 #include "confdefs.h"
19952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19953 { (eval echo configure:19954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19955 if test -z "$ac_err"; then
19957 eval "ac_cv_header_$ac_safe=yes"
19960 echo "configure: failed program was:" >&5
19961 cat conftest.$ac_ext >&5
19963 eval "ac_cv_header_$ac_safe=no"
19967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19968 echo "$ac_t""yes" 1>&6
19969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19970 cat >> confdefs.h <<EOF
19971 #define $ac_tr_hdr 1
19975 echo "$ac_t""no" 1>&6
19980 if test $ac_cv_header_readline_readline_h = yes ; then
19982 LIBS="$TERMCAP_LIBS $LIBS"
19983 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19984 echo "configure:19985: checking for readline in -lreadline" >&5
19985 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19986 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19987 echo $ac_n "(cached) $ac_c" 1>&6
19989 ac_save_LIBS="$LIBS"
19990 LIBS="-lreadline $LIBS"
19991 cat > conftest.$ac_ext <<EOF
19992 #line 19993 "configure"
19993 #include "confdefs.h"
19994 /* Override any gcc2 internal prototype to avoid an error. */
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
20003 if { (eval echo configure:20004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20005 eval "ac_cv_lib_$ac_lib_var=yes"
20007 echo "configure: failed program was:" >&5
20008 cat conftest.$ac_ext >&5
20010 eval "ac_cv_lib_$ac_lib_var=no"
20013 LIBS="$ac_save_LIBS"
20016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20017 echo "$ac_t""yes" 1>&6
20020 echo "$ac_t""no" 1>&6
20026 if test $have_readline = yes ; then
20027 ol_with_readline=found
20028 ol_link_readline=yes
20030 READLINE_LIBS="-lreadline"
20035 if test $ol_link_readline = yes ; then
20036 cat >> confdefs.h <<\EOF
20037 #define HAVE_READLINE 1
20043 if test $ol_enable_crypt != no ; then
20045 LIBS="$TLS_LIBS $LIBS"
20047 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20048 echo "configure:20049: checking for crypt" >&5
20049 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20050 echo $ac_n "(cached) $ac_c" 1>&6
20052 cat > conftest.$ac_ext <<EOF
20053 #line 20054 "configure"
20054 #include "confdefs.h"
20055 /* System header to define __stub macros and hopefully few prototypes,
20056 which can conflict with char crypt(); below. */
20057 #include <assert.h>
20058 /* Override any gcc2 internal prototype to avoid an error. */
20059 /* We use char because int might match the return type of a gcc2
20060 builtin and then its argument prototype would still apply. */
20066 /* The GNU C library defines this for functions which it implements
20067 to always fail with ENOSYS. Some functions are actually named
20068 something starting with __ and the normal name is an alias. */
20069 #if defined (__stub_crypt) || defined (__stub___crypt)
20077 if { (eval echo configure:20078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20079 eval "ac_cv_func_crypt=yes"
20081 echo "configure: failed program was:" >&5
20082 cat conftest.$ac_ext >&5
20084 eval "ac_cv_func_crypt=no"
20089 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20090 echo "$ac_t""yes" 1>&6
20093 echo "$ac_t""no" 1>&6
20096 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20097 echo "configure:20098: checking for crypt in -lcrypt" >&5
20098 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20099 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20100 echo $ac_n "(cached) $ac_c" 1>&6
20102 ac_save_LIBS="$LIBS"
20103 LIBS="-lcrypt $LIBS"
20104 cat > conftest.$ac_ext <<EOF
20105 #line 20106 "configure"
20106 #include "confdefs.h"
20107 /* Override any gcc2 internal prototype to avoid an error. */
20108 /* We use char because int might match the return type of a gcc2
20109 builtin and then its argument prototype would still apply. */
20116 if { (eval echo configure:20117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20118 eval "ac_cv_lib_$ac_lib_var=yes"
20120 echo "configure: failed program was:" >&5
20121 cat conftest.$ac_ext >&5
20123 eval "ac_cv_lib_$ac_lib_var=no"
20126 LIBS="$ac_save_LIBS"
20129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20130 echo "$ac_t""yes" 1>&6
20131 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20134 echo "$ac_t""no" 1>&6
20143 if test $have_crypt = yes ; then
20144 cat >> confdefs.h <<\EOF
20145 #define HAVE_CRYPT 1
20149 echo "configure: warning: could not find crypt" 1>&2
20150 if test $ol_enable_crypt = yes ; then
20151 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20154 echo "configure: warning: disabling crypt support" 1>&2
20159 if test $ol_enable_proctitle != no ; then
20160 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20161 echo "configure:20162: checking for setproctitle" >&5
20162 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20163 echo $ac_n "(cached) $ac_c" 1>&6
20165 cat > conftest.$ac_ext <<EOF
20166 #line 20167 "configure"
20167 #include "confdefs.h"
20168 /* System header to define __stub macros and hopefully few prototypes,
20169 which can conflict with char setproctitle(); below. */
20170 #include <assert.h>
20171 /* Override any gcc2 internal prototype to avoid an error. */
20172 /* We use char because int might match the return type of a gcc2
20173 builtin and then its argument prototype would still apply. */
20174 char setproctitle();
20179 /* The GNU C library defines this for functions which it implements
20180 to always fail with ENOSYS. Some functions are actually named
20181 something starting with __ and the normal name is an alias. */
20182 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20190 if { (eval echo configure:20191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20192 eval "ac_cv_func_setproctitle=yes"
20194 echo "configure: failed program was:" >&5
20195 cat conftest.$ac_ext >&5
20197 eval "ac_cv_func_setproctitle=no"
20202 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20203 echo "$ac_t""yes" 1>&6
20204 have_setproctitle=yes
20206 echo "$ac_t""no" 1>&6
20208 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20209 echo "configure:20210: checking for setproctitle in -lutil" >&5
20210 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20211 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20212 echo $ac_n "(cached) $ac_c" 1>&6
20214 ac_save_LIBS="$LIBS"
20215 LIBS="-lutil $LIBS"
20216 cat > conftest.$ac_ext <<EOF
20217 #line 20218 "configure"
20218 #include "confdefs.h"
20219 /* Override any gcc2 internal prototype to avoid an error. */
20220 /* We use char because int might match the return type of a gcc2
20221 builtin and then its argument prototype would still apply. */
20222 char setproctitle();
20228 if { (eval echo configure:20229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20230 eval "ac_cv_lib_$ac_lib_var=yes"
20232 echo "configure: failed program was:" >&5
20233 cat conftest.$ac_ext >&5
20235 eval "ac_cv_lib_$ac_lib_var=no"
20238 LIBS="$ac_save_LIBS"
20241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20242 echo "$ac_t""yes" 1>&6
20243 have_setproctitle=yes
20244 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20246 echo "$ac_t""no" 1>&6
20247 have_setproctitle=no
20248 LIBOBJS="$LIBOBJS setproctitle.o"
20249 LIBSRCS="$LIBSRCS setproctitle.c"
20255 if test $have_setproctitle = yes ; then
20256 cat >> confdefs.h <<\EOF
20257 #define HAVE_SETPROCTITLE 1
20263 if test $ol_enable_slp != no ; then
20264 for ac_hdr in slp.h
20266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20268 echo "configure:20269: checking for $ac_hdr" >&5
20269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20270 echo $ac_n "(cached) $ac_c" 1>&6
20272 cat > conftest.$ac_ext <<EOF
20273 #line 20274 "configure"
20274 #include "confdefs.h"
20277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20278 { (eval echo configure:20279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20280 if test -z "$ac_err"; then
20282 eval "ac_cv_header_$ac_safe=yes"
20285 echo "configure: failed program was:" >&5
20286 cat conftest.$ac_ext >&5
20288 eval "ac_cv_header_$ac_safe=no"
20292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20293 echo "$ac_t""yes" 1>&6
20294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20295 cat >> confdefs.h <<EOF
20296 #define $ac_tr_hdr 1
20300 echo "$ac_t""no" 1>&6
20305 if test $ac_cv_header_slp_h = yes ; then
20306 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20307 echo "configure:20308: checking for SLPOpen in -lslp" >&5
20308 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20310 echo $ac_n "(cached) $ac_c" 1>&6
20312 ac_save_LIBS="$LIBS"
20314 cat > conftest.$ac_ext <<EOF
20315 #line 20316 "configure"
20316 #include "confdefs.h"
20317 /* Override any gcc2 internal prototype to avoid an error. */
20318 /* We use char because int might match the return type of a gcc2
20319 builtin and then its argument prototype would still apply. */
20326 if { (eval echo configure:20327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20328 eval "ac_cv_lib_$ac_lib_var=yes"
20330 echo "configure: failed program was:" >&5
20331 cat conftest.$ac_ext >&5
20333 eval "ac_cv_lib_$ac_lib_var=no"
20336 LIBS="$ac_save_LIBS"
20339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20340 echo "$ac_t""yes" 1>&6
20343 echo "$ac_t""no" 1>&6
20347 if test $have_slp = yes ; then
20348 cat >> confdefs.h <<\EOF
20352 SLAPD_SLP_LIBS=-lslp
20355 elif test $ol_enable_slp = yes ; then
20356 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20360 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20361 echo "configure:20362: checking for ANSI C header files" >&5
20362 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20363 echo $ac_n "(cached) $ac_c" 1>&6
20365 cat > conftest.$ac_ext <<EOF
20366 #line 20367 "configure"
20367 #include "confdefs.h"
20368 #include <stdlib.h>
20369 #include <stdarg.h>
20370 #include <string.h>
20373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20374 { (eval echo configure:20375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20376 if test -z "$ac_err"; then
20378 ac_cv_header_stdc=yes
20381 echo "configure: failed program was:" >&5
20382 cat conftest.$ac_ext >&5
20384 ac_cv_header_stdc=no
20388 if test $ac_cv_header_stdc = yes; then
20389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20390 cat > conftest.$ac_ext <<EOF
20391 #line 20392 "configure"
20392 #include "confdefs.h"
20393 #include <string.h>
20395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20396 egrep "memchr" >/dev/null 2>&1; then
20400 ac_cv_header_stdc=no
20406 if test $ac_cv_header_stdc = yes; then
20407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20408 cat > conftest.$ac_ext <<EOF
20409 #line 20410 "configure"
20410 #include "confdefs.h"
20411 #include <stdlib.h>
20413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20414 egrep "free" >/dev/null 2>&1; then
20418 ac_cv_header_stdc=no
20424 if test $ac_cv_header_stdc = yes; then
20425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20426 if test "$cross_compiling" = yes; then
20429 cat > conftest.$ac_ext <<EOF
20430 #line 20431 "configure"
20431 #include "confdefs.h"
20433 #if ((' ' & 0x0FF) == 0x020)
20434 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20435 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20437 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20438 || ('j' <= (c) && (c) <= 'r') \
20439 || ('s' <= (c) && (c) <= 'z'))
20440 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20443 int main () { int i; for (i = 0; i < 256; i++)
20444 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20448 if { (eval echo configure:20449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20452 echo "configure: failed program was:" >&5
20453 cat conftest.$ac_ext >&5
20455 ac_cv_header_stdc=no
20463 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20464 if test $ac_cv_header_stdc = yes; then
20465 cat >> confdefs.h <<\EOF
20466 #define STDC_HEADERS 1
20471 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20472 echo "configure:20473: checking for mode_t" >&5
20473 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20474 echo $ac_n "(cached) $ac_c" 1>&6
20476 cat > conftest.$ac_ext <<EOF
20477 #line 20478 "configure"
20478 #include "confdefs.h"
20479 #include <sys/types.h>
20481 #include <stdlib.h>
20482 #include <stddef.h>
20486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20487 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20489 eval "ac_cv_type_mode_t=yes"
20492 eval "ac_cv_type_mode_t=no"
20497 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20498 echo "$ac_t""yes" 1>&6
20500 echo "$ac_t""no" 1>&6
20501 cat >> confdefs.h <<EOF
20507 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20508 echo "configure:20509: checking for off_t" >&5
20509 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20510 echo $ac_n "(cached) $ac_c" 1>&6
20512 cat > conftest.$ac_ext <<EOF
20513 #line 20514 "configure"
20514 #include "confdefs.h"
20515 #include <sys/types.h>
20517 #include <stdlib.h>
20518 #include <stddef.h>
20522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20523 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20525 eval "ac_cv_type_off_t=yes"
20528 eval "ac_cv_type_off_t=no"
20533 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20534 echo "$ac_t""yes" 1>&6
20536 echo "$ac_t""no" 1>&6
20537 cat >> confdefs.h <<EOF
20543 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20544 echo "configure:20545: checking for pid_t" >&5
20545 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20546 echo $ac_n "(cached) $ac_c" 1>&6
20548 cat > conftest.$ac_ext <<EOF
20549 #line 20550 "configure"
20550 #include "confdefs.h"
20551 #include <sys/types.h>
20553 #include <stdlib.h>
20554 #include <stddef.h>
20558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20559 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20561 eval "ac_cv_type_pid_t=yes"
20564 eval "ac_cv_type_pid_t=no"
20569 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20570 echo "$ac_t""yes" 1>&6
20572 echo "$ac_t""no" 1>&6
20573 cat >> confdefs.h <<EOF
20579 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20580 echo "configure:20581: checking for ptrdiff_t" >&5
20581 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20582 echo $ac_n "(cached) $ac_c" 1>&6
20584 cat > conftest.$ac_ext <<EOF
20585 #line 20586 "configure"
20586 #include "confdefs.h"
20587 #include <stddef.h>
20592 if { (eval echo configure:20593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20594 am_cv_type_ptrdiff_t=yes
20596 echo "configure: failed program was:" >&5
20597 cat conftest.$ac_ext >&5
20599 am_cv_type_ptrdiff_t=no
20604 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20605 if test $am_cv_type_ptrdiff_t = yes; then
20606 cat >> confdefs.h <<\EOF
20607 #define HAVE_PTRDIFF_T 1
20612 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20613 echo "configure:20614: checking return type of signal handlers" >&5
20614 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20615 echo $ac_n "(cached) $ac_c" 1>&6
20617 cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20620 #include <sys/types.h>
20621 #include <signal.h>
20626 extern "C" void (*signal (int, void (*)(int)))(int);
20628 void (*signal ()) ();
20635 if { (eval echo configure:20636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20637 ac_cv_type_signal=void
20639 echo "configure: failed program was:" >&5
20640 cat conftest.$ac_ext >&5
20642 ac_cv_type_signal=int
20647 echo "$ac_t""$ac_cv_type_signal" 1>&6
20648 cat >> confdefs.h <<EOF
20649 #define RETSIGTYPE $ac_cv_type_signal
20653 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20654 echo "configure:20655: checking for size_t" >&5
20655 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20656 echo $ac_n "(cached) $ac_c" 1>&6
20658 cat > conftest.$ac_ext <<EOF
20659 #line 20660 "configure"
20660 #include "confdefs.h"
20661 #include <sys/types.h>
20663 #include <stdlib.h>
20664 #include <stddef.h>
20668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20669 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20671 eval "ac_cv_type_size_t=yes"
20674 eval "ac_cv_type_size_t=no"
20679 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20680 echo "$ac_t""yes" 1>&6
20682 echo "$ac_t""no" 1>&6
20683 cat >> confdefs.h <<EOF
20684 #define size_t unsigned
20690 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20691 echo "configure:20692: checking for ssize_t" >&5
20692 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20693 echo $ac_n "(cached) $ac_c" 1>&6
20695 cat > conftest.$ac_ext <<EOF
20696 #line 20697 "configure"
20697 #include "confdefs.h"
20698 #include <sys/types.h>
20700 #include <stdlib.h>
20701 #include <stddef.h>
20705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20706 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20708 eval "ac_cv_type_ssize_t=yes"
20711 eval "ac_cv_type_ssize_t=no"
20716 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20717 echo "$ac_t""yes" 1>&6
20719 echo "$ac_t""no" 1>&6
20720 cat >> confdefs.h <<EOF
20721 #define ssize_t signed int
20726 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20727 echo "configure:20728: checking for caddr_t" >&5
20728 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20729 echo $ac_n "(cached) $ac_c" 1>&6
20731 cat > conftest.$ac_ext <<EOF
20732 #line 20733 "configure"
20733 #include "confdefs.h"
20734 #include <sys/types.h>
20736 #include <stdlib.h>
20737 #include <stddef.h>
20741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20742 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20744 eval "ac_cv_type_caddr_t=yes"
20747 eval "ac_cv_type_caddr_t=no"
20752 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20753 echo "$ac_t""yes" 1>&6
20755 echo "$ac_t""no" 1>&6
20756 cat >> confdefs.h <<EOF
20757 #define caddr_t char *
20763 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20764 echo "configure:20765: checking for socklen_t" >&5
20765 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20766 echo $ac_n "(cached) $ac_c" 1>&6
20768 cat > conftest.$ac_ext <<EOF
20769 #line 20770 "configure"
20770 #include "confdefs.h"
20772 #ifdef HAVE_SYS_TYPES_H
20773 #include <sys/types.h>
20775 #ifdef HAVE_SYS_SOCKET_H
20776 #include <sys/socket.h>
20783 if { (eval echo configure:20784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20785 ol_cv_type_socklen_t=yes
20787 echo "configure: failed program was:" >&5
20788 cat conftest.$ac_ext >&5
20790 ol_cv_type_socklen_t=no
20795 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20796 if test $ol_cv_type_socklen_t = no; then
20797 cat >> confdefs.h <<\EOF
20798 #define socklen_t int
20803 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20804 echo "configure:20805: checking for member st_blksize in aggregate type struct stat" >&5
20805 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20806 echo $ac_n "(cached) $ac_c" 1>&6
20808 cat > conftest.$ac_ext <<EOF
20809 #line 20810 "configure"
20810 #include "confdefs.h"
20811 #include <sys/types.h>
20812 #include <sys/stat.h>
20814 struct stat foo; foo.st_blksize;
20817 if { (eval echo configure:20818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20819 ac_cv_c_struct_member_st_blksize=yes
20821 echo "configure: failed program was:" >&5
20822 cat conftest.$ac_ext >&5
20824 ac_cv_c_struct_member_st_blksize=no
20829 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20830 st_blksize="$ac_cv_c_struct_member_st_blksize"
20831 if test $ac_cv_c_struct_member_st_blksize = yes; then
20832 cat >> confdefs.h <<\EOF
20833 #define HAVE_ST_BLKSIZE 1
20838 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20839 echo "configure:20840: checking whether time.h and sys/time.h may both be included" >&5
20840 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20841 echo $ac_n "(cached) $ac_c" 1>&6
20843 cat > conftest.$ac_ext <<EOF
20844 #line 20845 "configure"
20845 #include "confdefs.h"
20846 #include <sys/types.h>
20847 #include <sys/time.h>
20853 if { (eval echo configure:20854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20855 ac_cv_header_time=yes
20857 echo "configure: failed program was:" >&5
20858 cat conftest.$ac_ext >&5
20860 ac_cv_header_time=no
20865 echo "$ac_t""$ac_cv_header_time" 1>&6
20866 if test $ac_cv_header_time = yes; then
20867 cat >> confdefs.h <<\EOF
20868 #define TIME_WITH_SYS_TIME 1
20873 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20874 echo "configure:20875: checking whether struct tm is in sys/time.h or time.h" >&5
20875 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20876 echo $ac_n "(cached) $ac_c" 1>&6
20878 cat > conftest.$ac_ext <<EOF
20879 #line 20880 "configure"
20880 #include "confdefs.h"
20881 #include <sys/types.h>
20884 struct tm *tp; tp->tm_sec;
20887 if { (eval echo configure:20888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20889 ac_cv_struct_tm=time.h
20891 echo "configure: failed program was:" >&5
20892 cat conftest.$ac_ext >&5
20894 ac_cv_struct_tm=sys/time.h
20899 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20900 if test $ac_cv_struct_tm = sys/time.h; then
20901 cat >> confdefs.h <<\EOF
20902 #define TM_IN_SYS_TIME 1
20907 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20908 echo "configure:20909: checking for uid_t in sys/types.h" >&5
20909 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20910 echo $ac_n "(cached) $ac_c" 1>&6
20912 cat > conftest.$ac_ext <<EOF
20913 #line 20914 "configure"
20914 #include "confdefs.h"
20915 #include <sys/types.h>
20917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20918 egrep "uid_t" >/dev/null 2>&1; then
20920 ac_cv_type_uid_t=yes
20923 ac_cv_type_uid_t=no
20929 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20930 if test $ac_cv_type_uid_t = no; then
20931 cat >> confdefs.h <<\EOF
20935 cat >> confdefs.h <<\EOF
20941 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20942 echo "configure:20943: checking for sig_atomic_t" >&5
20943 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20944 echo $ac_n "(cached) $ac_c" 1>&6
20946 cat > conftest.$ac_ext <<EOF
20947 #line 20948 "configure"
20948 #include "confdefs.h"
20949 #include <signal.h>
20951 sig_atomic_t atomic;
20954 if { (eval echo configure:20955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20956 ol_cv_type_sig_atomic_t=yes
20958 echo "configure: failed program was:" >&5
20959 cat conftest.$ac_ext >&5
20961 ol_cv_type_sig_atomic_t=no
20966 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20967 if test $ol_cv_type_sig_atomic_t = no; then
20968 cat >> confdefs.h <<\EOF
20969 #define sig_atomic_t int
20976 # test for pw_gecos in struct passwd
20977 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20978 echo "configure:20979: checking struct passwd for pw_gecos" >&5
20979 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20980 echo $ac_n "(cached) $ac_c" 1>&6
20983 cat > conftest.$ac_ext <<EOF
20984 #line 20985 "configure"
20985 #include "confdefs.h"
20990 pwd.pw_gecos = pwd.pw_name;
20994 if { (eval echo configure:20995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20996 ol_cv_struct_passwd_pw_gecos=yes
20998 echo "configure: failed program was:" >&5
20999 cat conftest.$ac_ext >&5
21001 ol_cv_struct_passwd_pw_gecos=no
21006 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21007 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21008 cat >> confdefs.h <<\EOF
21009 #define HAVE_PW_GECOS 1
21014 # test for pw_passwd in struct passwd
21015 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21016 echo "configure:21017: checking struct passwd for pw_passwd" >&5
21017 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21018 echo $ac_n "(cached) $ac_c" 1>&6
21021 cat > conftest.$ac_ext <<EOF
21022 #line 21023 "configure"
21023 #include "confdefs.h"
21028 pwd.pw_passwd = pwd.pw_name;
21032 if { (eval echo configure:21033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21034 ol_cv_struct_passwd_pw_passwd=yes
21036 echo "configure: failed program was:" >&5
21037 cat conftest.$ac_ext >&5
21039 ol_cv_struct_passwd_pw_passwd=no
21044 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21045 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21046 cat >> confdefs.h <<\EOF
21047 #define HAVE_PW_PASSWD 1
21053 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21054 echo "configure:21055: checking if toupper() requires islower()" >&5
21055 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21056 echo $ac_n "(cached) $ac_c" 1>&6
21059 if test "$cross_compiling" = yes; then
21060 ol_cv_c_upper_lower=safe
21062 cat > conftest.$ac_ext <<EOF
21063 #line 21064 "configure"
21064 #include "confdefs.h"
21069 if ('C' == toupper('C'))
21075 if { (eval echo configure:21076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21077 ol_cv_c_upper_lower=no
21079 echo "configure: failed program was:" >&5
21080 cat conftest.$ac_ext >&5
21082 ol_cv_c_upper_lower=yes
21089 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21090 if test $ol_cv_c_upper_lower != no ; then
21091 cat >> confdefs.h <<\EOF
21092 #define C_UPPER_LOWER 1
21097 echo $ac_n "checking for working const""... $ac_c" 1>&6
21098 echo "configure:21099: checking for working const" >&5
21099 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21100 echo $ac_n "(cached) $ac_c" 1>&6
21102 cat > conftest.$ac_ext <<EOF
21103 #line 21104 "configure"
21104 #include "confdefs.h"
21108 /* Ultrix mips cc rejects this. */
21109 typedef int charset[2]; const charset x;
21110 /* SunOS 4.1.1 cc rejects this. */
21111 char const *const *ccp;
21113 /* NEC SVR4.0.2 mips cc rejects this. */
21114 struct point {int x, y;};
21115 static struct point const zero = {0,0};
21116 /* AIX XL C 1.02.0.0 rejects this.
21117 It does not let you subtract one const X* pointer from another in an arm
21118 of an if-expression whose if-part is not a constant expression */
21119 const char *g = "string";
21120 ccp = &g + (g ? g-g : 0);
21121 /* HPUX 7.0 cc rejects these. */
21124 ccp = (char const *const *) p;
21125 { /* SCO 3.2v4 cc rejects this. */
21127 char const *s = 0 ? (char *) 0 : (char const *) 0;
21131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21132 int x[] = {25, 17};
21133 const int *foo = &x[0];
21136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21137 typedef const int *iptr;
21141 { /* AIX XL C 1.02.0.0 rejects this saying
21142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21143 struct s { int j; const int *ap[3]; };
21144 struct s *b; b->j = 5;
21146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21147 const int foo = 10;
21152 if { (eval echo configure:21153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21156 echo "configure: failed program was:" >&5
21157 cat conftest.$ac_ext >&5
21164 echo "$ac_t""$ac_cv_c_const" 1>&6
21165 if test $ac_cv_c_const = no; then
21166 cat >> confdefs.h <<\EOF
21172 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21173 echo "configure:21174: checking if compiler understands volatile" >&5
21174 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21175 echo $ac_n "(cached) $ac_c" 1>&6
21177 cat > conftest.$ac_ext <<EOF
21178 #line 21179 "configure"
21179 #include "confdefs.h"
21182 volatile int a; int * volatile b = x ? &y : &z;
21183 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21187 if { (eval echo configure:21188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21189 ol_cv_c_volatile=yes
21191 echo "configure: failed program was:" >&5
21192 cat conftest.$ac_ext >&5
21194 ol_cv_c_volatile=no
21199 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21200 if test $ol_cv_c_volatile = yes; then
21203 cat >> confdefs.h <<\EOF
21210 if test $cross_compiling = yes ; then
21211 cat >> confdefs.h <<\EOF
21212 #define CROSS_COMPILING 1
21216 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21217 echo "configure:21218: checking whether byte ordering is bigendian" >&5
21218 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21219 echo $ac_n "(cached) $ac_c" 1>&6
21221 ac_cv_c_bigendian=unknown
21222 # See if sys/param.h defines the BYTE_ORDER macro.
21223 cat > conftest.$ac_ext <<EOF
21224 #line 21225 "configure"
21225 #include "confdefs.h"
21226 #include <sys/types.h>
21227 #include <sys/param.h>
21230 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21231 bogus endian macros
21235 if { (eval echo configure:21236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21237 # It does; now see whether it defined to BIG_ENDIAN or not.
21238 cat > conftest.$ac_ext <<EOF
21239 #line 21240 "configure"
21240 #include "confdefs.h"
21241 #include <sys/types.h>
21242 #include <sys/param.h>
21245 #if BYTE_ORDER != BIG_ENDIAN
21250 if { (eval echo configure:21251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21252 ac_cv_c_bigendian=yes
21254 echo "configure: failed program was:" >&5
21255 cat conftest.$ac_ext >&5
21257 ac_cv_c_bigendian=no
21261 echo "configure: failed program was:" >&5
21262 cat conftest.$ac_ext >&5
21265 if test $ac_cv_c_bigendian = unknown; then
21266 if test "$cross_compiling" = yes; then
21267 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21269 cat > conftest.$ac_ext <<EOF
21270 #line 21271 "configure"
21271 #include "confdefs.h"
21273 /* Are we little or big endian? From Harbison&Steele. */
21277 char c[sizeof (long)];
21280 exit (u.c[sizeof (long) - 1] == 1);
21283 if { (eval echo configure:21284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21285 ac_cv_c_bigendian=no
21287 echo "configure: failed program was:" >&5
21288 cat conftest.$ac_ext >&5
21290 ac_cv_c_bigendian=yes
21298 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21299 if test $ac_cv_c_bigendian = yes; then
21300 cat >> confdefs.h <<\EOF
21301 #define WORDS_BIGENDIAN 1
21308 echo $ac_n "checking size of short""... $ac_c" 1>&6
21309 echo "configure:21310: checking size of short" >&5
21310 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21311 echo $ac_n "(cached) $ac_c" 1>&6
21313 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21314 cat > conftest.$ac_ext <<EOF
21315 #line 21316 "configure"
21316 #include "confdefs.h"
21317 #include "confdefs.h"
21318 #include <sys/types.h>
21322 switch (0) case 0: case (sizeof (short) == $ac_size):;
21325 if { (eval echo configure:21326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21327 ac_cv_sizeof_short=$ac_size
21329 echo "configure: failed program was:" >&5
21330 cat conftest.$ac_ext >&5
21333 if test x$ac_cv_sizeof_short != x ; then break; fi
21338 if test x$ac_cv_sizeof_short = x ; then
21339 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21341 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21342 cat >> confdefs.h <<EOF
21343 #define SIZEOF_SHORT $ac_cv_sizeof_short
21347 echo $ac_n "checking size of int""... $ac_c" 1>&6
21348 echo "configure:21349: checking size of int" >&5
21349 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21350 echo $ac_n "(cached) $ac_c" 1>&6
21352 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21353 cat > conftest.$ac_ext <<EOF
21354 #line 21355 "configure"
21355 #include "confdefs.h"
21356 #include "confdefs.h"
21357 #include <sys/types.h>
21361 switch (0) case 0: case (sizeof (int) == $ac_size):;
21364 if { (eval echo configure:21365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21366 ac_cv_sizeof_int=$ac_size
21368 echo "configure: failed program was:" >&5
21369 cat conftest.$ac_ext >&5
21372 if test x$ac_cv_sizeof_int != x ; then break; fi
21377 if test x$ac_cv_sizeof_int = x ; then
21378 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21380 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21381 cat >> confdefs.h <<EOF
21382 #define SIZEOF_INT $ac_cv_sizeof_int
21386 echo $ac_n "checking size of long""... $ac_c" 1>&6
21387 echo "configure:21388: checking size of long" >&5
21388 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21389 echo $ac_n "(cached) $ac_c" 1>&6
21391 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21392 cat > conftest.$ac_ext <<EOF
21393 #line 21394 "configure"
21394 #include "confdefs.h"
21395 #include "confdefs.h"
21396 #include <sys/types.h>
21400 switch (0) case 0: case (sizeof (long) == $ac_size):;
21403 if { (eval echo configure:21404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21405 ac_cv_sizeof_long=$ac_size
21407 echo "configure: failed program was:" >&5
21408 cat conftest.$ac_ext >&5
21411 if test x$ac_cv_sizeof_long != x ; then break; fi
21416 if test x$ac_cv_sizeof_long = x ; then
21417 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21419 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21420 cat >> confdefs.h <<EOF
21421 #define SIZEOF_LONG $ac_cv_sizeof_long
21426 if test "$ac_cv_sizeof_int" -lt 4 ; then
21427 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21429 cat >> confdefs.h <<\EOF
21430 #define LBER_INT_T long
21434 cat >> confdefs.h <<\EOF
21435 #define LBER_INT_T int
21440 cat >> confdefs.h <<\EOF
21441 #define LBER_LEN_T long
21444 cat >> confdefs.h <<\EOF
21445 #define LBER_SOCKET_T int
21448 cat >> confdefs.h <<\EOF
21449 #define LBER_TAG_T long
21453 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21454 echo "configure:21455: checking for 8-bit clean memcmp" >&5
21455 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21456 echo $ac_n "(cached) $ac_c" 1>&6
21458 if test "$cross_compiling" = yes; then
21459 ac_cv_func_memcmp_clean=no
21461 cat > conftest.$ac_ext <<EOF
21462 #line 21463 "configure"
21463 #include "confdefs.h"
21467 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21468 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21472 if { (eval echo configure:21473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21474 ac_cv_func_memcmp_clean=yes
21476 echo "configure: failed program was:" >&5
21477 cat conftest.$ac_ext >&5
21479 ac_cv_func_memcmp_clean=no
21486 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21487 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21489 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21490 echo "configure:21491: checking for strftime" >&5
21491 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21492 echo $ac_n "(cached) $ac_c" 1>&6
21494 cat > conftest.$ac_ext <<EOF
21495 #line 21496 "configure"
21496 #include "confdefs.h"
21497 /* System header to define __stub macros and hopefully few prototypes,
21498 which can conflict with char strftime(); below. */
21499 #include <assert.h>
21500 /* Override any gcc2 internal prototype to avoid an error. */
21501 /* We use char because int might match the return type of a gcc2
21502 builtin and then its argument prototype would still apply. */
21508 /* The GNU C library defines this for functions which it implements
21509 to always fail with ENOSYS. Some functions are actually named
21510 something starting with __ and the normal name is an alias. */
21511 #if defined (__stub_strftime) || defined (__stub___strftime)
21519 if { (eval echo configure:21520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21521 eval "ac_cv_func_strftime=yes"
21523 echo "configure: failed program was:" >&5
21524 cat conftest.$ac_ext >&5
21526 eval "ac_cv_func_strftime=no"
21531 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21532 echo "$ac_t""yes" 1>&6
21533 cat >> confdefs.h <<\EOF
21534 #define HAVE_STRFTIME 1
21538 echo "$ac_t""no" 1>&6
21539 # strftime is in -lintl on SCO UNIX.
21540 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21541 echo "configure:21542: checking for strftime in -lintl" >&5
21542 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21543 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21544 echo $ac_n "(cached) $ac_c" 1>&6
21546 ac_save_LIBS="$LIBS"
21547 LIBS="-lintl $LIBS"
21548 cat > conftest.$ac_ext <<EOF
21549 #line 21550 "configure"
21550 #include "confdefs.h"
21551 /* Override any gcc2 internal prototype to avoid an error. */
21552 /* We use char because int might match the return type of a gcc2
21553 builtin and then its argument prototype would still apply. */
21560 if { (eval echo configure:21561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21562 eval "ac_cv_lib_$ac_lib_var=yes"
21564 echo "configure: failed program was:" >&5
21565 cat conftest.$ac_ext >&5
21567 eval "ac_cv_lib_$ac_lib_var=no"
21570 LIBS="$ac_save_LIBS"
21573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21574 echo "$ac_t""yes" 1>&6
21575 cat >> confdefs.h <<\EOF
21576 #define HAVE_STRFTIME 1
21579 LIBS="-lintl $LIBS"
21581 echo "$ac_t""no" 1>&6
21587 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21588 echo "configure:21589: checking for inet_aton()" >&5
21589 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21590 echo $ac_n "(cached) $ac_c" 1>&6
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21596 #ifdef HAVE_SYS_TYPES_H
21597 # include <sys/types.h>
21599 #ifdef HAVE_SYS_SOCKET_H
21600 # include <sys/socket.h>
21601 # ifdef HAVE_SYS_SELECT_H
21602 # include <sys/select.h>
21604 # include <netinet/in.h>
21605 # ifdef HAVE_ARPA_INET_H
21606 # include <arpa/inet.h>
21612 int rc = inet_aton( "255.255.255.255", &in );
21615 if { (eval echo configure:21616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21617 ol_cv_func_inet_aton=yes
21619 echo "configure: failed program was:" >&5
21620 cat conftest.$ac_ext >&5
21622 ol_cv_func_inet_aton=no
21627 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21628 if test $ol_cv_func_inet_aton != no; then
21629 cat >> confdefs.h <<\EOF
21630 #define HAVE_INET_ATON 1
21636 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21637 echo "configure:21638: checking for _spawnlp" >&5
21638 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21639 echo $ac_n "(cached) $ac_c" 1>&6
21641 cat > conftest.$ac_ext <<EOF
21642 #line 21643 "configure"
21643 #include "confdefs.h"
21644 /* System header to define __stub macros and hopefully few prototypes,
21645 which can conflict with char _spawnlp(); below. */
21646 #include <assert.h>
21647 /* Override any gcc2 internal prototype to avoid an error. */
21648 /* We use char because int might match the return type of a gcc2
21649 builtin and then its argument prototype would still apply. */
21655 /* The GNU C library defines this for functions which it implements
21656 to always fail with ENOSYS. Some functions are actually named
21657 something starting with __ and the normal name is an alias. */
21658 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21666 if { (eval echo configure:21667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21668 eval "ac_cv_func__spawnlp=yes"
21670 echo "configure: failed program was:" >&5
21671 cat conftest.$ac_ext >&5
21673 eval "ac_cv_func__spawnlp=no"
21678 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21679 echo "$ac_t""yes" 1>&6
21680 cat >> confdefs.h <<\EOF
21681 #define HAVE_SPAWNLP 1
21685 echo "$ac_t""no" 1>&6
21689 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21690 echo "configure:21691: checking for _snprintf" >&5
21691 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21692 echo $ac_n "(cached) $ac_c" 1>&6
21694 cat > conftest.$ac_ext <<EOF
21695 #line 21696 "configure"
21696 #include "confdefs.h"
21697 /* System header to define __stub macros and hopefully few prototypes,
21698 which can conflict with char _snprintf(); below. */
21699 #include <assert.h>
21700 /* Override any gcc2 internal prototype to avoid an error. */
21701 /* We use char because int might match the return type of a gcc2
21702 builtin and then its argument prototype would still apply. */
21708 /* The GNU C library defines this for functions which it implements
21709 to always fail with ENOSYS. Some functions are actually named
21710 something starting with __ and the normal name is an alias. */
21711 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21719 if { (eval echo configure:21720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21721 eval "ac_cv_func__snprintf=yes"
21723 echo "configure: failed program was:" >&5
21724 cat conftest.$ac_ext >&5
21726 eval "ac_cv_func__snprintf=no"
21731 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21732 echo "$ac_t""yes" 1>&6
21733 ac_cv_func_snprintf=yes
21734 cat >> confdefs.h <<\EOF
21735 #define snprintf _snprintf
21740 echo "$ac_t""no" 1>&6
21744 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21745 echo "configure:21746: checking for _vsnprintf" >&5
21746 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21747 echo $ac_n "(cached) $ac_c" 1>&6
21749 cat > conftest.$ac_ext <<EOF
21750 #line 21751 "configure"
21751 #include "confdefs.h"
21752 /* System header to define __stub macros and hopefully few prototypes,
21753 which can conflict with char _vsnprintf(); below. */
21754 #include <assert.h>
21755 /* Override any gcc2 internal prototype to avoid an error. */
21756 /* We use char because int might match the return type of a gcc2
21757 builtin and then its argument prototype would still apply. */
21763 /* The GNU C library defines this for functions which it implements
21764 to always fail with ENOSYS. Some functions are actually named
21765 something starting with __ and the normal name is an alias. */
21766 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21774 if { (eval echo configure:21775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21776 eval "ac_cv_func__vsnprintf=yes"
21778 echo "configure: failed program was:" >&5
21779 cat conftest.$ac_ext >&5
21781 eval "ac_cv_func__vsnprintf=no"
21786 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21787 echo "$ac_t""yes" 1>&6
21788 ac_cv_func_vsnprintf=yes
21789 cat >> confdefs.h <<\EOF
21790 #define vsnprintf _vsnprintf
21795 echo "$ac_t""no" 1>&6
21799 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21800 echo "configure:21801: checking for vprintf" >&5
21801 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21802 echo $ac_n "(cached) $ac_c" 1>&6
21804 cat > conftest.$ac_ext <<EOF
21805 #line 21806 "configure"
21806 #include "confdefs.h"
21807 /* System header to define __stub macros and hopefully few prototypes,
21808 which can conflict with char vprintf(); below. */
21809 #include <assert.h>
21810 /* Override any gcc2 internal prototype to avoid an error. */
21811 /* We use char because int might match the return type of a gcc2
21812 builtin and then its argument prototype would still apply. */
21818 /* The GNU C library defines this for functions which it implements
21819 to always fail with ENOSYS. Some functions are actually named
21820 something starting with __ and the normal name is an alias. */
21821 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21829 if { (eval echo configure:21830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 eval "ac_cv_func_vprintf=yes"
21833 echo "configure: failed program was:" >&5
21834 cat conftest.$ac_ext >&5
21836 eval "ac_cv_func_vprintf=no"
21841 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21842 echo "$ac_t""yes" 1>&6
21843 cat >> confdefs.h <<\EOF
21844 #define HAVE_VPRINTF 1
21848 echo "$ac_t""no" 1>&6
21851 if test "$ac_cv_func_vprintf" != yes; then
21852 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21853 echo "configure:21854: checking for _doprnt" >&5
21854 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21855 echo $ac_n "(cached) $ac_c" 1>&6
21857 cat > conftest.$ac_ext <<EOF
21858 #line 21859 "configure"
21859 #include "confdefs.h"
21860 /* System header to define __stub macros and hopefully few prototypes,
21861 which can conflict with char _doprnt(); below. */
21862 #include <assert.h>
21863 /* Override any gcc2 internal prototype to avoid an error. */
21864 /* We use char because int might match the return type of a gcc2
21865 builtin and then its argument prototype would still apply. */
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21882 if { (eval echo configure:21883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21884 eval "ac_cv_func__doprnt=yes"
21886 echo "configure: failed program was:" >&5
21887 cat conftest.$ac_ext >&5
21889 eval "ac_cv_func__doprnt=no"
21894 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21895 echo "$ac_t""yes" 1>&6
21896 cat >> confdefs.h <<\EOF
21897 #define HAVE_DOPRNT 1
21901 echo "$ac_t""no" 1>&6
21907 if test $ac_cv_func_vprintf = yes ; then
21908 for ac_func in snprintf vsnprintf
21910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21911 echo "configure:21912: checking for $ac_func" >&5
21912 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21913 echo $ac_n "(cached) $ac_c" 1>&6
21915 cat > conftest.$ac_ext <<EOF
21916 #line 21917 "configure"
21917 #include "confdefs.h"
21918 /* System header to define __stub macros and hopefully few prototypes,
21919 which can conflict with char $ac_func(); below. */
21920 #include <assert.h>
21921 /* Override any gcc2 internal prototype to avoid an error. */
21922 /* We use char because int might match the return type of a gcc2
21923 builtin and then its argument prototype would still apply. */
21929 /* The GNU C library defines this for functions which it implements
21930 to always fail with ENOSYS. Some functions are actually named
21931 something starting with __ and the normal name is an alias. */
21932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21940 if { (eval echo configure:21941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21942 eval "ac_cv_func_$ac_func=yes"
21944 echo "configure: failed program was:" >&5
21945 cat conftest.$ac_ext >&5
21947 eval "ac_cv_func_$ac_func=no"
21952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21953 echo "$ac_t""yes" 1>&6
21954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21955 cat >> confdefs.h <<EOF
21956 #define $ac_tr_func 1
21960 echo "$ac_t""no" 1>&6
22021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22022 echo "configure:22023: checking for $ac_func" >&5
22023 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22024 echo $ac_n "(cached) $ac_c" 1>&6
22026 cat > conftest.$ac_ext <<EOF
22027 #line 22028 "configure"
22028 #include "confdefs.h"
22029 /* System header to define __stub macros and hopefully few prototypes,
22030 which can conflict with char $ac_func(); below. */
22031 #include <assert.h>
22032 /* Override any gcc2 internal prototype to avoid an error. */
22033 /* We use char because int might match the return type of a gcc2
22034 builtin and then its argument prototype would still apply. */
22040 /* The GNU C library defines this for functions which it implements
22041 to always fail with ENOSYS. Some functions are actually named
22042 something starting with __ and the normal name is an alias. */
22043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22051 if { (eval echo configure:22052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22053 eval "ac_cv_func_$ac_func=yes"
22055 echo "configure: failed program was:" >&5
22056 cat conftest.$ac_ext >&5
22058 eval "ac_cv_func_$ac_func=no"
22063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22064 echo "$ac_t""yes" 1>&6
22065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22066 cat >> confdefs.h <<EOF
22067 #define $ac_tr_func 1
22071 echo "$ac_t""no" 1>&6
22076 for ac_func in getopt
22078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22079 echo "configure:22080: checking for $ac_func" >&5
22080 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22081 echo $ac_n "(cached) $ac_c" 1>&6
22083 cat > conftest.$ac_ext <<EOF
22084 #line 22085 "configure"
22085 #include "confdefs.h"
22086 /* System header to define __stub macros and hopefully few prototypes,
22087 which can conflict with char $ac_func(); below. */
22088 #include <assert.h>
22089 /* Override any gcc2 internal prototype to avoid an error. */
22090 /* We use char because int might match the return type of a gcc2
22091 builtin and then its argument prototype would still apply. */
22097 /* The GNU C library defines this for functions which it implements
22098 to always fail with ENOSYS. Some functions are actually named
22099 something starting with __ and the normal name is an alias. */
22100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22108 if { (eval echo configure:22109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22110 eval "ac_cv_func_$ac_func=yes"
22112 echo "configure: failed program was:" >&5
22113 cat conftest.$ac_ext >&5
22115 eval "ac_cv_func_$ac_func=no"
22120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22121 echo "$ac_t""yes" 1>&6
22122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22123 cat >> confdefs.h <<EOF
22124 #define $ac_tr_func 1
22128 echo "$ac_t""no" 1>&6
22129 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22135 if test "$ac_cv_func_getopt" != yes; then
22136 LIBSRCS="$LIBSRCS getopt.c"
22138 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22139 if test "$ac_cv_func_snprintf" != yes; then
22140 cat >> confdefs.h <<\EOF
22141 #define snprintf ber_pvt_snprintf
22145 if test "$ac_cv_func_vsnprintf" != yes; then
22146 cat >> confdefs.h <<\EOF
22147 #define vsnprintf ber_pvt_vsnprintf
22153 # Check Configuration
22154 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22155 echo "configure:22156: checking declaration of sys_errlist" >&5
22156 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22157 echo $ac_n "(cached) $ac_c" 1>&6
22160 cat > conftest.$ac_ext <<EOF
22161 #line 22162 "configure"
22162 #include "confdefs.h"
22165 #include <sys/types.h>
22168 #include <stdlib.h>
22171 char *c = (char *) *sys_errlist
22174 if { (eval echo configure:22175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22176 ol_cv_dcl_sys_errlist=yes
22177 ol_cv_have_sys_errlist=yes
22179 echo "configure: failed program was:" >&5
22180 cat conftest.$ac_ext >&5
22182 ol_cv_dcl_sys_errlist=no
22187 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22189 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22190 if test $ol_cv_dcl_sys_errlist = no ; then
22191 cat >> confdefs.h <<\EOF
22192 #define DECL_SYS_ERRLIST 1
22196 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22197 echo "configure:22198: checking existence of sys_errlist" >&5
22198 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22199 echo $ac_n "(cached) $ac_c" 1>&6
22202 cat > conftest.$ac_ext <<EOF
22203 #line 22204 "configure"
22204 #include "confdefs.h"
22207 char *c = (char *) *sys_errlist
22210 if { (eval echo configure:22211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22212 ol_cv_have_sys_errlist=yes
22214 echo "configure: failed program was:" >&5
22215 cat conftest.$ac_ext >&5
22217 ol_cv_have_sys_errlist=no
22222 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22224 if test $ol_cv_have_sys_errlist = yes ; then
22225 cat >> confdefs.h <<\EOF
22226 #define HAVE_SYS_ERRLIST 1
22233 if test "$ol_enable_debug" != no ; then
22234 cat >> confdefs.h <<\EOF
22235 #define LDAP_DEBUG 1
22239 if test "$ol_enable_syslog" = yes ; then
22240 cat >> confdefs.h <<\EOF
22241 #define LDAP_SYSLOG 1
22245 if test "$ol_enable_cache" = no ; then
22246 cat >> confdefs.h <<\EOF
22247 #define LDAP_NOCACHE 1
22251 if test "$ol_link_kbind" != no ; then
22252 cat >> confdefs.h <<\EOF
22253 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22257 if test "$ol_enable_proctitle" != no ; then
22258 cat >> confdefs.h <<\EOF
22259 #define LDAP_PROCTITLE 1
22263 if test "$ol_enable_referrals" != no ; then
22264 cat >> confdefs.h <<\EOF
22265 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22269 if test "$ol_enable_local" != no; then
22270 cat >> confdefs.h <<\EOF
22271 #define LDAP_PF_LOCAL 1
22275 if test "$ol_link_ipv6" != no; then
22276 cat >> confdefs.h <<\EOF
22277 #define LDAP_PF_INET6 1
22281 if test "$ol_enable_cleartext" != no ; then
22282 cat >> confdefs.h <<\EOF
22283 #define SLAPD_CLEARTEXT 1
22287 if test "$ol_enable_crypt" != no ; then
22288 cat >> confdefs.h <<\EOF
22289 #define SLAPD_CRYPT 1
22293 if test "$ol_link_kpasswd" != no ; then
22294 cat >> confdefs.h <<\EOF
22295 #define SLAPD_KPASSWD 1
22299 if test "$ol_link_spasswd" != no ; then
22300 cat >> confdefs.h <<\EOF
22301 #define SLAPD_SPASSWD 1
22305 if test "$ol_enable_multimaster" != no ; then
22306 cat >> confdefs.h <<\EOF
22307 #define SLAPD_MULTIMASTER 1
22311 if test "$ol_enable_phonetic" != no ; then
22312 cat >> confdefs.h <<\EOF
22313 #define SLAPD_PHONETIC 1
22317 if test "$ol_enable_rlookups" != no ; then
22318 cat >> confdefs.h <<\EOF
22319 #define SLAPD_RLOOKUPS 1
22323 if test "$ol_enable_aci" != no ; then
22324 cat >> confdefs.h <<\EOF
22325 #define SLAPD_ACI_ENABLED 1
22330 if test "$ol_link_modules" != no ; then
22331 cat >> confdefs.h <<\EOF
22332 #define SLAPD_MODULES 1
22336 SLAPD_MODULES_LDFLAGS="-dlopen self"
22339 if test "$ol_enable_bdb" != no ; then
22340 cat >> confdefs.h <<\EOF
22341 #define SLAPD_BDB 1
22346 if test "$ol_with_bdb_module" != static ; then
22347 cat >> confdefs.h <<\EOF
22348 #define SLAPD_BDB_DYNAMIC 1
22352 BUILD_BDB_DYNAMIC=shared
22353 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22355 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22359 if test "$ol_link_dnssrv" != no ; then
22360 cat >> confdefs.h <<\EOF
22361 #define SLAPD_DNSSRV 1
22366 if test "$ol_with_dnssrv_module" != static ; then
22367 cat >> confdefs.h <<\EOF
22368 #define SLAPD_DNSSRV_DYNAMIC 1
22372 BUILD_DNSSRV_DYNAMIC=shared
22373 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22375 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22379 if test "$ol_enable_ldap" != no ; then
22380 cat >> confdefs.h <<\EOF
22381 #define SLAPD_LDAP 1
22386 if test "$ol_with_ldap_module" != static ; then
22387 cat >> confdefs.h <<\EOF
22388 #define SLAPD_LDAP_DYNAMIC 1
22392 BUILD_LDAP_DYNAMIC=shared
22393 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22395 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22399 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22400 cat >> confdefs.h <<\EOF
22401 #define SLAPD_LDBM 1
22406 if test "$ol_with_ldbm_module" != static ; then
22407 cat >> confdefs.h <<\EOF
22408 #define SLAPD_LDBM_DYNAMIC 1
22412 BUILD_LDBM_DYNAMIC=shared
22413 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22415 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22419 if test "$ol_enable_meta" != no ; then
22420 if test "$ol_enable_ldap" = no ; then
22421 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22423 if test "$ol_enable_rewrite" = no ; then
22424 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22426 cat >> confdefs.h <<\EOF
22427 #define SLAPD_META 1
22434 if test "$ol_with_meta_module" != static ; then
22435 cat >> confdefs.h <<\EOF
22436 #define SLAPD_META_DYNAMIC 1
22440 BUILD_META_DYNAMIC=shared
22441 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22443 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22447 if test "$ol_enable_monitor" != no ; then
22448 cat >> confdefs.h <<\EOF
22449 #define SLAPD_MONITOR 1
22454 if test "$ol_with_monitor_module" != static ; then
22455 cat >> confdefs.h <<\EOF
22456 #define SLAPD_MONITOR_DYNAMIC 1
22460 BUILD_MONITOR_DYNAMIC=shared
22461 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22463 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22467 if test "$ol_enable_null" != no ; then
22468 cat >> confdefs.h <<\EOF
22469 #define SLAPD_NULL 1
22474 if test "$ol_with_null_module" != static ; then
22475 cat >> confdefs.h <<\EOF
22476 #define SLAPD_NULL_DYNAMIC 1
22480 BUILD_NULL_DYNAMIC=shared
22481 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22483 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22487 if test "$ol_enable_passwd" != no ; then
22488 cat >> confdefs.h <<\EOF
22489 #define SLAPD_PASSWD 1
22494 if test "$ol_with_passwd_module" != static ; then
22495 cat >> confdefs.h <<\EOF
22496 #define SLAPD_PASSWD_DYNAMIC 1
22500 BUILD_PASSWD_DYNAMIC=shared
22501 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22503 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22507 if test "$ol_link_perl" != no ; then
22508 cat >> confdefs.h <<\EOF
22509 #define SLAPD_PERL 1
22514 if test "$ol_with_perl_module" != static ; then
22515 cat >> confdefs.h <<\EOF
22516 #define SLAPD_PERL_DYNAMIC 1
22520 BUILD_PERL_DYNAMIC=shared
22521 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22523 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22527 if test "$ol_enable_shell" != no ; then
22528 if test "$ol_link_thread" != no ; then
22529 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
22531 cat >> confdefs.h <<\EOF
22532 #define SLAPD_SHELL 1
22537 if test "$ol_with_shell_module" != static ; then
22538 cat >> confdefs.h <<\EOF
22539 #define SLAPD_SHELL_DYNAMIC 1
22543 BUILD_SHELL_DYNAMIC=shared
22544 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22546 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22550 if test "$ol_enable_tcl" != no ; then
22551 cat >> confdefs.h <<\EOF
22552 #define SLAPD_TCL 1
22557 if test "$ol_with_tcl_module" != static; then
22558 cat >> confdefs.h <<\EOF
22559 #define SLAPD_TCL_DYNAMIC 1
22563 BUILD_TCL_DYNAMIC=shared
22564 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22566 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22570 if test "$ol_link_sql" != no ; then
22571 cat >> confdefs.h <<\EOF
22572 #define SLAPD_SQL 1
22577 if test "$ol_with_sql_module" != static; then
22578 cat >> confdefs.h <<\EOF
22579 #define SLAPD_SQL_DYNAMIC 1
22583 BUILD_SQL_DYNAMIC=shared
22584 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22586 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22590 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22591 $BUILD_SLAPD = yes ; then
22595 if test "$ol_enable_rewrite" != no ; then
22596 cat >> confdefs.h <<\EOF
22597 #define ENABLE_REWRITE 1
22605 if test "$ac_cv_mingw32" = yes ; then
22607 SLAPD_MODULES_LDFLAGS=
22612 if test -z "$SLAPD_STATIC_BACKENDS"; then
22613 SLAPD_NO_STATIC='#'
22685 # Check whether --with-xxinstall or --without-xxinstall was given.
22686 if test "${with_xxinstall+set}" = set; then
22687 withval="$with_xxinstall"
22695 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22698 # Let make expand exec_prefix.
22699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22701 # Any assignment to VPATH causes Sun make to only execute
22702 # the first set of double-colon rules, so remove it if not needed.
22703 # If there is a colon in the path, we need to keep it.
22704 if test "x$srcdir" = x.; then
22705 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22708 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22710 DEFS=-DHAVE_CONFIG_H
22712 # Without the "./", some shells look in PATH for config.status.
22713 : ${CONFIG_STATUS=./config.status}
22715 echo creating $CONFIG_STATUS
22716 rm -f $CONFIG_STATUS
22717 cat > $CONFIG_STATUS <<EOF
22719 # Generated automatically by configure.
22720 # Run this file to recreate the current configuration.
22721 # This directory was configured as follows,
22722 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22724 # $0 $ac_configure_args
22726 # Compiler output produced by configure, useful for debugging
22727 # configure, is in ./config.log if it exists.
22729 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22732 case "\$ac_option" in
22733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22734 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22735 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22736 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22737 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22739 -help | --help | --hel | --he | --h)
22740 echo "\$ac_cs_usage"; exit 0 ;;
22741 *) echo "\$ac_cs_usage"; exit 1 ;;
22745 ac_given_srcdir=$srcdir
22746 ac_given_INSTALL="$INSTALL"
22748 trap 'rm -fr `echo "\
22749 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22750 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22751 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22752 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22753 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22754 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22755 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22756 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22757 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22758 include/Makefile:build/top.mk:include/Makefile.in \
22759 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22760 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22761 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22762 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22763 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22764 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22765 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22766 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22767 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22768 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22769 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22770 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22771 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22772 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22773 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22774 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22775 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22776 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22777 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22778 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22779 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22780 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22781 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22782 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22783 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22784 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22785 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22786 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22787 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22788 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22790 cat >> $CONFIG_STATUS <<EOF
22792 # Protect against being on the right side of a sed subst in config.status.
22793 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22794 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22798 s%@CFLAGS@%$CFLAGS%g
22799 s%@CPPFLAGS@%$CPPFLAGS%g
22800 s%@CXXFLAGS@%$CXXFLAGS%g
22801 s%@FFLAGS@%$FFLAGS%g
22803 s%@LDFLAGS@%$LDFLAGS%g
22805 s%@exec_prefix@%$exec_prefix%g
22806 s%@prefix@%$prefix%g
22807 s%@program_transform_name@%$program_transform_name%g
22808 s%@bindir@%$bindir%g
22809 s%@sbindir@%$sbindir%g
22810 s%@libexecdir@%$libexecdir%g
22811 s%@datadir@%$datadir%g
22812 s%@sysconfdir@%$sysconfdir%g
22813 s%@sharedstatedir@%$sharedstatedir%g
22814 s%@localstatedir@%$localstatedir%g
22815 s%@libdir@%$libdir%g
22816 s%@includedir@%$includedir%g
22817 s%@oldincludedir@%$oldincludedir%g
22818 s%@infodir@%$infodir%g
22819 s%@mandir@%$mandir%g
22821 s%@host_alias@%$host_alias%g
22822 s%@host_cpu@%$host_cpu%g
22823 s%@host_vendor@%$host_vendor%g
22824 s%@host_os@%$host_os%g
22825 s%@target@%$target%g
22826 s%@target_alias@%$target_alias%g
22827 s%@target_cpu@%$target_cpu%g
22828 s%@target_vendor@%$target_vendor%g
22829 s%@target_os@%$target_os%g
22831 s%@build_alias@%$build_alias%g
22832 s%@build_cpu@%$build_cpu%g
22833 s%@build_vendor@%$build_vendor%g
22834 s%@build_os@%$build_os%g
22835 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22836 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22837 s%@INSTALL_DATA@%$INSTALL_DATA%g
22838 s%@PACKAGE@%$PACKAGE%g
22839 s%@VERSION@%$VERSION%g
22840 s%@ACLOCAL@%$ACLOCAL%g
22841 s%@AUTOCONF@%$AUTOCONF%g
22842 s%@AUTOMAKE@%$AUTOMAKE%g
22843 s%@AUTOHEADER@%$AUTOHEADER%g
22844 s%@MAKEINFO@%$MAKEINFO%g
22845 s%@install_sh@%$install_sh%g
22848 s%@AMTARFLAGS@%$AMTARFLAGS%g
22849 s%@SET_MAKE@%$SET_MAKE%g
22850 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22851 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
22852 s%@top_builddir@%$top_builddir%g
22853 s%@ldap_subdir@%$ldap_subdir%g
22857 s%@OBJEXT@%$OBJEXT%g
22858 s%@EXEEXT@%$EXEEXT%g
22860 s%@RANLIB@%$RANLIB%g
22862 s%@DLLTOOL@%$DLLTOOL%g
22864 s%@OBJDUMP@%$OBJDUMP%g
22866 s%@LIBTOOL@%$LIBTOOL%g
22868 s%@PERLBIN@%$PERLBIN%g
22869 s%@OL_MKDEP@%$OL_MKDEP%g
22870 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22871 s%@LIBOBJS@%$LIBOBJS%g
22872 s%@LIBSRCS@%$LIBSRCS%g
22874 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22875 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22876 s%@BUILD_BDB@%$BUILD_BDB%g
22877 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22878 s%@BUILD_LDAP@%$BUILD_LDAP%g
22879 s%@BUILD_LDBM@%$BUILD_LDBM%g
22880 s%@BUILD_META@%$BUILD_META%g
22881 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22882 s%@BUILD_NULL@%$BUILD_NULL%g
22883 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22884 s%@BUILD_PERL@%$BUILD_PERL%g
22885 s%@BUILD_SHELL@%$BUILD_SHELL%g
22886 s%@BUILD_SQL@%$BUILD_SQL%g
22887 s%@BUILD_TCL@%$BUILD_TCL%g
22888 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22889 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22890 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22891 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22892 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22893 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22894 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22895 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22896 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22897 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22898 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22899 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22900 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22901 s%@LDAP_LIBS@%$LDAP_LIBS%g
22902 s%@LDIF_LIBS@%$LDIF_LIBS%g
22903 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22904 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22905 s%@LDBM_LIBS@%$LDBM_LIBS%g
22906 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22907 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22908 s%@WRAP_LIBS@%$WRAP_LIBS%g
22909 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22910 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22911 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22912 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
22913 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22914 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22915 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22916 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22917 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22918 s%@KRB4_LIBS@%$KRB4_LIBS%g
22919 s%@KRB5_LIBS@%$KRB5_LIBS%g
22920 s%@READLINE_LIBS@%$READLINE_LIBS%g
22921 s%@SASL_LIBS@%$SASL_LIBS%g
22922 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22923 s%@TLS_LIBS@%$TLS_LIBS%g
22924 s%@MODULES_LIBS@%$MODULES_LIBS%g
22925 s%@AUTH_LIBS@%$AUTH_LIBS%g
22926 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22927 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22928 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22929 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22934 cat >> $CONFIG_STATUS <<\EOF
22936 # Split the substitutions into bite-sized pieces for seds with
22937 # small command number limits, like on Digital OSF/1 and HP-UX.
22938 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22939 ac_file=1 # Number of current file.
22940 ac_beg=1 # First line for current file.
22941 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22944 while $ac_more_lines; do
22945 if test $ac_beg -gt 1; then
22946 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22948 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22950 if test ! -s conftest.s$ac_file; then
22951 ac_more_lines=false
22952 rm -f conftest.s$ac_file
22954 if test -z "$ac_sed_cmds"; then
22955 ac_sed_cmds="sed -f conftest.s$ac_file"
22957 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22959 ac_file=`expr $ac_file + 1`
22961 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22964 if test -z "$ac_sed_cmds"; then
22969 cat >> $CONFIG_STATUS <<EOF
22971 CONFIG_FILES=\${CONFIG_FILES-"\
22972 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22973 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22974 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22975 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22976 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22977 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22978 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22979 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22980 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22981 include/Makefile:build/top.mk:include/Makefile.in \
22982 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22983 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22984 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22985 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22986 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22987 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22988 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22989 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22990 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22991 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22992 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22993 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22994 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22995 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22996 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22997 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22998 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22999 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23000 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23001 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23002 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23003 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23004 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23005 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23006 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23007 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23008 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23009 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23010 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23013 cat >> $CONFIG_STATUS <<\EOF
23014 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23015 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23017 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23018 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23019 *) ac_file_in="${ac_file}.in" ;;
23022 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23024 # Remove last slash and all that follows it. Not all systems have dirname.
23025 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23026 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23027 # The file is in a subdirectory.
23028 test ! -d "$ac_dir" && mkdir "$ac_dir"
23029 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23030 # A "../" for each directory in $ac_dir_suffix.
23031 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23033 ac_dir_suffix= ac_dots=
23036 case "$ac_given_srcdir" in
23038 if test -z "$ac_dots"; then top_srcdir=.
23039 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23040 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23041 *) # Relative path.
23042 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23043 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23046 case "$ac_given_INSTALL" in
23047 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23048 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23051 echo creating "$ac_file"
23053 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23055 *[Mm]akefile*) ac_comsub="1i\\
23056 # $configure_input" ;;
23060 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23062 s%@configure_input@%$configure_input%g
23063 s%@srcdir@%$srcdir%g
23064 s%@top_srcdir@%$top_srcdir%g
23065 s%@INSTALL@%$INSTALL%g
23066 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23070 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23071 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23073 # ac_d sets the value in "#define NAME VALUE" lines.
23074 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23075 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23078 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23079 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23080 ac_uB='\([ ]\)%\1#\2define\3'
23083 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23084 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23085 ac_eB='$%\1#\2define\3'
23089 if test "${CONFIG_HEADERS+set}" != set; then
23091 cat >> $CONFIG_STATUS <<EOF
23092 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23094 cat >> $CONFIG_STATUS <<\EOF
23096 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23097 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23099 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23100 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23101 *) ac_file_in="${ac_file}.in" ;;
23104 echo creating $ac_file
23106 rm -f conftest.frag conftest.in conftest.out
23107 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23108 cat $ac_file_inputs > conftest.in
23112 # Transform confdefs.h into a sed script conftest.vals that substitutes
23113 # the proper values into config.h.in to produce config.h. And first:
23114 # Protect against being on the right side of a sed subst in config.status.
23115 # Protect against being in an unquoted here document in config.status.
23116 rm -f conftest.vals
23117 cat > conftest.hdr <<\EOF
23120 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23124 sed -n -f conftest.hdr confdefs.h > conftest.vals
23127 # This sed command replaces #undef with comments. This is necessary, for
23128 # example, in the case of _POSIX_SOURCE, which is predefined and required
23129 # on some systems where configure will not decide to define it.
23130 cat >> conftest.vals <<\EOF
23131 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23134 # Break up conftest.vals because some shells have a limit on
23135 # the size of here documents, and old seds have small limits too.
23137 rm -f conftest.tail
23140 ac_lines=`grep -c . conftest.vals`
23141 # grep -c gives empty output for an empty file on some AIX systems.
23142 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23143 # Write a limited-size here document to conftest.frag.
23144 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23145 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23147 sed -f conftest.frag conftest.in > conftest.out
23149 mv conftest.out conftest.in
23150 ' >> $CONFIG_STATUS
23151 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23152 rm -f conftest.vals
23153 mv conftest.tail conftest.vals
23155 rm -f conftest.vals
23157 cat >> $CONFIG_STATUS <<\EOF
23158 rm -f conftest.frag conftest.h
23159 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23160 cat conftest.in >> conftest.h
23162 if cmp -s $ac_file conftest.h 2>/dev/null; then
23163 echo "$ac_file is unchanged"
23166 # Remove last slash and all that follows it. Not all systems have dirname.
23167 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23168 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23169 # The file is in a subdirectory.
23170 test ! -d "$ac_dir" && mkdir "$ac_dir"
23173 mv conftest.h $ac_file
23178 cat >> $CONFIG_STATUS <<EOF
23181 cat >> $CONFIG_STATUS <<\EOF
23184 echo Please run \"make depend\" to build dependencies
23188 chmod +x $CONFIG_STATUS
23189 rm -fr confdefs* $ac_clean_files
23190 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1