mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
16655 lines
413 KiB
Bash
Executable File
16655 lines
413 KiB
Bash
Executable File
#! /bin/sh
|
|
# $OpenLDAP$
|
|
# from OpenLDAP: pkg/ldap/configure.in,v 1.323 2000/08/29 22:03:29 kurt Exp
|
|
|
|
# Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms are permitted only
|
|
# as authorized by the OpenLDAP Public License. A copy of this
|
|
# license is available at http://www.OpenLDAP.org/license.html or
|
|
# in file LICENSE in the top-level directory of the distribution.
|
|
|
|
echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
|
|
echo "Restrictions apply, see COPYRIGHT and LICENSE files."
|
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
|
# Generated automatically using autoconf version 2.13.1
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|
#
|
|
# This configure script is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy, distribute and modify it.
|
|
|
|
# Defaults:
|
|
ac_help=
|
|
ac_default_prefix=/usr/local
|
|
# Any additions from configure.in:
|
|
ac_default_prefix=/usr/local
|
|
ac_help="$ac_help
|
|
--with-subdir=DIR change default subdirectory used for installs"
|
|
ac_help="$ac_help
|
|
--enable-debug enable debugging (yes)"
|
|
ac_help="$ac_help
|
|
--enable-syslog enable syslog support (auto)"
|
|
ac_help="$ac_help
|
|
--enable-proctitle enable proctitle support (yes)"
|
|
ac_help="$ac_help
|
|
--enable-cache enable caching (yes)"
|
|
ac_help="$ac_help
|
|
--enable-referrals enable V2 Referrals extension (yes)"
|
|
ac_help="$ac_help
|
|
--enable-kbind enable V2 Kerberos IV bind (auto)"
|
|
ac_help="$ac_help
|
|
--enable-ipv6 enable IPv6 support (auto)"
|
|
ac_help="$ac_help
|
|
--enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
|
|
ac_help="$ac_help
|
|
--enable-x-compile enable cross compiling (no)"
|
|
ac_help="$ac_help
|
|
--with-cyrus-sasl with Cyrus SASL support (auto)"
|
|
ac_help="$ac_help
|
|
--with-fetch with fetch URL support (auto)"
|
|
ac_help="$ac_help
|
|
--with-kerberos with support (auto)"
|
|
ac_help="$ac_help
|
|
--with-readline with readline support (auto)"
|
|
ac_help="$ac_help
|
|
--with-threads with threads (auto)"
|
|
ac_help="$ac_help
|
|
--with-tls with TLS/SSL support (auto)"
|
|
ac_help="$ac_help
|
|
--with-yielding-select with implicitly yielding select (auto)"
|
|
ac_help="$ac_help
|
|
SLAPD (Standalone LDAP Daemon) Options:"
|
|
ac_help="$ac_help
|
|
--enable-slapd enable building slapd (yes)"
|
|
ac_help="$ac_help
|
|
--enable-cleartext enable cleartext passwords (yes)"
|
|
ac_help="$ac_help
|
|
--enable-crypt enable crypt(3) passwords (auto)"
|
|
ac_help="$ac_help
|
|
--enable-kpasswd enable kerberos password verification (no)"
|
|
ac_help="$ac_help
|
|
--enable-spasswd enable (Cyrus) SASL password verification (no)"
|
|
ac_help="$ac_help
|
|
--enable-modules enable dynamic module support (no)"
|
|
ac_help="$ac_help
|
|
--enable-multimaster enable multimaster replication (no)"
|
|
ac_help="$ac_help
|
|
--enable-phonetic enable phonetic/soundex (no)"
|
|
ac_help="$ac_help
|
|
--enable-rlookups enable reverse lookups (auto)"
|
|
ac_help="$ac_help
|
|
--enable-aci enable per-object ACIs (no)"
|
|
ac_help="$ac_help
|
|
--enable-wrappers enable tcp wrapper support (no)"
|
|
ac_help="$ac_help
|
|
--enable-dynamic enable linking built binaries with dynamic libs (no)"
|
|
ac_help="$ac_help
|
|
--enable-dnssrv enable dnssrv backend (no)"
|
|
ac_help="$ac_help
|
|
--with-dnssrv-module module type (static)"
|
|
ac_help="$ac_help
|
|
--enable-ldap enable ldap backend (no)"
|
|
ac_help="$ac_help
|
|
--with-ldap-module module type (static)"
|
|
ac_help="$ac_help
|
|
--enable-ldbm enable ldbm backend (yes)"
|
|
ac_help="$ac_help
|
|
--with-ldbm-api with LDBM API (auto)"
|
|
ac_help="$ac_help
|
|
--with-ldbm-module module type (static)"
|
|
ac_help="$ac_help
|
|
--with-ldbm-type use LDBM type (auto)"
|
|
ac_help="$ac_help
|
|
--enable-passwd enable passwd backend (no)"
|
|
ac_help="$ac_help
|
|
--with-passwd-module module type (static)"
|
|
ac_help="$ac_help
|
|
--enable-perl enable perl backend (no)"
|
|
ac_help="$ac_help
|
|
--with-perl-module module type (static)"
|
|
ac_help="$ac_help
|
|
--enable-shell enable shell backend (no)"
|
|
ac_help="$ac_help
|
|
--with-shell-module module type (static)"
|
|
ac_help="$ac_help
|
|
--enable-sql enable sql backend (no)"
|
|
ac_help="$ac_help
|
|
--with-sql-module module type (static)"
|
|
ac_help="$ac_help
|
|
--enable-tcl enable tcl backend (no)"
|
|
ac_help="$ac_help
|
|
--with-tcl-module module type (static)"
|
|
ac_help="$ac_help
|
|
SLURPD (Replication Daemon) Options:"
|
|
ac_help="$ac_help
|
|
--enable-slurpd enable building slurpd (auto)"
|
|
ac_help="$ac_help
|
|
Library Generation & Linking Options"
|
|
ac_help="$ac_help
|
|
--enable-static[=PKGS] build static libraries [default=yes]"
|
|
ac_help="$ac_help
|
|
--enable-shared[=PKGS] build shared libraries [default=yes]"
|
|
ac_help="$ac_help
|
|
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
|
ac_help="$ac_help
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
|
ac_help="$ac_help
|
|
--disable-libtool-lock avoid locking (might break parallel builds)"
|
|
|
|
# Initialize some variables set by options.
|
|
# The variables have the same names as the options, with
|
|
# dashes changed to underlines.
|
|
build=NONE
|
|
cache_file=./config.cache
|
|
exec_prefix=NONE
|
|
host=NONE
|
|
no_create=
|
|
nonopt=NONE
|
|
no_recursion=
|
|
prefix=NONE
|
|
program_prefix=NONE
|
|
program_suffix=NONE
|
|
program_transform_name=s,x,x,
|
|
silent=
|
|
site=
|
|
srcdir=
|
|
target=NONE
|
|
verbose=
|
|
x_includes=NONE
|
|
x_libraries=NONE
|
|
bindir='${exec_prefix}/bin'
|
|
sbindir='${exec_prefix}/sbin'
|
|
libexecdir='${exec_prefix}/libexec'
|
|
datadir='${prefix}/share'
|
|
sysconfdir='${prefix}/etc'
|
|
sharedstatedir='${prefix}/com'
|
|
localstatedir='${prefix}/var'
|
|
libdir='${exec_prefix}/lib'
|
|
includedir='${prefix}/include'
|
|
oldincludedir='/usr/include'
|
|
infodir='${prefix}/info'
|
|
mandir='${prefix}/man'
|
|
|
|
# Initialize some other variables.
|
|
subdirs=
|
|
MFLAGS= MAKEFLAGS=
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
# Maximum number of lines to put in a shell here document.
|
|
ac_max_here_lines=12
|
|
|
|
ac_prev=
|
|
for ac_option
|
|
do
|
|
|
|
# If the previous option needs an argument, assign it.
|
|
if test -n "$ac_prev"; then
|
|
eval "$ac_prev=\$ac_option"
|
|
ac_prev=
|
|
continue
|
|
fi
|
|
|
|
case "$ac_option" in
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
*) ac_optarg= ;;
|
|
esac
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
case "$ac_option" in
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
ac_prev=bindir ;;
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
bindir="$ac_optarg" ;;
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
|
ac_prev=build ;;
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
build="$ac_optarg" ;;
|
|
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
ac_prev=cache_file ;;
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
cache_file="$ac_optarg" ;;
|
|
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
ac_prev=datadir ;;
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
| --da=*)
|
|
datadir="$ac_optarg" ;;
|
|
|
|
-disable-* | --disable-*)
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
fi
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
eval "enable_${ac_feature}=no" ;;
|
|
|
|
-enable-* | --enable-*)
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
fi
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
case "$ac_option" in
|
|
*=*) ;;
|
|
*) ac_optarg=yes ;;
|
|
esac
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
| --exec | --exe | --ex)
|
|
ac_prev=exec_prefix ;;
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
| --exec=* | --exe=* | --ex=*)
|
|
exec_prefix="$ac_optarg" ;;
|
|
|
|
-gas | --gas | --ga | --g)
|
|
# Obsolete; use --with-gas.
|
|
with_gas=yes ;;
|
|
|
|
-help | --help | --hel | --he)
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
cat << EOF
|
|
Usage: configure [options] [host]
|
|
Options: [defaults in brackets after descriptions]
|
|
Configuration:
|
|
--cache-file=FILE cache test results in FILE
|
|
--help print this message
|
|
--no-create do not create output files
|
|
--quiet, --silent do not print \`checking...' messages
|
|
--version print the version of autoconf that created configure
|
|
Directory and file names:
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
[$ac_default_prefix]
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
[same as prefix]
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
|
[PREFIX/share]
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|
[PREFIX/com]
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
|
--program-transform-name=PROGRAM
|
|
run sed PROGRAM on installed program names
|
|
EOF
|
|
cat << EOF
|
|
Host type:
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
|
--host=HOST configure for HOST [guessed]
|
|
--target=TARGET configure for TARGET [TARGET=HOST]
|
|
Features and packages:
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
--x-includes=DIR X include files are in DIR
|
|
--x-libraries=DIR X library files are in DIR
|
|
EOF
|
|
if test -n "$ac_help"; then
|
|
echo "--enable and --with options recognized:$ac_help"
|
|
fi
|
|
exit 0 ;;
|
|
|
|
-host | --host | --hos | --ho)
|
|
ac_prev=host ;;
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
|
host="$ac_optarg" ;;
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
| --includ | --inclu | --incl | --inc)
|
|
ac_prev=includedir ;;
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
includedir="$ac_optarg" ;;
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
ac_prev=infodir ;;
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
infodir="$ac_optarg" ;;
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
ac_prev=libdir ;;
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
libdir="$ac_optarg" ;;
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
| --libexe | --libex | --libe)
|
|
ac_prev=libexecdir ;;
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
| --libexe=* | --libex=* | --libe=*)
|
|
libexecdir="$ac_optarg" ;;
|
|
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
| --localstate | --localstat | --localsta | --localst \
|
|
| --locals | --local | --loca | --loc | --lo)
|
|
ac_prev=localstatedir ;;
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|
localstatedir="$ac_optarg" ;;
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
ac_prev=mandir ;;
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
mandir="$ac_optarg" ;;
|
|
|
|
-nfp | --nfp | --nf)
|
|
# Obsolete; use --without-fp.
|
|
with_fp=no ;;
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
| --no-cr | --no-c)
|
|
no_create=yes ;;
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
no_recursion=yes ;;
|
|
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
| --oldin | --oldi | --old | --ol | --o)
|
|
ac_prev=oldincludedir ;;
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
oldincludedir="$ac_optarg" ;;
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
ac_prev=prefix ;;
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
prefix="$ac_optarg" ;;
|
|
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
| --program-pre | --program-pr | --program-p)
|
|
ac_prev=program_prefix ;;
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
program_prefix="$ac_optarg" ;;
|
|
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
| --program-suf | --program-su | --program-s)
|
|
ac_prev=program_suffix ;;
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
program_suffix="$ac_optarg" ;;
|
|
|
|
-program-transform-name | --program-transform-name \
|
|
| --program-transform-nam | --program-transform-na \
|
|
| --program-transform-n | --program-transform- \
|
|
| --program-transform | --program-transfor \
|
|
| --program-transfo | --program-transf \
|
|
| --program-trans | --program-tran \
|
|
| --progr-tra | --program-tr | --program-t)
|
|
ac_prev=program_transform_name ;;
|
|
-program-transform-name=* | --program-transform-name=* \
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
|
| --program-transform-n=* | --program-transform-=* \
|
|
| --program-transform=* | --program-transfor=* \
|
|
| --program-transfo=* | --program-transf=* \
|
|
| --program-trans=* | --program-tran=* \
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
|
program_transform_name="$ac_optarg" ;;
|
|
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
silent=yes ;;
|
|
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
ac_prev=sbindir ;;
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
| --sbi=* | --sb=*)
|
|
sbindir="$ac_optarg" ;;
|
|
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
|
| --sha | --sh)
|
|
ac_prev=sharedstatedir ;;
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
| --sha=* | --sh=*)
|
|
sharedstatedir="$ac_optarg" ;;
|
|
|
|
-site | --site | --sit)
|
|
ac_prev=site ;;
|
|
-site=* | --site=* | --sit=*)
|
|
site="$ac_optarg" ;;
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
ac_prev=srcdir ;;
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
srcdir="$ac_optarg" ;;
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
ac_prev=sysconfdir ;;
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
sysconfdir="$ac_optarg" ;;
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
|
ac_prev=target ;;
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
target="$ac_optarg" ;;
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
verbose=yes ;;
|
|
|
|
-version | --version | --versio | --versi | --vers)
|
|
echo "configure generated by autoconf version 2.13.1"
|
|
exit 0 ;;
|
|
|
|
-with-* | --with-*)
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
fi
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
case "$ac_option" in
|
|
*=*) ;;
|
|
*) ac_optarg=yes ;;
|
|
esac
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
|
|
|
-without-* | --without-*)
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
# Reject names that are not valid shell variable names.
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
fi
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
eval "with_${ac_package}=no" ;;
|
|
|
|
--x)
|
|
# Obsolete; use --with-x.
|
|
with_x=yes ;;
|
|
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
|
ac_prev=x_includes ;;
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
x_includes="$ac_optarg" ;;
|
|
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
ac_prev=x_libraries ;;
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
x_libraries="$ac_optarg" ;;
|
|
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
;;
|
|
|
|
*)
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|
fi
|
|
if test "x$nonopt" != xNONE; then
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|
fi
|
|
nonopt="$ac_option"
|
|
;;
|
|
|
|
esac
|
|
done
|
|
|
|
if test -n "$ac_prev"; then
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|
fi
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
# File descriptor usage:
|
|
# 0 standard input
|
|
# 1 file creation
|
|
# 2 errors and warnings
|
|
# 3 some systems may open it to /dev/tty
|
|
# 4 used on the Kubota Titan
|
|
# 6 checking for... messages and results
|
|
# 5 compiler messages saved in config.log
|
|
if test "$silent" = yes; then
|
|
exec 6>/dev/null
|
|
else
|
|
exec 6>&1
|
|
fi
|
|
exec 5>./config.log
|
|
|
|
echo "\
|
|
This file contains any messages produced by compilers while
|
|
running configure, to aid debugging if configure makes a mistake.
|
|
" 1>&5
|
|
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
# Also quote any args containing shell metacharacters.
|
|
ac_configure_args=
|
|
for ac_arg
|
|
do
|
|
case "$ac_arg" in
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
| --no-cr | --no-c) ;;
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
esac
|
|
done
|
|
|
|
# NLS nuisances.
|
|
# Only set these to C if already set. These must not be set unconditionally
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
# Non-C LC_CTYPE values break the ctype check.
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
rm -rf conftest* confdefs.h
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
echo > confdefs.h
|
|
|
|
# A filename unique to this package, relative to the directory that
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
|
ac_unique_file=build/version
|
|
|
|
# Find the source files, if location was not specified.
|
|
if test -z "$srcdir"; then
|
|
ac_srcdir_defaulted=yes
|
|
# Try the directory containing this script, then its parent.
|
|
ac_prog=$0
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
srcdir=$ac_confdir
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
srcdir=..
|
|
fi
|
|
else
|
|
ac_srcdir_defaulted=no
|
|
fi
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
else
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
|
|
# Prefer explicitly selected file to automatically selected ones.
|
|
if test -z "$CONFIG_SITE"; then
|
|
if test "x$prefix" != xNONE; then
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
else
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
fi
|
|
fi
|
|
for ac_site_file in $CONFIG_SITE; do
|
|
if test -r "$ac_site_file"; then
|
|
echo "loading site script $ac_site_file"
|
|
. "$ac_site_file"
|
|
fi
|
|
done
|
|
|
|
|
|
ac_ext=c
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
ac_exeext=
|
|
ac_objext=o
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
ac_n= ac_c='
|
|
' ac_t=' '
|
|
else
|
|
ac_n=-n ac_c= ac_t=
|
|
fi
|
|
else
|
|
ac_n= ac_c='\c' ac_t=
|
|
fi
|
|
|
|
|
|
# set unset (borrowed from autoconf 2.14a)
|
|
if (unset FOO) >/dev/null 2>&1; then
|
|
ol_unset=unset
|
|
else
|
|
ol_unset=false
|
|
fi
|
|
# unset CDPATH
|
|
$ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
|
|
|
|
ac_aux_dir=
|
|
for ac_dir in build $srcdir/build; do
|
|
if test -f $ac_dir/install-sh; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
break
|
|
elif test -f $ac_dir/install.sh; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
break
|
|
elif test -f $ac_dir/shtool; then
|
|
ac_aux_dir=$ac_dir
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
|
break
|
|
fi
|
|
done
|
|
if test -z "$ac_aux_dir"; then
|
|
{ echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
|
|
fi
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
|
|
|
OL_VERSION=`cat $ac_aux_dir/version`
|
|
if test -z "$OL_VERSION"; then
|
|
{ echo "configure: error: could not determine version" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo "Configuring OpenLDAP $OL_VERSION ..."
|
|
|
|
|
|
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|
echo "configure:684: checking host system type" >&5
|
|
if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
|
|
|
|
# Make sure we can run config.sub.
|
|
if $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ac_cv_host_alias=$host
|
|
case "$ac_cv_host_alias" in
|
|
NONE)
|
|
case $nonopt in
|
|
NONE)
|
|
if ac_cv_host_alias=`$ac_config_guess`; then :
|
|
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|
fi ;;
|
|
*) ac_cv_host_alias=$nonopt ;;
|
|
esac ;;
|
|
esac
|
|
|
|
ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
|
|
ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
else
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_host" 1>&6
|
|
|
|
host=$ac_cv_host
|
|
host_alias=$ac_cv_host_alias
|
|
host_cpu=$ac_cv_host_cpu
|
|
host_vendor=$ac_cv_host_vendor
|
|
host_os=$ac_cv_host_os
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
|
echo "configure:725: checking target system type" >&5
|
|
if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
|
|
|
|
# Make sure we can run config.sub.
|
|
if $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ac_cv_target_alias=$target
|
|
case "$ac_cv_target_alias" in
|
|
NONE)
|
|
case $nonopt in
|
|
NONE)
|
|
ac_cv_target_alias=$host_alias ;;
|
|
|
|
*) ac_cv_target_alias=$nonopt ;;
|
|
esac ;;
|
|
esac
|
|
|
|
ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
|
|
ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
else
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_target" 1>&6
|
|
|
|
target=$ac_cv_target
|
|
target_alias=$ac_cv_target_alias
|
|
target_cpu=$ac_cv_target_cpu
|
|
target_vendor=$ac_cv_target_vendor
|
|
target_os=$ac_cv_target_os
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
|
echo "configure:765: checking build system type" >&5
|
|
if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
|
|
|
|
# Make sure we can run config.sub.
|
|
if $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ac_cv_build_alias=$build
|
|
case "$ac_cv_build_alias" in
|
|
NONE)
|
|
case $nonopt in
|
|
NONE)
|
|
ac_cv_build_alias=$host_alias ;;
|
|
|
|
*) ac_cv_build_alias=$nonopt ;;
|
|
esac ;;
|
|
esac
|
|
|
|
ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
|
|
ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
else
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_build" 1>&6
|
|
|
|
build=$ac_cv_build
|
|
build_alias=$ac_cv_build_alias
|
|
build_cpu=$ac_cv_build_cpu
|
|
build_vendor=$ac_cv_build_vendor
|
|
build_os=$ac_cv_build_os
|
|
|
|
|
|
|
|
|
|
|
|
# Do some error checking and defaulting for the host and target type.
|
|
# The inputs are:
|
|
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|
#
|
|
# The rules are:
|
|
# 1. You are not allowed to specify --host, --target, and nonopt at the
|
|
# same time.
|
|
# 2. Host defaults to nonopt.
|
|
# 3. If nonopt is not specified, then host defaults to the current host,
|
|
# as determined by config.guess.
|
|
# 4. Target and build default to nonopt.
|
|
# 5. If nonopt is not specified, then target and build default to host.
|
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
# will get canonicalized.
|
|
case $host---$target---$nonopt in
|
|
NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|
esac
|
|
|
|
test "$host_alias" != "$target_alias" &&
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
NONENONEs,x,x, &&
|
|
program_prefix=${target_alias}-
|
|
|
|
|
|
# Find a good install program. We prefer a C program (faster),
|
|
# so one script is as good as another. But avoid the broken or
|
|
# incompatible versions:
|
|
# SysV /etc/install, /usr/sbin/install
|
|
# SunOS /usr/etc/install
|
|
# IRIX /sbin/install
|
|
# AIX /bin/install
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
echo "configure:842: checking for a BSD compatible install" >&5
|
|
if test -z "$INSTALL"; then
|
|
if eval "test \"\${ac_cv_path_install+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
|
for ac_dir in $PATH; do
|
|
# Account for people who put trailing slashes in PATH elements.
|
|
case "$ac_dir/" in
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
*)
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
|
# by default.
|
|
for ac_prog in ginstall scoinst install; do
|
|
if test -f $ac_dir/$ac_prog; then
|
|
if test $ac_prog = install &&
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
# AIX install. It has an incompatible calling convention.
|
|
:
|
|
elif test $ac_prog = install &&
|
|
grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
# program-specific install script used by HP pwplus--don't use.
|
|
:
|
|
else
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
break 2
|
|
fi
|
|
fi
|
|
done
|
|
;;
|
|
esac
|
|
done
|
|
IFS="$ac_save_IFS"
|
|
|
|
fi
|
|
if test "${ac_cv_path_install+set}" = set; then
|
|
INSTALL="$ac_cv_path_install"
|
|
else
|
|
# As a last resort, use the slow shell script. We don't cache a
|
|
# path for INSTALL within a source directory, because that will
|
|
# break other packages using the cache if that directory is
|
|
# removed, or if the path is relative.
|
|
INSTALL="$ac_install_sh"
|
|
fi
|
|
fi
|
|
echo "$ac_t""$INSTALL" 1>&6
|
|
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
# It thinks the first close brace ends the variable substitution.
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|
echo "configure:899: checking whether build environment is sane" >&5
|
|
# Just in case
|
|
sleep 1
|
|
echo timestamp > conftestfile
|
|
# Do `set' in a subshell so we don't clobber the current shell's
|
|
# arguments. Must try -L first in case configure is actually a
|
|
# symlink; some systems play weird games with the mod time of symlinks
|
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
# directory).
|
|
if (
|
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|
if test "$*" = "X"; then
|
|
# -L didn't work.
|
|
set X `ls -t $srcdir/configure conftestfile`
|
|
fi
|
|
if test "$*" != "X $srcdir/configure conftestfile" \
|
|
&& test "$*" != "X conftestfile $srcdir/configure"; then
|
|
|
|
# If neither matched, then we have a broken ls. This can happen
|
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
# broken ls alias from the environment. This has actually
|
|
# happened. Such a system could not be considered "sane".
|
|
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|
alias in your environment" 1>&2; exit 1; }
|
|
fi
|
|
|
|
test "$2" = conftestfile
|
|
)
|
|
then
|
|
# Ok.
|
|
:
|
|
else
|
|
{ echo "configure: error: newly created file is older than distributed files!
|
|
Check your system clock" 1>&2; exit 1; }
|
|
fi
|
|
rm -f conftest*
|
|
echo "$ac_t""yes" 1>&6
|
|
if test "$program_transform_name" = s,x,x,; then
|
|
program_transform_name=
|
|
else
|
|
# Double any \ or $. echo might interpret backslashes.
|
|
cat <<\EOF_SED > conftestsed
|
|
s,\\,\\\\,g; s,\$,$$,g
|
|
EOF_SED
|
|
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|
rm -f conftestsed
|
|
fi
|
|
test "$program_prefix" != NONE &&
|
|
program_transform_name="s,^,${program_prefix},;$program_transform_name"
|
|
# Use a double $ so make ignores it.
|
|
test "$program_suffix" != NONE &&
|
|
program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
|
|
|
|
# sed with no file args requires a program.
|
|
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|
|
|
for ac_prog in mawk gawk nawk awk
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:960: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AWK"; then
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AWK="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
AWK="$ac_cv_prog_AWK"
|
|
if test -n "$AWK"; then
|
|
echo "$ac_t""$AWK" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$AWK" && break
|
|
done
|
|
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
echo "configure:990: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftestmake <<\EOF
|
|
all:
|
|
@echo 'ac_maketemp="${MAKE}"'
|
|
EOF
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
if test -n "$ac_maketemp"; then
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
|
else
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
|
fi
|
|
rm -f conftestmake
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
SET_MAKE=
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
|
fi
|
|
|
|
|
|
|
|
PACKAGE=OpenLDAP
|
|
|
|
VERSION=$OL_VERSION
|
|
|
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|
fi
|
|
|
|
|
|
|
|
missing_dir=`cd $ac_aux_dir && pwd`
|
|
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|
echo "configure:1030: checking for working aclocal" >&5
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
# an executable is not found, even if stderr is redirected.
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|
ACLOCAL=aclocal
|
|
echo "$ac_t""found" 1>&6
|
|
else
|
|
ACLOCAL="$missing_dir/missing aclocal"
|
|
echo "$ac_t""missing" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|
echo "configure:1043: checking for working autoconf" >&5
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
# an executable is not found, even if stderr is redirected.
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|
AUTOCONF=autoconf
|
|
echo "$ac_t""found" 1>&6
|
|
else
|
|
AUTOCONF="$missing_dir/missing autoconf"
|
|
echo "$ac_t""missing" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|
echo "configure:1056: checking for working automake" >&5
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
# an executable is not found, even if stderr is redirected.
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|
AUTOMAKE=automake
|
|
echo "$ac_t""found" 1>&6
|
|
else
|
|
AUTOMAKE="$missing_dir/missing automake"
|
|
echo "$ac_t""missing" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|
echo "configure:1069: checking for working autoheader" >&5
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
# an executable is not found, even if stderr is redirected.
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|
AUTOHEADER=autoheader
|
|
echo "$ac_t""found" 1>&6
|
|
else
|
|
AUTOHEADER="$missing_dir/missing autoheader"
|
|
echo "$ac_t""missing" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|
echo "configure:1082: checking for working makeinfo" >&5
|
|
# Run test in a subshell; some versions of sh will print an error if
|
|
# an executable is not found, even if stderr is redirected.
|
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|
MAKEINFO=makeinfo
|
|
echo "$ac_t""found" 1>&6
|
|
else
|
|
MAKEINFO="$missing_dir/missing makeinfo"
|
|
echo "$ac_t""missing" 1>&6
|
|
fi
|
|
|
|
install_sh="$missing_dir/install-sh"
|
|
test -f "$install_sh" || install_sh="$missing_dir/install.sh"
|
|
|
|
for ac_prog in gnutar gtar tar
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:1102: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AMTAR"; then
|
|
ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AMTAR="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
AMTAR="$ac_cv_prog_AMTAR"
|
|
if test -n "$AMTAR"; then
|
|
echo "$ac_t""$AMTAR" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$AMTAR" && break
|
|
done
|
|
|
|
|
|
AMTARFLAGS=
|
|
if test -n "$AMTAR"; then
|
|
if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
|
|
AMTARFLAGS=o
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
#define OPENLDAP_PACKAGE "$PACKAGE"
|
|
EOF
|
|
|
|
cat >> confdefs.h <<EOF
|
|
#define OPENLDAP_VERSION "$VERSION"
|
|
EOF
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking configure arguments""... $ac_c" 1>&6
|
|
echo "configure:1153: checking configure arguments" >&5
|
|
|
|
|
|
top_builddir=`pwd`
|
|
|
|
ldap_subdir="/openldap"
|
|
|
|
# Check whether --with-subdir or --without-subdir was given.
|
|
if test "${with_subdir+set}" = set; then
|
|
withval="$with_subdir"
|
|
case "$withval" in
|
|
no) ldap_subdir=""
|
|
;;
|
|
yes)
|
|
;;
|
|
/*|\\*)
|
|
ldap_subdir="$withval"
|
|
;;
|
|
*)
|
|
ldap_subdir="/$withval"
|
|
;;
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
# OpenLDAP --enable-debug
|
|
# Check whether --enable-debug or --disable-debug was given.
|
|
if test "${enable_debug+set}" = set; then
|
|
enableval="$enable_debug"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_debug="$ol_arg"
|
|
|
|
else
|
|
ol_enable_debug="yes"
|
|
fi
|
|
# end --enable-debug
|
|
# OpenLDAP --enable-syslog
|
|
# Check whether --enable-syslog or --disable-syslog was given.
|
|
if test "${enable_syslog+set}" = set; then
|
|
enableval="$enable_syslog"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_syslog="$ol_arg"
|
|
|
|
else
|
|
ol_enable_syslog="auto"
|
|
fi
|
|
# end --enable-syslog
|
|
# OpenLDAP --enable-proctitle
|
|
# Check whether --enable-proctitle or --disable-proctitle was given.
|
|
if test "${enable_proctitle+set}" = set; then
|
|
enableval="$enable_proctitle"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_proctitle="$ol_arg"
|
|
|
|
else
|
|
ol_enable_proctitle="yes"
|
|
fi
|
|
# end --enable-proctitle
|
|
# OpenLDAP --enable-cache
|
|
# Check whether --enable-cache or --disable-cache was given.
|
|
if test "${enable_cache+set}" = set; then
|
|
enableval="$enable_cache"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_cache="$ol_arg"
|
|
|
|
else
|
|
ol_enable_cache="yes"
|
|
fi
|
|
# end --enable-cache
|
|
# OpenLDAP --enable-referrals
|
|
# Check whether --enable-referrals or --disable-referrals was given.
|
|
if test "${enable_referrals+set}" = set; then
|
|
enableval="$enable_referrals"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_referrals="$ol_arg"
|
|
|
|
else
|
|
ol_enable_referrals="yes"
|
|
fi
|
|
# end --enable-referrals
|
|
# OpenLDAP --enable-kbind
|
|
# Check whether --enable-kbind or --disable-kbind was given.
|
|
if test "${enable_kbind+set}" = set; then
|
|
enableval="$enable_kbind"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_kbind="$ol_arg"
|
|
|
|
else
|
|
ol_enable_kbind="auto"
|
|
fi
|
|
# end --enable-kbind
|
|
# OpenLDAP --enable-ipv6
|
|
# Check whether --enable-ipv6 or --disable-ipv6 was given.
|
|
if test "${enable_ipv6+set}" = set; then
|
|
enableval="$enable_ipv6"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_ipv6="$ol_arg"
|
|
|
|
else
|
|
ol_enable_ipv6="auto"
|
|
fi
|
|
# end --enable-ipv6
|
|
# OpenLDAP --enable-local
|
|
# Check whether --enable-local or --disable-local was given.
|
|
if test "${enable_local+set}" = set; then
|
|
enableval="$enable_local"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_local="$ol_arg"
|
|
|
|
else
|
|
ol_enable_local="auto"
|
|
fi
|
|
# end --enable-local
|
|
# OpenLDAP --enable-x_compile
|
|
# Check whether --enable-x_compile or --disable-x_compile was given.
|
|
if test "${enable_x_compile+set}" = set; then
|
|
enableval="$enable_x_compile"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_x_compile="$ol_arg"
|
|
|
|
else
|
|
ol_enable_x_compile="no"
|
|
fi
|
|
# end --enable-x_compile
|
|
|
|
|
|
# OpenLDAP --with-cyrus_sasl
|
|
# Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
|
|
if test "${with_cyrus_sasl+set}" = set; then
|
|
withval="$with_cyrus_sasl"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_cyrus_sasl="$ol_arg"
|
|
|
|
else
|
|
ol_with_cyrus_sasl="auto"
|
|
fi
|
|
# end --with-cyrus_sasl
|
|
|
|
# OpenLDAP --with-fetch
|
|
# Check whether --with-fetch or --without-fetch was given.
|
|
if test "${with_fetch+set}" = set; then
|
|
withval="$with_fetch"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_fetch="$ol_arg"
|
|
|
|
else
|
|
ol_with_fetch="auto"
|
|
fi
|
|
# end --with-fetch
|
|
|
|
# OpenLDAP --with-kerberos
|
|
# Check whether --with-kerberos or --without-kerberos was given.
|
|
if test "${with_kerberos+set}" = set; then
|
|
withval="$with_kerberos"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_kerberos="$ol_arg"
|
|
|
|
else
|
|
ol_with_kerberos="auto"
|
|
fi
|
|
# end --with-kerberos
|
|
|
|
# OpenLDAP --with-readline
|
|
# Check whether --with-readline or --without-readline was given.
|
|
if test "${with_readline+set}" = set; then
|
|
withval="$with_readline"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_readline="$ol_arg"
|
|
|
|
else
|
|
ol_with_readline="auto"
|
|
fi
|
|
# end --with-readline
|
|
|
|
# OpenLDAP --with-threads
|
|
# Check whether --with-threads or --without-threads was given.
|
|
if test "${with_threads+set}" = set; then
|
|
withval="$with_threads"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto nt posix mach pth lwp yes no manual ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_threads="$ol_arg"
|
|
|
|
else
|
|
ol_with_threads="auto"
|
|
fi
|
|
# end --with-threads
|
|
|
|
# OpenLDAP --with-tls
|
|
# Check whether --with-tls or --without-tls was given.
|
|
if test "${with_tls+set}" = set; then
|
|
withval="$with_tls"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto ssleay openssl yes no ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_tls="$ol_arg"
|
|
|
|
else
|
|
ol_with_tls="auto"
|
|
fi
|
|
# end --with-tls
|
|
|
|
# OpenLDAP --with-yielding_select
|
|
# Check whether --with-yielding_select or --without-yielding_select was given.
|
|
if test "${with_yielding_select+set}" = set; then
|
|
withval="$with_yielding_select"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no manual ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_yielding_select="$ol_arg"
|
|
|
|
else
|
|
ol_with_yielding_select="auto"
|
|
fi
|
|
# end --with-yielding_select
|
|
|
|
|
|
|
|
# Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
|
|
if test "${with_xxslapdoptions+set}" = set; then
|
|
withval="$with_xxslapdoptions"
|
|
:
|
|
fi
|
|
|
|
# OpenLDAP --enable-slapd
|
|
# Check whether --enable-slapd or --disable-slapd was given.
|
|
if test "${enable_slapd+set}" = set; then
|
|
enableval="$enable_slapd"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_slapd="$ol_arg"
|
|
|
|
else
|
|
ol_enable_slapd="yes"
|
|
fi
|
|
# end --enable-slapd
|
|
# OpenLDAP --enable-cleartext
|
|
# Check whether --enable-cleartext or --disable-cleartext was given.
|
|
if test "${enable_cleartext+set}" = set; then
|
|
enableval="$enable_cleartext"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_cleartext="$ol_arg"
|
|
|
|
else
|
|
ol_enable_cleartext="yes"
|
|
fi
|
|
# end --enable-cleartext
|
|
# OpenLDAP --enable-crypt
|
|
# Check whether --enable-crypt or --disable-crypt was given.
|
|
if test "${enable_crypt+set}" = set; then
|
|
enableval="$enable_crypt"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_crypt="$ol_arg"
|
|
|
|
else
|
|
ol_enable_crypt="auto"
|
|
fi
|
|
# end --enable-crypt
|
|
# OpenLDAP --enable-kpasswd
|
|
# Check whether --enable-kpasswd or --disable-kpasswd was given.
|
|
if test "${enable_kpasswd+set}" = set; then
|
|
enableval="$enable_kpasswd"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_kpasswd="$ol_arg"
|
|
|
|
else
|
|
ol_enable_kpasswd="no"
|
|
fi
|
|
# end --enable-kpasswd
|
|
# OpenLDAP --enable-spasswd
|
|
# Check whether --enable-spasswd or --disable-spasswd was given.
|
|
if test "${enable_spasswd+set}" = set; then
|
|
enableval="$enable_spasswd"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_spasswd="$ol_arg"
|
|
|
|
else
|
|
ol_enable_spasswd="no"
|
|
fi
|
|
# end --enable-spasswd
|
|
# OpenLDAP --enable-modules
|
|
# Check whether --enable-modules or --disable-modules was given.
|
|
if test "${enable_modules+set}" = set; then
|
|
enableval="$enable_modules"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_modules="$ol_arg"
|
|
|
|
else
|
|
ol_enable_modules="no"
|
|
fi
|
|
# end --enable-modules
|
|
# OpenLDAP --enable-multimaster
|
|
# Check whether --enable-multimaster or --disable-multimaster was given.
|
|
if test "${enable_multimaster+set}" = set; then
|
|
enableval="$enable_multimaster"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_multimaster="$ol_arg"
|
|
|
|
else
|
|
ol_enable_multimaster="no"
|
|
fi
|
|
# end --enable-multimaster
|
|
# OpenLDAP --enable-phonetic
|
|
# Check whether --enable-phonetic or --disable-phonetic was given.
|
|
if test "${enable_phonetic+set}" = set; then
|
|
enableval="$enable_phonetic"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_phonetic="$ol_arg"
|
|
|
|
else
|
|
ol_enable_phonetic="no"
|
|
fi
|
|
# end --enable-phonetic
|
|
# OpenLDAP --enable-rlookups
|
|
# Check whether --enable-rlookups or --disable-rlookups was given.
|
|
if test "${enable_rlookups+set}" = set; then
|
|
enableval="$enable_rlookups"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_rlookups="$ol_arg"
|
|
|
|
else
|
|
ol_enable_rlookups="auto"
|
|
fi
|
|
# end --enable-rlookups
|
|
# OpenLDAP --enable-aci
|
|
# Check whether --enable-aci or --disable-aci was given.
|
|
if test "${enable_aci+set}" = set; then
|
|
enableval="$enable_aci"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_aci="$ol_arg"
|
|
|
|
else
|
|
ol_enable_aci="no"
|
|
fi
|
|
# end --enable-aci
|
|
# OpenLDAP --enable-wrappers
|
|
# Check whether --enable-wrappers or --disable-wrappers was given.
|
|
if test "${enable_wrappers+set}" = set; then
|
|
enableval="$enable_wrappers"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_wrappers="$ol_arg"
|
|
|
|
else
|
|
ol_enable_wrappers="no"
|
|
fi
|
|
# end --enable-wrappers
|
|
# OpenLDAP --enable-dynamic
|
|
# Check whether --enable-dynamic or --disable-dynamic was given.
|
|
if test "${enable_dynamic+set}" = set; then
|
|
enableval="$enable_dynamic"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_dynamic="$ol_arg"
|
|
|
|
else
|
|
ol_enable_dynamic="no"
|
|
fi
|
|
# end --enable-dynamic
|
|
|
|
# OpenLDAP --enable-dnssrv
|
|
# Check whether --enable-dnssrv or --disable-dnssrv was given.
|
|
if test "${enable_dnssrv+set}" = set; then
|
|
enableval="$enable_dnssrv"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_dnssrv="$ol_arg"
|
|
|
|
else
|
|
ol_enable_dnssrv="no"
|
|
fi
|
|
# end --enable-dnssrv
|
|
# OpenLDAP --with-dnssrv_module
|
|
# Check whether --with-dnssrv_module or --without-dnssrv_module was given.
|
|
if test "${with_dnssrv_module+set}" = set; then
|
|
withval="$with_dnssrv_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_dnssrv_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_dnssrv_module="static"
|
|
fi
|
|
# end --with-dnssrv_module
|
|
|
|
# OpenLDAP --enable-ldap
|
|
# Check whether --enable-ldap or --disable-ldap was given.
|
|
if test "${enable_ldap+set}" = set; then
|
|
enableval="$enable_ldap"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_ldap="$ol_arg"
|
|
|
|
else
|
|
ol_enable_ldap="no"
|
|
fi
|
|
# end --enable-ldap
|
|
# OpenLDAP --with-ldap_module
|
|
# Check whether --with-ldap_module or --without-ldap_module was given.
|
|
if test "${with_ldap_module+set}" = set; then
|
|
withval="$with_ldap_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_ldap_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_ldap_module="static"
|
|
fi
|
|
# end --with-ldap_module
|
|
|
|
# OpenLDAP --enable-ldbm
|
|
# Check whether --enable-ldbm or --disable-ldbm was given.
|
|
if test "${enable_ldbm+set}" = set; then
|
|
enableval="$enable_ldbm"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_ldbm="$ol_arg"
|
|
|
|
else
|
|
ol_enable_ldbm="yes"
|
|
fi
|
|
# end --enable-ldbm
|
|
# OpenLDAP --with-ldbm_api
|
|
# Check whether --with-ldbm_api or --without-ldbm_api was given.
|
|
if test "${with_ldbm_api+set}" = set; then
|
|
withval="$with_ldbm_api"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto berkeley bcompat mdbm gdbm ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_ldbm_api="$ol_arg"
|
|
|
|
else
|
|
ol_with_ldbm_api="auto"
|
|
fi
|
|
# end --with-ldbm_api
|
|
|
|
# OpenLDAP --with-ldbm_module
|
|
# Check whether --with-ldbm_module or --without-ldbm_module was given.
|
|
if test "${with_ldbm_module+set}" = set; then
|
|
withval="$with_ldbm_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_ldbm_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_ldbm_module="static"
|
|
fi
|
|
# end --with-ldbm_module
|
|
|
|
# OpenLDAP --with-ldbm_type
|
|
# Check whether --with-ldbm_type or --without-ldbm_type was given.
|
|
if test "${with_ldbm_type+set}" = set; then
|
|
withval="$with_ldbm_type"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto btree hash ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_ldbm_type="$ol_arg"
|
|
|
|
else
|
|
ol_with_ldbm_type="auto"
|
|
fi
|
|
# end --with-ldbm_type
|
|
|
|
# OpenLDAP --enable-passwd
|
|
# Check whether --enable-passwd or --disable-passwd was given.
|
|
if test "${enable_passwd+set}" = set; then
|
|
enableval="$enable_passwd"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_passwd="$ol_arg"
|
|
|
|
else
|
|
ol_enable_passwd="no"
|
|
fi
|
|
# end --enable-passwd
|
|
# OpenLDAP --with-passwd_module
|
|
# Check whether --with-passwd_module or --without-passwd_module was given.
|
|
if test "${with_passwd_module+set}" = set; then
|
|
withval="$with_passwd_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_passwd_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_passwd_module="static"
|
|
fi
|
|
# end --with-passwd_module
|
|
|
|
# OpenLDAP --enable-perl
|
|
# Check whether --enable-perl or --disable-perl was given.
|
|
if test "${enable_perl+set}" = set; then
|
|
enableval="$enable_perl"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_perl="$ol_arg"
|
|
|
|
else
|
|
ol_enable_perl="no"
|
|
fi
|
|
# end --enable-perl
|
|
# OpenLDAP --with-perl_module
|
|
# Check whether --with-perl_module or --without-perl_module was given.
|
|
if test "${with_perl_module+set}" = set; then
|
|
withval="$with_perl_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_perl_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_perl_module="static"
|
|
fi
|
|
# end --with-perl_module
|
|
|
|
# OpenLDAP --enable-shell
|
|
# Check whether --enable-shell or --disable-shell was given.
|
|
if test "${enable_shell+set}" = set; then
|
|
enableval="$enable_shell"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_shell="$ol_arg"
|
|
|
|
else
|
|
ol_enable_shell="no"
|
|
fi
|
|
# end --enable-shell
|
|
# OpenLDAP --with-shell_module
|
|
# Check whether --with-shell_module or --without-shell_module was given.
|
|
if test "${with_shell_module+set}" = set; then
|
|
withval="$with_shell_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_shell_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_shell_module="static"
|
|
fi
|
|
# end --with-shell_module
|
|
|
|
# OpenLDAP --enable-sql
|
|
# Check whether --enable-sql or --disable-sql was given.
|
|
if test "${enable_sql+set}" = set; then
|
|
enableval="$enable_sql"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_sql="$ol_arg"
|
|
|
|
else
|
|
ol_enable_sql="no"
|
|
fi
|
|
# end --enable-sql
|
|
# OpenLDAP --with-sql_module
|
|
# Check whether --with-sql_module or --without-sql_module was given.
|
|
if test "${with_sql_module+set}" = set; then
|
|
withval="$with_sql_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_sql_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_sql_module="static"
|
|
fi
|
|
# end --with-sql_module
|
|
|
|
# OpenLDAP --enable-tcl
|
|
# Check whether --enable-tcl or --disable-tcl was given.
|
|
if test "${enable_tcl+set}" = set; then
|
|
enableval="$enable_tcl"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_tcl="$ol_arg"
|
|
|
|
else
|
|
ol_enable_tcl="no"
|
|
fi
|
|
# end --enable-tcl
|
|
# OpenLDAP --with-tcl_module
|
|
# Check whether --with-tcl_module or --without-tcl_module was given.
|
|
if test "${with_tcl_module+set}" = set; then
|
|
withval="$with_tcl_module"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in static dynamic ; do
|
|
if test "$withval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_tcl_module="$ol_arg"
|
|
|
|
else
|
|
ol_with_tcl_module="static"
|
|
fi
|
|
# end --with-tcl_module
|
|
|
|
|
|
# Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
|
|
if test "${with_xxslurpdoptions+set}" = set; then
|
|
withval="$with_xxslurpdoptions"
|
|
:
|
|
fi
|
|
|
|
# OpenLDAP --enable-slurpd
|
|
# Check whether --enable-slurpd or --disable-slurpd was given.
|
|
if test "${enable_slurpd+set}" = set; then
|
|
enableval="$enable_slurpd"
|
|
|
|
ol_arg=invalid
|
|
for ol_val in auto yes no ; do
|
|
if test "$enableval" = "$ol_val" ; then
|
|
ol_arg="$ol_val"
|
|
fi
|
|
done
|
|
if test "$ol_arg" = "invalid" ; then
|
|
{ echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_slurpd="$ol_arg"
|
|
|
|
else
|
|
ol_enable_slurpd="auto"
|
|
fi
|
|
# end --enable-slurpd
|
|
|
|
# Check whether --with-xxliboptions or --without-xxliboptions was given.
|
|
if test "${with_xxliboptions+set}" = set; then
|
|
withval="$with_xxliboptions"
|
|
:
|
|
fi
|
|
|
|
# Check whether --enable-static or --disable-static was given.
|
|
if test "${enable_static+set}" = set; then
|
|
enableval="$enable_static"
|
|
p=${PACKAGE-default}
|
|
case "$enableval" in
|
|
yes) enable_static=yes ;;
|
|
no) enable_static=no ;;
|
|
*)
|
|
enable_static=no
|
|
# Look at the argument we got. We use all the common list separators.
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|
for pkg in $enableval; do
|
|
if test "X$pkg" = "X$p"; then
|
|
enable_static=yes
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
;;
|
|
esac
|
|
else
|
|
enable_static=yes
|
|
fi
|
|
|
|
# Check whether --enable-shared or --disable-shared was given.
|
|
if test "${enable_shared+set}" = set; then
|
|
enableval="$enable_shared"
|
|
p=${PACKAGE-default}
|
|
case "$enableval" in
|
|
yes) enable_shared=yes ;;
|
|
no) enable_shared=no ;;
|
|
*)
|
|
enable_shared=no
|
|
# Look at the argument we got. We use all the common list separators.
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|
for pkg in $enableval; do
|
|
if test "X$pkg" = "X$p"; then
|
|
enable_shared=yes
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
;;
|
|
esac
|
|
else
|
|
enable_shared=yes
|
|
fi
|
|
|
|
|
|
|
|
# validate options
|
|
if test $ol_enable_slapd = no ; then
|
|
if test $ol_enable_dnssrv = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
|
|
fi
|
|
if test $ol_enable_ldap = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
|
|
fi
|
|
if test $ol_enable_ldbm = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
|
|
fi
|
|
if test $ol_enable_passwd = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
|
|
fi
|
|
if test $ol_enable_perl = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
|
|
fi
|
|
if test $ol_enable_shell = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
|
|
fi
|
|
if test $ol_enable_tcl = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
|
|
fi
|
|
if test $ol_enable_sql = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
|
|
fi
|
|
if test $ol_enable_modules = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
|
|
fi
|
|
if test $ol_enable_multimaster = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
|
|
fi
|
|
if test $ol_enable_wrappers = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
|
|
fi
|
|
if test $ol_enable_phonetic = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
|
|
fi
|
|
if test $ol_enable_rlookups = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
|
|
fi
|
|
if test $ol_enable_aci = yes ; then
|
|
echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
|
|
fi
|
|
if test $ol_with_ldbm_api != auto ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
|
|
fi
|
|
if test $ol_with_ldbm_type != auto ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
|
|
fi
|
|
if test $ol_with_dnssrv_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_ldap_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_ldbm_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_passwd_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_perl_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_shell_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_tcl_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
|
|
fi
|
|
if test $ol_with_sql_module != static ; then
|
|
echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
|
|
fi
|
|
if test $ol_enable_slurpd = yes ; then
|
|
{ echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
|
|
fi
|
|
|
|
# force settings to no
|
|
ol_enable_dnssrv=no
|
|
ol_enable_ldap=no
|
|
ol_enable_ldbm=no
|
|
ol_enable_passwd=no
|
|
ol_enable_perl=no
|
|
ol_enable_shell=no
|
|
ol_enable_tcl=no
|
|
ol_enable_sql=no
|
|
|
|
ol_enable_modules=no
|
|
ol_enable_multimaster=no
|
|
ol_enable_phonetic=no
|
|
ol_enable_rlookups=no
|
|
ol_enable_aci=no
|
|
ol_enable_wrappers=no
|
|
ol_enable_dynamic=no
|
|
|
|
ol_with_ldbm_api=no
|
|
ol_with_ldbm_type=no
|
|
|
|
ol_with_dnssrv_module=static
|
|
ol_with_ldap_module=static
|
|
ol_with_ldbm_module=static
|
|
ol_with_passwd_module=static
|
|
ol_with_perl_module=static
|
|
ol_with_shell_module=static
|
|
ol_with_tcl_module=static
|
|
ol_with_sql_module=static
|
|
|
|
ol_enable_slurpd=no
|
|
|
|
elif test $ol_enable_ldbm = no ; then
|
|
|
|
if test $ol_with_ldbm_api != auto ; then
|
|
echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
|
|
fi
|
|
|
|
if test $ol_with_ldbm_type != auto ; then
|
|
echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
|
|
fi
|
|
|
|
if test $ol_with_ldbm_module != static ; then
|
|
echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
|
|
fi
|
|
|
|
if test $ol_enable_modules != yes -a \
|
|
$ol_enable_dnssrv = no -a \
|
|
$ol_enable_ldap = no -a \
|
|
$ol_enable_passwd = no -a \
|
|
$ol_enable_perl = no -a \
|
|
$ol_enable_shell = no -a \
|
|
$ol_enable_sql = no -a \
|
|
$ol_enable_tcl = no ; then
|
|
{ echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ol_with_ldbm_api=no
|
|
ol_with_ldbm_type=no
|
|
ol_with_ldbm_module=static
|
|
|
|
else
|
|
if test $ol_with_ldbm_api = gdbm -a \
|
|
$ol_with_ldbm_type = btree ; then
|
|
{ echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
|
|
fi
|
|
if test $ol_with_ldbm_api = mdbm -a \
|
|
$ol_with_ldbm_type = btree ; then
|
|
{ echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
|
|
fi
|
|
if test $ol_with_ldbm_api = ndbm -a \
|
|
$ol_with_ldbm_type = btree ; then
|
|
{ echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_enable_slurpd = yes ; then
|
|
if test $ol_with_threads = no ; then
|
|
{ echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
|
|
if test $ol_with_kerberos = no ; then
|
|
{ echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
|
|
fi
|
|
ol_with_kerberos=yes
|
|
elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
|
|
if test $ol_with_kerberos != no -a $ol_with_kerberos != no ; then
|
|
echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
|
|
fi
|
|
ol_with_kerberos=no
|
|
fi
|
|
|
|
if test $ol_enable_spasswd = yes ; then
|
|
if test $ol_with_cyrus_sasl = no ; then
|
|
{ echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
|
|
fi
|
|
ol_link_spasswd=yes
|
|
fi
|
|
|
|
echo "$ac_t""done" 1>&6
|
|
|
|
LDAP_LIBS=
|
|
LDIF_LIBS=
|
|
LDBM_LIBS=
|
|
LTHREAD_LIBS=
|
|
LUTIL_LIBS=
|
|
|
|
SLAPD_LIBS=
|
|
SLURPD_LIBS=
|
|
|
|
BUILD_SLAPD=no
|
|
BUILD_SLURPD=no
|
|
|
|
BUILD_THREAD=no
|
|
|
|
BUILD_DNSSRV=no
|
|
BUILD_LDAP=no
|
|
BUILD_LDBM=no
|
|
BUILD_PASSWD=no
|
|
BUILD_PERL=no
|
|
BUILD_SHELL=no
|
|
BUILD_SQL=no
|
|
BUILD_TCL=no
|
|
|
|
BUILD_DNSSRV_DYNAMIC=static
|
|
BUILD_LDAP_DYNAMIC=static
|
|
BUILD_LDBM_DYNAMIC=static
|
|
BUILD_PASSWD_DYNAMIC=static
|
|
BUILD_PERL_DYNAMIC=static
|
|
BUILD_SHELL_DYNAMIC=static
|
|
BUILD_TCL_DYNAMIC=static
|
|
BUILD_SQL_DYNAMIC=static
|
|
|
|
SLAPD_MODULES_LDFLAGS=
|
|
SLAPD_MODULES_CPPFLAGS=
|
|
SLAPD_MODULES_LIST=
|
|
|
|
SLAPD_PERL_LDFLAGS=
|
|
MOD_PERL_LDFLAGS=
|
|
PERL_CPPFLAGS=
|
|
|
|
SLAPD_SQL_LDFLAGS=
|
|
SLAPD_SQL_LIBS=
|
|
SLAPD_SQL_INCLUDES=
|
|
|
|
MOD_TCL_LIB=
|
|
KRB4_LIBS=
|
|
KRB5_LIBS=
|
|
READLINE_LIBS=
|
|
SASL_LIBS=
|
|
TERMCAP_LIBS=
|
|
TLS_LIBS=
|
|
MODULES_LIBS=
|
|
AUTH_LIBS=
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MKVERSION 1
|
|
EOF
|
|
|
|
|
|
|
|
|
|
ol_aix_threads=no
|
|
case "$target" in
|
|
*-*-aix*) if test -z "$CC" ; then
|
|
case "$ol_with_threads" in
|
|
auto | yes | posix) ol_aix_threads=yes ;;
|
|
esac
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
if test $ol_aix_threads = yes ; then
|
|
if test -z "${CC}" ; then
|
|
for ac_prog in cc_r xlc_r cc
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2470: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_CC="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$CC" && break
|
|
done
|
|
|
|
|
|
if test "$CC" = cc ; then
|
|
if test $ol_with_threads != auto ; then
|
|
{ echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
|
|
else
|
|
echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
|
|
fi
|
|
ol_with_threads=no
|
|
fi
|
|
fi
|
|
|
|
if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
|
|
ol_with_threads=posix
|
|
ol_cv_pthread_create=yes
|
|
fi
|
|
fi
|
|
|
|
if test -z "${CC}"; then
|
|
for ac_prog in cc
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2522: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_CC="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$CC" && break
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-fast-install or --disable-fast-install was given.
|
|
if test "${enable_fast_install+set}" = set; then
|
|
enableval="$enable_fast_install"
|
|
p=${PACKAGE-default}
|
|
case "$enableval" in
|
|
yes) enable_fast_install=yes ;;
|
|
no) enable_fast_install=no ;;
|
|
*)
|
|
enable_fast_install=no
|
|
# Look at the argument we got. We use all the common list separators.
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
|
for pkg in $enableval; do
|
|
if test "X$pkg" = "X$p"; then
|
|
enable_fast_install=yes
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
;;
|
|
esac
|
|
else
|
|
enable_fast_install=yes
|
|
fi
|
|
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
|
set dummy ranlib; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2582: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$RANLIB"; then
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_RANLIB="ranlib"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
fi
|
|
fi
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
|
if test -n "$RANLIB"; then
|
|
echo "$ac_t""$RANLIB" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
set dummy gcc; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2612: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_CC="gcc"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test -z "$CC"; then
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
set dummy cc; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2642: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_prog_rejected=no
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
ac_prog_rejected=yes
|
|
continue
|
|
fi
|
|
ac_cv_prog_CC="cc"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
if test $ac_prog_rejected = yes; then
|
|
# We found a bogon in the path, so make sure we never use it.
|
|
set dummy $ac_cv_prog_CC
|
|
shift
|
|
if test $# -gt 0; then
|
|
# We chose a different compiler from the bogus one.
|
|
# However, it has the same basename, so the bogon will be chosen
|
|
# first if we set CC to just the basename; use the full file name.
|
|
shift
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
|
shift
|
|
ac_cv_prog_CC="$@"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test -z "$CC"; then
|
|
case "`uname -s`" in
|
|
*win32* | *WIN32* | *CYGWIN*)
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
|
set dummy cl; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:2693: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$CC"; then
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_CC="cl"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
CC="$ac_cv_prog_CC"
|
|
if test -n "$CC"; then
|
|
echo "$ac_t""$CC" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
echo "configure:2725: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
|
|
|
|
ac_ext=c
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
#line 2736 "configure"
|
|
#include "confdefs.h"
|
|
|
|
main(){return(0);}
|
|
EOF
|
|
if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
ac_cv_prog_cc_works=yes
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
ac_cv_prog_cc_cross=no
|
|
else
|
|
ac_cv_prog_cc_cross=yes
|
|
fi
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
ac_cv_prog_cc_works=no
|
|
fi
|
|
rm -fr conftest*
|
|
ac_ext=c
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
if test $ac_cv_prog_cc_works = no; then
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
fi
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
echo "configure:2767: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
echo "configure:2772: checking whether we are using GNU C" >&5
|
|
if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.c <<EOF
|
|
#ifdef __GNUC__
|
|
yes;
|
|
#endif
|
|
EOF
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
ac_cv_prog_gcc=yes
|
|
else
|
|
ac_cv_prog_gcc=no
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
GCC=yes
|
|
else
|
|
GCC=
|
|
fi
|
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
CFLAGS=
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
echo "configure:2800: checking whether ${CC-cc} accepts -g" >&5
|
|
if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
echo 'void f(){}' > conftest.c
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
ac_cv_prog_cc_g=yes
|
|
else
|
|
ac_cv_prog_cc_g=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-g -O2"
|
|
else
|
|
CFLAGS="-g"
|
|
fi
|
|
else
|
|
if test "$GCC" = yes; then
|
|
CFLAGS="-O2"
|
|
else
|
|
CFLAGS=
|
|
fi
|
|
fi
|
|
|
|
# Check whether --with-gnu-ld or --without-gnu-ld was given.
|
|
if test "${with_gnu_ld+set}" = set; then
|
|
withval="$with_gnu_ld"
|
|
test "$withval" = no || with_gnu_ld=yes
|
|
else
|
|
with_gnu_ld=no
|
|
fi
|
|
|
|
ac_prog=ld
|
|
if test "$ac_cv_prog_gcc" = yes; then
|
|
# Check if gcc -print-prog-name=ld gives a path.
|
|
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
|
echo "configure:2843: checking for ld used by GCC" >&5
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
|
case "$ac_prog" in
|
|
# Accept absolute paths.
|
|
[\\/]* | [A-Za-z]:[\\/]*)
|
|
re_direlt='/[^/][^/]*/\.\./'
|
|
# Canonicalize the path of ld
|
|
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
|
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
|
done
|
|
test -z "$LD" && LD="$ac_prog"
|
|
;;
|
|
"")
|
|
# If it fails, then pretend we aren't using GCC.
|
|
ac_prog=ld
|
|
;;
|
|
*)
|
|
# If it is relative, then search for the first ld in PATH.
|
|
with_gnu_ld=unknown
|
|
;;
|
|
esac
|
|
elif test "$with_gnu_ld" = yes; then
|
|
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
|
echo "configure:2867: checking for GNU ld" >&5
|
|
else
|
|
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
|
echo "configure:2870: checking for non-GNU ld" >&5
|
|
fi
|
|
if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -z "$LD"; then
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|
for ac_dir in $PATH; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
ac_cv_path_LD="$ac_dir/$ac_prog"
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
# but apparently some GNU ld's only accept -v.
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
test "$with_gnu_ld" != no && break
|
|
else
|
|
test "$with_gnu_ld" != yes && break
|
|
fi
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
else
|
|
ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
|
fi
|
|
fi
|
|
|
|
LD="$ac_cv_path_LD"
|
|
if test -n "$LD"; then
|
|
echo "$ac_t""$LD" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
|
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
|
echo "configure:2905: checking if the linker ($LD) is GNU ld" >&5
|
|
if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
ac_cv_prog_gnu_ld=yes
|
|
else
|
|
ac_cv_prog_gnu_ld=no
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
|
|
|
|
|
|
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
|
echo "configure:2921: checking for BSD-compatible nm" >&5
|
|
if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$NM"; then
|
|
# Let the user override the test.
|
|
ac_cv_path_NM="$NM"
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
|
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
# nm: unknown option "B" ignored
|
|
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|
ac_cv_path_NM="$ac_dir/nm -B"
|
|
break
|
|
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
|
ac_cv_path_NM="$ac_dir/nm -p"
|
|
break
|
|
else
|
|
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
|
|
continue # so that we can try to find one that supports BSD flags
|
|
fi
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
|
fi
|
|
fi
|
|
|
|
NM="$ac_cv_path_NM"
|
|
echo "$ac_t""$NM" 1>&6
|
|
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
echo "configure:2957: checking whether ln -s works" >&5
|
|
if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
rm -f conftestdata
|
|
if ln -s X conftestdata 2>/dev/null
|
|
then
|
|
rm -f conftestdata
|
|
ac_cv_prog_LN_S="ln -s"
|
|
else
|
|
ac_cv_prog_LN_S=ln
|
|
fi
|
|
fi
|
|
LN_S="$ac_cv_prog_LN_S"
|
|
if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test $host != $build; then
|
|
ac_tool_prefix=${host_alias}-
|
|
else
|
|
ac_tool_prefix=
|
|
fi
|
|
|
|
|
|
case "$target" in
|
|
NONE) lt_target="$host" ;;
|
|
*) lt_target="$target" ;;
|
|
esac
|
|
|
|
# Check for any special flags to pass to ltconfig.
|
|
libtool_flags="--cache-file=$cache_file"
|
|
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
|
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
|
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
|
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|
libtool_flags="$libtool_flags --enable-dlopen"
|
|
libtool_flags="$libtool_flags --enable-win32-dll"
|
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
|
if test "${enable_libtool_lock+set}" = set; then
|
|
enableval="$enable_libtool_lock"
|
|
:
|
|
fi
|
|
|
|
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
|
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
|
|
|
# Some flags need to be propagated to the compiler or linker for good
|
|
# libtool support.
|
|
case "$lt_target" in
|
|
*-*-irix6*)
|
|
# Find out which ABI we are using.
|
|
echo '#line 3012 "configure"' > conftest.$ac_ext
|
|
if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
case "`/usr/bin/file conftest.o`" in
|
|
*32-bit*)
|
|
LD="${LD-ld} -32"
|
|
;;
|
|
*N32*)
|
|
LD="${LD-ld} -n32"
|
|
;;
|
|
*64-bit*)
|
|
LD="${LD-ld} -64"
|
|
;;
|
|
esac
|
|
fi
|
|
rm -rf conftest*
|
|
;;
|
|
|
|
*-*-sco3.2v5*)
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
SAVE_CFLAGS="$CFLAGS"
|
|
CFLAGS="$CFLAGS -belf"
|
|
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
|
echo "configure:3034: checking whether the C compiler needs -belf" >&5
|
|
if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3039 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
lt_cv_cc_needs_belf=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
lt_cv_cc_needs_belf=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
fi
|
|
;;
|
|
|
|
*-*-cygwin* | *-*-mingw*)
|
|
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3069: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$DLLTOOL"; then
|
|
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
if test -n "$DLLTOOL"; then
|
|
echo "$ac_t""$DLLTOOL" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "dlltool", so it can be a program name with args.
|
|
set dummy dlltool; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3101: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$DLLTOOL"; then
|
|
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_DLLTOOL="dlltool"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
|
|
fi
|
|
fi
|
|
DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
if test -n "$DLLTOOL"; then
|
|
echo "$ac_t""$DLLTOOL" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
DLLTOOL="false"
|
|
fi
|
|
fi
|
|
|
|
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}as; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3136: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AS"; then
|
|
ac_cv_prog_AS="$AS" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AS="${ac_tool_prefix}as"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
AS="$ac_cv_prog_AS"
|
|
if test -n "$AS"; then
|
|
echo "$ac_t""$AS" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test -z "$ac_cv_prog_AS"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "as", so it can be a program name with args.
|
|
set dummy as; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3168: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AS"; then
|
|
ac_cv_prog_AS="$AS" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AS="as"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
|
|
fi
|
|
fi
|
|
AS="$ac_cv_prog_AS"
|
|
if test -n "$AS"; then
|
|
echo "$ac_t""$AS" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
AS="false"
|
|
fi
|
|
fi
|
|
|
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3203: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$OBJDUMP"; then
|
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
|
if test -n "$OBJDUMP"; then
|
|
echo "$ac_t""$OBJDUMP" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test -z "$ac_cv_prog_OBJDUMP"; then
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "objdump", so it can be a program name with args.
|
|
set dummy objdump; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3235: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$OBJDUMP"; then
|
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_OBJDUMP="objdump"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
|
|
fi
|
|
fi
|
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
|
if test -n "$OBJDUMP"; then
|
|
echo "$ac_t""$OBJDUMP" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
OBJDUMP="false"
|
|
fi
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
# Save cache, so that ltconfig can load it
|
|
|
|
|
|
# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
|
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
|
|
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
|
|
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
|
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
|
|
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
|
|
|
# Reload cache, that may have been modified by ltconfig
|
|
|
|
|
|
# This can be used to rebuild libtool when needed
|
|
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
|
|
|
|
# Always use our own libtool.
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
|
|
|
# Redirect the config.log output again, so that the ltconfig log is not
|
|
# clobbered by the next message.
|
|
exec 5>>./config.log
|
|
|
|
|
|
for ac_prog in mawk gawk nawk awk
|
|
do
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
set dummy $ac_prog; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3303: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test -n "$AWK"; then
|
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
else
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_prog_AWK="$ac_prog"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
fi
|
|
fi
|
|
AWK="$ac_cv_prog_AWK"
|
|
if test -n "$AWK"; then
|
|
echo "$ac_t""$AWK" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
test -n "$AWK" && break
|
|
done
|
|
|
|
# test for ln hardlink support
|
|
echo $ac_n "checking whether ln works""... $ac_c" 1>&6
|
|
echo "configure:3334: checking whether ln works" >&5
|
|
if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
rm -f conftest.src conftest.dst
|
|
echo "conftest" > conftest.src
|
|
if ln conftest.src conftest.dst 2>/dev/null
|
|
then
|
|
ol_cv_prog_LN_H="ln"
|
|
else
|
|
ol_cv_prog_LN_H="cp"
|
|
fi
|
|
rm -f conftest.src conftest.dst
|
|
|
|
fi
|
|
LN_H="$ol_cv_prog_LN_H"
|
|
if test "$ol_cv_prog_LN_H" = "ln"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
echo "configure:3357: checking whether ln -s works" >&5
|
|
if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
rm -f conftestdata
|
|
if ln -s X conftestdata 2>/dev/null
|
|
then
|
|
rm -f conftestdata
|
|
ac_cv_prog_LN_S="ln -s"
|
|
else
|
|
ac_cv_prog_LN_S=ln
|
|
fi
|
|
fi
|
|
LN_S="$ac_cv_prog_LN_S"
|
|
if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
|
|
LN_S="$LN_H"
|
|
fi
|
|
|
|
# Extract the first word of "sendmail", so it can be a program name with args.
|
|
set dummy sendmail; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3385: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$SENDMAIL" in
|
|
/*)
|
|
ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
|
|
;;
|
|
?:/*)
|
|
ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
|
|
;;
|
|
esac
|
|
fi
|
|
SENDMAIL="$ac_cv_path_SENDMAIL"
|
|
if test -n "$SENDMAIL"; then
|
|
echo "$ac_t""$SENDMAIL" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# Extract the first word of "vi", so it can be a program name with args.
|
|
set dummy vi; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3421: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$EDITOR" in
|
|
/*)
|
|
ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
|
|
;;
|
|
?:/*)
|
|
ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH:/usr/ucb"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_path_EDITOR="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
|
|
;;
|
|
esac
|
|
fi
|
|
EDITOR="$ac_cv_path_EDITOR"
|
|
if test -n "$EDITOR"; then
|
|
echo "$ac_t""$EDITOR" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
# Extract the first word of "finger", so it can be a program name with args.
|
|
set dummy finger; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3457: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$FINGER" in
|
|
/*)
|
|
ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
|
|
;;
|
|
?:/*)
|
|
ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH:/usr/ucb"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_path_FINGER="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
|
|
;;
|
|
esac
|
|
fi
|
|
FINGER="$ac_cv_path_FINGER"
|
|
if test -n "$FINGER"; then
|
|
echo "$ac_t""$FINGER" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
ol_link_perl=no
|
|
if test $ol_enable_perl != no ; then
|
|
# Extract the first word of "perl", so it can be a program name with args.
|
|
set dummy perl; ac_word=$2
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
echo "configure:3496: checking for $ac_word" >&5
|
|
if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
case "$PERLBIN" in
|
|
/*)
|
|
ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
|
|
;;
|
|
?:/*)
|
|
ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
|
|
;;
|
|
*)
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
ac_dummy="$PATH"
|
|
for ac_dir in $ac_dummy; do
|
|
test -z "$ac_dir" && ac_dir=.
|
|
if test -f $ac_dir/$ac_word; then
|
|
ac_cv_path_PERLBIN="$ac_dir/$ac_word"
|
|
break
|
|
fi
|
|
done
|
|
IFS="$ac_save_ifs"
|
|
test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
|
|
;;
|
|
esac
|
|
fi
|
|
PERLBIN="$ac_cv_path_PERLBIN"
|
|
if test -n "$PERLBIN"; then
|
|
echo "$ac_t""$PERLBIN" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test "no$PERLBIN" = "no" ; then
|
|
if test $ol_enable_perl = yes ; then
|
|
{ echo "configure: error: could not locate perl" 1>&2; exit 1; }
|
|
fi
|
|
|
|
else
|
|
PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
|
|
if test x"$ol_with_perl_module" = "xstatic" ; then
|
|
SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
|
|
else
|
|
MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
|
|
fi
|
|
ol_link_perl=yes
|
|
fi
|
|
fi
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
echo "configure:3547: checking how to run the C preprocessor" >&5
|
|
# On Suns, sometimes $CPP names a directory.
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
CPP=
|
|
fi
|
|
if test -z "$CPP"; then
|
|
if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
CPP="${CC-cc} -E"
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
# not just through cpp.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3562 "configure"
|
|
#include "confdefs.h"
|
|
#include <assert.h>
|
|
Syntax Error
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
:
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3579 "configure"
|
|
#include "confdefs.h"
|
|
#include <assert.h>
|
|
Syntax Error
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
:
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CPP="${CC-cc} -nologo -E"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3596 "configure"
|
|
#include "confdefs.h"
|
|
#include <assert.h>
|
|
Syntax Error
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
:
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
CPP=/lib/cpp
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
rm -f conftest*
|
|
ac_cv_prog_CPP="$CPP"
|
|
fi
|
|
CPP="$ac_cv_prog_CPP"
|
|
else
|
|
ac_cv_prog_CPP="$CPP"
|
|
fi
|
|
echo "$ac_t""$CPP" 1>&6
|
|
|
|
|
|
if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
|
|
echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
|
|
|
|
elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
|
|
echo "configure: warning: programs compiled here do run here..." 1>&2
|
|
{ echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
|
|
|
|
elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
|
|
echo "configure: warning: programs compiled here do not run here..." 1>&2
|
|
{ echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
|
echo "configure:3640: checking for AIX" >&5
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3642 "configure"
|
|
#include "confdefs.h"
|
|
#ifdef _AIX
|
|
yes
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "yes" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
|
|
#define _ALL_SOURCE 1
|
|
EOF
|
|
|
|
else
|
|
rm -rf conftest*
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
|
|
echo "configure:3664: checking for POSIXized ISC" >&5
|
|
if test -d /etc/conf/kconfig.d &&
|
|
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
|
|
then
|
|
echo "$ac_t""yes" 1>&6
|
|
ISC=yes # If later tests want to check for ISC.
|
|
cat >> confdefs.h <<\EOF
|
|
#define _POSIX_SOURCE 1
|
|
EOF
|
|
|
|
if test "$GCC" = yes; then
|
|
CC="$CC -posix"
|
|
else
|
|
CC="$CC -Xp"
|
|
fi
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ISC=
|
|
fi
|
|
|
|
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
|
|
echo "configure:3686: checking for minix/config.h" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3691 "configure"
|
|
#include "confdefs.h"
|
|
#include <minix/config.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:3696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
MINIX=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
MINIX=
|
|
fi
|
|
|
|
if test "$MINIX" = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define _POSIX_SOURCE 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _POSIX_1_SOURCE 2
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _MINIX 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
|
echo "configure:3735: checking for Cygwin environment" >&5
|
|
if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3740 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
#ifndef __CYGWIN__
|
|
#define __CYGWIN__ __CYGWIN32__
|
|
#endif
|
|
return __CYGWIN__;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_cygwin=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_cygwin=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_cygwin" 1>&6
|
|
CYGWIN=
|
|
test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
|
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
|
echo "configure:3767: checking for mingw32 environment" >&5
|
|
if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3772 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
return __MINGW32__;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_mingw32=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_mingw32=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_mingw32" 1>&6
|
|
MINGW32=
|
|
test "$ac_cv_mingw32" = yes && MINGW32=yes
|
|
echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
|
|
echo "configure:3795: checking for EMX OS/2 environment" >&5
|
|
if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3800 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
return __EMX__;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_emxos2=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_emxos2=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_emxos2" 1>&6
|
|
EMXOS2=
|
|
test "$ac_cv_emxos2" = yes && EMXOS2=yes
|
|
|
|
|
|
|
|
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
|
echo "configure:3826: checking for executable suffix" >&5
|
|
if eval "test \"\${ac_cv_exeext+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
|
|
ac_cv_exeext=.exe
|
|
else
|
|
rm -f conftest*
|
|
echo 'int main () { return 0; }' > conftest.$ac_ext
|
|
ac_cv_exeext=
|
|
if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
|
for file in conftest.*; do
|
|
case $file in
|
|
*.c | *.C | *.o | *.obj | *.xcoff) ;;
|
|
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
|
esac
|
|
done
|
|
else
|
|
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
|
fi
|
|
rm -f conftest*
|
|
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
|
fi
|
|
fi
|
|
|
|
EXEEXT=""
|
|
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
|
echo "$ac_t""${ac_cv_exeext}" 1>&6
|
|
ac_exeext=$EXEEXT
|
|
|
|
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
|
echo "configure:3857: checking for object suffix" >&5
|
|
if eval "test \"\${ac_cv_objext+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
rm -f conftest*
|
|
echo 'int i = 1;' > conftest.$ac_ext
|
|
if { (eval echo configure:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
for ac_file in conftest.*; do
|
|
case $ac_file in
|
|
*.c) ;;
|
|
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
|
esac
|
|
done
|
|
else
|
|
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_objext" 1>&6
|
|
OBJEXT=$ac_cv_objext
|
|
ac_objext=$ac_cv_objext
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
#define EXEEXT "${EXEEXT}"
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
|
|
echo "configure:3887: checking for be_app in -lbe" >&5
|
|
ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lbe -lroot -lnet $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3895 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char be_app();
|
|
|
|
int main() {
|
|
be_app()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
LIBS="$LIBS -lbe -lroot -lnet"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
:
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
|
|
echo "configure:3932: checking for ${CC-cc} option to accept ANSI C" >&5
|
|
if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
am_cv_prog_cc_stdc=no
|
|
ac_save_CC="$CC"
|
|
# Don't try gcc -ansi; that turns off useful extensions and
|
|
# breaks some systems' header files.
|
|
# AIX -qlanglvl=ansi
|
|
# Ultrix and OSF/1 -std1
|
|
# HP-UX 10.20 and later -Ae
|
|
# HP-UX older versions -Aa -D_HPUX_SOURCE
|
|
# SVR4 -Xc -D__EXTENSIONS__
|
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
|
do
|
|
CC="$ac_save_CC $ac_arg"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 3949 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
|
struct buf { int x; };
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
|
static char *e (p, i)
|
|
char **p;
|
|
int i;
|
|
{
|
|
return p[i];
|
|
}
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
|
{
|
|
char *s;
|
|
va_list v;
|
|
va_start (v,p);
|
|
s = g (p, va_arg (v,int));
|
|
va_end (v);
|
|
return s;
|
|
}
|
|
int test (int i, double x);
|
|
struct s1 {int (*f) (int a);};
|
|
struct s2 {int (*f) (double a);};
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
|
int argc;
|
|
char **argv;
|
|
|
|
int main() {
|
|
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:3986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
am_cv_prog_cc_stdc="$ac_arg"; break
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
CC="$ac_save_CC"
|
|
|
|
fi
|
|
|
|
if test -z "$am_cv_prog_cc_stdc"; then
|
|
echo "$ac_t""none needed" 1>&6
|
|
else
|
|
echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
|
|
fi
|
|
case "x$am_cv_prog_cc_stdc" in
|
|
x|xno) ;;
|
|
*) CC="$CC $am_cv_prog_cc_stdc" ;;
|
|
esac
|
|
|
|
if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
|
|
{ echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
|
|
fi
|
|
|
|
# test for make depend flag
|
|
OL_MKDEP=
|
|
OL_MKDEP_FLAGS=
|
|
if test -z "${MKDEP}"; then
|
|
OL_MKDEP="${CC-cc}"
|
|
if test -z "${MKDEP_FLAGS}"; then
|
|
echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
|
|
echo "configure:4020: checking for ${OL_MKDEP} depend flag" >&5
|
|
if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_cv_mkdep=no
|
|
for flag in "-M" "-xM"; do
|
|
cat > conftest.c <<EOF
|
|
noCode;
|
|
EOF
|
|
if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
|
|
| egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
|
|
then
|
|
if test ! -f conftest."${ac_object}" ; then
|
|
ol_cv_mkdep=$flag
|
|
OL_MKDEP_FLAGS="$flag"
|
|
break
|
|
fi
|
|
fi
|
|
done
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_mkdep" 1>&6
|
|
else
|
|
cc_cv_mkdep=yes
|
|
OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
|
|
fi
|
|
else
|
|
cc_cv_mkdep=yes
|
|
OL_MKDEP="${MKDEP}"
|
|
OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
|
|
fi
|
|
|
|
|
|
|
|
if test "${ol_cv_mkdep}" = no ; then
|
|
# this will soon become an error
|
|
echo "configure: warning: do not know how to generate dependencies" 1>&2
|
|
fi
|
|
|
|
echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
|
|
echo "configure:4063: checking for afopen in -ls" >&5
|
|
ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-ls $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4071 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char afopen();
|
|
|
|
int main() {
|
|
afopen()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
AUTH_LIBS=-ls
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_AIX_SECURITY 1
|
|
EOF
|
|
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
|
|
for ac_func in getaddrinfo
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:4113: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4118 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_func_getaddrinfo = no ; then
|
|
if test $ol_enable_ipv6 = yes ; then
|
|
{ echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_ipv6=no
|
|
fi
|
|
|
|
if test $ol_enable_local != no ; then
|
|
for ac_hdr in sys/un.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4179: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4184 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ol_enable_local = auto ; then
|
|
ol_enable_local=$ac_cv_header_sys_un_h
|
|
elif test $ac_cv_header_sys_un_h = no ; then
|
|
{ echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
ol_link_modules=no
|
|
if test $ol_enable_modules != no ; then
|
|
for ac_hdr in ltdl.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4229: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4234 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_ltdl_h = no ; then
|
|
{ echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
|
|
echo "configure:4271: checking for lt_dlinit in -lltdl" >&5
|
|
ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lltdl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4279 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char lt_dlinit();
|
|
|
|
int main() {
|
|
lt_dlinit()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
MODULES_LIBS=-lltdl
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LIBLTDL 1
|
|
EOF
|
|
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
|
|
{ echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
|
|
fi
|
|
ol_link_modules=yes
|
|
else
|
|
ol_with_dnssrv_module=static
|
|
ol_with_ldap_module=static
|
|
ol_with_ldbm_module=static
|
|
ol_with_passwd_module=static
|
|
ol_with_perl_module=static
|
|
ol_with_shell_module=static
|
|
ol_with_tcl_module=static
|
|
ol_with_sql_module=static
|
|
fi
|
|
|
|
# test for EBCDIC
|
|
echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
|
|
echo "configure:4334: checking for EBCDIC" >&5
|
|
if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4340 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if !('M' == 0xd4)
|
|
#include <__ASCII__/generate_error.h>
|
|
#endif
|
|
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
ol_cv_cpp_ebcdic=yes
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_cpp_ebcdic=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
|
|
if test $ol_cv_cpp_ebcdic = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_EBCDIC 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
echo "configure:4373: checking for ANSI C header files" >&5
|
|
if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4378 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
ol_cv_header_stdc=yes
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ol_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4403 "configure"
|
|
#include "confdefs.h"
|
|
#include <string.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ol_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ol_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4421 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ol_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ol_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4442 "configure"
|
|
#include "confdefs.h"
|
|
#include <ctype.h>
|
|
#ifndef HAVE_EBCDIC
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
exit (0); }
|
|
|
|
EOF
|
|
if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
:
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_header_stdc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_header_stdc" 1>&6
|
|
if test $ol_cv_header_stdc = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define STDC_HEADERS 1
|
|
EOF
|
|
|
|
fi
|
|
ac_cv_header_stdc=disable
|
|
|
|
|
|
if test $ol_cv_header_stdc != yes; then
|
|
echo "configure: warning: could not locate Standard C compliant headers" 1>&2
|
|
fi
|
|
|
|
ac_header_dirent=no
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
|
echo "configure:4494: checking for $ac_hdr that defines DIR" >&5
|
|
if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4499 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <$ac_hdr>
|
|
int main() {
|
|
DIR *dirp = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_dirent_$ac_safe=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_dirent_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
ac_header_dirent=$ac_hdr; break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|
if test $ac_header_dirent = dirent.h; then
|
|
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
|
echo "configure:4532: checking for opendir in -ldir" >&5
|
|
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-ldir $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4540 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char opendir();
|
|
|
|
int main() {
|
|
opendir()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
LIBS="$LIBS -ldir"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
|
echo "configure:4573: checking for opendir in -lx" >&5
|
|
ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lx $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4581 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char opendir();
|
|
|
|
int main() {
|
|
opendir()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
LIBS="$LIBS -lx"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
echo "configure:4615: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4620 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/wait.h>
|
|
#ifndef WEXITSTATUS
|
|
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
#endif
|
|
#ifndef WIFEXITED
|
|
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
#endif
|
|
int main() {
|
|
int s;
|
|
wait (&s);
|
|
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_header_sys_wait_h=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_sys_wait_h=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
if test $ac_cv_header_sys_wait_h = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SYS_WAIT_H 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
|
|
echo "configure:4657: checking POSIX termios" >&5
|
|
if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4662 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#include <termios.h>
|
|
int main() {
|
|
/* SunOS 4.0.3 has termios.h but not the library calls. */
|
|
tcgetattr(0, 0);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
am_cv_sys_posix_termios=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
am_cv_sys_posix_termios=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
|
|
|
|
|
|
echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
|
|
echo "configure:4688: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
|
|
if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
|
|
|
|
gwinsz_in_termios_h=no
|
|
if test $am_cv_sys_posix_termios = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4697 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
# include <termios.h>
|
|
# ifdef TIOCGWINSZ
|
|
yes
|
|
# endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "yes" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
gwinsz_in_termios_h=yes
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $gwinsz_in_termios_h = no; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4717 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
# include <sys/ioctl.h>
|
|
# ifdef TIOCGWINSZ
|
|
yes
|
|
# endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "yes" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
|
|
if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define GWINSZ_IN_SYS_IOCTL 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $am_cv_sys_posix_termios = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_POSIX_TERMIOS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
for ac_hdr in \
|
|
arpa/inet.h \
|
|
arpa/nameser.h \
|
|
assert.h \
|
|
conio.h \
|
|
crypt.h \
|
|
direct.h \
|
|
errno.h \
|
|
fcntl.h \
|
|
filio.h \
|
|
getopt.h \
|
|
grp.h \
|
|
io.h \
|
|
libutil.h \
|
|
limits.h \
|
|
locale.h \
|
|
netinet/tcp.h \
|
|
malloc.h \
|
|
memory.h \
|
|
psap.h \
|
|
pwd.h \
|
|
process.h \
|
|
resolv.h \
|
|
sgtty.h \
|
|
shadow.h \
|
|
stddef.h \
|
|
string.h \
|
|
strings.h \
|
|
sysexits.h \
|
|
sys/file.h \
|
|
sys/filio.h \
|
|
sys/errno.h \
|
|
sys/ioctl.h \
|
|
sys/param.h \
|
|
sys/resource.h \
|
|
sys/select.h \
|
|
sys/socket.h \
|
|
sys/syslog.h \
|
|
sys/time.h \
|
|
sys/types.h \
|
|
syslog.h \
|
|
termios.h \
|
|
unistd.h \
|
|
winsock.h \
|
|
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:4800: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4805 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:4810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
|
|
echo "configure:4840: checking for sigset in -lV3" >&5
|
|
ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lV3 $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4848 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char sigset();
|
|
|
|
int main() {
|
|
sigset()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lV3 $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test $ac_cv_header_winsock_h = yes; then
|
|
echo $ac_n "checking for winsock""... $ac_c" 1>&6
|
|
echo "configure:4889: checking for winsock" >&5
|
|
if eval "test \"\${ol_cv_winsock+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4894 "configure"
|
|
#include "confdefs.h"
|
|
#include <winsock.h>
|
|
int main() {
|
|
|
|
socket(0,0,0);
|
|
select(0,NULL,NULL,NULL,NULL);
|
|
closesocket(0);
|
|
gethostname(NULL,0);
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_winsock=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_winsock=no
|
|
fi
|
|
rm -f conftest*]
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_winsock" 1>&6
|
|
|
|
if test $ol_cv_winsock = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_WINSOCK 1
|
|
EOF
|
|
|
|
ac_cv_func_socket=yes
|
|
ac_cv_func_select=yes
|
|
ac_cv_func_closesocket=yes
|
|
ac_cv_func_gethostname=yes
|
|
fi
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for socket""... $ac_c" 1>&6
|
|
echo "configure:4934: checking for socket" >&5
|
|
if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4939 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char socket(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char socket();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_socket) || defined (__stub___socket)
|
|
choke me
|
|
#else
|
|
f = socket;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_socket=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_socket=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
|
|
echo "configure:4982: checking for main in -lsocket" >&5
|
|
ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsocket $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 4990 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lsocket $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
|
|
echo "configure:5025: checking for main in -lnet" >&5
|
|
ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lnet $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5033 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lnet $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
|
|
echo "configure:5068: checking for main in -lnsl_s" >&5
|
|
ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lnsl_s $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5076 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lnsl_s $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
|
echo "configure:5111: checking for main in -lnsl" >&5
|
|
ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lnsl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5119 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lnsl $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
|
|
echo "configure:5154: checking for socket in -linet" >&5
|
|
ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-linet $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5162 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char socket();
|
|
|
|
int main() {
|
|
socket()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-linet $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
|
|
echo "configure:5201: checking for main in -lgen" >&5
|
|
ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lgen $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5209 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lgen $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for select""... $ac_c" 1>&6
|
|
echo "configure:5248: checking for select" >&5
|
|
if eval "test \"\${ac_cv_func_select+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5253 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char select(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char select();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_select) || defined (__stub___select)
|
|
choke me
|
|
#else
|
|
f = select;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_select=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_select=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
{ echo "configure: error: select() required." 1>&2; exit 1; }
|
|
fi
|
|
|
|
|
|
if test "${ac_cv_header_winsock_h}" != yes; then
|
|
echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
|
|
echo "configure:5300: checking types of arguments for select()" >&5
|
|
if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
|
|
for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
|
|
for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5314 "configure"
|
|
#include "confdefs.h"
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_TIME_H
|
|
#include <sys/time.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
#include <sys/select.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
#include <sys/socket.h>
|
|
#endif
|
|
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);
|
|
int main() {
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_not_found=no ; break 3
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_not_found=yes
|
|
fi
|
|
rm -f conftest*
|
|
done
|
|
done
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
if test "$ac_not_found" = yes; then
|
|
ac_cv_func_select_arg1=int
|
|
ac_cv_func_select_arg234='int *'
|
|
ac_cv_func_select_arg5='struct timeval *'
|
|
fi
|
|
echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<EOF
|
|
#define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
|
|
EOF
|
|
|
|
cat >> confdefs.h <<EOF
|
|
#define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
|
|
EOF
|
|
|
|
|
|
fi
|
|
|
|
|
|
for ac_hdr in regex.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5378: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5383 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test "$ac_cv_header_regex_h" != yes ; then
|
|
{ echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
|
|
fi
|
|
echo $ac_n "checking for regfree""... $ac_c" 1>&6
|
|
echo "configure:5418: checking for regfree" >&5
|
|
if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5423 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char regfree(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char regfree();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_regfree) || defined (__stub___regfree)
|
|
choke me
|
|
#else
|
|
f = regfree;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_regfree=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_regfree=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
{ echo "configure: error: POSIX regex required." 1>&2; exit 1; }
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
|
|
echo "configure:5470: checking for compatible POSIX regex" >&5
|
|
if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ol_cv_c_posix_regex=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5479 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <regex.h>
|
|
static char *pattern, *string;
|
|
main()
|
|
{
|
|
int rc;
|
|
regex_t re;
|
|
|
|
pattern = "^A";
|
|
|
|
if(regcomp(&re, pattern, 0)) {
|
|
return -1;
|
|
}
|
|
|
|
string = "ALL MATCH";
|
|
|
|
rc = regexec(&re, string, 0, (void*)0, 0);
|
|
|
|
regfree(&re);
|
|
|
|
return rc;
|
|
}
|
|
EOF
|
|
if { (eval echo configure:5505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_c_posix_regex=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_c_posix_regex=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
|
|
|
|
if test "$ol_cv_c_posix_regex" = no ; then
|
|
{ echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ol_link_dnssrv=no
|
|
echo $ac_n "checking for res_query""... $ac_c" 1>&6
|
|
echo "configure:5527: checking for res_query" >&5
|
|
if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5532 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char res_query(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char res_query();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_res_query) || defined (__stub___res_query)
|
|
choke me
|
|
#else
|
|
f = res_query;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_res_query=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_res_query=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test $ac_cv_func_res_query = no ; then
|
|
echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
|
|
echo "configure:5577: checking for res_query in -lbind" >&5
|
|
ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lbind $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5585 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char res_query();
|
|
|
|
int main() {
|
|
res_query()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lbind $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
ac_cv_func_res_query=$ac_cv_lib_bind_res_query
|
|
fi
|
|
|
|
if test $ac_cv_func_res_query = no ; then
|
|
echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
|
|
echo "configure:5628: checking for __res_query in -lbind" >&5
|
|
ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lbind $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5636 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char __res_query();
|
|
|
|
int main() {
|
|
__res_query()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lbind $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
ac_cv_func_res_query=$ac_cv_lib_bind___res_query
|
|
fi
|
|
|
|
if test $ac_cv_func_res_query = no ; then
|
|
echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
|
|
echo "configure:5679: checking for res_query in -lresolv" >&5
|
|
ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lresolv $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5687 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char res_query();
|
|
|
|
int main() {
|
|
res_query()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lresolv $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
|
|
fi
|
|
|
|
if test "$ac_cv_func_res_query" = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_RES_QUERY 1
|
|
EOF
|
|
|
|
|
|
if test $ol_enable_dnssrv != no ; then
|
|
ol_link_dnssrv=yes
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
|
|
{ echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ol_link_kbind=no
|
|
ol_link_kpasswd=no
|
|
ol_link_krb5=no
|
|
ol_link_krb4=no
|
|
|
|
if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
|
|
-o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
|
|
-o $ol_with_kerberos = k425 ; then
|
|
|
|
for ac_hdr in krb5.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5756: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5761 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_krb5_h = yes ; then
|
|
for ac_hdr in heim_err.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5798: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5803 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test $ac_cv_header_heim_err_h = yes ; then
|
|
krb5_impl=heimdal
|
|
else
|
|
krb5_impl=mit
|
|
fi
|
|
|
|
if test $krb5_impl = mit; then
|
|
echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
|
|
echo "configure:5842: checking for main in -lkrb5" >&5
|
|
ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5850 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_krb5=yes
|
|
KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_krb5=no
|
|
fi
|
|
|
|
|
|
elif test $krb5_impl = heimdal; then
|
|
echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
|
|
echo "configure:5882: checking for main in -lkrb5" >&5
|
|
ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5890 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_krb5=yes
|
|
KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_krb5=no
|
|
fi
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_HEIMDAL_KERBEROS 1
|
|
EOF
|
|
|
|
else
|
|
have_krb5=no
|
|
echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
|
|
fi
|
|
|
|
if test $have_krb5 = yes ; then
|
|
ol_link_krb5=yes
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KRB5 1
|
|
EOF
|
|
|
|
|
|
if test $ol_enable_kpasswd != no ; then
|
|
ol_link_kpasswd=yes;
|
|
fi
|
|
|
|
if test $ol_with_kerberos = k5only ; then
|
|
ol_with_kerberos=found
|
|
fi
|
|
|
|
elif test $ol_with_kerberos != auto ; then
|
|
{ echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
|
|
$ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
|
|
|
|
for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:5959: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 5964 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:5969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_kerberosIV_krb_h = yes ; then
|
|
if test $krb5_impl = mit; then
|
|
echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
|
|
echo "configure:5999: checking for main in -lkrb4" >&5
|
|
ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6007 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_k425=yes
|
|
KRB4_LIBS="-lkrb4 -ldes425"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_k425=no
|
|
fi
|
|
|
|
|
|
elif test $krb5_impl = heimdal; then
|
|
echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
|
|
echo "configure:6039: checking for main in -lkrb4" >&5
|
|
ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6047 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_k425=yes
|
|
KRB4_LIBS="-lkrb4"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_k425=no
|
|
fi
|
|
|
|
|
|
else
|
|
have_425=no
|
|
echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
|
|
fi
|
|
|
|
if test $have_k425 = yes ; then
|
|
ol_with_kerberos=found
|
|
ol_link_krb4=yes
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KRB425 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KRB4 1
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
|
|
echo "configure:6096: checking for des_debug in Kerberos libraries" >&5
|
|
if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
save_LIBS="$LIBS"
|
|
LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6104 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <kerberosIV/krb.h>
|
|
#include <kerberosIV/des.h>
|
|
extern int des_debug;
|
|
|
|
int main() {
|
|
|
|
des_debug = 1;
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_var_des_debug=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_var_des_debug=no
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$save_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_var_des_debug" 1>&6
|
|
|
|
if test $ol_cv_var_des_debug = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DES_DEBUG 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
LIBS="$save_LIBS"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_krb5 = yes ; then
|
|
ol_with_kerberos=found
|
|
fi
|
|
|
|
if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
|
|
-o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
|
|
|
|
for ac_hdr in krb.h des.h krb-archaeology.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:6156: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6161 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:6166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_krb_h = yes ; then
|
|
echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
|
|
echo "configure:6195: checking for main in -lkrb" >&5
|
|
ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lkrb -ldes $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6203 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_k4=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_k4=no
|
|
fi
|
|
|
|
|
|
if test $have_k4 = yes ; then
|
|
ol_with_kerberos=found
|
|
ol_link_krb4=yes
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KRB4 1
|
|
EOF
|
|
|
|
|
|
KRB4_LIBS="-lkrb -ldes"
|
|
|
|
if test $ac_cv_header_krb_archaeology_h = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KTH_KERBEROS 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
|
|
ol_link_kpasswd=yes
|
|
fi
|
|
|
|
if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
|
|
ol_link_kbind=yes
|
|
|
|
elif test $ol_enable_kbind = yes ; then
|
|
{ echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
|
|
fi
|
|
|
|
if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_KERBEROS 1
|
|
EOF
|
|
|
|
|
|
elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
|
|
{ echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ol_link_tls=no
|
|
if test $ol_with_tls != no ; then
|
|
for ac_hdr in openssl/ssl.h ssl.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:6280: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6285 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:6290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
|
|
echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
|
|
echo "configure:6319: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
|
|
ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lssl -lcrypto $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6327 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char SSLeay_add_ssl_algorithms();
|
|
|
|
int main() {
|
|
SSLeay_add_ssl_algorithms()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_ssleay=yes
|
|
need_rsaref=no
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_ssleay=no
|
|
fi
|
|
|
|
|
|
if test $have_ssleay = no ; then
|
|
echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
|
|
echo "configure:6363: checking for SSL_library_init in -lssl" >&5
|
|
ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lssl -lcrypto $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6371 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char SSL_library_init();
|
|
|
|
int main() {
|
|
SSL_library_init()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_ssleay=yes
|
|
need_rsaref=no
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_ssleay=no
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $have_ssleay = no ; then
|
|
echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
|
|
echo "configure:6408: checking for ssl3_accept in -lssl" >&5
|
|
ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6416 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char ssl3_accept();
|
|
|
|
int main() {
|
|
ssl3_accept()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_ssleay=yes
|
|
need_rsaref=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_ssleay=no
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $have_ssleay = yes ; then
|
|
ol_with_tls=found
|
|
ol_link_tls=yes
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SSLEAY 1
|
|
EOF
|
|
|
|
|
|
if test $need_rsaref = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_RSAREF 1
|
|
EOF
|
|
|
|
|
|
TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
|
|
else
|
|
TLS_LIBS="-lssl -lcrypto"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
else
|
|
echo "configure: warning: TLS privacy protection not supported!" 1>&2
|
|
fi
|
|
|
|
if test $ol_link_tls = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_TLS 1
|
|
EOF
|
|
|
|
|
|
elif test $ol_with_tls = auto ; then
|
|
echo "configure: warning: Could not locate TLS/SSL package" 1>&2
|
|
echo "configure: warning: TLS privacy protection not supported!" 1>&2
|
|
|
|
elif test $ol_with_tls != no ; then
|
|
{ echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
|
|
fi
|
|
|
|
for ac_func in \
|
|
ctime_r \
|
|
gethostbyname_r gethostbyaddr_r \
|
|
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:6497: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6502 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test "$ac_cv_func_ctime_r" = no ; then
|
|
ol_cv_func_ctime_r_nargs=0
|
|
else
|
|
echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
|
|
echo "configure:6555: checking number of arguments of ctime_r" >&5
|
|
if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6560 "configure"
|
|
#include "confdefs.h"
|
|
#include <time.h>
|
|
int main() {
|
|
time_t ti; char *buffer; ctime_r(&ti,buffer,32);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_func_ctime_r_nargs3=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_ctime_r_nargs3=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6579 "configure"
|
|
#include "confdefs.h"
|
|
#include <time.h>
|
|
int main() {
|
|
time_t ti; char *buffer; ctime_r(&ti,buffer);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_func_ctime_r_nargs2=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_ctime_r_nargs2=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ol_cv_func_ctime_r_nargs3 = yes -a \
|
|
$ol_cv_func_ctime_r_nargs2 = no ; then
|
|
|
|
ol_cv_func_ctime_r_nargs=3
|
|
|
|
elif test $ol_cv_func_ctime_r_nargs3 = no -a \
|
|
$ol_cv_func_ctime_r_nargs2 = yes ; then
|
|
|
|
ol_cv_func_ctime_r_nargs=2
|
|
|
|
else
|
|
ol_cv_func_ctime_r_nargs=0
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
|
|
|
|
if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
|
|
cat >> confdefs.h <<EOF
|
|
#define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
|
|
EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$ac_cv_func_gethostbyname_r" = yes ; then
|
|
echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
|
|
echo "configure:6626: checking number of arguments of gethostbyname_r" >&5
|
|
if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6631 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
#define BUFSIZE (sizeof(struct hostent)+10)
|
|
int main() {
|
|
struct hostent hent; char buffer[BUFSIZE];
|
|
int bufsize=BUFSIZE;int h_errno;
|
|
(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
|
|
buffer, bufsize, &h_errno);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyname_r_nargs5=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyname_r_nargs5=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6657 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
#define BUFSIZE (sizeof(struct hostent)+10)
|
|
int main() {
|
|
struct hostent hent;struct hostent *rhent;
|
|
char buffer[BUFSIZE];
|
|
int bufsize=BUFSIZE;int h_errno;
|
|
(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
|
|
&rhent, &h_errno);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyname_r_nargs6=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyname_r_nargs6=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
|
|
$ol_cv_func_gethostbyname_r_nargs6 = no ; then
|
|
|
|
ol_cv_func_gethostbyname_r_nargs=5
|
|
|
|
elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
|
|
$ol_cv_func_gethostbyname_r_nargs6 = yes ; then
|
|
|
|
ol_cv_func_gethostbyname_r_nargs=6
|
|
|
|
else
|
|
ol_cv_func_gethostbyname_r_nargs=0
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
|
|
if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
|
|
cat >> confdefs.h <<EOF
|
|
#define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
|
|
EOF
|
|
|
|
fi
|
|
|
|
else
|
|
ol_cv_func_gethostbyname_r_nargs=0
|
|
fi
|
|
|
|
if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
|
|
echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
|
|
echo "configure:6713: checking number of arguments of gethostbyaddr_r" >&5
|
|
if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6718 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
#define BUFSIZE (sizeof(struct hostent)+10)
|
|
int main() {
|
|
struct hostent hent; char buffer[BUFSIZE];
|
|
struct in_addr add;
|
|
size_t alen=sizeof(struct in_addr);
|
|
int bufsize=BUFSIZE;int h_errno;
|
|
(void)gethostbyaddr_r( (void *)&(add.s_addr),
|
|
alen, AF_INET, &hent, buffer, bufsize, &h_errno);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyaddr_r_nargs7=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyaddr_r_nargs7=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6746 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netdb.h>
|
|
#define BUFSIZE (sizeof(struct hostent)+10)
|
|
int main() {
|
|
struct hostent hent;
|
|
struct hostent *rhent; char buffer[BUFSIZE];
|
|
struct in_addr add;
|
|
size_t alen=sizeof(struct in_addr);
|
|
int bufsize=BUFSIZE;int h_errno;
|
|
(void)gethostbyaddr_r( (void *)&(add.s_addr),
|
|
alen, AF_INET, &hent, buffer, bufsize,
|
|
&rhent, &h_errno);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyaddr_r_nargs8=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_gethostbyaddr_r_nargs8=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
|
|
$ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
|
|
|
|
ol_cv_func_gethostbyaddr_r_nargs=7
|
|
|
|
elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
|
|
$ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
|
|
|
|
ol_cv_func_gethostbyaddr_r_nargs=8
|
|
|
|
else
|
|
ol_cv_func_gethostbyaddr_r_nargs=0
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
|
|
if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
|
|
cat >> confdefs.h <<EOF
|
|
#define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
|
|
EOF
|
|
|
|
fi
|
|
|
|
else
|
|
ol_cv_func_gethostbyaddr_r_nargs=0
|
|
fi
|
|
|
|
if test "$ac_cv_func_ctime_r" = yes \
|
|
-a "$ol_cv_func_ctime_r_nargs" -ge 2 \
|
|
-a "$ol_cv_func_ctime_r_nargs" -le 3 \
|
|
-a "$ac_cv_func_gethostbyname_r" = yes \
|
|
-a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
|
|
-a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
|
|
-a "$ac_cv_func_gethostbyaddr_r" = yes \
|
|
-a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
|
|
-a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
|
|
; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
ol_link_threads=no
|
|
|
|
if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
|
-o $ol_with_threads = nt ; then
|
|
|
|
|
|
echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
|
|
echo "configure:6827: checking for NT Threads" >&5
|
|
if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
|
|
echo "configure:6833: checking for _beginthread" >&5
|
|
if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6838 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char _beginthread(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char _beginthread();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub__beginthread) || defined (__stub____beginthread)
|
|
choke me
|
|
#else
|
|
f = _beginthread;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__beginthread=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__beginthread=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_nt_threads=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ol_cv_nt_threads=no
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_nt_threads" 1>&6
|
|
|
|
if test $ol_cv_nt_threads = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NT_THREADS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test "$ol_cv_nt_threads" = yes ; then
|
|
ol_link_threads=nt
|
|
ol_with_threads=found
|
|
ol_with_yielding_select=yes
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NT_SERVICE_MANAGER 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NT_EVENT_LOG 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $ol_with_threads = nt ; then
|
|
{ echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
|
-o $ol_with_threads = posix ; then
|
|
|
|
for ac_hdr in pthread.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:6922: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6927 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:6932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_pthread_h = yes ; then
|
|
echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
|
|
echo "configure:6961: checking POSIX thread version" >&5
|
|
if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6967 "configure"
|
|
#include "confdefs.h"
|
|
|
|
# include <pthread.h>
|
|
/* this check could be improved */
|
|
# ifdef PTHREAD_ONCE_INIT
|
|
pthread_version_final;
|
|
# endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "pthread_version_final" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ol_pthread_final=yes
|
|
else
|
|
rm -rf conftest*
|
|
ol_pthread_final=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 6989 "configure"
|
|
#include "confdefs.h"
|
|
|
|
# include <pthread.h>
|
|
/* this check could be improved */
|
|
# ifdef pthread_once_init
|
|
pthread_version_draft4;
|
|
# endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "pthread_version_draft4" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ol_pthread_draft4=yes
|
|
else
|
|
rm -rf conftest*
|
|
ol_pthread_draft4=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
|
|
ol_cv_pthread_version=final
|
|
elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
|
|
ol_cv_pthread_version=draft4
|
|
else
|
|
ol_cv_pthread_version=unknown
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_version" 1>&6
|
|
|
|
|
|
if test $ol_cv_pthread_version = final ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTHREADS_FINAL 1
|
|
EOF
|
|
|
|
elif test $ol_cv_pthread_version = draft4 ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTHREADS_D4 1
|
|
EOF
|
|
|
|
else
|
|
{ echo "configure: error: unknown pthread version" 1>&2; exit 1; }
|
|
fi
|
|
|
|
# consider threads found
|
|
ol_with_threads=found
|
|
|
|
|
|
echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
|
|
echo "configure:7042: checking for LinuxThreads pthread.h" >&5
|
|
if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7047 "configure"
|
|
#include "confdefs.h"
|
|
#include <pthread.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ol_cv_header_linux_threads=yes
|
|
else
|
|
rm -rf conftest*
|
|
ol_cv_header_linux_threads=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
|
|
if test $ol_cv_header_linux_threads = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LINUX_THREADS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
|
|
echo "configure:7074: checking for GNU Pth pthread.h" >&5
|
|
if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7079 "configure"
|
|
#include "confdefs.h"
|
|
#include <pthread.h>
|
|
#ifdef _POSIX_THREAD_IS_GNU_PTH
|
|
__gnu_pth__;
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "__gnu_pth__" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ol_cv_header_gnu_pth_pthread_h=yes
|
|
else
|
|
rm -rf conftest*
|
|
ol_cv_header_gnu_pth_pthread_h=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
|
|
|
|
|
|
if test $ol_cv_header_gnu_pth_pthread_h = no ; then
|
|
for ac_hdr in sched.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:7108: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7113 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:7118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
|
|
echo "configure:7148: checking for pthread_create in default libraries" >&5
|
|
if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7155 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_create=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_create=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7223 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_create=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_create=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_create" 1>&6
|
|
|
|
if test $ol_cv_pthread_create != no ; then
|
|
ol_link_threads=posix
|
|
ol_link_pthreads=""
|
|
fi
|
|
|
|
# Pthread try link: -kthread (ol_cv_pthread_kthread)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -kthread
|
|
echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
|
|
echo "configure:7309: checking for pthread link with -kthread" >&5
|
|
if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-kthread $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7320 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_kthread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_kthread=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7388 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_kthread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_kthread=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
|
|
|
|
if test $ol_cv_pthread_kthread = yes ; then
|
|
ol_link_pthreads="-kthread"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -pthread (ol_cv_pthread_pthread)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -pthread
|
|
echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
|
|
echo "configure:7479: checking for pthread link with -pthread" >&5
|
|
if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-pthread $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7490 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_pthread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_pthread=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7558 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_pthread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_pthread=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
|
|
|
|
if test $ol_cv_pthread_pthread = yes ; then
|
|
ol_link_pthreads="-pthread"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -pthreads
|
|
echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
|
|
echo "configure:7649: checking for pthread link with -pthreads" >&5
|
|
if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-pthreads $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7660 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_pthreads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_pthreads=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7728 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_pthreads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_pthreads=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
|
|
|
|
if test $ol_cv_pthread_pthreads = yes ; then
|
|
ol_link_pthreads="-pthreads"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -mthreads
|
|
echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
|
|
echo "configure:7819: checking for pthread link with -mthreads" >&5
|
|
if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-mthreads $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7830 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_mthreads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_mthreads=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 7898 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_mthreads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_mthreads=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
|
|
|
|
if test $ol_cv_pthread_mthreads = yes ; then
|
|
ol_link_pthreads="-mthreads"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -thread (ol_cv_pthread_thread)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -thread
|
|
echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
|
|
echo "configure:7989: checking for pthread link with -thread" >&5
|
|
if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-thread $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8000 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_thread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_thread=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8068 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_thread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_thread=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_thread" 1>&6
|
|
|
|
if test $ol_cv_pthread_thread = yes ; then
|
|
ol_link_pthreads="-thread"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthread -lmach -lexc -lc_r
|
|
echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
|
|
echo "configure:8160: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
|
|
if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8171 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8239 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
|
|
|
|
if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
|
|
ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthread -lmach -lexc
|
|
echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
|
|
echo "configure:8330: checking for pthread link with -lpthread -lmach -lexc" >&5
|
|
if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthread -lmach -lexc $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8341 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthread_lmach_lexc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthread_lmach_lexc=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8409 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lpthread_lmach_lexc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lpthread_lmach_lexc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
|
|
|
|
if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
|
|
ol_link_pthreads="-lpthread -lmach -lexc"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthread -Wl,-woff,85
|
|
echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
|
|
echo "configure:8501: checking for pthread link with -lpthread -Wl,-woff,85" >&5
|
|
if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthread -Wl,-woff,85 $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8512 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lib_lpthread_woff=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lib_lpthread_woff=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8580 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lib_lpthread_woff=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lib_lpthread_woff=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
|
|
|
|
if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
|
|
ol_link_pthreads="-lpthread -Wl,-woff,85"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthread
|
|
echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
|
|
echo "configure:8672: checking for pthread link with -lpthread" >&5
|
|
if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthread $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8683 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthread=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8751 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lpthread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lpthread=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
|
|
|
|
if test $ol_cv_pthread_lpthread = yes ; then
|
|
ol_link_pthreads="-lpthread"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lc_r
|
|
echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
|
|
echo "configure:8842: checking for pthread link with -lc_r" >&5
|
|
if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lc_r $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8853 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lc_r=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lc_r=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 8921 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:8982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lc_r=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lc_r=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
|
|
|
|
if test $ol_cv_pthread_lc_r = yes ; then
|
|
ol_link_pthreads="-lc_r"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
# Pthread try link: -threads (ol_cv_pthread_threads)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -threads
|
|
echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
|
|
echo "configure:9013: checking for pthread link with -threads" >&5
|
|
if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-threads $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9024 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_threads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_threads=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9092 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_threads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_threads=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_threads" 1>&6
|
|
|
|
if test $ol_cv_pthread_threads = yes ; then
|
|
ol_link_pthreads="-threads"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthreads -lmach -lexc -lc_r
|
|
echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
|
|
echo "configure:9184: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
|
|
if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9195 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9263 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
|
|
|
|
if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
|
|
ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthreads -lmach -lexc
|
|
echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
|
|
echo "configure:9354: checking for pthread link with -lpthreads -lmach -lexc" >&5
|
|
if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthreads -lmach -lexc $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9365 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthreads_lmach_lexc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthreads_lmach_lexc=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9433 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lpthreads_lmach_lexc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lpthreads_lmach_lexc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
|
|
|
|
if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
|
|
ol_link_pthreads="-lpthreads -lmach -lexc"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthreads -lexc
|
|
echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
|
|
echo "configure:9524: checking for pthread link with -lpthreads -lexc" >&5
|
|
if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthreads -lexc $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9535 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthreads_lexc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lpthreads_lexc=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9603 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lpthreads_lexc=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lpthreads_lexc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
|
|
|
|
if test $ol_cv_pthread_lpthreads_lexc = yes ; then
|
|
ol_link_pthreads="-lpthreads -lexc"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
|
|
if test "$ol_link_threads" = no ; then
|
|
# try -lpthreads
|
|
echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
|
|
echo "configure:9695: checking for pthread link with -lpthreads" >&5
|
|
if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
# save the flags
|
|
ol_LIBS="$LIBS"
|
|
LIBS="-lpthreads $LIBS"
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9706 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
int main() {
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lib_lpthreads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_pthread_lib_lpthreads=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9774 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:9835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_lib_lpthreads=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_lib_lpthreads=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
# restore the LIBS
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
|
|
|
|
if test $ol_cv_pthread_lib_lpthreads = yes ; then
|
|
ol_link_pthreads="-lpthreads"
|
|
ol_link_threads=posix
|
|
fi
|
|
fi
|
|
|
|
|
|
if test $ol_link_threads != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTHREADS 1
|
|
EOF
|
|
|
|
|
|
LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
save_LIBS="$LIBS"
|
|
LIBS="$LTHREAD_LIBS $LIBS"
|
|
|
|
for ac_func in sched_yield pthread_yield
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:9877: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9882 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_func_sched_yield = no -a \
|
|
$ac_cv_func_pthread_yield = no ; then
|
|
echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
|
|
echo "configure:9934: checking for sched_yield in -lrt" >&5
|
|
ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lrt $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9942 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char sched_yield();
|
|
|
|
int main() {
|
|
sched_yield()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:9953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SCHED_YIELD 1
|
|
EOF
|
|
|
|
ac_cv_func_sched_yield=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ac_cv_func_sched_yield=no
|
|
fi
|
|
|
|
fi
|
|
if test $ac_cv_func_sched_yield = no -a \
|
|
$ac_cv_func_pthread_yield = no ; then
|
|
for ac_func in thr_yield
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:9985: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 9990 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
fi
|
|
if test $ac_cv_func_sched_yield = no -a \
|
|
$ac_cv_func_pthread_yield = no -a \
|
|
"$ac_cv_func_thr_yield" = no ; then
|
|
echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
|
|
fi
|
|
|
|
for ac_func in pthread_kill pthread_rwlock_destroy
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:10048: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10053 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
|
|
echo "configure:10103: checking for pthread_detach with <pthread.h>" >&5
|
|
if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10109 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
int main() {
|
|
pthread_detach(NULL);
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_func_pthread_detach=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_pthread_detach=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
|
|
|
|
if test $ol_cv_func_pthread_detach = no ; then
|
|
{ echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTHREAD_DETACH 1
|
|
EOF
|
|
|
|
|
|
for ac_func in \
|
|
pthread_setconcurrency \
|
|
pthread_getconcurrency \
|
|
thr_setconcurrency \
|
|
thr_getconcurrency \
|
|
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:10153: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10158 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
for ac_func in pthread_kill_other_threads_np
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:10211: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10216 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
|
|
echo "configure:10265: checking for LinuxThreads implementation" >&5
|
|
if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
|
|
echo "configure:10278: checking for LinuxThreads consistency" >&5
|
|
if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test $ol_cv_header_linux_threads = yes -a \
|
|
$ol_cv_sys_linux_threads = yes; then
|
|
ol_cv_linux_threads=yes
|
|
elif test $ol_cv_header_linux_threads = no -a \
|
|
$ol_cv_sys_linux_threads = no; then
|
|
ol_cv_linux_threads=no
|
|
else
|
|
ol_cv_linux_threads=error
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_linux_threads" 1>&6
|
|
|
|
|
|
if test $ol_cv_linux_threads = error; then
|
|
{ echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
|
|
fi
|
|
|
|
echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
|
|
echo "configure:10303: checking if pthread_create() works" >&5
|
|
if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ol_cv_pthread_create_works=yes
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10312 "configure"
|
|
#include "confdefs.h"
|
|
/* pthread test headers */
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*)0
|
|
#endif
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
return (void *) (p == NULL);
|
|
}
|
|
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
|
|
/* pthread test function */
|
|
pthread_t t;
|
|
int status;
|
|
#if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
|
|
/* This system (e.g. AIX) defaults detached; must override */
|
|
pthread_attr_t attr;
|
|
|
|
status = pthread_attr_init(&attr);
|
|
if( status ) exit( status );
|
|
|
|
status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
|
|
if( status ) exit( status );
|
|
|
|
#define ATTR &attr
|
|
#else
|
|
#if HAVE_PTHREADS_D4
|
|
#define ATTR pthread_attr_default
|
|
#else
|
|
#define ATTR NULL
|
|
#endif
|
|
#endif
|
|
/* make sure pthread_create() isn't just a stub */
|
|
status = pthread_create(&t, ATTR, task, NULL);
|
|
if( status ) exit( status );
|
|
|
|
/* make sure pthread_detach() isn't just a stub */
|
|
#if HAVE_PTHREADS_D4
|
|
status = pthread_detach( &t );
|
|
#else
|
|
status = pthread_detach( t );
|
|
#endif
|
|
|
|
#ifdef HAVE_LINUX_THREADS
|
|
pthread_kill_other_threads_np();
|
|
#endif
|
|
|
|
exit( status );
|
|
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_create_works=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_create_works=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
|
|
|
|
if test $ol_cv_pthread_create_works = no ; then
|
|
{ echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
|
|
fi
|
|
|
|
if test $ol_with_yielding_select = auto ; then
|
|
echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
|
|
echo "configure:10395: checking if select yields when using pthreads" >&5
|
|
if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ol_cv_pthread_select_yields=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10404 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <unistd.h>
|
|
#include <pthread.h>
|
|
#ifndef NULL
|
|
#define NULL (void*) 0
|
|
#endif
|
|
|
|
static int fildes[2];
|
|
|
|
static void *task(p)
|
|
void *p;
|
|
{
|
|
int i;
|
|
struct timeval tv;
|
|
|
|
fd_set rfds;
|
|
|
|
tv.tv_sec=10;
|
|
tv.tv_usec=0;
|
|
|
|
FD_ZERO(&rfds);
|
|
FD_SET(fildes[0], &rfds);
|
|
|
|
/* we're not interested in any fds */
|
|
i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
|
|
|
|
if(i < 0) {
|
|
perror("select");
|
|
exit(10);
|
|
}
|
|
|
|
exit(0); /* if we exit here, the select blocked the whole process */
|
|
}
|
|
|
|
int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
pthread_t t;
|
|
|
|
/* create a pipe to select */
|
|
if(pipe(&fildes[0])) {
|
|
perror("select");
|
|
exit(1);
|
|
}
|
|
|
|
#ifdef HAVE_PTHREAD_SETCONCURRENCY
|
|
(void) pthread_setconcurrency(2);
|
|
#else
|
|
#ifdef HAVE_THR_SETCONCURRENCY
|
|
/* Set Solaris LWP concurrency to 2 */
|
|
thr_setconcurrency(2);
|
|
#endif
|
|
#endif
|
|
|
|
#if HAVE_PTHREADS_D4
|
|
pthread_create(&t, pthread_attr_default, task, NULL);
|
|
#else
|
|
pthread_create(&t, NULL, task, NULL);
|
|
#endif
|
|
|
|
#if HAVE_SCHED_YIELD
|
|
sched_yield(); /* make sure task runs first */
|
|
#else
|
|
#ifdef HAVE_PTHREAD_YIELD
|
|
pthread_yield(); /* make sure task runs first */
|
|
#endif
|
|
#endif
|
|
|
|
exit(2);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:10480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_pthread_select_yields=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_pthread_select_yields=yes
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
|
|
|
|
if test $ol_cv_pthread_select_yields = cross ; then
|
|
{ echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
|
|
fi
|
|
|
|
if test $ol_cv_pthread_select_yields = yes ; then
|
|
ol_with_yielding_select=yes
|
|
fi
|
|
fi
|
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
LIBS="$save_LIBS"
|
|
else
|
|
{ echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_threads = posix ; then
|
|
{ echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
|
-o $ol_with_threads = mach ; then
|
|
|
|
for ac_hdr in mach/cthreads.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:10524: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10529 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:10534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test $ac_cv_header_mach_cthreads_h = yes ; then
|
|
ol_with_threads=found
|
|
|
|
echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
|
|
echo "configure:10564: checking for cthread_fork" >&5
|
|
if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10569 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char cthread_fork(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char cthread_fork();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
|
|
choke me
|
|
#else
|
|
f = cthread_fork;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_cthread_fork=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_cthread_fork=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_link_threads=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
if test $ol_link_threads = no ; then
|
|
echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
|
|
echo "configure:10615: checking for cthread_fork with -all_load" >&5
|
|
if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
save_LIBS="$LIBS"
|
|
LIBS="-all_load $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10623 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/cthreads.h>
|
|
int main() {
|
|
|
|
cthread_fork((void *)0, (void *)0);
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_cthread_all_load=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_cthread_all_load=no
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$save_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
|
|
|
|
if test $ol_cv_cthread_all_load = yes ; then
|
|
LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
|
|
ol_link_threads=mach
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_threads != no ; then
|
|
: check for cthread specific functionality here
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MACH_CTHREADS 1
|
|
EOF
|
|
|
|
else
|
|
{ echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_threads = mach ; then
|
|
{ echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
|
-o $ol_with_threads = pth ; then
|
|
|
|
for ac_hdr in pth.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:10677: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10682 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:10687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_pth_h = yes ; then
|
|
echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
|
|
echo "configure:10716: checking for pth_version in -lpth" >&5
|
|
ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lpth $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10724 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char pth_version();
|
|
|
|
int main() {
|
|
pth_version()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_pth=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_pth=no
|
|
fi
|
|
|
|
|
|
if test $have_pth = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_GNU_PTH 1
|
|
EOF
|
|
|
|
LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
|
|
ol_link_threads=pth
|
|
|
|
if test $ol_with_yielding_select = auto ; then
|
|
ol_with_yielding_select=yes
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_threads = auto -o $ol_with_threads = yes \
|
|
-o $ol_with_threads = lwp ; then
|
|
|
|
for ac_hdr in thread.h synch.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:10779: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10784 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:10789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
|
|
echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
|
|
echo "configure:10817: checking for thr_create in -lthread" >&5
|
|
ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lthread $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10825 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char thr_create();
|
|
|
|
int main() {
|
|
thr_create()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_thr=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_thr=no
|
|
fi
|
|
|
|
|
|
if test $have_thr = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_THR 1
|
|
EOF
|
|
|
|
LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
|
|
ol_link_threads=thr
|
|
|
|
if test $ol_with_yielding_select = auto ; then
|
|
ol_with_yielding_select=yes
|
|
fi
|
|
|
|
for ac_func in \
|
|
thr_setconcurrency \
|
|
thr_getconcurrency \
|
|
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:10876: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10881 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
fi
|
|
fi
|
|
|
|
for ac_hdr in lwp/lwp.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:10936: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10941 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:10946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test $ac_cv_header_lwp_lwp_h = yes ; then
|
|
echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
|
|
echo "configure:10974: checking for lwp_create in -llwp" >&5
|
|
ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-llwp $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 10982 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char lwp_create();
|
|
|
|
int main() {
|
|
lwp_create()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_lwp=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_lwp=no
|
|
fi
|
|
|
|
|
|
if test $have_lwp = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LWP 1
|
|
EOF
|
|
|
|
LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
|
|
ol_link_threads=lwp
|
|
|
|
if test $ol_with_yielding_select = auto ; then
|
|
ol_with_yielding_select=no
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_yielding_select = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_YIELDING_SELECT 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $ol_with_threads = manual ; then
|
|
ol_link_threads=yes
|
|
|
|
echo "configure: warning: thread defines and link options must be set manually" 1>&2
|
|
|
|
for ac_hdr in pthread.h sched.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11046: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11051 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_func in sched_yield pthread_yield
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:11085: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11090 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
|
|
echo "configure:11140: checking for LinuxThreads pthread.h" >&5
|
|
if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11145 "configure"
|
|
#include "confdefs.h"
|
|
#include <pthread.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ol_cv_header_linux_threads=yes
|
|
else
|
|
rm -rf conftest*
|
|
ol_cv_header_linux_threads=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
|
|
if test $ol_cv_header_linux_threads = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_LINUX_THREADS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
for ac_hdr in mach/cthreads.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11175: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11180 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in lwp/lwp.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11215: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11220 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
for ac_hdr in thread.h synch.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11255: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11260 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
fi
|
|
|
|
if test $ol_link_threads != no -a $ol_link_threads != nt ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define REENTRANT 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _REENTRANT 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define THREAD_SAFE 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _THREAD_SAFE 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define THREADSAFE 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _THREADSAFE 1
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define _SGI_MP_SOURCE 1
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
|
|
echo "configure:11324: checking for thread specific errno" >&5
|
|
if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11330 "configure"
|
|
#include "confdefs.h"
|
|
#include <errno.h>
|
|
int main() {
|
|
errno = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_errno_thread_specific=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_errno_thread_specific=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
|
|
|
|
echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
|
|
echo "configure:11353: checking for thread specific h_errno" >&5
|
|
if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11359 "configure"
|
|
#include "confdefs.h"
|
|
#include <netdb.h>
|
|
int main() {
|
|
h_errno = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_h_errno_thread_specific=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_h_errno_thread_specific=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
|
|
|
|
if test $ol_cv_errno_thread_specific != yes \
|
|
-o $ol_cv_h_errno_thread_specific != yes ; then
|
|
LIBS="$LTHREAD_LIBS $LIBS"
|
|
LTHREAD_LIBS=""
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $ol_link_threads = no ; then
|
|
if test $ol_with_threads = yes ; then
|
|
{ echo "configure: error: no suitable thread support" 1>&2; exit 1; }
|
|
fi
|
|
|
|
if test $ol_with_threads = auto ; then
|
|
echo "configure: warning: no suitable thread support, disabling threads" 1>&2
|
|
ol_with_threads=no
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define NO_THREADS 1
|
|
EOF
|
|
|
|
LTHREAD_LIBS=""
|
|
fi
|
|
|
|
if test $ol_link_threads != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
ol_link_ldbm=no
|
|
|
|
if test $ol_with_ldbm_api = auto \
|
|
-o $ol_with_ldbm_api = berkeley \
|
|
-o $ol_with_ldbm_api = bcompat ; then
|
|
|
|
if test $ol_with_ldbm_api = bcompat; then \
|
|
ol_cv_berkeley_db=no
|
|
for ac_hdr in db_185.h db.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11425: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11430 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
|
|
echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
|
|
echo "configure:11463: checking if Berkeley DB header compatibility" >&5
|
|
if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11469 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
/* this check could be improved */
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#if DB_VERSION_MAJOR == 1
|
|
__db_version_1
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "__db_version_1" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ol_cv_header_db1=yes
|
|
else
|
|
rm -rf conftest*
|
|
ol_cv_header_db1=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_header_db1" 1>&6
|
|
|
|
if test ol_cv_header_db1=yes ; then
|
|
ol_cv_lib_db=no
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
|
|
echo "configure:11506: checking for Berkeley DB link (default)" >&5
|
|
if eval "test \"\${ol_cv_db_none+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11516 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_none=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_none=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_none" 1>&6
|
|
|
|
if test $ol_cv_db_none = yes ; then
|
|
ol_cv_lib_db=yes
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
|
|
echo "configure:11569: checking for Berkeley DB link (-ldb)" >&5
|
|
if eval "test \"\${ol_cv_db_db+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11579 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db" 1>&6
|
|
|
|
if test $ol_cv_db_db = yes ; then
|
|
ol_cv_lib_db=-ldb
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
|
|
echo "configure:11632: checking for Berkeley DB link (-ldb3)" >&5
|
|
if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb3
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11642 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db3=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db3=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db3" 1>&6
|
|
|
|
if test $ol_cv_db_db3 = yes ; then
|
|
ol_cv_lib_db=-ldb3
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
|
|
echo "configure:11695: checking for Berkeley DB link (-ldb2)" >&5
|
|
if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb2
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11705 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db2=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db2=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db2" 1>&6
|
|
|
|
if test $ol_cv_db_db2 = yes ; then
|
|
ol_cv_lib_db=-ldb2
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
|
|
echo "configure:11758: checking for Berkeley DB link (-ldb1)" >&5
|
|
if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb1
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11768 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db1=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db1=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db1" 1>&6
|
|
|
|
if test $ol_cv_db_db1 = yes ; then
|
|
ol_cv_lib_db=-ldb1
|
|
fi
|
|
fi
|
|
|
|
|
|
if test "$ol_cv_lib_db" != no ; then
|
|
ol_cv_berkeley_db=yes
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
else
|
|
ol_cv_berkeley_db=no
|
|
for ac_hdr in db.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:11832: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11837 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:11842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
if test $ac_cv_header_db_h = yes; then
|
|
ol_cv_lib_db=no
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
|
|
echo "configure:11872: checking for Berkeley DB link (default)" >&5
|
|
if eval "test \"\${ol_cv_db_none+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11882 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_none=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_none=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_none" 1>&6
|
|
|
|
if test $ol_cv_db_none = yes ; then
|
|
ol_cv_lib_db=yes
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
|
|
echo "configure:11935: checking for Berkeley DB link (-ldb)" >&5
|
|
if eval "test \"\${ol_cv_db_db+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 11945 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:11974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db" 1>&6
|
|
|
|
if test $ol_cv_db_db = yes ; then
|
|
ol_cv_lib_db=-ldb
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
|
|
echo "configure:11998: checking for Berkeley DB link (-ldb3)" >&5
|
|
if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb3
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12008 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db3=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db3=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db3" 1>&6
|
|
|
|
if test $ol_cv_db_db3 = yes ; then
|
|
ol_cv_lib_db=-ldb3
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
|
|
echo "configure:12061: checking for Berkeley DB link (-ldb2)" >&5
|
|
if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb2
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12071 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db2=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db2=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db2" 1>&6
|
|
|
|
if test $ol_cv_db_db2 = yes ; then
|
|
ol_cv_lib_db=-ldb2
|
|
fi
|
|
fi
|
|
|
|
if test $ol_cv_lib_db = no ; then
|
|
echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
|
|
echo "configure:12124: checking for Berkeley DB link (-ldb1)" >&5
|
|
if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_DB_LIB=-ldb1
|
|
ol_LIBS=$LIBS
|
|
LIBS="$ol_DB_LIB $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12134 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
# include <db_185.h>
|
|
#else
|
|
# include <db.h>
|
|
#endif
|
|
|
|
#ifndef DB_VERSION_MAJOR
|
|
# define DB_VERSION_MAJOR 1
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void*)0)
|
|
#endif
|
|
|
|
int main() {
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
db_env_create( NULL, 0 );
|
|
#elif DB_VERSION_MAJOR > 1
|
|
db_appexit( NULL );
|
|
#else
|
|
(void) dbopen( NULL, 0, 0, 0, NULL);
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_db_db1=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_db_db1=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_db_db1" 1>&6
|
|
|
|
if test $ol_cv_db_db1 = yes ; then
|
|
ol_cv_lib_db=-ldb1
|
|
fi
|
|
fi
|
|
|
|
|
|
if test "$ol_cv_lib_db" != no ; then
|
|
ol_cv_berkeley_db=yes
|
|
echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
|
|
echo "configure:12189: checking for Berkeley DB thread support" >&5
|
|
if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
ol_LIBS="$LIBS"
|
|
if test $ol_cv_lib_db != yes ; then
|
|
LIBS="$ol_cv_lib_db"
|
|
fi
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ol_cv_berkeley_db_thread=cross
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12203 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_DB_185_H
|
|
choke me;
|
|
#else
|
|
#include <db.h>
|
|
#endif
|
|
#ifndef NULL
|
|
#define NULL ((void *)0)
|
|
#endif
|
|
main()
|
|
{
|
|
int rc;
|
|
u_int32_t flags = DB_CREATE | DB_THREAD;
|
|
|
|
#if DB_VERSION_MAJOR > 2
|
|
DB_ENV *env = NULL;
|
|
|
|
rc = db_env_create( &env, 0 );
|
|
|
|
if( rc == 0 ) {
|
|
#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
|
|
rc = env->open( env, NULL, flags, 0 );
|
|
#else
|
|
rc = env->open( env, NULL, NULL, flags, 0 );
|
|
#endif
|
|
}
|
|
|
|
#else
|
|
DB_ENV env;
|
|
memset( &env, '\0', sizeof(env) );
|
|
|
|
rc = db_appinit( NULL, NULL, &env, flags );
|
|
|
|
if( rc == 0 ) {
|
|
db_appexit( &env );
|
|
}
|
|
#endif
|
|
#if DB_VERSION_MAJOR > 2
|
|
#if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
|
|
env->remove( env, NULL, DB_FORCE);
|
|
#else
|
|
env->remove( env, NULL, NULL, DB_FORCE);
|
|
#endif
|
|
#endif
|
|
|
|
return rc;
|
|
}
|
|
EOF
|
|
if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_berkeley_db_thread=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_berkeley_db_thread=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
if test $ol_cv_berkeley_db_thread != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_BERKELEY_DB_THREAD 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $ol_cv_berkeley_db != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_BERKELEY_DB 1
|
|
EOF
|
|
|
|
|
|
ol_link_ldbm=berkeley
|
|
ol_with_ldbm_api=db
|
|
|
|
if test $ol_with_ldbm_type = hash ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDBM_USE_DBHASH 1
|
|
EOF
|
|
|
|
else
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDBM_USE_DBBTREE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test $ol_cv_lib_db != yes ; then
|
|
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
|
|
echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
|
|
ol_with_ldbm_api=none
|
|
fi
|
|
|
|
if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
|
|
echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
|
|
echo "configure:12317: checking for MDBM library" >&5
|
|
if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ol_LIBS="$LIBS"
|
|
echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
|
|
echo "configure:12323: checking for mdbm_set_chain" >&5
|
|
if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12328 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char mdbm_set_chain(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char mdbm_set_chain();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
|
|
choke me
|
|
#else
|
|
f = mdbm_set_chain;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_mdbm_set_chain=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_mdbm_set_chain=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_mdbm=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
|
|
echo "configure:12371: checking for mdbm_set_chain in -lmdbm" >&5
|
|
ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lmdbm $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12379 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char mdbm_set_chain();
|
|
|
|
int main() {
|
|
mdbm_set_chain()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_mdbm=-lmdbm
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ol_cv_lib_mdbm=no
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
|
|
|
|
|
|
for ac_hdr in mdbm.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:12425: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12430 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:12435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for db""... $ac_c" 1>&6
|
|
echo "configure:12462: checking for db" >&5
|
|
if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
|
|
ol_cv_mdbm=no
|
|
else
|
|
ol_cv_mdbm=yes
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_mdbm" 1>&6
|
|
if test $ol_cv_mdbm = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_MDBM 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test $ol_cv_mdbm = yes ; then
|
|
ol_link_ldbm=mdbm
|
|
ol_with_ldbm_api=mdbm
|
|
if test $ol_cv_lib_mdbm != yes ; then
|
|
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
|
|
echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
|
|
echo "configure:12495: checking for GDBM library" >&5
|
|
if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ol_LIBS="$LIBS"
|
|
echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
|
|
echo "configure:12501: checking for gdbm_open" >&5
|
|
if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12506 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char gdbm_open(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char gdbm_open();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
|
|
choke me
|
|
#else
|
|
f = gdbm_open;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_gdbm_open=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_gdbm_open=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_gdbm=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
|
|
echo "configure:12549: checking for gdbm_open in -lgdbm" >&5
|
|
ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lgdbm $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12557 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char gdbm_open();
|
|
|
|
int main() {
|
|
gdbm_open()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_gdbm=-lgdbm
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ol_cv_lib_gdbm=no
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
|
|
|
|
|
|
for ac_hdr in gdbm.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:12603: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12608 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:12613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for db""... $ac_c" 1>&6
|
|
echo "configure:12640: checking for db" >&5
|
|
if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
|
|
ol_cv_gdbm=no
|
|
else
|
|
ol_cv_gdbm=yes
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_gdbm" 1>&6
|
|
if test $ol_cv_gdbm = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_GDBM 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test $ol_cv_gdbm = yes ; then
|
|
ol_link_ldbm=gdbm
|
|
ol_with_ldbm_api=gdbm
|
|
|
|
if test $ol_cv_lib_gdbm != yes ; then
|
|
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_with_ldbm_api = ndbm ; then
|
|
echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
|
|
echo "configure:12674: checking for NDBM library" >&5
|
|
if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ol_LIBS="$LIBS"
|
|
echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
|
|
echo "configure:12680: checking for dbm_open" >&5
|
|
if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12685 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char dbm_open(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char dbm_open();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_dbm_open) || defined (__stub___dbm_open)
|
|
choke me
|
|
#else
|
|
f = dbm_open;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_dbm_open=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_dbm_open=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_ndbm=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
|
|
echo "configure:12728: checking for dbm_open in -lndbm" >&5
|
|
ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lndbm $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12736 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char dbm_open();
|
|
|
|
int main() {
|
|
dbm_open()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_ndbm=-lndbm
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
|
|
echo "configure:12767: checking for dbm_open in -ldbm" >&5
|
|
ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-ldbm $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12775 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char dbm_open();
|
|
|
|
int main() {
|
|
dbm_open()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ol_cv_lib_ndbm=-ldbm
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ol_cv_lib_ndbm=no
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
fi
|
|
|
|
LIBS="$ol_LIBS"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
|
|
|
|
|
|
for ac_hdr in ndbm.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:12823: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12828 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:12833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
echo $ac_n "checking for db""... $ac_c" 1>&6
|
|
echo "configure:12860: checking for db" >&5
|
|
if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
|
|
ol_cv_ndbm=no
|
|
else
|
|
ol_cv_ndbm=yes
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_ndbm" 1>&6
|
|
if test $ol_cv_ndbm = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NDBM 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test $ol_cv_ndbm = yes ; then
|
|
ol_link_ldbm=ndbm
|
|
ol_with_ldbm_api=ndbm
|
|
|
|
if test $ol_cv_lib_ndbm != yes ; then
|
|
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
|
|
echo "configure: warning: could not find suitable LDBM backend" 1>&2
|
|
if test $ol_enable_ldbm = yes ; then
|
|
{ echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo "configure: warning: disabling LDBM" 1>&2
|
|
ol_enable_ldbm=no
|
|
fi
|
|
|
|
if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
|
|
LINK_BINS_DYNAMIC="yes"
|
|
else
|
|
LINK_BINS_DYNAMIC="no"
|
|
fi
|
|
|
|
if test $ol_enable_wrappers != no ; then
|
|
for ac_hdr in tcpd.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:12913: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12918 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:12923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_tcpd_h != yes ; then
|
|
have_wrappers=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12954 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int allow_severity = 0;
|
|
int deny_severity = 0;
|
|
|
|
int main() {
|
|
hosts_access()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
have_wrappers=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
have_wrappers=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if test $have_wrappers = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_TCPD 1
|
|
EOF
|
|
|
|
WRAP_LIBS="-lwrap"
|
|
|
|
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
|
echo "configure:12984: checking for main in -lnsl" >&5
|
|
ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lnsl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 12992 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
LIBS="-lnsl $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
else
|
|
echo "configure: warning: could not find -lwrap" 1>&2
|
|
if test $ol_enable_wrappers = yes ; then
|
|
{ echo "configure: error: could not find wrappers" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo "configure: warning: disabling wrappers support" 1>&2
|
|
ol_enable_wrappers=no
|
|
WRAP_LIBS=""
|
|
fi
|
|
fi
|
|
|
|
if test $ol_enable_syslog != no ; then
|
|
echo $ac_n "checking for openlog""... $ac_c" 1>&6
|
|
echo "configure:13040: checking for openlog" >&5
|
|
if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13045 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char openlog(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char openlog();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_openlog) || defined (__stub___openlog)
|
|
choke me
|
|
#else
|
|
f = openlog;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_openlog=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_openlog=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
|
|
{ echo "configure: error: could not find syslog" 1>&2; exit 1; }
|
|
fi
|
|
ol_enable_syslog=$ac_cv_func_openlog
|
|
fi
|
|
|
|
|
|
ol_link_sql=no
|
|
if test $ol_enable_sql != no ; then
|
|
echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
|
|
echo "configure:13098: checking for SQLDriverConnect in -liodbc" >&5
|
|
ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-liodbc $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13106 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char SQLDriverConnect();
|
|
|
|
int main() {
|
|
SQLDriverConnect()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_iodbc=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_iodbc=no
|
|
fi
|
|
|
|
if test $have_iodbc = yes ; then
|
|
ol_link_sql="-liodbc"
|
|
else
|
|
echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
|
|
echo "configure:13142: checking for SQLDriverConnect in -lodbc" >&5
|
|
ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lodbc $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13150 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char SQLDriverConnect();
|
|
|
|
int main() {
|
|
SQLDriverConnect()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_odbc=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_odbc=no
|
|
fi
|
|
|
|
if test $have_odbc = yes ; then
|
|
ol_link_sql="-lodbc"
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_sql != no ; then
|
|
SLAPD_SQL_LIBS="$ol_link_sql"
|
|
|
|
elif test $ol_enable_sql != auto ; then
|
|
{ echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
if test $ol_enable_tcl != no ; then
|
|
for ac_hdr in tcl.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:13200: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13205 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_tcl_h != yes ; then
|
|
have_tcl=no
|
|
else
|
|
for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
|
|
echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
|
|
echo "configure:13242: checking for main in -l$lib" >&5
|
|
ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-l$lib $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13250 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
main()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_tcl=yes
|
|
if test x"$ol_with_tcl_module" = "xstatic" ; then
|
|
SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
|
|
else
|
|
MOD_TCL_LIB="-l${lib}"
|
|
fi;break
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_tcl=no
|
|
fi
|
|
|
|
done
|
|
fi
|
|
|
|
if test $have_tcl != yes ; then
|
|
echo "configure: warning: could not find -ltcl" 1>&2
|
|
if test $ol_enable_tcl = yes ; then
|
|
{ echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ol_enable_tcl=no
|
|
fi
|
|
fi
|
|
|
|
ol_link_termcap=no
|
|
for ac_hdr in termcap.h ncurses.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:13301: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13306 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:13311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ol_link_termcap = no ; then
|
|
echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
|
|
echo "configure:13340: checking for tputs in -ltermcap" >&5
|
|
ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-ltermcap $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13348 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char tputs();
|
|
|
|
int main() {
|
|
tputs()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_termcap=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_termcap=no
|
|
fi
|
|
|
|
if test $have_termcap = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_TERMCAP 1
|
|
EOF
|
|
|
|
ol_link_termcap=yes
|
|
TERMCAP_LIBS=-ltermcap
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_termcap = no ; then
|
|
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
|
|
echo "configure:13392: checking for initscr in -lncurses" >&5
|
|
ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lncurses $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13400 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char initscr();
|
|
|
|
int main() {
|
|
initscr()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_ncurses=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_ncurses=no
|
|
fi
|
|
|
|
if test $have_ncurses = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_NCURSES 1
|
|
EOF
|
|
|
|
ol_link_termcap=yes
|
|
TERMCAP_LIBS=-lncurses
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_termcap = no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define NO_TERMCAP 1
|
|
EOF
|
|
|
|
TERMCAP_LIBS=
|
|
fi
|
|
|
|
ol_link_sasl=no
|
|
ol_link_spasswd=no
|
|
if test $ol_with_cyrus_sasl != no ; then
|
|
for ac_hdr in sasl.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:13457: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13462 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:13467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_sasl_h = yes ; then
|
|
echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
|
|
echo "configure:13496: checking for sasl_client_init in -lsasl" >&5
|
|
ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lsasl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13504 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char sasl_client_init();
|
|
|
|
int main() {
|
|
sasl_client_init()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_cyrus_sasl=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_cyrus_sasl=no
|
|
fi
|
|
|
|
|
|
if test $have_cyrus_sasl != no ; then
|
|
SASL_LIBS="-lsasl"
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_CYRUS_SASL 1
|
|
EOF
|
|
|
|
ol_link_sasl=yes
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_sasl = no ; then
|
|
if test $ol_with_cyrus_sasl != auto ; then
|
|
{ echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
|
|
else
|
|
echo "configure: warning: Could not locate Cyrus SASL" 1>&2
|
|
echo "configure: warning: SASL authentication not supported!" 1>&2
|
|
if test $ol_link_tls = no ; then
|
|
echo "configure: warning: Strong authentication not supported!" 1>&2
|
|
fi
|
|
fi
|
|
fi
|
|
else
|
|
echo "configure: warning: SASL authentication not supported!" 1>&2
|
|
if test $ol_link_tls = no ; then
|
|
echo "configure: warning: Strong authentication not supported!" 1>&2
|
|
fi
|
|
fi
|
|
|
|
if test $cross_compiling != yes ; then
|
|
dev=no
|
|
if test -r /dev/urandom ; then
|
|
dev="/dev/urandom";
|
|
elif test -r /idev/urandom ; then
|
|
dev="/idev/urandom";
|
|
elif test -r /dev/srandom ; then
|
|
dev="/dev/srandom";
|
|
elif test -r /dev/random ; then
|
|
dev="/dev/random";
|
|
elif test -r /idev/random ; then
|
|
dev="/idev/random";
|
|
fi
|
|
|
|
if test $dev != no ; then
|
|
cat >> confdefs.h <<EOF
|
|
#define URANDOM_DEVICE "$dev"
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
ol_link_fetch=no
|
|
if test $ol_with_fetch != no ; then
|
|
ol_LIBS=$LIBS
|
|
LIBS="-lfetch -lcom_err $LIBS"
|
|
echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
|
|
echo "configure:13592: checking fetch(3) library" >&5
|
|
if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13598 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/param.h>
|
|
#include <stdio.h>
|
|
#include <fetch.h>
|
|
int main() {
|
|
struct url *u = fetchParseURL("file:///");
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_lib_fetch=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_lib_fetch=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_lib_fetch" 1>&6
|
|
LIBS=$ol_LIBS
|
|
if test $ol_cv_lib_fetch != no ; then
|
|
ol_link_fetch="-lfetch -lcom_err"
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_FETCH 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test $ol_cv_lib_fetch != no ; then
|
|
LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
|
|
ol_link_fetch=freebsd
|
|
|
|
elif test $ol_with_fetch != auto ; then
|
|
{ echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
|
|
fi
|
|
fi
|
|
|
|
ol_link_readline=no
|
|
if test $ol_with_readline != no ; then
|
|
for ac_hdr in readline/readline.h readline/history.h
|
|
do
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
echo "configure:13646: checking for $ac_hdr" >&5
|
|
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13651 "configure"
|
|
#include "confdefs.h"
|
|
#include <$ac_hdr>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:13656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_hdr 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
if test $ac_cv_header_readline_readline_h = yes ; then
|
|
save_LIBS="$LIBS"
|
|
LIBS="$TERMCAP_LIBS $LIBS"
|
|
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
echo "configure:13687: checking for readline in -lreadline" >&5
|
|
ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lreadline $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13695 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char readline();
|
|
|
|
int main() {
|
|
readline()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_readline=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_readline=no
|
|
fi
|
|
|
|
LIBS="$save_LIBS"
|
|
|
|
if test $have_readline = yes ; then
|
|
ol_with_readline=found
|
|
ol_link_readline=yes
|
|
|
|
READLINE_LIBS="-lreadline"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if test $ol_link_readline = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_READLINE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test $ol_enable_crypt != no ; then
|
|
echo $ac_n "checking for crypt""... $ac_c" 1>&6
|
|
echo "configure:13748: checking for crypt" >&5
|
|
if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13753 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char crypt(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char crypt();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_crypt) || defined (__stub___crypt)
|
|
choke me
|
|
#else
|
|
f = crypt;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_crypt=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_crypt=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_crypt=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
|
echo "configure:13796: checking for crypt in -lcrypt" >&5
|
|
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lcrypt $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13804 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char crypt();
|
|
|
|
int main() {
|
|
crypt()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
|
|
have_crypt=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_crypt=no
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
if test $have_crypt = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_CRYPT 1
|
|
EOF
|
|
|
|
else
|
|
echo "configure: warning: could not find crypt" 1>&2
|
|
if test $ol_enable_crypt = yes ; then
|
|
{ echo "configure: error: could not find crypt" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo "configure: warning: disabling crypt support" 1>&2
|
|
ol_enable_crypt=no
|
|
fi
|
|
fi
|
|
|
|
if test $ol_enable_proctitle != no ; then
|
|
echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
|
|
echo "configure:13858: checking for setproctitle" >&5
|
|
if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13863 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char setproctitle(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char setproctitle();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_setproctitle) || defined (__stub___setproctitle)
|
|
choke me
|
|
#else
|
|
f = setproctitle;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_setproctitle=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_setproctitle=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_setproctitle=yes
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
|
|
echo "configure:13906: checking for setproctitle in -lutil" >&5
|
|
ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lutil $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13914 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char setproctitle();
|
|
|
|
int main() {
|
|
setproctitle()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
have_setproctitle=yes
|
|
LUTIL_LIBS="$LUTIL_LIBS -lutil"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
have_setproctitle=no
|
|
LIBOBJS="$LIBOBJS setproctitle.o"
|
|
LIBSRCS="$LIBSRCS setproctitle.c"
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
if test $have_setproctitle = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SETPROCTITLE 1
|
|
EOF
|
|
|
|
fi
|
|
fi
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
echo "configure:13961: checking for ANSI C header files" >&5
|
|
if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13966 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
#include <float.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:13974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=yes
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 13991 "configure"
|
|
#include "confdefs.h"
|
|
#include <string.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14009 "configure"
|
|
#include "confdefs.h"
|
|
#include <stdlib.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "free" >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
if test "$cross_compiling" = yes; then
|
|
:
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14030 "configure"
|
|
#include "confdefs.h"
|
|
#include <ctype.h>
|
|
#if ((' ' & 0x0FF) == 0x020)
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
#else
|
|
#define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
|
#define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
|
#endif
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
exit (0); }
|
|
|
|
EOF
|
|
if { (eval echo configure:14048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
:
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_header_stdc=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
if test $ac_cv_header_stdc = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define STDC_HEADERS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
|
echo "configure:14072: checking for mode_t" >&5
|
|
if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14077 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_mode_t=yes"
|
|
else
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_mode_t=no"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define mode_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
echo "configure:14108: checking for off_t" >&5
|
|
if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14113 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_off_t=yes"
|
|
else
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_off_t=no"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define off_t long
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
echo "configure:14144: checking for pid_t" >&5
|
|
if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14149 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_pid_t=yes"
|
|
else
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_pid_t=no"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define pid_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
|
|
echo "configure:14180: checking for ptrdiff_t" >&5
|
|
if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14185 "configure"
|
|
#include "confdefs.h"
|
|
#include <stddef.h>
|
|
int main() {
|
|
ptrdiff_t p
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
am_cv_type_ptrdiff_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
am_cv_type_ptrdiff_t=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
|
|
if test $am_cv_type_ptrdiff_t = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PTRDIFF_T 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
echo "configure:14213: checking return type of signal handlers" >&5
|
|
if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14218 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <signal.h>
|
|
#ifdef signal
|
|
#undef signal
|
|
#endif
|
|
#ifdef __cplusplus
|
|
extern "C" void (*signal (int, void (*)(int)))(int);
|
|
#else
|
|
void (*signal ()) ();
|
|
#endif
|
|
|
|
int main() {
|
|
int i;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_type_signal=void
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_type_signal=int
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
echo "configure:14254: checking for size_t" >&5
|
|
if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14259 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_size_t=yes"
|
|
else
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_size_t=no"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define size_t unsigned
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
|
|
echo "configure:14291: checking for ssize_t" >&5
|
|
if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14296 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_ssize_t=yes"
|
|
else
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_ssize_t=no"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define ssize_t signed int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
|
|
echo "configure:14327: checking for caddr_t" >&5
|
|
if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14332 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#if STDC_HEADERS
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#endif
|
|
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_caddr_t=yes"
|
|
else
|
|
rm -rf conftest*
|
|
eval "ac_cv_type_caddr_t=no"
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define caddr_t char *
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
|
|
echo "configure:14364: checking for socklen_t" >&5
|
|
if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14369 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
#include <sys/socket.h>
|
|
#endif
|
|
|
|
int main() {
|
|
socklen_t len;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_type_socklen_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_type_socklen_t=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
|
|
if test $ol_cv_type_socklen_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define socklen_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
|
|
echo "configure:14404: checking for member st_blksize in aggregate type struct stat" >&5
|
|
if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14409 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
int main() {
|
|
struct stat foo; foo.st_blksize;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_struct_member_st_blksize=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_c_struct_member_st_blksize=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
|
|
st_blksize="$ac_cv_c_struct_member_st_blksize"
|
|
if test $ac_cv_c_struct_member_st_blksize = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_ST_BLKSIZE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|
echo "configure:14439: checking whether time.h and sys/time.h may both be included" >&5
|
|
if eval "test \"\${ac_cv_header_time+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14444 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
#include <time.h>
|
|
int main() {
|
|
struct tm *tp;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_header_time=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_header_time=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
if test $ac_cv_header_time = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define TIME_WITH_SYS_TIME 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|
echo "configure:14474: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14479 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <time.h>
|
|
int main() {
|
|
struct tm *tp; tp->tm_sec;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_struct_tm=time.h
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_struct_tm=sys/time.h
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
if test $ac_cv_struct_tm = sys/time.h; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define TM_IN_SYS_TIME 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
|
|
echo "configure:14508: checking for uid_t in sys/types.h" >&5
|
|
if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14513 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "uid_t" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
ac_cv_type_uid_t=yes
|
|
else
|
|
rm -rf conftest*
|
|
ac_cv_type_uid_t=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
|
|
if test $ac_cv_type_uid_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define uid_t int
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define gid_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
|
|
echo "configure:14542: checking for sig_atomic_t" >&5
|
|
if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14547 "configure"
|
|
#include "confdefs.h"
|
|
#include <signal.h>
|
|
int main() {
|
|
sig_atomic_t atomic;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_type_sig_atomic_t=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_type_sig_atomic_t=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
|
|
if test $ol_cv_type_sig_atomic_t = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define sig_atomic_t int
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
# test for pw_gecos in struct passwd
|
|
echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
|
|
echo "configure:14578: checking struct passwd for pw_gecos" >&5
|
|
if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14584 "configure"
|
|
#include "confdefs.h"
|
|
#include <pwd.h>
|
|
int main() {
|
|
|
|
struct passwd pwd;
|
|
pwd.pw_gecos = pwd.pw_name;
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_struct_passwd_pw_gecos=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_struct_passwd_pw_gecos=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
|
|
if test $ol_cv_struct_passwd_pw_gecos = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PW_GECOS 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
# test for pw_passwd in struct passwd
|
|
echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
|
|
echo "configure:14616: checking struct passwd for pw_passwd" >&5
|
|
if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14622 "configure"
|
|
#include "confdefs.h"
|
|
#include <pwd.h>
|
|
int main() {
|
|
|
|
struct passwd pwd;
|
|
pwd.pw_passwd = pwd.pw_name;
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_struct_passwd_pw_passwd=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_struct_passwd_pw_passwd=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
|
|
if test $ol_cv_struct_passwd_pw_passwd = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_PW_PASSWD 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
|
|
echo "configure:14654: checking if toupper() requires islower()" >&5
|
|
if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
ol_cv_c_upper_lower=safe
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14663 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <ctype.h>
|
|
main()
|
|
{
|
|
if ('C' == toupper('C'))
|
|
exit(0);
|
|
else
|
|
exit(1);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:14675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ol_cv_c_upper_lower=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ol_cv_c_upper_lower=yes
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
|
|
if test $ol_cv_c_upper_lower != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define C_UPPER_LOWER 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
echo "configure:14698: checking for working const" >&5
|
|
if eval "test \"\${ac_cv_c_const+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14703 "configure"
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
/* Ultrix mips cc rejects this. */
|
|
typedef int charset[2]; const charset x;
|
|
/* SunOS 4.1.1 cc rejects this. */
|
|
char const *const *ccp;
|
|
char **p;
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
struct point {int x, y;};
|
|
static struct point const zero = {0,0};
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
|
It does not let you subtract one const X* pointer from another in an arm
|
|
of an if-expression whose if-part is not a constant expression */
|
|
const char *g = "string";
|
|
ccp = &g + (g ? g-g : 0);
|
|
/* HPUX 7.0 cc rejects these. */
|
|
++ccp;
|
|
p = (char**) ccp;
|
|
ccp = (char const *const *) p;
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
|
char *t;
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
|
|
*t++ = 0;
|
|
}
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
int x[] = {25, 17};
|
|
const int *foo = &x[0];
|
|
++foo;
|
|
}
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
typedef const int *iptr;
|
|
iptr p = 0;
|
|
++p;
|
|
}
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
struct s { int j; const int *ap[3]; };
|
|
struct s *b; b->j = 5;
|
|
}
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
const int foo = 10;
|
|
}
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_const=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_c_const=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
if test $ac_cv_c_const = no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define const
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
|
|
echo "configure:14773: checking if compiler understands volatile" >&5
|
|
if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14778 "configure"
|
|
#include "confdefs.h"
|
|
int x, y, z;
|
|
int main() {
|
|
volatile int a; int * volatile b = x ? &y : &z;
|
|
/* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
|
|
*b = 0;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_c_volatile=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_c_volatile=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_c_volatile" 1>&6
|
|
if test $ol_cv_c_volatile = yes; then
|
|
:
|
|
else
|
|
cat >> confdefs.h <<\EOF
|
|
#define volatile
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
if test $cross_compiling = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define CROSS_COMPILING 1
|
|
EOF
|
|
|
|
else
|
|
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
|
echo "configure:14817: checking whether byte ordering is bigendian" >&5
|
|
if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_cv_c_bigendian=unknown
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14824 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
int main() {
|
|
|
|
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
bogus endian macros
|
|
#endif
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14839 "configure"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
int main() {
|
|
|
|
#if BYTE_ORDER != BIG_ENDIAN
|
|
not big endian
|
|
#endif
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_c_bigendian=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ac_cv_c_bigendian=no
|
|
fi
|
|
rm -f conftest*
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
if test $ac_cv_c_bigendian = unknown; then
|
|
if test "$cross_compiling" = yes; then
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14870 "configure"
|
|
#include "confdefs.h"
|
|
main () {
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
|
union
|
|
{
|
|
long l;
|
|
char c[sizeof (long)];
|
|
} u;
|
|
u.l = 1;
|
|
exit (u.c[sizeof (long) - 1] == 1);
|
|
}
|
|
EOF
|
|
if { (eval echo configure:14883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_c_bigendian=no
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_c_bigendian=yes
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
if test $ac_cv_c_bigendian = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define WORDS_BIGENDIAN 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking size of short""... $ac_c" 1>&6
|
|
echo "configure:14909: checking size of short" >&5
|
|
if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14915 "configure"
|
|
#include "confdefs.h"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
|
|
|
|
int main() {
|
|
switch (0) case 0: case (sizeof (short) == $ac_size):;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_sizeof_short=$ac_size
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
if test x$ac_cv_sizeof_short != x ; then break; fi
|
|
done
|
|
|
|
fi
|
|
|
|
if test x$ac_cv_sizeof_short = x ; then
|
|
{ echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
|
|
fi
|
|
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking size of int""... $ac_c" 1>&6
|
|
echo "configure:14948: checking size of int" >&5
|
|
if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14954 "configure"
|
|
#include "confdefs.h"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
|
|
|
|
int main() {
|
|
switch (0) case 0: case (sizeof (int) == $ac_size):;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:14964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_sizeof_int=$ac_size
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
if test x$ac_cv_sizeof_int != x ; then break; fi
|
|
done
|
|
|
|
fi
|
|
|
|
if test x$ac_cv_sizeof_int = x ; then
|
|
{ echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
|
|
fi
|
|
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define SIZEOF_INT $ac_cv_sizeof_int
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking size of long""... $ac_c" 1>&6
|
|
echo "configure:14987: checking size of long" >&5
|
|
if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 14993 "configure"
|
|
#include "confdefs.h"
|
|
#include "confdefs.h"
|
|
#include <sys/types.h>
|
|
|
|
|
|
int main() {
|
|
switch (0) case 0: case (sizeof (long) == $ac_size):;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ac_cv_sizeof_long=$ac_size
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
fi
|
|
rm -f conftest*
|
|
if test x$ac_cv_sizeof_long != x ; then break; fi
|
|
done
|
|
|
|
fi
|
|
|
|
if test x$ac_cv_sizeof_long = x ; then
|
|
{ echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
|
|
fi
|
|
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
cat >> confdefs.h <<EOF
|
|
#define SIZEOF_LONG $ac_cv_sizeof_long
|
|
EOF
|
|
|
|
|
|
|
|
if test "$ac_cv_sizeof_int" -lt 4 ; then
|
|
echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define LBER_INT_T long
|
|
EOF
|
|
|
|
else
|
|
cat >> confdefs.h <<\EOF
|
|
#define LBER_INT_T int
|
|
EOF
|
|
|
|
fi
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define LBER_LEN_T long
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define LBER_SOCKET_T int
|
|
EOF
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
#define LBER_TAG_T long
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
|
|
echo "configure:15054: checking for 8-bit clean memcmp" >&5
|
|
if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
if test "$cross_compiling" = yes; then
|
|
ac_cv_func_memcmp_clean=no
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15062 "configure"
|
|
#include "confdefs.h"
|
|
|
|
main()
|
|
{
|
|
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
|
|
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
|
|
}
|
|
|
|
EOF
|
|
if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
then
|
|
ac_cv_func_memcmp_clean=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -fr conftest*
|
|
ac_cv_func_memcmp_clean=no
|
|
fi
|
|
rm -fr conftest*
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
|
|
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
|
|
|
|
echo $ac_n "checking for strftime""... $ac_c" 1>&6
|
|
echo "configure:15090: checking for strftime" >&5
|
|
if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15095 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char strftime(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char strftime();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_strftime) || defined (__stub___strftime)
|
|
choke me
|
|
#else
|
|
f = strftime;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_strftime=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_strftime=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRFTIME 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
# strftime is in -lintl on SCO UNIX.
|
|
echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
|
|
echo "configure:15141: checking for strftime in -lintl" >&5
|
|
ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
|
|
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
LIBS="-lintl $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15149 "configure"
|
|
#include "confdefs.h"
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char strftime();
|
|
|
|
int main() {
|
|
strftime()
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
fi
|
|
rm -f conftest*
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_STRFTIME 1
|
|
EOF
|
|
|
|
LIBS="-lintl $LIBS"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
|
|
echo "configure:15188: checking for inet_aton()" >&5
|
|
if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15193 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
# include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
# include <sys/socket.h>
|
|
# ifdef HAVE_SYS_SELECT_H
|
|
# include <sys/select.h>
|
|
# endif
|
|
# include <netinet/in.h>
|
|
# ifdef HAVE_ARPA_INET_H
|
|
# include <arpa/inet.h>
|
|
# endif
|
|
#endif
|
|
|
|
int main() {
|
|
struct in_addr in;
|
|
int rc = inet_aton( "255.255.255.255", &in );
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_func_inet_aton=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_func_inet_aton=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
|
|
if test $ol_cv_func_inet_aton != no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_INET_ATON 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
|
|
echo "configure:15237: checking for _spawnlp" >&5
|
|
if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15242 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char _spawnlp(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char _spawnlp();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub__spawnlp) || defined (__stub____spawnlp)
|
|
choke me
|
|
#else
|
|
f = _spawnlp;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__spawnlp=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__spawnlp=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SPAWNLP 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
|
|
echo "configure:15290: checking for _snprintf" >&5
|
|
if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15295 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char _snprintf(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char _snprintf();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub__snprintf) || defined (__stub____snprintf)
|
|
choke me
|
|
#else
|
|
f = _snprintf;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__snprintf=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__snprintf=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_cv_func_snprintf=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define snprintf _snprintf
|
|
EOF
|
|
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
|
|
echo "configure:15345: checking for _vsnprintf" >&5
|
|
if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15350 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char _vsnprintf(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char _vsnprintf();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
|
|
choke me
|
|
#else
|
|
f = _vsnprintf;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__vsnprintf=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__vsnprintf=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_cv_func_vsnprintf=yes
|
|
cat >> confdefs.h <<\EOF
|
|
#define vsnprintf _vsnprintf
|
|
EOF
|
|
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
|
|
echo "configure:15400: checking for vprintf" >&5
|
|
if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15405 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char vprintf(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char vprintf();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_vprintf) || defined (__stub___vprintf)
|
|
choke me
|
|
#else
|
|
f = vprintf;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_vprintf=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_vprintf=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_VPRINTF 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
if test "$ac_cv_func_vprintf" != yes; then
|
|
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
|
|
echo "configure:15453: checking for _doprnt" >&5
|
|
if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15458 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char _doprnt(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char _doprnt();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub__doprnt) || defined (__stub____doprnt)
|
|
choke me
|
|
#else
|
|
f = _doprnt;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__doprnt=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func__doprnt=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_DOPRNT 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
if test $ac_cv_func_vprintf = yes ; then
|
|
for ac_func in vsnprintf vsprintf
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:15511: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15516 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
fi
|
|
|
|
for ac_func in \
|
|
bcopy \
|
|
closesocket \
|
|
chroot \
|
|
endgrent \
|
|
endpwent \
|
|
flock \
|
|
getdtablesize \
|
|
getgrgid \
|
|
gethostname \
|
|
getpass \
|
|
getpassphrase \
|
|
getpwuid \
|
|
getpwnam \
|
|
getspnam \
|
|
gettimeofday \
|
|
initgroups \
|
|
lockf \
|
|
memcpy \
|
|
memmove \
|
|
mkstemp \
|
|
pipe \
|
|
read \
|
|
recv \
|
|
recvfrom \
|
|
setpwfile \
|
|
setgid \
|
|
setegid \
|
|
setsid \
|
|
setuid \
|
|
seteuid \
|
|
sigaction \
|
|
signal \
|
|
sigset \
|
|
snprintf \
|
|
strdup \
|
|
strerror \
|
|
strpbrk \
|
|
strrchr \
|
|
strsep \
|
|
strstr \
|
|
strtol \
|
|
strtoul \
|
|
strspn \
|
|
sysconf \
|
|
waitpid \
|
|
wait4 \
|
|
write \
|
|
send \
|
|
sendto \
|
|
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:15619: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15624 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
done
|
|
|
|
|
|
for ac_func in getopt tempnam
|
|
do
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
echo "configure:15676: checking for $ac_func" >&5
|
|
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15681 "configure"
|
|
#include "confdefs.h"
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
char $ac_func();
|
|
char (*f)();
|
|
|
|
int main() {
|
|
|
|
/* The GNU C library defines this for functions which it implements
|
|
to always fail with ENOSYS. Some functions are actually named
|
|
something starting with __ and the normal name is an alias. */
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
f = $ac_func;
|
|
#endif
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_func_$ac_func=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
cat >> confdefs.h <<EOF
|
|
#define $ac_tr_func 1
|
|
EOF
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
if test "$ac_cv_func_getopt" != yes; then
|
|
LIBSRCS="$LIBSRCS getopt.c"
|
|
fi
|
|
|
|
if test "$ac_cv_func_tempnam" != yes; then
|
|
LIBSRCS="$LIBSRCS tempnam.c"
|
|
fi
|
|
|
|
# Check Configuration
|
|
echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
|
|
echo "configure:15742: checking declaration of sys_errlist" >&5
|
|
if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15748 "configure"
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <errno.h>
|
|
#ifdef WINNT
|
|
#include <stdlib.h>
|
|
#endif
|
|
int main() {
|
|
char *c = (char *) *sys_errlist
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
ol_cv_dcl_sys_errlist=yes
|
|
ol_cv_have_sys_errlist=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_dcl_sys_errlist=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
|
|
#
|
|
# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
|
|
if test $ol_cv_dcl_sys_errlist = no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define DECL_SYS_ERRLIST 1
|
|
EOF
|
|
|
|
|
|
echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
|
|
echo "configure:15784: checking existence of sys_errlist" >&5
|
|
if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15790 "configure"
|
|
#include "confdefs.h"
|
|
#include <errno.h>
|
|
int main() {
|
|
char *c = (char *) *sys_errlist
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
rm -rf conftest*
|
|
ol_cv_have_sys_errlist=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
ol_cv_have_sys_errlist=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
|
|
fi
|
|
if test $ol_cv_have_sys_errlist = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_SYS_ERRLIST 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ol_enable_debug" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_DEBUG 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_syslog" = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_SYSLOG 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_libui" = yes ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_LIBUI 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_cache" = no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_NOCACHE 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_link_kbind" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_proctitle" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_PROCTITLE 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_referrals" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_local" != no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_PF_LOCAL 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_ipv6" != no; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define LDAP_PF_INET6 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_cleartext" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_CLEARTEXT 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_crypt" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_CRYPT 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_link_kpasswd" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_KPASSWD 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_link_spasswd" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_SPASSWD 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_multimaster" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_MULTIMASTER 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_phonetic" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_PHONETIC 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_rlookups" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_RLOOKUPS 1
|
|
EOF
|
|
|
|
fi
|
|
if test "$ol_enable_aci" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_ACI_ENABLED 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test "$ol_link_modules" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_MODULES 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
SLAPD_MODULES_LDFLAGS="-dlopen self"
|
|
fi
|
|
|
|
if test "$ol_link_dnssrv" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_DNSSRV 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_DNSSRV=yes
|
|
if test "$ol_with_dnssrv_module" != static ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_DNSSRV_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_DNSSRV=mod
|
|
BUILD_DNSSRV_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_enable_ldap" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_LDAP 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_LDAP=yes
|
|
if test "$ol_with_ldap_module" != static ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_LDAP_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_LDAP=mod
|
|
BUILD_LDAP_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_link_ldbm" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_LDBM 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_LDBM=yes
|
|
if test "$ol_with_ldbm_module" != static ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_LDBM_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_LDBM=mod
|
|
BUILD_LDBM_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_enable_passwd" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_PASSWD 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_PASSWD=yes
|
|
if test "$ol_with_passwd_module" != static ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_PASSWD_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_PASSWD=mod
|
|
BUILD_PASSWD_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_link_perl" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_PERL 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_PERL=yes
|
|
if test "$ol_with_perl_module" != static ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_PERL_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_PERL=mod
|
|
BUILD_PERL_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_enable_shell" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_SHELL 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_SHELL=yes
|
|
if test "$ol_with_shell_module" != static ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_SHELL_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_SHELL=mod
|
|
BUILD_SHELL_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_enable_tcl" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_TCL 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_TCL=yes
|
|
if test "$ol_with_tcl_module" != static; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_TCL_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_TCL=mod
|
|
BUILD_TCL_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_link_sql" != no ; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_SQL 1
|
|
EOF
|
|
|
|
BUILD_SLAPD=yes
|
|
BUILD_SQL=yes
|
|
if test "$ol_with_sql_module" != static; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define SLAPD_SQL_DYNAMIC 1
|
|
EOF
|
|
|
|
BUILD_SQL=mod
|
|
BUILD_SQL_DYNAMIC=shared
|
|
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
|
|
fi
|
|
fi
|
|
|
|
if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
|
|
$BUILD_SLAPD = yes ; then
|
|
BUILD_SLURPD=yes
|
|
fi
|
|
|
|
|
|
if test "$LINK_BINS_DYNAMIC" = yes; then
|
|
LIB_LINKAGE=DYN
|
|
LT_LIB_LINKAGE=shared
|
|
else
|
|
LIB_LINKAGE=STAT
|
|
LT_LIB_LINKAGE=static
|
|
fi
|
|
|
|
if test "$ac_cv_mingw32" = yes ; then
|
|
PLAT=NT
|
|
DYN_EXT=dll
|
|
else
|
|
PLAT=UNIX
|
|
DYN_EXT=so
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trap '' 1 2 15
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
# Let make expand exec_prefix.
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
# Any assignment to VPATH causes Sun make to only execute
|
|
# the first set of double-colon rules, so remove it if not needed.
|
|
# If there is a colon in the path, we need to keep it.
|
|
if test "x$srcdir" = x.; then
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
fi
|
|
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
# Without the "./", some shells look in PATH for config.status.
|
|
: ${CONFIG_STATUS=./config.status}
|
|
|
|
echo creating $CONFIG_STATUS
|
|
rm -f $CONFIG_STATUS
|
|
cat > $CONFIG_STATUS <<EOF
|
|
#! /bin/sh
|
|
# Generated automatically by configure.
|
|
# Run this file to recreate the current configuration.
|
|
# This directory was configured as follows,
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
#
|
|
# $0 $ac_configure_args
|
|
#
|
|
# Compiler output produced by configure, useful for debugging
|
|
# configure, is in ./config.log if it exists.
|
|
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
for ac_option
|
|
do
|
|
case "\$ac_option" in
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
|
|
exit 0 ;;
|
|
-help | --help | --hel | --he | --h)
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
|
esac
|
|
done
|
|
|
|
ac_given_srcdir=$srcdir
|
|
ac_given_INSTALL="$INSTALL"
|
|
|
|
trap 'rm -fr `echo "\
|
|
Makefile:build/top.mk:Makefile.in:build/dir.mk \
|
|
doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
|
|
doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
|
|
doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
|
|
doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
|
|
doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
|
|
doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
|
|
clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
|
|
clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
|
|
clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
|
|
clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
|
|
clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
|
|
clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
|
|
clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
|
|
clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
|
|
clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
|
|
include/Makefile:build/top.mk:include/Makefile.in \
|
|
libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
|
|
libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
|
|
libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
|
|
libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
|
|
libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
|
|
servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
|
|
servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
|
|
servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
|
|
servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
|
|
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
|
|
tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
|
|
tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
|
|
contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
|
|
contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
|
|
contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
|
|
include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
# Protect against being on the right side of a sed subst in config.status.
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
$ac_vpsub
|
|
$extrasub
|
|
s%@SHELL@%$SHELL%g
|
|
s%@CFLAGS@%$CFLAGS%g
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
|
s%@FFLAGS@%$FFLAGS%g
|
|
s%@DEFS@%$DEFS%g
|
|
s%@LDFLAGS@%$LDFLAGS%g
|
|
s%@LIBS@%$LIBS%g
|
|
s%@exec_prefix@%$exec_prefix%g
|
|
s%@prefix@%$prefix%g
|
|
s%@program_transform_name@%$program_transform_name%g
|
|
s%@bindir@%$bindir%g
|
|
s%@sbindir@%$sbindir%g
|
|
s%@libexecdir@%$libexecdir%g
|
|
s%@datadir@%$datadir%g
|
|
s%@sysconfdir@%$sysconfdir%g
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
|
s%@localstatedir@%$localstatedir%g
|
|
s%@libdir@%$libdir%g
|
|
s%@includedir@%$includedir%g
|
|
s%@oldincludedir@%$oldincludedir%g
|
|
s%@infodir@%$infodir%g
|
|
s%@mandir@%$mandir%g
|
|
s%@host@%$host%g
|
|
s%@host_alias@%$host_alias%g
|
|
s%@host_cpu@%$host_cpu%g
|
|
s%@host_vendor@%$host_vendor%g
|
|
s%@host_os@%$host_os%g
|
|
s%@target@%$target%g
|
|
s%@target_alias@%$target_alias%g
|
|
s%@target_cpu@%$target_cpu%g
|
|
s%@target_vendor@%$target_vendor%g
|
|
s%@target_os@%$target_os%g
|
|
s%@build@%$build%g
|
|
s%@build_alias@%$build_alias%g
|
|
s%@build_cpu@%$build_cpu%g
|
|
s%@build_vendor@%$build_vendor%g
|
|
s%@build_os@%$build_os%g
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
s%@PACKAGE@%$PACKAGE%g
|
|
s%@VERSION@%$VERSION%g
|
|
s%@ACLOCAL@%$ACLOCAL%g
|
|
s%@AUTOCONF@%$AUTOCONF%g
|
|
s%@AUTOMAKE@%$AUTOMAKE%g
|
|
s%@AUTOHEADER@%$AUTOHEADER%g
|
|
s%@MAKEINFO@%$MAKEINFO%g
|
|
s%@install_sh@%$install_sh%g
|
|
s%@AMTAR@%$AMTAR%g
|
|
s%@AWK@%$AWK%g
|
|
s%@AMTARFLAGS@%$AMTARFLAGS%g
|
|
s%@SET_MAKE@%$SET_MAKE%g
|
|
s%@top_builddir@%$top_builddir%g
|
|
s%@ldap_subdir@%$ldap_subdir%g
|
|
s%@CC@%$CC%g
|
|
s%@RANLIB@%$RANLIB%g
|
|
s%@LN_S@%$LN_S%g
|
|
s%@DLLTOOL@%$DLLTOOL%g
|
|
s%@AS@%$AS%g
|
|
s%@OBJDUMP@%$OBJDUMP%g
|
|
s%@LIBTOOL@%$LIBTOOL%g
|
|
s%@LN_H@%$LN_H%g
|
|
s%@SENDMAIL@%$SENDMAIL%g
|
|
s%@EDITOR@%$EDITOR%g
|
|
s%@FINGER@%$FINGER%g
|
|
s%@PERLBIN@%$PERLBIN%g
|
|
s%@CPP@%$CPP%g
|
|
s%@EXEEXT@%$EXEEXT%g
|
|
s%@OBJEXT@%$OBJEXT%g
|
|
s%@OL_MKDEP@%$OL_MKDEP%g
|
|
s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
|
|
s%@LIBOBJS@%$LIBOBJS%g
|
|
s%@LIBSRCS@%$LIBSRCS%g
|
|
s%@PLAT@%$PLAT%g
|
|
s%@LIB_LINKAGE@%$LIB_LINKAGE%g
|
|
s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
|
|
s%@DYN_EXT@%$DYN_EXT%g
|
|
s%@BUILD_SLAPD@%$BUILD_SLAPD%g
|
|
s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
|
|
s%@BUILD_LDAP@%$BUILD_LDAP%g
|
|
s%@BUILD_LDBM@%$BUILD_LDBM%g
|
|
s%@BUILD_PASSWD@%$BUILD_PASSWD%g
|
|
s%@BUILD_PERL@%$BUILD_PERL%g
|
|
s%@BUILD_SHELL@%$BUILD_SHELL%g
|
|
s%@BUILD_SQL@%$BUILD_SQL%g
|
|
s%@BUILD_TCL@%$BUILD_TCL%g
|
|
s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
|
|
s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
|
|
s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
|
|
s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
|
|
s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
|
|
s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
|
|
s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
|
|
s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
|
|
s%@BUILD_SLURPD@%$BUILD_SLURPD%g
|
|
s%@LDAP_LIBS@%$LDAP_LIBS%g
|
|
s%@LDIF_LIBS@%$LDIF_LIBS%g
|
|
s%@SLAPD_LIBS@%$SLAPD_LIBS%g
|
|
s%@SLURPD_LIBS@%$SLURPD_LIBS%g
|
|
s%@LDBM_LIBS@%$LDBM_LIBS%g
|
|
s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
|
|
s%@LUTIL_LIBS@%$LUTIL_LIBS%g
|
|
s%@WRAP_LIBS@%$WRAP_LIBS%g
|
|
s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
|
|
s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
|
|
s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
|
|
s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
|
|
s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
|
|
s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
|
|
s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
|
|
s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
|
|
s%@KRB4_LIBS@%$KRB4_LIBS%g
|
|
s%@KRB5_LIBS@%$KRB5_LIBS%g
|
|
s%@READLINE_LIBS@%$READLINE_LIBS%g
|
|
s%@SASL_LIBS@%$SASL_LIBS%g
|
|
s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
|
|
s%@TLS_LIBS@%$TLS_LIBS%g
|
|
s%@MODULES_LIBS@%$MODULES_LIBS%g
|
|
s%@AUTH_LIBS@%$AUTH_LIBS%g
|
|
s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
|
|
s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
|
|
s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
|
|
|
|
CEOF
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
# Split the substitutions into bite-sized pieces for seds with
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
ac_file=1 # Number of current file.
|
|
ac_beg=1 # First line for current file.
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
ac_more_lines=:
|
|
ac_sed_cmds=""
|
|
while $ac_more_lines; do
|
|
if test $ac_beg -gt 1; then
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
else
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
fi
|
|
if test ! -s conftest.s$ac_file; then
|
|
ac_more_lines=false
|
|
rm -f conftest.s$ac_file
|
|
else
|
|
if test -z "$ac_sed_cmds"; then
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
else
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
fi
|
|
ac_file=`expr $ac_file + 1`
|
|
ac_beg=$ac_end
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
fi
|
|
done
|
|
if test -z "$ac_sed_cmds"; then
|
|
ac_sed_cmds=cat
|
|
fi
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
CONFIG_FILES=\${CONFIG_FILES-"\
|
|
Makefile:build/top.mk:Makefile.in:build/dir.mk \
|
|
doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
|
|
doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
|
|
doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
|
|
doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
|
|
doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
|
|
doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
|
|
clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
|
|
clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
|
|
clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
|
|
clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
|
|
clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
|
|
clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
|
|
clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
|
|
clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
|
|
clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
|
|
include/Makefile:build/top.mk:include/Makefile.in \
|
|
libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
|
|
libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
|
|
libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
|
|
libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
|
|
libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
|
|
servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
|
|
servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
|
|
servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
|
|
servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
|
|
servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
|
|
servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
|
|
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
|
|
tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
|
|
tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
|
|
contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
|
|
contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
|
|
contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
|
|
"}
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
case "$ac_file" in
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
*) ac_file_in="${ac_file}.in" ;;
|
|
esac
|
|
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
# The file is in a subdirectory.
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
# A "../" for each directory in $ac_dir_suffix.
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
else
|
|
ac_dir_suffix= ac_dots=
|
|
fi
|
|
|
|
case "$ac_given_srcdir" in
|
|
.) srcdir=.
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
*) # Relative path.
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
esac
|
|
|
|
case "$ac_given_INSTALL" in
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
esac
|
|
|
|
echo creating "$ac_file"
|
|
rm -f "$ac_file"
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
case "$ac_file" in
|
|
*[Mm]akefile*) ac_comsub="1i\\
|
|
# $configure_input" ;;
|
|
*) ac_comsub= ;;
|
|
esac
|
|
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
sed -e "$ac_comsub
|
|
s%@configure_input@%$configure_input%g
|
|
s%@srcdir@%$srcdir%g
|
|
s%@top_srcdir@%$top_srcdir%g
|
|
s%@INSTALL@%$INSTALL%g
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
fi; done
|
|
rm -f conftest.s*
|
|
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
#
|
|
# ac_d sets the value in "#define NAME VALUE" lines.
|
|
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
ac_dC='\3'
|
|
ac_dD='%g'
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
ac_uB='\([ ]\)%\1#\2define\3'
|
|
ac_uC=' '
|
|
ac_uD='\4%g'
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
ac_eB='$%\1#\2define\3'
|
|
ac_eC=' '
|
|
ac_eD='%g'
|
|
|
|
if test "${CONFIG_HEADERS+set}" != set; then
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
fi
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
case "$ac_file" in
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
*) ac_file_in="${ac_file}.in" ;;
|
|
esac
|
|
|
|
echo creating $ac_file
|
|
|
|
rm -f conftest.frag conftest.in conftest.out
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
cat $ac_file_inputs > conftest.in
|
|
|
|
EOF
|
|
|
|
# Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
# the proper values into config.h.in to produce config.h. And first:
|
|
# Protect against being on the right side of a sed subst in config.status.
|
|
# Protect against being in an unquoted here document in config.status.
|
|
rm -f conftest.vals
|
|
cat > conftest.hdr <<\EOF
|
|
s/[\\&%]/\\&/g
|
|
s%[\\$`]%\\&%g
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
s%ac_d%ac_u%gp
|
|
s%ac_u%ac_e%gp
|
|
EOF
|
|
sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
rm -f conftest.hdr
|
|
|
|
# This sed command replaces #undef with comments. This is necessary, for
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
# on some systems where configure will not decide to define it.
|
|
cat >> conftest.vals <<\EOF
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
EOF
|
|
|
|
# Break up conftest.vals because some shells have a limit on
|
|
# the size of here documents, and old seds have small limits too.
|
|
|
|
rm -f conftest.tail
|
|
while :
|
|
do
|
|
ac_lines=`grep -c . conftest.vals`
|
|
# grep -c gives empty output for an empty file on some AIX systems.
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
# Write a limited-size here document to conftest.frag.
|
|
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
echo 'CEOF
|
|
sed -f conftest.frag conftest.in > conftest.out
|
|
rm -f conftest.in
|
|
mv conftest.out conftest.in
|
|
' >> $CONFIG_STATUS
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
rm -f conftest.vals
|
|
mv conftest.tail conftest.vals
|
|
done
|
|
rm -f conftest.vals
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
rm -f conftest.frag conftest.h
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
cat conftest.in >> conftest.h
|
|
rm -f conftest.in
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
echo "$ac_file is unchanged"
|
|
rm -f conftest.h
|
|
else
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
# The file is in a subdirectory.
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
fi
|
|
rm -f $ac_file
|
|
mv conftest.h $ac_file
|
|
fi
|
|
fi; done
|
|
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
EOF
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
date > stamp-h
|
|
echo Please \"make depend\" to build dependencies
|
|
|
|
exit 0
|
|
EOF
|
|
chmod +x $CONFIG_STATUS
|
|
rm -fr confdefs* $ac_clean_files
|
|
test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
|
|
|